This file is part of CAcert. CAcert has been released under the CAcert Source License which can be found included with these source files or can be downloaded from the internet from the following address: http://www.cacert.org/src-lic.php CAcert is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. */ ?> = 100")); $town = mysql_escape_string(stripslashes($_GET['town'])); $start = intval($_GET['start']); $limit = 25; echo "
\n
\n"; } elseif(intval($_GET['regid']) <= 0) { echo "\n\n\n\n\n
\n"; } elseif(intval($_GET['locid']) <= 0) { echo "\n\n\n\n\n
\n"; $rc = mysql_num_rows(mysql_query("select * from `locations` where `regid`='".$_GET['regid']."'")); if($start > 0) { $prev = $start - $limit; if($prev < 0) $prev = 0; $st = "[ << Start ] "; $prev = "[ < Previous $limit ] "; } if($start < $rc - $limit) { $next = $start + $limit; $last = $rc - $limit; $next = "[ Next $limit > ] "; $end = "[ End >> ]"; } echo "
$st
$end
\n"; echo "
$prev
$next
\n"; ?>
:
">
\n\n\n\n\n\n\n
\n"; echo "

"; echo _("Make my location here"); echo "

\n"; echo "

"._("If you are happy with this location, click 'Make my location here' to update your location details.")."


\n"; } } else { $total1 = mysql_num_rows(mysql_query("select * from `users`,`notary` where `listme`='1' and `users`.`id`=`notary`.`to` group by `notary`.`to` HAVING SUM(`points`) >= 100")); if(intval($_GET['locid']) > 0) { $total4 = mysql_num_rows(mysql_query("select * from `users`,`notary` where `listme`='1' and `locid`='".$_GET['locid']."' and `users`.`id`=`notary`.`to` group by `notary`.`to` HAVING SUM(`points`) >= 100")); $loc = mysql_fetch_assoc(mysql_query("select * from `locations` where `id`='".$_GET['locid']."'")); $_GET['regid'] = $loc['regid']; } if(intval($_GET['regid']) > 0) { $total3 = mysql_num_rows(mysql_query("select * from `users`,`notary` where `listme`='1' and `regid`='".$_GET['regid']."' and `users`.`id`=`notary`.`to` group by `notary`.`to` HAVING SUM(`points`) >= 100")); $reg = mysql_fetch_assoc(mysql_query("select * from `regions` where `id`='".$_GET['regid']."'")); $_GET['ccid'] = $reg['ccid']; } $total2 = mysql_num_rows(mysql_query("select * from `users`,`notary` where `listme`='1' and `ccid`='".$_GET['ccid']."' and `users`.`id`=`notary`.`to` group by `notary`.`to` HAVING SUM(`points`) >= 100")); $_SESSION['profile']['ccid'] = $_GET['ccid']; $_SESSION['profile']['regid'] = $_GET['regid']; $_SESSION['profile']['locid'] = $_GET['locid']; mysql_query("update `users` set `ccid`='".$_GET['ccid']."',`regid`='".$_GET['regid']."',`locid`='".$_GET['locid']."' where `id`='".$_SESSION['profile']['id']."'"); echo _("Your details have been updated."); } ?>