",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: logout.php"); } } //die("test"); refreshUserInfo(); $starttime = microtime_float(); $charset = "ISO-8859-1"; if ($_GET["charset"]) $charset = htmlentities($_GET["charset"]); ?> "/> pouet.net :: your online demoscene resource\n"); break; case 'prod.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, prodhidefakeuser, displayimages"; if ($which) { $query="SELECT prods.name as prod_name, groups.name as group_name, groups2.name as group_name2, groups3.name as group_name3 FROM prods LEFT JOIN groups ON groups.id=prods.group1 LEFT JOIN groups as groups2 ON groups2.id=prods.group2 LEFT JOIN groups as groups3 ON groups3.id=prods.group3 WHERE prods.id=$which"; $result=mysql_query($query); $row = mysql_fetch_assoc($result); if($row['group_name']) { if($row['group_name3']) { print(''.stripslashes($row['prod_name']).' by '.$row['group_name'].' & '.$row['group_name2'].' & '.$row['group_name3'].''."\n"); } else if($row['group_name2']) { print(''.stripslashes($row['prod_name']).' by '.$row['group_name'].' & '.$row['group_name2'].''."\n"); } else { print(''.stripslashes($row['prod_name']).' by '.$row['group_name'].''."\n"); } } else { print(''.stripslashes($row['prod_name']).''."\n"); } } else { print("random prod\n"); } break; case 'topic.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, topicposts, topichidefakeuser, displayimages"; $query="SELECT topic FROM bbs_topics WHERE id=".$which; $result=mysql_query($query); $topictitle=mysql_result($result,0); print("".$topictitle."\n"); break; case 'groups.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; if ($which) { $query="SELECT name FROM groups WHERE id=".$which; $result=mysql_query($query); $groupname=mysql_result($result,0); } print("".($which?$groupname:"groups")."\n"); break; case 'party.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; $query="SELECT name FROM parties WHERE id=".$which; $result=mysql_query($query); $partyname=mysql_result($result,0); print("".$partyname." ".$when."\n"); break; case 'results.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; $query="SELECT name FROM parties WHERE id=".$which; $result=mysql_query($query); $partyname=mysql_result($result,0); print("results ".$partyname." ".$when."\n"); break; case 'comments.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, commentshours, commentsnamecut "; print("comments\n"); break; case 'bbs.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, bbsbbstopics"; print("BBS\n"); break; case 'cdc.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; print("coup de coeur\n"); break; case 'oneliner.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; print("oneliner\n"); break; case 'prodlist.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, prodlistprods"; print("prodlist\n"); break; case 'search.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, searchprods"; print("search\n"); break; case 'top10.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; print("top of the pops\n"); break; case 'faq.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; print("faq\n"); break; case 'user_light.php' : case 'user.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, userlogos, userprods, usergroups, userparties, userscreenshots, usernfos, usercomments, userrulez, usersucks "; $query="SELECT level,nickname FROM users WHERE id=".$who; $result=mysql_query($query); $o=mysql_fetch_object($result); print("".$o->nickname."\n"); break; case 'userlist.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar, userlistusers"; print("userlist\n"); break; case 'news.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar "; print("news\n"); break; case 'account.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; print("account\n"); break; case 'account2.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; print("custom?olobstormaziabletic 7004+ super\n"); break; case 'bbses.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; if ($which) { $query="SELECT name FROM bbses WHERE id=".$which; $result=mysql_query($query); $bbsname=mysql_result($result,0); print("".$bbsname."\n"); } break; case 'lists.php' : $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; $query="SELECT name FROM lists WHERE id=".$which; $result=mysql_query($query); if ($result) { $listname = mysql_result($result, 0); } print("".($listname?$listname:"pouet.net :: your online demoscene resource")."\n"); break; //case 'submitprod_js.php' : // // break; default: $customquery.="level from users where id='"; $settingfields="logos, topbar, bottombar"; print("pouet.net :: your online demoscene resource\n"); } $customid = $_SESSION["SCENEID_ID"]; if (!$customid) $customid = 11057; $customquery.=$customid."'"; $result=mysql_query($customquery); $user=mysql_fetch_assoc($result); if($_SESSION["SESSION"]&&$_SESSION["SCENEID"]&&$_SESSION["SCENEID_ID"]) { $host = gethostbyaddr($_SERVER["REMOTE_ADDR"]); if ($host===".") $_SESSION = null; else mysql_query(sprintf('update users set lastip="%s", lasthost="%s", lastlogin="%s" where id=%d', $_SERVER["REMOTE_ADDR"],$host,date("Y-m-d H:i:s"),$_SESSION["SCENEID_ID"])); } if ($user['level']=='banned') $_SESSION = null; if (isIPBanned()) $_SESSION = null; $result=mysql_query(sprintf('select %s from usersettings where id=%d',$settingfields,$customid)); $usersettings=mysql_fetch_assoc($result); if (!$usersettings) { $result=mysql_query(sprintf('select %s from usersettings where id=11057',$settingfields,$customid)); $usersettings=mysql_fetch_assoc($result); } $user=array_merge($user,$usersettings); //echo "-".$user["searchprods"]; ?> '."\n"; echo ' '."\n"; } if(strstr($_SERVER['HTTP_USER_AGENT'], 'Firefox/3.')) { echo ' '."\n"; echo ' '."\n"; } if(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { echo ' '."\n"; echo ' '."\n"; } if(strstr($_SERVER['HTTP_USER_AGENT'], 'Opera')) { echo ' '."\n"; echo ' '."\n"; } echo $ADDITIONAL_CSS; if (isset($_GET["OSSOM"])) { ?>


Account

Custom

Prods

Random

Groups

Parties

Boards

Users

Search

BBS

Lists

Faq

Submit


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="done by and ">
logo done by "> and "> back to pout index.php "); } ?> :: 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' */ ); ?>