PHP interesse |
|
Ik heb een deel van een script gehaalt uit mijn andere bestanden echter nu krijg ik op mijn pagina alleen de php script te zien en niet de goedwerkende links.
Hoe moet ik dit aanpassen?
<?php /* ------------------------- */
$UPDATE_DB = 1;
if(! check_login()) {
header("Location: ".$site_url."?pagina=home");
exit;
}
content_begin();
$sel = mysql_query("SELECT * FROM `[users]` WHERE `login`='{$_SESSION['loginnaam']}' AND `gameid`= {$_SESSION['gid']} ");
$data = mysql_fetch_array($sel);
$sql_00 = mysql_fetch_assoc(mysql_query("SELECT * FROM `[meestonline]` WHERE `id`='1' AND `gameid`={$_SESSION['gameid']}"));
$meestonline = $sql_00['online'];
$dbres2 = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `gameid`={$_SESSION['gameid']}");
$online = mysql_num_rows($dbres2);
if($online > $meestonline){
mysql_query("UPDATE `[meestonline]` SET `online`='$online' WHERE `id`='1'") or die (mysql_error());
}
mysql_query("UPDATE `[users]` SET `online`=NOW(),`page`='Status' WHERE `login`='{$_SESSION['loginnaam']}' AND `gameid`={$_SESSION['gameid']}");
/* ------------------------- */ ?>
<table align=center width=100% class=tabellijst>
<tr><td class=subTitle colspan=2><b><font size="2"><? echo $persoonlijk;?></b></td></tr>
<tr><td class=mainTxt align=left>
<b><font color=red><font size="2">$refferal:</b><br /></font>
{$site_url}?pagina=aanmelden&rec={$_SESSION['loginnaam']}
</td></tr>
<tr><td class=mainTxt align=left>
<b><font color=red><font size="2">$gangsterlink:</b><br /></font>
{$site_url}?g={$_SESSION['gameid']}&pagina=click&x={$_SESSION['loginnaam']}<br /><br />
</td></tr>
</table>
</body>
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<?=content_einde();?>
<?php /* ------------------------- */ $UPDATE_DB = 1; if(! check_login()) { header("Location: ".$site_url."?pagina=home"); } content_begin(); $sel = mysql_query("SELECT * FROM `[users]` WHERE `login`='{$_SESSION['loginnaam']}' AND `gameid`= {$_SESSION['gid']} "); $meestonline = $sql_00['online']; $dbres2 = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `gameid`={$_SESSION['gameid']}"); if($online > $meestonline){ } mysql_query("UPDATE `[users]` SET `online`=NOW(),`page`='Status' WHERE `login`='{$_SESSION['loginnaam']}' AND `gameid`={$_SESSION['gameid']}"); /* ------------------------- */ ?> <table align=center width=100% class=tabellijst> <tr><td class=subTitle colspan=2><b><font size="2"> <? echo $persoonlijk;? ></b></td></tr> <tr><td class=mainTxt align=left> <b><font color=red><font size="2">$refferal:</b><br /></font> {$site_url}?pagina=aanmelden&rec={$_SESSION['loginnaam']} </td></tr> <tr><td class=mainTxt align=left> <b><font color=red><font size="2">$gangsterlink:</b><br /></font> {$site_url}?g={$_SESSION['gameid']}&pagina=click&x={$_SESSION['loginnaam']}<br /><br /> </td></tr> </table> </body> <body oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> <?=content_einde();?>
|