Nieuw lid |
|
<?
error_reporting(E_ALL ^ E_NOTICE); // Set error level while parsing php without notice error
?>
<?php /* ------------------------- */
include("_include-config.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
// DEBUG CODE:
// echo $_SESSION["login"];
// s = kolomnaam
// q = zoekterm
/* ------------------------- */ ?>
<html>
<head>
<title>WarZone</title>
<link rel="stylesheet" type="text/css" href="<?php echo ($_COOKIE['v'] == 2) ? "css-v2.css" : "css-v1.css"; ?>">
<head><script language="JavaScript">
var left = 0;
function movein(){
if (document.layers) {
document.layers['message'].pageX = window.pageXOffset + left;
left+=step;
if(left<moveto){ setTimeout('movein()',speed); }
else { setTimeout('closemessage()',hide); }
}
else{
document.getElementById('message').style.left=left+'px';
left+=step;
if(left<moveto){ setTimeout('movein()',speed); }
else { setTimeout('closemessage()',hide); }
}
}
function closemessage(){
if (document.layers) {document.layers['message'].visibility='hidden';}
else{document.getElementById('message').style.visibility='hidden';}
}
</script>
<style type="text/css" media="screen">
#obmessage #message {top:120px; border:1px solid black;
width:200px;background-color:lime;padding:4px;
position:absolute;}
</style>
</head><!--www.melvinsweb.tk-->
</head>
<BODY onLoad="movein()">
<body style="background: #663300; margin: 0px;">
<table width=100%>
<tr><td align="center">
<form action="list.php" method="get">
Voorbeeld: "<b>a*</b>" zal een lijst geven van namen die beginnen met een A<br>
<input type="hidden" name="s" value="search"><input type="text" name="q" value="<?php echo $_REQUEST['q']; ?>"> <input type="submit" value="Zoek!">
</form>
</td></tr>
</table>
<table width=100%>
<tr><td align="center" class="subTitle" style="letter-spacing: normal;" width=20><b>#</b></td>
<td class="subTitle" style="letter-spacing: normal;" align="center"><a href="list.php?s=login"><b>Nickname</a></b></td>
<td class="subTitle" style="letter-spacing: normal;" align="center" width=150><a href="list.php?s=type"><b>Type</b></a></td>
<td class="subTitle" style="letter-spacing: normal;" align="center" width=100><a href="list.php?s=info->bank"><b>Bank</b></a></td>
<td class="subTitle" style="letter-spacing: normal;" align="center" width=100><a href="list.php?s=info->cash"><b>Contant</b></a></td>
<td class="subTitle" style="letter-spacing: normal;" align="center" width=100><a href="list.php?s=power"><b>Power</b></a></td>
<td class="subTitle" style="letter-spacing: normal;" align="center" width=100><b>Klik</b></td></tr>
<?php /* ------------------------- */
$begin = ($_GET['p'] >= 0) ? $_GET['p']*30 : 0;
if($_GET['s'] == "login")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "money")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY `cash`+`bank` DESC,`login` ASC LIMIT $begin,30");
else if($_GET['s'] == "type")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY `type`,`login` LIMIT $begin,30");
else if($_GET['s'] == "online")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level`,`showonline` FROM `[users]` WHERE `activated`=1 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "admin")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "hulpadminonline")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =2 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "betaalaccount")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =3 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "search")
{
$_GET['q'] = preg_replace('/\*/','%',$_GET['q']);
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 AND `login` LIKE '{$_GET['q']}' ORDER BY `login` LIMIT $begin,30");
}
else
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY (`attack`+`defence`)/2+`clicks`*5 DESC,`login` ASC LIMIT $begin,30");
$user = $_SESSION['login'];
for($j=$begin+1; $info = mysql_fetch_object($dbres); $j++)
{
// ????
$login = ($info->showonline == 0 && $data->level == 0x80 && $_GET['s'] == "online") ? "{$info->login} *" : $info->login;
// onthoud admins dikgedrukt en met *, als betreffende user dat is
$login = ($info->level & 0x80) ? "<b>$login *</b>" : $login;
$login = ($info->level == 2) ? "<font color=red><b>$login *</b></font>" : $login;
// onthoud betaald account dikgedrukt en met *, als betreffende user dat is
$login = ($info->level & 0x80) ? "<b>$login *</b>" : $login;
$login = ($info->level == 3) ? "<font color=blue><b>$login *</b></font>" : $login;
// maak een array met typen
$type = Array("","struikrover","Ridder","Mägiers");
// onthoud betreffende type
$type = $type[$info->type];
// rond berekening van power af op gehele waarde en onthoud deze van de betreffende user
$power = round(($info->attack+$info->defence)/2+$info->clicks*5);
// money is bank+cash waarde van betreffende user
$money = $info->cash+$info->bank;
// toon een rij met de kolommen: nummer, loginnaam, type, money en power van de user met nummer $j
echo '<tr><td align="center" class="mainTxt5." width=20>$j</td>';
echo '<td class="mainTxt"><a href="profile.php?x={$info->login}">$login</a></td> ';
echo '<td align="center" class="mainTxt" width=150>$type</td> ';
echo '<td align="center" class="mainTxt" width=100>$$info->bank</td> ';
echo '<td align="center" class="mainTxt" width=100>$$info->cash</td> ';
echo '<td align="center" class="mainTxt" width=100>$power</td> ';
echo '<td align="center" class="mainTxt" width=100><a href="click.php?x={$info->login}">[x]</a></td> ';
ENDHTML;
// DEBUG COMMENT: hier gaat SESSION de mist in
// DEBUG CODE:
// echo '<td align=\"center\" class=\"mainTxt\" width=100>".$_SESSION["login"]."</td>';
// als type niet is: wetenschapper OF (type is wetenschapper EN
if(($data->type != 3 || ($data->type == 3 && $info->type != 3)) && round($data->signup/3600-time()/3600) + 12 <= 0 && round($info->signup/3600-time()/3600) + 12 <= 0 && ($info->clan != $data->clan || $info->clan == ""))
print " <td align=\"center\" class=\"mainTxt\"><a href=\"attack.php?x={$info->login}\">Attack</a></td></tr>\n\n";
else
print " </tr>\n\n";
}
if($_GET['s'] == "online")
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
else if($_GET['s'] == "online")
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=1");
else if($_GET['s'] == "admin")
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "hulpadminonline")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =2 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "betaalaccount")
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =3 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "search")
{
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1 AND `login` LIKE '{$_GET['q']}' ORDER BY `login`");
$_GET['q'] = preg_replace('/%/','*',$_GET['q']);
}
else
$dbres = mysql_query("SELECT id FROM `[users]` WHERE `activated`=1");
print "</table>\n\n<table width=100%>\n <tr><td class=\"mainTxt\" align=\"center\">";
if(mysql_num_rows($dbres) <= 30)
print "< 1 ></td></tr></table>\n";
else
{
if($begin/30 == 0)
print "<< ";
else
print "<a href=\"list.php?s={$_GET['s']}&q={$_GET['q']}&p=". ($begin/30-1) ."\"><<</a> ";
for($i=0; $i<mysql_num_rows($dbres)/30; $i++)
{
print "<a href=\"list.php?s={$_GET['s']}&q={$_GET['q']}&p=$i\">". ($i+1) ."</a> ";
}
if($begin+30 >= mysql_num_rows($dbres))
print ">> ";
else
print "<a href=\"list.php?s={$_GET['s']}&q={$_GET['q']}&p=". ($begin/30+1) ."\">>></a>";
}
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=1");
$online = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=0");
$anonymous = mysql_num_rows($dbres);
/* ------------------------- */ ?>
</table>
<table width=100%>
<tr><td align="center"><a href="list.php?s=online"><b><?php print $online; ?> leden online (waarvan <?php print $anonymous; ?> anoniem)</b></a></td></tr>
<tr><td align="center">Admins worden aangegeven als: <font color=orange><b>Loginnaam *</b></font></td></tr>
<tr><td align="center">Hulp Admins worden aangegeven als: <font color=red><b>Loginnaam *</b></font></td></tr>
<tr><td align="center">Betaalde leden worden aangegeven als: <font color=Blue><b>Loginnaam *</b></font></td></tr>
</table>
<?php
$login = $user;
// DEBUG CODE:
// echo $_SESSION["login"];
?>
</body>
</html>
<script language="javascript">
myreg=new RegExp("lycos\.nl","i");
if ( !myreg.test("'"+top.location+"'") ) {
nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
rn=nwreg.exec("'"+self.location+"'");
if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
else { top.location="http://" + rn[1] + "/" + rn[3]; }
}
if(window == window.top) {
var address=window.location;
var s='<html><head><title>'+'</title></head>'+
'<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
'<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="http://ads.tripod.lycos.nl/ad/google/frame.php?_url='+escape(address)+'&gg_bg=&gg_template=&mkw=&cat=noref" name="LycosAdFrame" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';
document.write(s);
}
</script>
<? error_reporting(E_ALL ^ E_NOTICE); // Set error level while parsing php without notice error ?> <?php /* ------------------------- */ include("_include-config.php"); if(! check_login()) { header("Location: login.php"); } mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'"); // DEBUG CODE: // echo $_SESSION["login"]; // s = kolomnaam // q = zoekterm /* ------------------------- */ ?> <html> <head> <title>WarZone</title> <link rel="stylesheet" type="text/css" href=" <?php echo ($_COOKIE['v'] == 2) ? "css-v2.css" : "css-v1.css"; ?>"> <head><script language="JavaScript"> var left = 0; function movein(){ if (document.layers) { document.layers['message'].pageX = window.pageXOffset + left; left+=step; if(left<moveto){ setTimeout('movein()',speed); } else { setTimeout('closemessage()',hide); } } else{ document.getElementById('message').style.left=left+'px'; left+=step; if(left<moveto){ setTimeout('movein()',speed); } else { setTimeout('closemessage()',hide); } } } function closemessage(){ if (document.layers) {document.layers['message'].visibility='hidden';} else{document.getElementById('message').style.visibility='hidden';} } </script> <style type="text/css" media="screen"> #obmessage #message {top:120px; border:1px solid black; width:200px;background-color:lime;padding:4px; position:absolute;} </style> </head><!--www.melvinsweb.tk--> </head> <BODY onLoad="movein()"> <body style="background: #663300; margin: 0px;"> <table width=100%> <tr><td align="center"> <form action="list.php" method="get"> Voorbeeld: "<b>a*</b>" zal een lijst geven van namen die beginnen met een A<br> <input type="hidden" name="s" value="search"><input type="text" name="q" value=" <?php echo $_REQUEST['q']; ?>"> <input type="submit" value="Zoek!"> </form> </td></tr> </table> <table width=100%> <tr><td align="center" class="subTitle" style="letter-spacing: normal;" width=20><b>#</b></td> <td class="subTitle" style="letter-spacing: normal;" align="center"><a href="list.php?s=login"><b>Nickname</a></b></td> <td class="subTitle" style="letter-spacing: normal;" align="center" width=150><a href="list.php?s=type"><b>Type</b></a></td> <td class="subTitle" style="letter-spacing: normal;" align="center" width=100><a href="list.php?s=info->bank"><b>Bank</b></a></td> <td class="subTitle" style="letter-spacing: normal;" align="center" width=100><a href="list.php?s=info->cash"><b>Contant</b></a></td> <td class="subTitle" style="letter-spacing: normal;" align="center" width=100><a href="list.php?s=power"><b>Power</b></a></td> <td class="subTitle" style="letter-spacing: normal;" align="center" width=100><b>Klik</b></td></tr> <?php /* ------------------------- */ $begin = ($_GET['p'] >= 0) ? $_GET['p']*30 : 0; if($_GET['s'] == "login") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "money") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY `cash`+`bank` DESC,`login` ASC LIMIT $begin,30"); else if($_GET['s'] == "type") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY `type`,`login` LIMIT $begin,30"); else if($_GET['s'] == "online") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level`,`showonline` FROM `[users]` WHERE `activated`=1 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "admin") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "hulpadminonline") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =2 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "betaalaccount") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =3 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "search") { $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 AND `login` LIKE '{$_GET['q']}' ORDER BY `login` LIMIT $begin,30"); } else $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `activated`=1 ORDER BY (`attack`+`defence`)/2+`clicks`*5 DESC,`login` ASC LIMIT $begin,30"); $user = $_SESSION['login']; { // ???? $login = ($info->showonline == 0 && $data->level == 0x80 && $_GET['s'] == "online") ? "{$info->login} *" : $info->login; // onthoud admins dikgedrukt en met *, als betreffende user dat is $login = ($info->level & 0x80) ? "<b>$login *</b>" : $login; $login = ($info->level == 2) ? "<font color=red><b>$login *</b></font>" : $login; // onthoud betaald account dikgedrukt en met *, als betreffende user dat is $login = ($info->level & 0x80) ? "<b>$login *</b>" : $login; $login = ($info->level == 3) ? "<font color=blue><b>$login *</b></font>" : $login; // maak een array met typen $type = Array("","struikrover","Ridder","Mägiers"); // onthoud betreffende type $type = $type[$info->type]; // rond berekening van power af op gehele waarde en onthoud deze van de betreffende user $power = round(($info->attack+$info->defence)/2+$info->clicks*5); // money is bank+cash waarde van betreffende user $money = $info->cash+$info->bank; // toon een rij met de kolommen: nummer, loginnaam, type, money en power van de user met nummer $j echo '<tr><td align="center" class="mainTxt5." width=20>$j</td>'; echo '<td class="mainTxt"><a href="profile.php?x={$info->login}">$login</a></td> '; echo '<td align="center" class="mainTxt" width=150>$type</td> '; echo '<td align="center" class="mainTxt" width=100>$$info->bank</td> '; echo '<td align="center" class="mainTxt" width=100>$$info->cash</td> '; echo '<td align="center" class="mainTxt" width=100>$power</td> '; echo '<td align="center" class="mainTxt" width=100><a href="click.php?x={$info->login}">[x]</a></td> '; ENDHTML; // DEBUG COMMENT: hier gaat SESSION de mist in // DEBUG CODE: // echo '<td align=\"center\" class=\"mainTxt\" width=100>".$_SESSION["login"]."</td>'; // als type niet is: wetenschapper OF (type is wetenschapper EN if(($data->type != 3 || ($data->type == 3 && $info->type != 3)) && round($data->signup/3600-time()/3600) + 12 <= 0 && round($info->signup/3600-time()/3600) + 12 <= 0 && ($info->clan != $data->clan || $info->clan == "")) print " <td align=\"center\" class=\"mainTxt\"><a href=\"attack.php?x={$info->login}\">Attack</a></td></tr>\n\n"; else } if($_GET['s'] == "online") $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300"); else if($_GET['s'] == "online") $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=1"); else if($_GET['s'] == "admin") $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "hulpadminonline") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =2 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "betaalaccount") $dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`cash`,`bank`,`type`,`level` FROM `[users]` WHERE `level` =3 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30"); else if($_GET['s'] == "search") { $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1 AND `login` LIKE '{$_GET['q']}' ORDER BY `login`"); } else $dbres = mysql_query("SELECT id FROM `[users]` WHERE `activated`=1"); print "</table>\n\n<table width=100%>\n <tr><td class=\"mainTxt\" align=\"center\">"; print "< 1 ></td></tr></table>\n"; else { if($begin/30 == 0) else print "<a href=\"list.php?s={$_GET['s']}&q={$_GET['q']}&p=". ($begin/30-1) ."\"><<</a> "; for($i=0; $i<mysql_num_rows($dbres)/30; $i++) { print "<a href=\"list.php?s={$_GET['s']}&q={$_GET['q']}&p=$i\">". ($i+1) ."</a> "; } else print "<a href=\"list.php?s={$_GET['s']}&q={$_GET['q']}&p=". ($begin/30+1) ."\">>></a>"; } $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=1"); $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=0"); /* ------------------------- */ ?> </table> <table width=100%> <tr><td align="center"><a href="list.php?s=online"><b> <?php print $online; ?> leden online (waarvan <?php print $anonymous; ?> anoniem)</b></a></td></tr> <tr><td align="center">Admins worden aangegeven als: <font color=orange><b>Loginnaam *</b></font></td></tr> <tr><td align="center">Hulp Admins worden aangegeven als: <font color=red><b>Loginnaam *</b></font></td></tr> <tr><td align="center">Betaalde leden worden aangegeven als: <font color=Blue><b>Loginnaam *</b></font></td></tr> </table> <?php $login = $user; // DEBUG CODE: // echo $_SESSION["login"]; ?> </body> </html> <script language="javascript"> myreg=new RegExp("lycos\.nl","i"); if ( !myreg.test("'"+top.location+"'") ) { nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i"); rn=nwreg.exec("'"+self.location+"'"); if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; } else { top.location="http://" + rn[1] + "/" + rn[3]; } } if(window == window.top) { var address=window.location; var s='<html><head><title>'+'</title></head>'+ '<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+ '<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+ '<frame src="http://ads.tripod.lycos.nl/ad/google/frame.php?_url='+escape(address)+'&gg_bg=&gg_template=&mkw=&cat=noref" name="LycosAdFrame" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+ '</frameset>'+ '</html>'; document.write(s); } </script>
dat is de code |