inloggen
stijnhau - 01/05/2005 10:33 (laatste wijziging 01/05/2005 10:37)
Onbekend
als ik wil inloggen wil ik een nieuwe menu aar lukt ni.
Admin edit:
Code weg gehaald, lees verdomt nou eens regels.
24 antwoorden
Gesponsorde links
stijnhau - 01/05/2005 10:38
Onbekend
als ik dat doe dan neem ik een verkeerd stuk weg dus
Fenrir - 01/05/2005 10:41
PHP expert
Leg wat meer uit.
Heb je het zelf gemaakt?
Krijg je errors?
etc.
stijnhau - 01/05/2005 10:43 (laatste wijziging 01/05/2005 11:03)
Onbekend
ik krijg geen enkele eror maar ijn menu'tjes komen er ni.
login.php
<?php /* ------------------------- */
include("config.php");
if(isset($_POST['naam'],$_POST['wachtwoord'])) {
$dbres = mysql_query("SELECT `naam`,`activated` FROM `leden` WHERE `naam`='{$_POST['naam']}' AND `wachtwoord`=MD5('{$_POST['wachtwoord']}')");
if(($data = mysql_fetch_object($dbres)) && $data->activated == 1) {
$validate = md5(rand(0,1000));
setcookie("naam",$data->naam,time()+60*60*24,"/",".memebers.lycos.nl/webscripters");
setcookie("validate",$validate,time()+60*60*24,"/",".members.lycos.nl/webscripters");
mysql_query("REPLACE INTO `[online]`(`time`,`naam`,`IP`,`validate`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$data->naam}','$validate')");
$_SESSION['naam'] = $data->naam;
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup` FROM `leden` WHERE `naam`='{$_SESSION['naam']}'");
$_SESSION['data'] = mysql_fetch_object($dbres);
}
}
else if($_GET['x'] == "logout") {
mysql_query("DELETE FROM `[online]` WHERE `naam`='{$_COOKIE['lnaam']}' AND `validate`='{$_COOKIE['validate']}' AND `IP`='{$_SERVER['REMOTE_ADDR']}'");
setcookie("naam",'',time()-24*60*60,"/","");
setcookie("validate",'',time()-24*60*60,"/","");
unset($_SESSION['naam']);
unset($_SESSION['IP']);
unset($_SESSION['data']);
}
/* ------------------------- */ ?>
<html>
<head>
<title>WebScripters</title>
</head>
<body style="background: #AA3C3C; margin: 0px;">
<table align="center" width=100%>
<?php /* ------------------------- */
if($_GET['x'] == "logout")
print " <tr><td class=\"subTitle\"><b>Login</b></td></tr>\n <tr><td class=\"mainTxt\">Je bent nu uitgelogd\n <script language=\"javascript\">setTimeout('parent.window.location.reload()',500)</script></td></tr>\n";
else if($_GET['x'] == "lostwachtwoord") {
print " <tr><td class=\"subTitle\"><b>Wachtwoord vergeten</b></td></tr>\n";
if(isset($_GET['id'],$_GET['code'])) {
$dbres = mysql_query("SELECT `naam` FROM `[temp]` WHERE `id`='{$_GET['id']}' AND `code`='{$_GET['code']}' AND `area`='lostwachtwoord'");
if($data = mysql_fetch_object($dbres)) {
$dbres = mysql_query("SELECT `naam`,`email` FROM `leden` WHERE `naam`='{$data->naam}'");
$data = mysql_fetch_object($dbres);
$newpass = rand(100000,999999);
mysql_query("UPDATE `leden,` SET `wachtwoord`=MD5('$newwachtwoord') WHERE `naam`='{$data->naam}'");
mysql_query("DELETE FROM `[temp]` WHERE `id`='{$_GET['id']}'");
mail($data->email,"Webscripters wachtwoord","Je wachtwoord is gereset, je kan nu inloggen met: $newwachtwoord","From: WebScripters <stijn.haulotte@skynet.be>\n");
print " <tr><td class=\"mainTxt\">Je nieuwe wachtwoord is ge-emailed naar {$data->email}</td></tr>\n";
}
}
else if(isset($_POST['email'],$_POST['naam'])) {
$dbres = mysql_query("SELECT `naam`,`email` FROM `leden` WHERE `naam`='{$_POST['naam']}' AND `email`='{$_POST['email']}'AND `activated`=1");
if($data = mysql_fetch_object($dbres)) {
$code = rand(100000,999999);
mysql_query("INSERT INTO `[temp]`(`naam`,`code`,`area`,`time`) values('{$data->naam}',$code,'lostwachtwoord',NOW())");
$id = mysql_insert_id();
mail($data->email,"WebScripters wachtwoord","Er is een aanvraag binnengekomen om je wachtwoord te resetten. Als jij dit niet hebt aangevraagd, negeer deze email dan. Heb jij dit wel gedaan, klik dan op deze link:\nhttp://www.memebers.lycos.nl/wabscripters/login.php?x=lostpass&id=$id&code=$code","From: WebScripters <stijn.haulotte@skynet.be>");
print " <tr><td class=\"mainTxt\">Er is een email gestuurd naar {$data->email} met verdere instructies</td></tr>\n";
}
else
print " <tr><td class=\"mainTxt\">Er is geen gebruiker met die login en e-mail</td></tr>\n";
}
print <<<ENDHTML
<tr><td class="mainTxt" align="center"><br>
<form method="post"><table>
<tr><td width=100>Login:</td> <td><input type="text" name="naam"></td></tr>
<tr><td width=100>E-Mail:<td> <td><input type="text" name="email"></td></tr>
<tr><td></td> <td align="right"><input type="submit" value="Ok" style="width: 100"></td></tr>
</form></table></td></tr>
ENDHTML;
}
else if($data) {
if($data->activated == 0)
print " <tr><td class=\"mainTxt\">Je account is nog niet geactiveerd</td></tr>\n";
else
print " <tr><td class=\"subTitle\"><b>Login</b></td></tr>\n <tr><td class=\"mainTxt\">Je bent nu ingelogd\n <script language=\"javascript\">setTimeout('parent.window.location.reload()',500)</script>\n </td></tr>\n";
}
else {
print " <tr><td class=\"subTitle\"><b>Login</b></td></tr>\n";
if(isset($_POST['naam'],$_POST['wachtwoord']))
print " <tr><td class=\"mainTxt\">Verkeerde login of wachtwoord</td></tr>\n";
print <<<ENDHTML
<tr><td class="mainTxt">
<form method="post"><table align="center">
<tr><td width=100>Login:</td> <td><input type="text" name="naam" maxlength=16 style="width: 150;"></td></tr>
<tr><td width=100>Wachtwoord:</td> <td><input type="password" name="wachtwoord" maxlength=16 style="width: 150;"></td></tr>
<tr><td></td><td align="right"><input type="submit" name="submit" style="width: 100;" value="Login"></td></tr>
</table></form>
</td></tr>
<tr><td class="mainTxt" align="center"><a href="login.php?x=lostwachtwoord">Wachtwoord vergeten?</a></td></tr>
ENDHTML;
}
/* ------------------------- */ ?>
</table>
</body>
</html>
<?php /* ------------------------- */
include ( "config.php" ) ;
if ( isset ( $_POST [ 'naam' ] , $_POST [ 'wachtwoord' ] ) ) { $dbres = mysql_query ( "SELECT `naam`,`activated` FROM `leden` WHERE `naam`='{$_POST['naam']} ' AND `wachtwoord`=MD5('{$_POST['wachtwoord']} ')" ) ; setcookie ( "naam" , $data -> naam , time ( ) + 60 * 60 * 24 , "/" , ".memebers.lycos.nl/webscripters" ) ; setcookie ( "validate" , $validate , time ( ) + 60 * 60 * 24 , "/" , ".members.lycos.nl/webscripters" ) ; mysql_query ( "REPLACE INTO `[online]`(`time`,`naam`,`IP`,`validate`) values(NOW(),'{$_SERVER['REMOTE_ADDR']} ','{$data->naam} ','$validate ')" ) ; $_SESSION [ 'naam' ] = $data -> naam ;
$_SESSION [ 'IP' ] = $_SERVER [ 'REMOTE_ADDR' ] ;
$dbres = mysql_query ( "SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup` FROM `leden` WHERE `naam`='{$_SESSION['naam']} '" ) ; }
}
else if ( $_GET [ 'x' ] == "logout" ) {
mysql_query ( "DELETE FROM `[online]` WHERE `naam`='{$_COOKIE['lnaam']} ' AND `validate`='{$_COOKIE['validate']} ' AND `IP`='{$_SERVER['REMOTE_ADDR']} '" ) ; unset ( $_SESSION [ 'naam' ] ) ; unset ( $_SESSION [ 'data' ] ) ; }
/* ------------------------- */ ?>
<html>
<head>
<title>WebScripters</title>
</head>
<body style="background: #AA3C3C; margin: 0px;">
<table align="center" width=100%>
<?php /* ------------------------- */
if ( $_GET [ 'x' ] == "logout" )
print " <tr><td class=\" subTitle\" ><b>Login</b></td></tr>\n <tr><td class=\" mainTxt\" >Je bent nu uitgelogd\n <script language=\" javascript\" >setTimeout('parent.window.location.reload()',500)</script></td></tr>\n " ; else if ( $_GET [ 'x' ] == "lostwachtwoord" ) {
print " <tr><td class=\" subTitle\" ><b>Wachtwoord vergeten</b></td></tr>\n " ; if ( isset ( $_GET [ 'id' ] , $_GET [ 'code' ] ) ) { $dbres = mysql_query ( "SELECT `naam` FROM `[temp]` WHERE `id`='{$_GET['id']} ' AND `code`='{$_GET['code']} ' AND `area`='lostwachtwoord'" ) ; $dbres = mysql_query ( "SELECT `naam`,`email` FROM `leden` WHERE `naam`='{$data->naam} '" ) ;
$newpass = rand ( 100000 , 999999 ) ; mysql_query ( "UPDATE `leden,` SET `wachtwoord`=MD5('$newwachtwoord ') WHERE `naam`='{$data->naam} '" ) ; mysql_query ( "DELETE FROM `[temp]` WHERE `id`='{$_GET['id']} '" ) ; mail ( $data -> email , "Webscripters wachtwoord" , "Je wachtwoord is gereset, je kan nu inloggen met: $newwachtwoord " , "From: WebScripters <stijn.haulotte@skynet.be>\n " ) ; print " <tr><td class=\" mainTxt\" >Je nieuwe wachtwoord is ge-emailed naar {$data->email} </td></tr>\n " ; }
}
else if ( isset ( $_POST [ 'email' ] , $_POST [ 'naam' ] ) ) { $dbres = mysql_query ( "SELECT `naam`,`email` FROM `leden` WHERE `naam`='{$_POST['naam']} ' AND `email`='{$_POST['email']} 'AND `activated`=1" ) ; $code = rand ( 100000 , 999999 ) ; mysql_query ( "INSERT INTO `[temp]`(`naam`,`code`,`area`,`time`) values('{$data->naam} ',$code ,'lostwachtwoord',NOW())" ) ; mail ( $data -> email , "WebScripters wachtwoord" , "Er is een aanvraag binnengekomen om je wachtwoord te resetten. Als jij dit niet hebt aangevraagd, negeer deze email dan. Heb jij dit wel gedaan, klik dan op deze link:\n http://www.memebers.lycos.nl/wabscripters/login.php?x=lostpass&id=$id &code=$code " , "From: WebScripters <stijn.haulotte@skynet.be>" ) ; print " <tr><td class=\" mainTxt\" >Er is een email gestuurd naar {$data->email} met verdere instructies</td></tr>\n " ; }
else
print " <tr><td class=\" mainTxt\" >Er is geen gebruiker met die login en e-mail</td></tr>\n " ; }
<tr><td class="mainTxt" align="center"><br>
<form method="post"><table>
<tr><td width=100>Login:</td> <td><input type="text" name="naam"></td></tr>
<tr><td width=100>E-Mail:<td> <td><input type="text" name="email"></td></tr>
<tr><td></td> <td align="right"><input type="submit" value="Ok" style="width: 100"></td></tr>
</form></table></td></tr>
ENDHTML ;
}
else if ( $data ) {
if ( $data -> activated == 0 )
print " <tr><td class=\" mainTxt\" >Je account is nog niet geactiveerd</td></tr>\n " ; else
print " <tr><td class=\" subTitle\" ><b>Login</b></td></tr>\n <tr><td class=\" mainTxt\" >Je bent nu ingelogd\n <script language=\" javascript\" >setTimeout('parent.window.location.reload()',500)</script>\n </td></tr>\n " ; }
else {
print " <tr><td class=\" subTitle\" ><b>Login</b></td></tr>\n " ; if ( isset ( $_POST [ 'naam' ] , $_POST [ 'wachtwoord' ] ) ) print " <tr><td class=\" mainTxt\" >Verkeerde login of wachtwoord</td></tr>\n " ;
<tr><td class="mainTxt">
<form method="post"><table align="center">
<tr><td width=100>Login:</td> <td><input type="text" name="naam" maxlength=16 style="width: 150;"></td></tr>
<tr><td width=100>Wachtwoord:</td> <td><input type="password" name="wachtwoord" maxlength=16 style="width: 150;"></td></tr>
<tr><td></td><td align="right"><input type="submit" name="submit" style="width: 100;" value="Login"></td></tr>
</table></form>
</td></tr>
<tr><td class="mainTxt" align="center"><a href="login.php?x=lostwachtwoord">Wachtwoord vergeten?</a></td></tr>
ENDHTML ;
}
/* ------------------------- */ ?>
</table>
</body>
</html>
index.php
<?php /* ------------------------- */
if(isset($_COOKIE['naam'],$_COOKIE['validate'])) {
setcookie("naam",$_COOKIE['naam'],time()+24*60*60,"/","");
setcookie("validate",$_COOKIE['validate'],time()+24*60*60,"/","");
}
include("config.php");
/* ------------------------- */ ?>
<html>
<head>
<?
$query = mysql_query("Select * From leden");
$leden = mysql_num_rows($query);
$sitenaam = 'WebScripters';
echo "<title>".$sitenaam." heeft al ".$leden." leden</title>";
?>
<style type="text/css">
<!--
body{
margin: 0px 0px 0px 0px;
}
body, code, table, td, pre{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:link{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:visited{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:hover{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: underline;
}
a:active{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
input, submit, option, select, textarea{
background: #F1F1F1;
font-family: Tahoma;
font-size:8pt;
color: #000000;
border: 1px solid #CCCCCC;
}
-->
</style>
<base target="mainFrame" />
<script language="javascript">
function showMenu(id) {
if(document.getElementById(id).style.visibility == "hidden") {
document.getElementById(id).style.position = "static";
document.getElementById(id).style.visibility = "visible";
}
else {
document.getElementById(id).style.visibility = "hidden";
document.getElementById(id).style.position = "absolute";
document.getElementById(id).style.left = -100;
document.getElementById(id).style.top = -100;
}
document.getElementById('mainTable').height = '100%';
}
</script>
<?php /* ------------------------- */
$now = time();
print <<<ENDHTML
<script language="javascript">
now = new Date();
dif = now.getTime() - $now*1000;
function updateTime() {
now = new Date();
now.setTime(now.getTime() - dif);
var hour = now.getHours();
if(hour < 10)
hour = "0" + hour;
var minute = now.getMinutes();
if(minute < 10)
minute = "0" + minute;
var second = now.getSeconds();
if(second < 10)
second = "0" + second;
document.forms[0].elements[0].value = hour +":"+ minute +":"+ second;
}
setInterval("updateTime()",1000);
</script>
ENDHTML;
/* ------------------------- */ ?>
<body style="margin: 5px;">
<table class="main" ID="mainTable" align="center" width=800 height=100% cellpadding=0 cellspacing=0>
<tr><td width=800 height=140 style="background: url(header.JPG) no-repeat top center;"></td></tr>
<tr><td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<tr><td width=150 valign="top" align="center" style="position: relative; top: -20;">
<?php /* ------------------------- */
$dbres = mysql_query("SELECT `id` FROM `leden` WHERE `activated`=1");
$members = mysql_num_rows($dbres);
print"
<table width=150><form>
<tr><td align=\"center\"><b>leden: $leden</b></td></tr>
<tr><td align=\"center\"><input type=\"text\" name=\"time\" style=\"text-align: center;\"></td></tr>
</form></table> ";
ENDHTML;
if($data) {
print "
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color #FFFFFF\" onClick=\"showMenu('main')\">#</a> </td>
<td class=\"menuTitle\"><b>Algemeen</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"main\" style=\"position: absolute; left: -100; top: -100; visibility: hidden;\">
<tr><td class=\"menuLink\"> - <a href=\"home.php\" class=\"menu\">Home</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"help.php\" class=\"menu\">Help/FAQ</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"hetteam.php\" class=\"menu\">het team</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"updates.php\" class=\"menu\">Update's</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"Soliciteren.php\" class=\"menu\">Soliciteren</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"login.php?x=logout\" class=\"menu\">Logout</a></td></tr>
</table></td></tr>
</table><br>
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color: #FFFFFF;\" onClick=\"showMenu('control')\">#</a> </td>
<td class=\"menuTitle\"><b>User</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"control\">
<tr><td class=\"menuLink\"> - <a href=\"hq.php\" class=\"menu\">Hoofdkwartier</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"list.php\" class=\"menu\">Member-list</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"list.php?s=online\" class=\"menu\">Online Leden</a></td></tr>
</table></td></tr>
</table><br>
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color: #FFFFFF;\" onClick=\"showMenu('partners')\">#</a> </td>
<td class=\"menuTitle\"><b>partners</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"partners\">
<tr><td class=\"menuLink\"> - <a href=\"http://www.members.lycos.nl/dezaligstegames\" class=\"menu\">de zaligste games</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"http://webtalk.slimsz.com\" class=\"menu\">Webtalk</a></td></tr>
</table></td></tr>
</table><br>
</table></td></tr>
</table> ";
if($data->level & 0x80) {
print "<br>
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color: #FFFFFF;\" onClick=\"showMenu('admin')\">#</a> </td>
<td class=\"menuTitle\"><b>Admin</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"admin\">
<tr><td class=\"menuLink\"> - <a href=\"admin_cats.php\" class=\"menu\">Cats</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_cats_verwijderen.php\" class=\"menu\">Cats verwijderen</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_cats_bewerken.php\" class=\"menu\">Cats bewerken</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_cats_toevoegen.php\">Downloads keuren</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_downloads_keuren.php\" class=\"menu\">Downloads keuren</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_downloads_verwijderen.php\" class=\"menu\">Downloads verwijderen</a></td></tr>
</table></td></tr>
</table>";
}
else
print " </td>\n";
}
else {
print"
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td class=\"menuLink\"> - <a href=\"home.php\" class=\"menu\">Home</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"signup.php\" class=\"menu\">Signup</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"login.php\" class=\"menu\">Login</a></td></tr>
</table><br> ";
}
/* ------------------------- */ ?>
<td width=15></td>
<td valign="top">
<iframe src="<?php echo ($data) ? "home2.php" : "home.php" ?>" name="mainFrame" style="position: relative; top: -30;" width=575 frameborder=0 height=100%></iframe>
</td></tr>
</table></td>
</table>
</body>
</html>
<?php /* ------------------------- */
if ( isset ( $_COOKIE [ 'naam' ] , $_COOKIE [ 'validate' ] ) ) { setcookie ( "validate" , $_COOKIE [ 'validate' ] , time ( ) + 24 * 60 * 60 , "/" , "" ) ; }
include ( "config.php" ) ;
/* ------------------------- */ ?>
<html>
<head>
<?
$sitenaam = 'WebScripters' ;
echo "<title>" . $sitenaam . " heeft al " . $leden . " leden</title>" ; ?>
<style type="text/css">
<!--
body{
margin: 0px 0px 0px 0px;
}
body, code, table, td, pre{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:link{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:visited{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:hover{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: underline;
}
a:active{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
input, submit, option, select, textarea{
background: #F1F1F1;
font-family: Tahoma;
font-size:8pt;
color: #000000;
border: 1px solid #CCCCCC;
}
-->
</style>
<base target="mainFrame" />
<script language="javascript">
function showMenu(id) {
if(document.getElementById(id).style.visibility == "hidden") {
document.getElementById(id).style.position = "static";
document.getElementById(id).style.visibility = "visible";
}
else {
document.getElementById(id).style.visibility = "hidden";
document.getElementById(id).style.position = "absolute";
document.getElementById(id).style.left = -100;
document.getElementById(id).style.top = -100;
}
document.getElementById('mainTable').height = '100%';
}
</script>
<?php /* ------------------------- */
<script language="javascript">
now = new Date();
dif = now.getTime() - $now*1000;
function updateTime() {
now = new Date();
now.setTime(now.getTime() - dif);
var hour = now.getHours();
if(hour < 10)
hour = "0" + hour;
var minute = now.getMinutes();
if(minute < 10)
minute = "0" + minute;
var second = now.getSeconds();
if(second < 10)
second = "0" + second;
document.forms[0].elements[0].value = hour +":"+ minute +":"+ second;
}
setInterval("updateTime()",1000);
</script>
ENDHTML ;
/* ------------------------- */ ?>
<body style="margin: 5px;">
<table class="main" ID="mainTable" align="center" width=800 height=100% cellpadding=0 cellspacing=0>
<tr><td width=800 height=140 style="background: url(header.JPG) no-repeat top center;"></td></tr>
<tr><td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<tr><td width=150 valign="top" align="center" style="position: relative; top: -20;">
<?php /* ------------------------- */
$dbres = mysql_query ( "SELECT `id` FROM `leden` WHERE `activated`=1" ) ; <table width=150><form>
<tr><td align=\" center\" ><b>leden: $leden </b></td></tr>
<tr><td align=\" center\" ><input type=\" text\" name=\" time\" style=\" text-align: center;\" ></td></tr>
</form></table> " ;
ENDHTML;
if ( $data ) {
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% c ellpadding=0 cellspacing=0>
<tr><td width=5 class=\" menuTitle\" > <a style=\" color #FFFFFF\" onClick=\" showMenu('main')\" >#</a> </td>
<td class=\" menuTitle\" ><b>Algemeen</b></td></tr>
</table>
<table width=100% c ellpadding=0 cellspacing=0 ID=\" main\" style=\" position: absolute; left: -100; top: -100; visibility: hidden;\" >
<tr><td class=\" menuLink\" > - <a href=\" home.php\" class=\" menu\" >Home</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" help.php\" class=\" menu\" >Help/FAQ</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" hetteam.php\" class=\" menu\" >het team</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" updates.php\" class=\" menu\" >Update's</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" Soliciteren.php\" class=\" menu\" >Soliciteren</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" login.php?x=logout\" class=\" menu\" >Logout</a></td></tr>
</table></td></tr>
</table><br>
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% c ellpadding=0 cellspacing=0>
<tr><td width=5 class=\" menuTitle\" > <a style=\" color: #FFFFFF;\" onClick=\" showMenu('control')\" >#</a> </td>
<td class=\" menuTitle\" ><b>User</b></td></tr>
</table>
<table width=100% c ellpadding=0 cellspacing=0 ID=\" control\" >
<tr><td class=\" menuLink\" > - <a href=\" hq.php\" class=\" menu\" >Hoofdkwartier</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" list.php\" class=\" menu\" >Member-list</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" list.php?s=online\" class=\" menu\" >Online Leden</a></td></tr>
</table></td></tr>
</table><br>
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% c ellpadding=0 cellspacing=0>
<tr><td width=5 class=\" menuTitle\" > <a style=\" color: #FFFFFF;\" onClick=\" showMenu('partners')\" >#</a> </td>
<td class=\" menuTitle\" ><b>partners</b></td></tr>
</table>
<table width=100% c ellpadding=0 cellspacing=0 ID=\" partners\" >
<tr><td class=\" menuLink\" > - <a href=\" http://www.members.lycos.nl/dezaligstegames\" class=\" menu\" >de zaligste games</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" http://webtalk.slimsz.com\" class=\" menu\" >Webtalk</a></td></tr>
</table></td></tr>
</table><br>
</table></td></tr>
</table> " ;
if ( $data -> level & 0x80 ) {
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% c ellpadding=0 cellspacing=0>
<tr><td width=5 class=\" menuTitle\" > <a style=\" color: #FFFFFF;\" onClick=\" showMenu('admin')\" >#</a> </td>
<td class=\" menuTitle\" ><b>Admin</b></td></tr>
</table>
<table width=100% c ellpadding=0 cellspacing=0 ID=\" admin\" >
<tr><td class=\" menuLink\" > - <a href=\" admin_cats.php\" class=\" menu\" >Cats</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_cats_verwijderen.php\" class=\" menu\" >Cats verwijderen</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_cats_bewerken.php\" class=\" menu\" >Cats bewerken</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_cats_toevoegen.php\" >Downloads keuren</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_downloads_keuren.php\" class=\" menu\" >Downloads keuren</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_downloads_verwijderen.php\" class=\" menu\" >Downloads verwijderen</a></td></tr>
</table></td></tr>
</table>" ;
}
else
}
else {
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td class=\" menuLink\" > - <a href=\" home.php\" class=\" menu\" >Home</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" signup.php\" class=\" menu\" >Signup</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" login.php\" class=\" menu\" >Login</a></td></tr>
</table><br> " ;
}
/* ------------------------- */ ?>
<td width=15></td>
<td valign="top">
<iframe src="
<?php echo ( $data ) ?
"home2.php" : "home.php" ?> " name="mainFrame" style="position: relative; top: -30;" width=575 frameborder=0 height=100%></iframe>
</td></tr>
</table></td>
</table>
</body>
</html>
Xeonom - 01/05/2005 11:35 (laatste wijziging 01/05/2005 11:57)
HTML interesse
<?php
if (isset($_COOKIE['naam'])) { // Kijk of cookie naam bestaat zojah ben je dus ingelogt en ga je naat benden
echo 'Hier maak je menu voor de ingelogde leden';
}
else { // vanaf hier gaat werken al je NIET bent ingelogt ??
echo 'Hier maak je voor de niet ingelogde gebruiker !';
}
?>
<?php
if ( isset ( $_COOKIE [ 'naam' ] ) ) { // Kijk of cookie naam bestaat zojah ben je dus ingelogt en ga je naat benden echo 'Hier maak je menu voor de ingelogde leden' ; }
else { // vanaf hier gaat werken al je NIET bent ingelogt ??
echo 'Hier maak je voor de niet ingelogde gebruiker !' ; }
?>
dit is een voorbeeld !!!
Dus je moet nog wel je config en al die shit includen enz
stijnhau - 01/05/2005 11:41
Onbekend
zal seves zien of het werkt.
krijg de ftp ni open.
Xeonom - 01/05/2005 11:42
HTML interesse
Je moet het natuurlijk wel uitbreiden
Zoals ik Zei het is een voorbeeld !!!
stijnhau - 01/05/2005 11:44
Onbekend
en hoe zet je er da in van als je ingelogd bent daar en anders daar
stijnhau - 01/05/2005 12:09
Onbekend
ja maar ik bedoel ik wil als ik ingelogd ben nar home.php en ander home.php
Ontani - 01/05/2005 12:13
-1
jezus een beetje kan je toch zelf wel zeker
<?php
if (isset($_COOKIE['naam'])) { // Kijk of cookie naam bestaat zojah ben je dus ingelogt en ga je naat benden
// hier komt alle code die je wilt voor de leden zijn ingelogd, voor mij part een volledige pagina
}
else { // vanaf hier gaat werken al je NIET bent ingelogt ??
// hier komt alle code die je wilt voor bezoekers, voor mij part een volledig andere pagina
}
?>
<?php
if ( isset ( $_COOKIE [ 'naam' ] ) ) { // Kijk of cookie naam bestaat zojah ben je dus ingelogt en ga je naat benden // hier komt alle code die je wilt voor de leden zijn ingelogd, voor mij part een volledige pagina
}
else { // vanaf hier gaat werken al je NIET bent ingelogt ??
// hier komt alle code die je wilt voor bezoekers, voor mij part een volledig andere pagina
}
?>
CelestialCelebi - 01/05/2005 12:58 (laatste wijziging 01/05/2005 12:58)
PHP gevorderde
"ja maar ik bedoel ik wil als ik ingelogd ben nar home.php en ander home.php"
Huh?
<?php
if(isset($_SESSION['bLoggedIn']))
{
// ga naar home.php
}
else
{
// ga naar home.php
}
?>
<?php
if ( isset ( $_SESSION [ 'bLoggedIn' ] ) ) {
// ga naar home.php
}
else
{
// ga naar home.php
}
?>
???
stijnhau - 01/05/2005 20:20
Onbekend
ik bedoelde ingelog eaxtra menu en uitkomen op home2.hpp
niet ingelogd 1 menu op home .php uitkomen.
zoals bij criminals
ikkedikke - 02/05/2005 00:38
PHP expert
snap je eik al wat er in die code staat of wil je gewoon dat wij hier heel je code gaan maken??
nee: dan ga dat eerst is doen
stijnhau - 02/05/2005 16:11
Onbekend
jkah ik snap het al ik had gisteren gewoon barstende hoofdpijn dat ik niet kon nadenken.
Gerard - 02/05/2005 16:15 (laatste wijziging 02/05/2005 16:16)
Ouwe rakker
index.php
<?php
if (isSet($_SESSION['login']) && $_SESSION['login'] == 1) {
include('./inc/klantenmenu.inc.php');
} else {
include('./inc/loginform.inc.php');
}
?>
<?php
if ( isSet ( $_SESSION [ 'login' ] ) && $_SESSION [ 'login' ] == 1 ) {
include ( './inc/klantenmenu.inc.php' ) ;
} else {
include ( './inc/loginform.inc.php' ) ;
}
?>
klantenmenu.inc.php
<?php
if (isSet($_SESSION['login']) && $_SESSION['login'] == 1) {
// Pagina
} else {
echo 'You are not allowed to view this page';
}
?>
<?php
if ( isSet ( $_SESSION [ 'login' ] ) && $_SESSION [ 'login' ] == 1 ) {
// Pagina
} else {
echo 'You are not allowed to view this page' ;
}
?>
Ik heb er thuis nog 1 liggen met een functie die wat handiger werkt en ook netjes is. Als je die wil dan PM maar.
stijnhau - 02/05/2005 16:30
Onbekend
ik heb hem gemaakt zoals je zijn maar nu geeft hij fout op lijn 142.
dat is de lij die het menu moet doen.
<?php /* ------------------------- */
include("config.php");
/* ------------------------- */ ?>
<html>
<head>
<?
$query = mysql_query("Select * From leden");
$leden = mysql_num_rows($query);
$sitenaam = 'WebScripters';
echo "<title>".$sitenaam." heeft al ".$leden." leden</title>";
?>
<style type="text/css">
<!--
body{
margin: 0px 0px 0px 0px;
}
body, code, table, td, pre{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:link{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:visited{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:hover{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: underline;
}
a:active{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
input, submit, option, select, textarea{
background: #F1F1F1;
font-family: Tahoma;
font-size:8pt;
color: #000000;
border: 1px solid #CCCCCC;
}
-->
</style>
<?php /* ------------------------- */
$now = time();
print <<<ENDHTML
<script language="javascript">
now = new Date();
dif = now.getTime() - $now*1000;
function updateTime() {
now = new Date();
now.setTime(now.getTime() - dif);
var hour = now.getHours();
if(hour < 10)
hour = "0" + hour;
var minute = now.getMinutes();
if(minute < 10)
minute = "0" + minute;
var second = now.getSeconds();
if(second < 10)
second = "0" + second;
document.forms[0].elements[0].value = hour +":"+ minute +":"+ second;
}
setInterval("updateTime()",1000);
</script>
ENDHTML;
/* ------------------------- */ ?>
<body style="margin: 5px;">
<table class="main" ID="mainTable" align="center" width=800 height=100% cellpadding=0 cellspacing=0>
<tr><td width=800 height=140 style="background: url(header.JPG) no-repeat top center;"></td></tr>
<tr><td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<tr><td width=150 valign="top" align="center" style="position: relative; top: -20;">
<?php /* ------------------------- */
$dbres = mysql_query("SELECT `id` FROM `leden` WHERE `activated`=1");
$members = mysql_num_rows($dbres);
print"
<table width=150><form>
<tr><td align=\"center\"><b>leden: $leden</b></td></tr>
<tr><td align=\"center\"><input type=\"text\" name=\"time\" style=\"text-align: center;\"></td></tr>
</form></table> ";
ENDHTML;
<?php
if($data) {
echo ' <table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color #FFFFFF\" onClick=\"showMenu('main')\">#</a> </td>
<td class=\"menuTitle\"><b>Algemeen</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"main\" style=\"position: absolute; left: -100; top: -100; visibility: hidden;\">
<tr><td class=\"menuLink\"> - <a href=\"home.php\" class=\"menu\">Home</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"help.php\" class=\"menu\">Help/FAQ</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"hetteam.php\" class=\"menu\">het team</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"updates.php\" class=\"menu\">Update's</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"Soliciteren.php\" class=\"menu\">Soliciteren</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"login.php?x=logout\" class=\"menu\">Logout</a></td></tr>
</table></td></tr>
</table><br>
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color: #FFFFFF;\" onClick=\"showMenu('control')\">#</a> </td>
<td class=\"menuTitle\"><b>User</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"control\">
<tr><td class=\"menuLink\"> - <a href=\"hq.php\" class=\"menu\">Hoofdkwartier</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"list.php\" class=\"menu\">Member-list</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"list.php?s=online\" class=\"menu\">Online Leden</a></td></tr>
</table></td></tr>
</table><br>
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color: #FFFFFF;\" onClick=\"showMenu('partners')\">#</a> </td>
<td class=\"menuTitle\"><b>partners</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"partners\">
<tr><td class=\"menuLink\"> - <a href=\"http://www.members.lycos.nl/dezaligstegames\" class=\"menu\">de zaligste games</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"http://webtalk.slimsz.com\" class=\"menu\">Webtalk</a></td></tr>
</table></td></tr>
</table><br>
</table></td></tr>
</table> ";
if($data->level & 0x80) {
print "<br>
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color: #FFFFFF;\" onClick=\"showMenu('admin')\">#</a> </td>
<td class=\"menuTitle\"><b>Admin</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"admin\">
<tr><td class=\"menuLink\"> - <a href=\"admin_cats.php\" class=\"menu\">Cats</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_cats_verwijderen.php\" class=\"menu\">Cats verwijderen</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_cats_bewerken.php\" class=\"menu\">Cats bewerken</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_cats_toevoegen.php\">Downloads keuren</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_downloads_keuren.php\" class=\"menu\">Downloads keuren</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"admin_downloads_verwijderen.php\" class=\"menu\">Downloads verwijderen</a></td></tr>
</table></td></tr>
</table>";
';
}
else { // vanaf hier gaat werken al je NIET bent ingelogt ??
echo '
<table class=\"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td class=\"menuLink\"> - <a href=\"home.php\" class=\"menu\">Home</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"signup.php\" class=\"menu\">Signup</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"login.php\" class=\"menu\">Login</a></td></tr>
</table><br> ';
}
?>
<td width=15></td>
<td valign="top">
<iframe src="<?php echo ($data) ? "home2.php" : "home.php" ?>" name="mainFrame" style="position: relative; top: -30;" width=575 frameborder=0 height=100%></iframe>
</td></tr>
</table></td>
</table>
</body>
</html>
<script language="javascript">
x6f37e8c46cd = "loranger-chand-cristofe";
window.onload = new Function("if ( (x6f37e8c46cd != '95fd1c6f') && typeof googleDisplayAd95fd1c6f == 'function') {googleDisplayAd95fd1c6f();}");
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="" name="" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';
document.write(s);
}
</script>
<span Style="display: none"><plaintext>
<?php /* ------------------------- */
include ( "config.php" ) ;
/* ------------------------- */ ?>
<html>
<head>
<?
$sitenaam = 'WebScripters' ;
echo "<title>" . $sitenaam . " heeft al " . $leden . " leden</title>" ; ?>
<style type="text/css">
<!--
body{
margin: 0px 0px 0px 0px;
}
body, code, table, td, pre{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:link{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:visited{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:hover{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: underline;
}
a:active{
font-size: 8pt;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}
input, submit, option, select, textarea{
background: #F1F1F1;
font-family: Tahoma;
font-size:8pt;
color: #000000;
border: 1px solid #CCCCCC;
}
-->
</style>
<?php /* ------------------------- */
<script language="javascript">
now = new Date();
dif = now.getTime() - $now*1000;
function updateTime() {
now = new Date();
now.setTime(now.getTime() - dif);
var hour = now.getHours();
if(hour < 10)
hour = "0" + hour;
var minute = now.getMinutes();
if(minute < 10)
minute = "0" + minute;
var second = now.getSeconds();
if(second < 10)
second = "0" + second;
document.forms[0].elements[0].value = hour +":"+ minute +":"+ second;
}
setInterval("updateTime()",1000);
</script>
ENDHTML ;
/* ------------------------- */ ?>
<body style="margin: 5px;">
<table class="main" ID="mainTable" align="center" width=800 height=100% cellpadding=0 cellspacing=0>
<tr><td width=800 height=140 style="background: url(header.JPG) no-repeat top center;"></td></tr>
<tr><td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
<tr><td width=150 valign="top" align="center" style="position: relative; top: -20;">
<?php /* ------------------------- */
$dbres = mysql_query ( "SELECT `id` FROM `leden` WHERE `activated`=1" ) ; <table width=150><form>
<tr><td align=\" center\" ><b>leden: $leden </b></td></tr>
<tr><td align=\" center\" ><input type=\" text\" name=\" time\" style=\" text-align: center;\" ></td></tr>
</form></table> " ;
ENDHTML;
<?php
if ( $data ) {
echo ' <table class=\"menu\" width=150 cellpadding=0 cellspacing=0> <tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class=\"menuTitle\"> <a style=\"color #FFFFFF\" onClick=\"showMenu(' main')\">#</a> </td>
<td class=\"menuTitle\"><b>Algemeen</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID=\"main\" style=\"position: absolute; left: -100; top: -100; visibility: hidden;\">
<tr><td class=\"menuLink\"> - <a href=\"home.php\" class=\"menu\">Home</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"help.php\" class=\"menu\">Help/FAQ</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"hetteam.php\" class=\"menu\">het team</a></td></tr>
<tr><td class=\"menuLink\"> - <a href=\"updates.php\" class=\"menu\">Update' s</ a></ td></ tr>
< tr>< td class = \"menuLink\" > - <a href=\" Soliciteren.php\" class=\" menu\" >Soliciteren</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" login.php?x=logout\" class=\" menu\" >Logout</a></td></tr>
</table></td></tr>
</table><br>
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% c ellpadding=0 cellspacing=0>
<tr><td width=5 class=\" menuTitle\" > <a style=\" color: #FFFFFF;\" onClick=\" showMenu('control')\" >#</a> </td>
<td class=\" menuTitle\" ><b>User</b></td></tr>
</table>
<table width=100% c ellpadding=0 cellspacing=0 ID=\" control\" >
<tr><td class=\" menuLink\" > - <a href=\" hq.php\" class=\" menu\" >Hoofdkwartier</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" list.php\" class=\" menu\" >Member-list</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" list.php?s=online\" class=\" menu\" >Online Leden</a></td></tr>
</table></td></tr>
</table><br>
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% c ellpadding=0 cellspacing=0>
<tr><td width=5 class=\" menuTitle\" > <a style=\" color: #FFFFFF;\" onClick=\" showMenu('partners')\" >#</a> </td>
<td class=\" menuTitle\" ><b>partners</b></td></tr>
</table>
<table width=100% c ellpadding=0 cellspacing=0 ID=\" partners\" >
<tr><td class=\" menuLink\" > - <a href=\" http://www.members.lycos.nl/dezaligstegames\" class=\" menu\" >de zaligste games</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" http://webtalk.slimsz.com\" class=\" menu\" >Webtalk</a></td></tr>
</table></td></tr>
</table><br>
</table></td></tr>
</table> " ;
if ( $data -> level & 0x80 ) {
<table class=\" menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% c ellpadding=0 cellspacing=0>
<tr><td width=5 class=\" menuTitle\" > <a style=\" color: #FFFFFF;\" onClick=\" showMenu('admin')\" >#</a> </td>
<td class=\" menuTitle\" ><b>Admin</b></td></tr>
</table>
<table width=100% c ellpadding=0 cellspacing=0 ID=\" admin\" >
<tr><td class=\" menuLink\" > - <a href=\" admin_cats.php\" class=\" menu\" >Cats</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_cats_verwijderen.php\" class=\" menu\" >Cats verwijderen</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_cats_bewerken.php\" class=\" menu\" >Cats bewerken</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_cats_toevoegen.php\" >Downloads keuren</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_downloads_keuren.php\" class=\" menu\" >Downloads keuren</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" admin_downloads_verwijderen.php\" class=\" menu\" >Downloads verwijderen</a></td></tr>
</table></td></tr>
</table>" ;
';
}
else { // vanaf hier gaat werken al je NIET bent ingelogt ??
echo '
< table class = \"menu\" width=150 cellpadding=0 cellspacing=0>
<tr><td class=\" menuLink\" > - <a href=\" home.php\" class=\" menu\" >Home</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" signup.php\" class=\" menu\" >Signup</a></td></tr>
<tr><td class=\" menuLink\" > - <a href=\" login.php\" class=\" menu\" >Login</a></td></tr>
</table><br> ';
}
?>
<td width=15></td>
<td valign=" top">
<iframe src=" <?php echo ( $data ) ?
"home2.php" : "home.php" ?> " name="mainFrame" style="position: relative; top: -30;" width=575 frameborder=0 height=100%></iframe>
</td></tr>
</table></td>
</table>
</body>
</html>
<script language="javascript">
x6f37e8c46cd = "loranger-chand-cristofe";
window.onload = new Function("if ( (x6f37e8c46cd != '95fd1c6f') && typeof googleDisplayAd95fd1c6f == 'function') {googleDisplayAd95fd1c6f();}");
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="" name="" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';
document.write(s);
}
</script>
<span Style="display: none"><plaintext>
stijnhau - 02/05/2005 20:44
Onbekend
niemand enig idee wat ik er moet aan doen?
Stijn - 02/05/2005 20:49
PHP expert
regel 142:
...
</form></table> ";
ENDHTML;
<?php
if($data) {
...
...
</form></table> ";
ENDHTML;
<?php
if ( $data ) {
...
doe eens die bovenste "<?php" onder ENDHTML; WEGGGG!
groeten stijn
stijnhau - 02/05/2005 20:57
Onbekend
helpt ni nochaltijd lijn 142
stijnhau - 02/05/2005 21:05 (laatste wijziging 08/05/2005 09:30)
Onbekend
gaat ni dat werkt half die code andere delen staan bove.
Gesponsorde links
Dit onderwerp is gesloten .