diff --git a/pages/wot/1.php b/pages/wot/1.php
index 7dca51d..8eaab6b 100644
--- a/pages/wot/1.php
+++ b/pages/wot/1.php
@@ -19,74 +19,78 @@
$res=mysql_fetch_assoc(mysql_query("select sum(acount) as summe from countries"));
$total1 =$res['summe'];
+ $locid=array_key_exists('locid',$_REQUEST)?intval($_REQUEST['locid']):0;
+ $regid=array_key_exists('regid',$_REQUEST)?intval($_REQUEST['regid']):0;
+ $ccid=array_key_exists('ccid',$_REQUEST)?intval($_REQUEST['ccid']):0;
+
echo "
\n- ";
echo ""._("Home")." ("._("Listed").": $total1)\n";
$display = "";
- if(intval($_GET['locid']) > 0)
+ if($locid > 0)
{
- $loc = mysql_fetch_assoc(mysql_query("select * from `locations` where `id`='".intval($_GET['locid'])."'"));
+ $loc = mysql_fetch_assoc(mysql_query("select * from `locations` where `id`='".$locid."'"));
$display = "
\n- \n".
- "$loc[name] ("._("Listed").": $loc[acount])\n".
+ "".$loc['name']." ("._("Listed").": ".$loc['acount'].")\n".
$display;
- $_GET['regid'] = $loc['regid'];
+ $regid = $loc['regid'];
}
- if(intval($_GET['regid']) > 0)
+ if($regid > 0)
{
- $reg = mysql_fetch_assoc(mysql_query("select * from `regions` where `id`='".intval($_GET['regid'])."'"));
+ $reg = mysql_fetch_assoc(mysql_query("select * from `regions` where `id`='".$regid."'"));
$display = "
\n- \n".
- "$reg[name] ("._("Listed").": $reg[acount])\n".
+ "".$reg['name']." ("._("Listed").": ".$reg['acount'].")\n".
$display;
- $_GET['ccid'] = $reg['ccid'];
+ $ccid = $reg['ccid'];
}
- if(intval($_GET['ccid']) > 0)
+ if($ccid > 0)
{
- $cnt = mysql_fetch_assoc(mysql_query("select * from `countries` where `id`='".intval($_GET['ccid'])."'"));
+ $cnt = mysql_fetch_assoc(mysql_query("select * from `countries` where `id`='".$ccid."'"));
$display = "\n
\n";
- } elseif(intval($_GET['ccid']) > 0 && intval($_GET['regid']) <= 0 && intval($_GET['locid']) <= 0) {
+ } elseif($ccid > 0 && $regid <= 0 && $locid <= 0) {
echo "\n \n
\n \n
\n
\n";
- } elseif(intval($_GET['regid']) > 0 && intval($_GET['locid']) <= 0) {
+ } elseif($regid > 0 && $locid <= 0) {
echo "\n \n
\n\n\n
\n";
- } elseif(intval($_GET['locid']) > 0){
+ } elseif($locid > 0){
echo "\n\n\n\n\n\n\n
\n";
}
$query = "select *, `users`.`id` as `id` from `users`,`notary` where `listme`='1' and
- `ccid`='".intval($_GET['ccid'])."' and `regid`='".intval($_GET['regid'])."' and
- `locid`='".intval($_GET['locid'])."' and `users`.`id`=`notary`.`to`
+ `ccid`='".$ccid."' and `regid`='".$regid."' and
+ `locid`='".$locid."' and `users`.`id`=`notary`.`to`
group by `notary`.`to` HAVING SUM(`points`) >= 100 order by `points` desc";
$list = mysql_query($query);
if(mysql_num_rows($list) > 0)