-
Notifications
You must be signed in to change notification settings - Fork 2
/
appsfilter.php
59 lines (50 loc) · 833 Bytes
/
appsfilter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
$appsFilter="";
$APPSCOUNT=8;
$sort="";
if(isset($_GET['st']))
{
$offset=$_GET['st'];
}
else
{
$offset=0;
}
if(isset($_GET['p']))
{
$_SESSION['platform']=$_GET['p'];
}
if(isset($_GET['mc']))
{
$_SESSION['mCat']=$_GET['mc'];
}
if(isset($_GET['sc']))
{
$_SESSION['sCat']=$_GET['sc'];
}
if(isset($_GET['sort']))
{
$_SESSION['sort']=$_GET['sort'];
}
if(isset($_SESSION['platform']))
{
$appsFilter .=" AND appPlatformID={$_SESSION['platform']} ";
}
if(isset($_SESSION['mCat']))
{
$appsFilter .=" AND appMainCatID={$_SESSION['mCat']} ";
}
if(isset($_SESSION['sCat']))
{
$appsFilter .=" AND appSubCatID={$_SESSION['sCat']} ";
}
if(isset($_SESSION['sort']))
{
$sort="{$_SESSION['sort']}";
}
else
{
$_SESSION['sort']="appDownloads";
$sort="appDownloads";
}
?>