lifesux
11-01-2006, 11:01 PM
with this script:
<?php
if(isset($_SESSION['pwngame']))
{
print "<table class='maintable'>";
print "<tr valign='top'><td width=25%>";
include "left.php";
print "</td>";
print "<td width=75%>";
//main table
print "<table width=90% class='maintable'>
<tr class='headline'><td>Main screen</td></tr>";
print "<tr class='mainrow'><td>";
print "This is your main user control panel, from here you change your password and change your avatar. To own people, point them to this URL:<br> $path/own.php?ID=$getuser3[eatid]<br><br>";
print "You have ownd $getuser3[score] people so far.<br><br>";
print "<A href='topscores.php'>Top 100 owners</a>";
print "</td></tr></table></td>";
print "</table><br><br>";
}
else
{
print "<table class='maintable'>";
print "<tr valign='top'><td width=100%>";
print "You are not logged in.";
print "</td></tr></table>";
}
?>,
if a user is not logged in, how do i get a redirect using php to login.php?
<?php
if(isset($_SESSION['pwngame']))
{
print "<table class='maintable'>";
print "<tr valign='top'><td width=25%>";
include "left.php";
print "</td>";
print "<td width=75%>";
//main table
print "<table width=90% class='maintable'>
<tr class='headline'><td>Main screen</td></tr>";
print "<tr class='mainrow'><td>";
print "This is your main user control panel, from here you change your password and change your avatar. To own people, point them to this URL:<br> $path/own.php?ID=$getuser3[eatid]<br><br>";
print "You have ownd $getuser3[score] people so far.<br><br>";
print "<A href='topscores.php'>Top 100 owners</a>";
print "</td></tr></table></td>";
print "</table><br><br>";
}
else
{
print "<table class='maintable'>";
print "<tr valign='top'><td width=100%>";
print "You are not logged in.";
print "</td></tr></table>";
}
?>,
if a user is not logged in, how do i get a redirect using php to login.php?