Forum Moderators: coopster

Message Too Old, No Replies

Misscripting

         

orion_rus

10:48 am on Sep 13, 2006 (gmt 0)

10+ Year Member



Hello world, i have following trouble;
if this script have a PHP_SELFT '/index.php'
$session->set('ssat','1'); is set, but i can't understand why?

if ($_SERVER['PHP_SELF']!='/index.php')
{
$session->get('ssat')==0)
{
$template->data('scriptpopup2');
echo "<script type='text/javascript'>";
echo "setTimeout(\"window.open('/arsenal/modules/chat/chat.php','','left=100,top:300,width=400,height=200')\",5000);";
echo "</script>";
if ($_SERVER['PHP_SELF']!='/index.php')
{$session->set('ssat','1');
}
$template->data();
}
}

whoisgregg

3:39 pm on Sep 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This line doesn't look right to me:

$session->get('ssat')==0) 

There's an extra ")" at the end that doesn't match up anywhere.