Ik heb onlangs een nieuwe webhost gevonden en als ik me site daar upload komen er allerlei vage fouten bv dit:
PHP
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/Gorgio1/domains/ghettostreetz.nl/public_html/_include-config.php:1) in /home/Gorgio1/domains/ghettostreetz.nl/public_html/_include-config.php on line 44
Warning: include(_cron_beurs.php) [function.include]: failed to open stream: No such file or directory in /home/Gorgio1/domains/ghettostreetz.nl/public_html/_include-configindex.php on line 215
Warning: include(_cron_beurs.php) [function.include]: failed to open stream: No such file or directory in /home/Gorgio1/domains/ghettostreetz.nl/public_html/_include-configindex.php on line 215
Warning: include() [function.include]: Failed opening '_cron_beurs.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/Gorgio1/domains/ghettostreetz.nl/public_html/_include-configindex.php on line 215
Mijn config:
PHP
<head><script type="text/javascript">
function autofitIframe(id){
if (!window.explorer && !document.mimeType && document.all && document.getElementById){
parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
}
else if(document.getElementById) {
parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"
}
}
</script></head>
<body onLoad="autofitIframe('contentframefit')">
<?php /* ------------------------- */
if(!(@mysql_connect("localhost","*","*") && @mysql_select_db("*"))) {
print <<<ENDHTML
<title>Ghettostreetz.nl</title>
<body bgcolor="#464646">
<link rel="stylesheet" href="css-v1.css" type="text/css" media="print, projection, screen" />
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><center><table width=100%><img src='gsnieuws.gif' alt='' border=''>
<br/><br/>Beste spelers,<br/><br/>
We zijn even bezig met een paar updates en verbetering.<br/>
We hopen z.s.m online te komen.<br/><br/>
Het Team.<br></center>
ENDHTML;
exit;
}
$bannedurl = 'banned.php'; // URL waar je naartoe gaat als je gebanned bent
$ipdefault = '84.53.80.195|29.132.0.15|62.194.138.110|67.159.47.171|62.234.177.98|62.163.192.198|67.159.44.134|77.160.187.87|87.211.199.175|81.69.121.136|195.74.65.210|85.147.137.100|24.132.110.246|89.18.180.142|86.89.152.164|74.55.52.194|93.186.178.21|91.179.210.15';
$ipexplode = explode ('|', $ipdefault);
foreach ($ipexplode as $ip)
{
if ($_SERVER['REMOTE_ADDR'] == $ip || $data->level == 1337)
{
header ('location: '.$bannedurl);
}
}
session_start();
$db = 0;
include_once("_include-funcs.php");
if(isset($_SESSION['login'])) {
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup`,UNIX_TIMESTAMP(`online`) AS `online` FROM `[users]` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
}
if(((count($_POST) > 0 && !isset($_POST['omnilog'])) || ($_POST['omnilog'] == 1 && count($_GET) > 1)) && isset($OMNILOG)) {
$titel = "- GhettoStreetz.NL - Become a CRIP BLOOD or LATINO! -";
$forwardedFor = ($_SERVER['HTTP_X_FORWARDED_FOR'] != "") ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['HTTP_CLIENT_IP'];
$forwardedFor = preg_replace('/, .+/','',$forwardedFor);
$postVars = addslashes(var_export($_POST,TRUE));
if($postVars == "array (\n)" || (count($_POST) == 1 && isset($_POST['omnilog'])))
$postVars = "";
$getVars = addslashes(var_export($_GET,TRUE));
if($getVars == "array (\n)")
$getVars = "";
mysql_query("INSERT INTO `[omnilog]` VALUES(NOW(),'{$_COOKIE['login']}','{$_SERVER['REMOTE_ADDR']}','$forwardedFor','{$_SERVER['PHP_SELF']}','$postVars','$getVars')");
}
foreach($_POST as $key => $value) {
if(gettype($_POST[$key]) == "array")
foreach($_POST[$key] as $key2 => $value2)
$_POST[$key][$key2] = addslashes($_POST[$key][$key2]);
else
$_POST[$key] = addslashes($_POST[$key]);
}
foreach($_GET as $key => $value) {
if(gettype($_GET[$key]) == "array")
foreach($_GET[$key] as $key2 => $value2)
$_GET[$key][$key2] = addslashes($_GET[$key][$key2]);
else
$_GET[$key] = addslashes($_GET[$key]);
}
foreach($_COOKIE as $key => $value) {
if(gettype($_COOKIE[$key]) == "array")
foreach($_COOKIE[$key] as $key2 => $value2)
$_COOKIE[$key][$key2] = addslashes($_COOKIE[$key][$key2]);
else
$_COOKIE[$key] = addslashes($_COOKIE[$key]);
}
if($data->level == -1 && $data->leven == 0){
print"<head>
<title>GhettoStreetz.NL Overleden</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"css-v1.css\">
</head>
<body>
<table width=100% height=100%>
<tr><td class=mainTxt><center><br /><img src=\"/images/dood.jpg\"><br /><br />
<h2>Welkom {$data->login}<BR>Je bent vermoord!<BR><a href=\"backagain.php\">KLIK HIER OM BETER TE WORDEN</a></h2><br /><br /></center>
</td></tr>
</table>";
die();
}
if($data->level == 1337){
print"<head>
<title>Ghettostreetz.nl</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"css-v1.css\">
</head>
<body>
<table width=100% height=100%>
<tr><td class=mainTxt><center><br /><img src=\"http://ghettostreetz.nl/images/verbannen2.jpg\" alt=\"Verbannen!\"><br /><br />
<b><center>Je bent verbannen!</center></b><BR>Door een van deze redenen:<BR>Spammen<BR>Groftaalgebruik<BR>Cheaten!<BR>Of Racisme!<br /><br /></center>
</td></tr>
</table>
</body>";
die();
}
$title = Ghettostreetz;
$muziek21 = $data->muziekurl;
$rank1 = array("Pee Wee","Thug","Gangster","Hitman","Assasin","Boss","Godfather","Legendary Godfather","Don","Respectable Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don");
$rank = $rank1[$data->rank];
$rank10 = array("Scum","Pee Wee","Thug","Gangster","Hitman","Assasin","Boss","Godfather","Legendary Godfather","Don","Respectable Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don","Legendary Don");
$rank5 = $rank10[$data->rank];
if ($data->rankvord >= 100.00){
mysql_query("UPDATE `[users]` SET `rank`=`rank`+1,`rankvord`='0.00',`rankvord`='0.00' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
echo '<SCRIPT language="JavaScript">alert("Je bent gestegen van rank! je bent nu een '.$rank.'")</SCRIPT>';
}
$dbres = mysql_query("SELECT id FROM `[messages]` WHERE `read`=0 AND `inbox`=1 AND `to`='{$data->login}'");
$inboxnew = mysql_num_rows($dbres);
if ($inboxneww > 0){
echo '<SCRIPT language="JavaScript">alert("Je hebt '.$inboxnew.' nieuwe berichten !!")</SCRIPT>';
}
$loginvanhem = $data->login;
if ($data->ramen == 100){
$vipofniet = "<font color=#42a5c6> <B>$loginvanhem</B></font>";
}
if ($data->level != 98291280922){
$vipofniet21 = "$loginvanhem";
}
if ($data->ramen == 0){
$vipofniet = "<font color=white> <B>$loginvanhem</B></font>";
}
if ($data->gebeld >= 5){
$vipofniet = "<font color=yellow> <B>$loginvanhem</B></font>";
}
if ($data->level == 1000){
$vipofniet = "<font color=red> <B>$loginvanhem</B></font>";
}
if ($data->forumstatus == gwsp1){
$vipofniet = "<font color=#adadad> <B>$loginvanhem</B></font>";
}
if ($data->level == 500){
$vipofniet = "<font color=#39de00> <B>$loginvanhem</B></font>";
}
if ($data->level == 300){
$vipofniet = "<font color=orange> <B>$loginvanhem</B></font>";
}
if ($data->ramen == 100){
$watjebent = "<font color=#42a5c6> <B>Donateur</B></font>";
}
if ($data->ramen == 0){
$watjebent = "<font color=white> <B>Lid</B></font>";
}
if ($data->gebeld >= 5){
$watjebent = "<font color=yellow> <B>5 + beller</B></font>";
}
if ($data->level == 1000){
$watjebent = "<font color=red> <B>Administrator</B></font>";
}
if ($data->level == 500){
$watjebent = "<font color=#39de00> <B>Helpdesk</B></font>";
}
if ($data->level == 300){
$watjebent = "<font color=orange> <B>Gamemoderator</B></font>";
}
$clientIP = $_SERVER['REMOTE_ADDR'];
$forwardedFor = ($_SERVER['HTTP_X_FORWARDED_FOR'] != "") ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['HTTP_CLIENT_IP'];
$forwardedFor = preg_replace('/, .+/','',$forwardedFor);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `level`='0' AND (`IP`='$clientIP' OR `IP`='$forwardedFor')");
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
if(mysql_num_rows($dbres) != 0) {
print <<<ENDHTML
<html>
<head>
<title>[( - Je bent Verbannen Van GhettoStreetz./NL/EU & Ghettos.NL )]</title>
</head>
if($data->level = 0) {
print '<tr><td class=\'mainTxt\' align=\'center\'><br><br><br><br><img src="http://www.ghettostreetz.nl/ban.gif" alt=""></td></tr>';
}
</body>
</html>
ENDHTML;
exit;
}
if(isset($UPDATE_DB)) {
$dbres = mysql_query("SELECT UNIX_TIMESTAMP(`time`) AS `time`,`name` FROM `[cron]`");
while($x = mysql_fetch_object($dbres))
$update[$x->name] = $x->time;
if(floor($update['beurs']/600) != floor(time()/600)) {
$dbres = mysql_query("SELECT GET_LOCK('beurs_update',0)");
if(mysql_result($dbres,0) == 1) {
$cron_pass = "secretcronpassword";
mysql_query("UPDATE `[cron]` SET `time`=NOW() WHERE `name`='beurs'");
include("_cron_beurs.php");
mysql_query("SELECT RELEASE_LOCK('beurs_update')");
}
}
if(floor($update['second']/2) != floor(time()/2)) {
$dbres = mysql_query("SELECT GET_LOCK('second_update',0)");
if(mysql_result($dbres,0) == 1) {
$cron_pass = "secretcronpassword";
mysql_query("UPDATE `[cron]` SET `time`=NOW() WHERE `name`='second'");
include("_cron_second.php");
mysql_query("SELECT RELEASE_LOCK('second_update')");
}
}
if(floor($update['hour']/3600) != floor(time()/3600)) {
$dbres = mysql_query("SELECT GET_LOCK('hour_update',0)");
if(mysql_result($dbres,0) == 1) {
$cron_pass = "secretcronpassword";
mysql_query("UPDATE `[cron]` SET `time`=NOW() WHERE `name`='hour'");
include("_cron_hour.php");
mysql_query("SELECT RELEASE_LOCK('hour_update')");
}
}
if(floor($update['day']/86400) != floor(time()/86400)) {
$dbres = mysql_query("SELECT GET_LOCK('day_update',0)");
if(mysql_result($dbres,0) == 1) {
$cron_pass = "secretcronpassword";
mysql_query("UPDATE `[cron]` SET `time`=NOW() WHERE `name`='day'");
include("_cron_day.php");
mysql_query("SELECT RELEASE_LOCK('day_update')");
}
}
if(floor($update['week']/604800) != floor(time()/604800)) {
$dbres = mysql_query("SELECT GET_LOCK('week_update',0)");
if(mysql_result($dbres,0) == 1) {
$cron_pass = "secretcronpassword";
mysql_query("UPDATE `[cron]` SET `time`=NOW() WHERE `name`='week'");
include("_cron_week.php");
mysql_query("SELECT RELEASE_LOCK('week_update')");
}
}
if(date('n',$update['month']) != date('n',time())) {
$dbres = mysql_query("SELECT GET_LOCK('month_update',0)");
if(mysql_result($dbres,0) == 1) {
$cron_pass = "secretcronpassword";
mysql_query("UPDATE `[cron]` SET `time`=NOW() WHERE `name`='month'");
include("_cron_month.php");
mysql_query("SELECT RELEASE_LOCK('month_update')");
}
}
if((date('G',time()) >= 16 && date('z',time()) != date('z',$update['horserace'])) || (date('G',time()) >= 21 && date('G',$update['horserace']) < 21)) {
$dbres = mysql_query("SELECT GET_LOCK('horserace_update',0)");
if(mysql_result($dbres,0) == 1) {
$cron_pass = "secretcronpassword";
mysql_query("UPDATE `[cron]` SET `time`=NOW() WHERE `name`='horserace'");
include("_cron_horserace.php");
mysql_query("SELECT RELEASE_LOCK('horserace_update')");
}
}
}
?>
<?
if($_GET['GOMASTER'] == "JA")
{
echo '<BR><BR><title>Ghettostreetz.nl - Account activeren?!</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
<body bgcolor=\"#464646\">
<table border="0" cellspacing="1" width="96%" bgcolor="#000" align="center">
<tr>
<td class="top" colspan="2">
Account activeren?!
</td>
</tr> <tr>
<td class="inhoud">
Uw account is <a href="index.php"><b>Geactiveerd!</b><BR>Druk hier om verder te gaan!</a></td></tr></table>';
mysql_query("INSERT INTO `[userinfo]` (`login`) VALUES ('$data->login')");
mysql_query("INSERT INTO `[messages]`(`time`,`IP`,`from`,`to`,`subject`,`message`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','Welkomsbericht!','{$data->login}','','<font color=white>Bedankt!<BR>Welkom op Ghettostreetz!<BR>De plek waar een prijs winnen zo makkelijk gaat!<BR>Geld verdienen? dat gaat gemakkelijk! Meld je aan bij de rijkste of beste familie en hun regelen het voor je!<BR>Neem een <b>kogelfabriek, eerpuntenmachine</b> of een ander bezit in je macht en je maakt veel winst!<BR><BR>Snap je iets niet? Stuur dan een berichtje naar een <b>teamlid</b> en die helpen je wel verder!</font>.')");
exit;
}
$dbres2 = mysql_query("SELECT * FROM `[userinfo]` WHERE `login`='$data->login'");
if(mysql_num_rows($dbres2) == 0)
{
print "
<BR><BR><title>Ghettostreetz.nl - Account activeren?!</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"css-v1.css\">
<table border='0' cellspacing='1' width='96%' bgcolor='#000' align='center'>
<tr>
<td class='top' colspan='2'>
Account activeren?!
</td>
</tr> <tr>
<td class='inhoud'>
Wegens veiligheids redenen moet u uw account activeren.<BR>Moet dat via de e-mail? Nee dat hoeft niet, u moet simpel weg op de onderstaande link klikken.<br><br><a href='shop.php?GOMASTER=JA'><b>Activeer mijn account.</b></a></td></tr></table>\n";
exit;
}
?>
Toon Meer