",time(),time());
// printf("",$z,$z);
setcookie('howmanycomments', $_GET['howmanycomments'], $z);
$howmanycomments = $_GET['howmanycomments'];
} else {
$howmanycomments = $_COOKIE['howmanycomments'];
}
include_once('misc.php');
include_once('auth.php');
#
# Tue Apr 22 17:15:12 CEST 2003 - jeffry:
# Changed the pconnects to normal connects, because all the idle mysql
# connections were killing the server in busy hours.. (every mysql process
# takes about 50MB of resident memory :)
#
#$dbl = mysql_pconnect($db['host'], $db['user'], $db['password']);
conn_db();
$xml = new SceneID();
if($_SESSION["SCENEID"])
{
if($_SESSION["SCENEID_IP"]!=$_SERVER["REMOTE_ADDR"])
{
//header("Location: http://$_SERVER[HTTP_HOST]/logout.php");
}
}
//die("test");
refreshUserInfo();
$starttime = microtime_float();
$charset = "ISO-8859-1";
if ($_GET["charset"]) $charset = htmlentities($_GET["charset"]);
?>
require('icons.php');
$months[1]="january";
$months[2]="february";
$months[3]="march";
$months[4]="april";
$months[5]="may";
$months[6]="june";
$months[7]="july";
$months[8]="august";
$months[9]="september";
$months[10]="october";
$months[11]="november";
$months[12]="december";
// printable numbers extensions
$nbext[0]="th";
$nbext[1]="st";
$nbext[2]="nd";
$nbext[3]="rd";
$nbext[4]="th";
$nbext[5]="th";
$nbext[6]="th";
$nbext[7]="th";
$nbext[8]="th";
$nbext[9]="th";
mt_srand((double)microtime()*1000000);
function logGloperatorAction($action,$id) {
$sql = sprintf("insert gloperator_log (gloperatorid,action,itemid,date) values (%d,'%s',%d,'%s')",$_SESSION["SCENEID_ID"],$action,$id,date("Y-m-d H:i:s"));
mysql_query($sql) or die(mysql_error());
}
function menu(){ ?>
}
/*
In memory of Tuo / Mandarine ^ Popsy Team
|
*/
if ($user["logos"]==1)
{
$query = "SELECT logos.file,logos.author1,logos.author2,logosu1.nickname as nickname1,logosu2.nickname as nickname2 FROM logos LEFT JOIN users as logosu1 on logosu1.id=logos.author1 LEFT JOIN users as logosu2 on logosu2.id=logos.author2 WHERE logos.vote_count>0 order by rand() limit 1";
$result = mysql_query($query);
//mysql_data_seek($result, rand(0, mysql_num_rows($result)));
$logo = mysql_fetch_assoc($result);
//$logo['size'] = GetImageSize('/gfx/logos/'.$logo['file']);
?>
" border="0" alt=" if($logo["nickname1"]): ?>done by print($logo["nickname1"]); ?> endif; ?> if($logo["nickname2"]): ?> and print($logo["nickname2"]); ?> endif; ?>">
if($logo["nickname1"]): ?>
logo done by
"> print($logo["nickname1"]); ?>
if($logo["nickname2"]): ?>
and
"> print($logo["nickname2"]); ?>
endif; endif;
} else { print("
back to pouët's home "); }
?>
::
$random_quotes = Array (
'send your logos to
us and be a popstar !',
'
vote for the logos you like and be a lamah !',
'pouët.net is brought to you by
mandarine',
'pouët.net is hosted on the huge
scene.org servers',
/*
'pout != scene && scene != pout',
'help make KOOL DEMO-SHOCK to japanese brain',
'i am not an atomic playboy',
'glop me beautiful'
*/
);
?>
=$random_quotes[array_rand($random_quotes)]?>
if ($user["topbar"]==1) menu(); ?>