config
stijnhau - 08/05/2005 14:59 (laatste wijziging 08/05/2005 15:08)
Onbekend
er zit een fout in lijn 92
<?php /* ------------------------- */
if(!(@mysql_pconnect("localhost","webscripters","01az23er") && @mysql_select_db("webscripters_nl_db"))) {
print <<<ENDHTML
<html>
<head>
<title>DarkCriminal</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="background: #000000; margin: 0px;">
<table width=100%>
<tr><td class="subTitle"><b>Database Error</b></td></tr>
<tr><td class="mainTxt">
Er is een fout opgetreden in de database.waarshijnlijk omdat ik er mee bezig ben.<br>
blijft het zich voort doen stuur me dan een mail stijn.haulotte@skynet.be<br>
</td></tr>
</table>
</body>
</html>
ENDHTML;
exit;
}
session_start();
include("_include-funcs.php");
if(isset($_SESSION['naam'])) {
$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)) {
$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]);
}
$clientIP = $_SERVER['REMOTE_ADDR'];
$forwardedFor = ($_SERVER['HTTP_X_FORWARDED_FOR'] != "") ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
$forwardedFor = preg_replace('/, .+/','',$forwardedFor);
$dbres = mysql_query("SELECT `ip` FROM `[bans]` WHERE (`ip`='$clientIP' OR `ip`='$forwardedFor')");
if(mysql_num_rows($dbres) != 0) {
print <<<ENDHTML
<html>
<head>
<title>[GEO-D]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="background-image:url(mid.gif); background-attachment:fixed; background-repeat:no-repeat" style="margin: 0px;">
<table width=100% height=100%>
<tr><td class="subTitle"><b>Ban</b></td></tr>
<tr><td class="mainTxt">
Het IP waarmee je speelt is geband
</td></tr>
</table>
</body>
</html>
<?php /* ------------------------- */
<html>
<head>
<title>DarkCriminal</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="background: #000000; margin: 0px;">
<table width=100%>
<tr><td class="subTitle"><b>Database Error</b></td></tr>
<tr><td class="mainTxt">
Er is een fout opgetreden in de database.waarshijnlijk omdat ik er mee bezig ben.<br>
blijft het zich voort doen stuur me dan een mail stijn.haulotte@skynet.be<br>
</td></tr>
</table>
</body>
</html>
ENDHTML ;
}
include ( "_include-funcs.php" ) ;
if ( isset ( $_SESSION [ 'naam' ] ) ) { $dbres = mysql_query ( "SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup`,UNIX_TIMESTAMP(`online`) AS `online` FROM `[users]` WHERE `login`='{$_SESSION['login']} '" ) ; }
if ( ( ( count ( $_POST ) > 0 && ! isset ( $_POST [ 'omnilog' ] ) ) || ( $_POST [ 'omnilog' ] == 1 && count ( $_GET ) > 1 ) ) && isset ( $OMNILOG ) ) { $forwardedFor = ( $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] != "" ) ? $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] : $_SERVER [ 'HTTP_CLIENT_IP' ] ;
if ( $postVars == "array (\n )" || ( count ( $_POST ) == 1 && isset ( $_POST [ 'omnilog' ] ) ) ) $postVars = "" ;
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
}
foreach ( $_GET as $key => $value ) {
if ( gettype ( $_GET [ $key ] ) == "array" ) foreach ( $_GET [ $key ] as $key2 => $value2 )
$_GET [ $key ] [ $key2 ] = addslashes ( $_GET [ $key ] [ $key2 ] ) ; else
}
foreach ( $_COOKIE as $key => $value ) {
if ( gettype ( $_COOKIE [ $key ] ) == "array" ) foreach ( $_COOKIE [ $key ] as $key2 => $value2 )
$_COOKIE [ $key ] [ $key2 ] = addslashes ( $_COOKIE [ $key ] [ $key2 ] ) ; else
}
$clientIP = $_SERVER [ 'REMOTE_ADDR' ] ;
$forwardedFor = ( $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] != "" ) ? $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] : $_SERVER [ 'REMOTE_ADDR' ] ;
$dbres = mysql_query ( "SELECT `ip` FROM `[bans]` WHERE (`ip`='$clientIP ' OR `ip`='$forwardedFor ')" ) ; < html>
< head>
< title> [ GEO- D] </ title>
< link rel= "stylesheet" type= "text/css" href= "css-v1.css" >
</ head>
< body style= "background-image:url(mid.gif); background-attachment:fixed; background-repeat:no-repeat" style= "margin: 0px;" >
< table width= 100 % height= 100 %>
< tr>< td class = "subTitle" >< b> Ban</ b></ td></ tr>
< tr>< td class = "mainTxt" >
Het IP waarmee je speelt is geband
</ td></ tr>
</ table>
</ body>
</ html>
8 antwoorden
Gesponsorde links
Legolas - 08/05/2005 15:02
Onbekend
Kun je nou eens zeggen WAT de fout is?
en lijn 92, dat </html>, is volgens mij niet veel mis mee
stijnhau - 08/05/2005 15:03 (laatste wijziging 08/05/2005 15:08)
Onbekend
deze fout geeft hij.
Parse error: parse error in /data/members/free/tripod/nl/w/e/b/webscripters/htdocs/config.php on line 92
stijnhau - 08/05/2005 15:13
Onbekend
is opgelost heb een anderegenomen wand snap e fout ni is tovh i fout die lijn.
Legolas - 08/05/2005 15:15 (laatste wijziging 08/05/2005 15:16)
Onbekend
jij doet beetje vreemd, beter is:
<?php
if(!(@mysql_pconnect("localhost","webscripters","01az23er") && @mysql_select_db("webscripters_nl_db"))) {
?>
<html>
<head>
<title>DarkCriminal</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="background: #000000; margin: 0px;">
<table width=100%>
<tr><td class="subTitle"><b>Database Error</b></td></tr>
<tr><td class="mainTxt">
Er is een fout opgetreden in de database.waarshijnlijk omdat ik er mee bezig ben.<br>
blijft het zich voort doen stuur me dan een mail stijn.haulotte@skynet.be<br>
</td></tr>
</table>
</body>
</html>
<?
exit;
}
session_start();
include("_include-funcs.php");
if(isset($_SESSION['naam'])) {
$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)) {
$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]);
}
$clientIP = $_SERVER['REMOTE_ADDR'];
$forwardedFor = ($_SERVER['HTTP_X_FORWARDED_FOR'] != "") ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
$forwardedFor = preg_replace('/, .+/','',$forwardedFor);
$dbres = mysql_query("SELECT `ip` FROM `[bans]` WHERE (`ip`='$clientIP' OR `ip`='$forwardedFor')");
if(mysql_num_rows($dbres) != 0) {
?>
<html>
<head>
<title>[GEO-D]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="background-image:url(mid.gif); background-attachment:fixed; background-repeat:no-repeat" style="margin: 0px;">
<table width=100% height=100%>
<tr><td class="subTitle"><b>Ban</b></td></tr>
<tr><td class="mainTxt">
Het IP waarmee je speelt is geband
</td></tr>
</table>
</body>
</html>
<?php
?>
<html>
<head>
<title>DarkCriminal</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="background: #000000; margin: 0px;">
<table width=100%>
<tr><td class="subTitle"><b>Database Error</b></td></tr>
<tr><td class="mainTxt">
Er is een fout opgetreden in de database.waarshijnlijk omdat ik er mee bezig ben.<br>
blijft het zich voort doen stuur me dan een mail stijn.haulotte@skynet.be<br>
</td></tr>
</table>
</body>
</html>
<?
}
include ( "_include-funcs.php" ) ;
if ( isset ( $_SESSION [ 'naam' ] ) ) { $dbres = mysql_query ( "SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup`,UNIX_TIMESTAMP(`online`) AS `online` FROM `[users]` WHERE `login`='{$_SESSION['login']} '" ) ; }
if ( ( ( count ( $_POST ) > 0 && ! isset ( $_POST [ 'omnilog' ] ) ) || ( $_POST [ 'omnilog' ] == 1 && count ( $_GET ) > 1 ) ) && isset ( $OMNILOG ) ) { $forwardedFor = ( $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] != "" ) ? $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] : $_SERVER [ 'HTTP_CLIENT_IP' ] ;
if ( $postVars == "array (\n )" || ( count ( $_POST ) == 1 && isset ( $_POST [ 'omnilog' ] ) ) ) $postVars = "" ;
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
}
foreach ( $_GET as $key => $value ) {
if ( gettype ( $_GET [ $key ] ) == "array" ) foreach ( $_GET [ $key ] as $key2 => $value2 )
$_GET [ $key ] [ $key2 ] = addslashes ( $_GET [ $key ] [ $key2 ] ) ; else
}
foreach ( $_COOKIE as $key => $value ) {
if ( gettype ( $_COOKIE [ $key ] ) == "array" ) foreach ( $_COOKIE [ $key ] as $key2 => $value2 )
$_COOKIE [ $key ] [ $key2 ] = addslashes ( $_COOKIE [ $key ] [ $key2 ] ) ; else
}
$clientIP = $_SERVER [ 'REMOTE_ADDR' ] ;
$forwardedFor = ( $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] != "" ) ? $_SERVER [ 'HTTP_X_FORWARDED_FOR' ] : $_SERVER [ 'REMOTE_ADDR' ] ;
$dbres = mysql_query ( "SELECT `ip` FROM `[bans]` WHERE (`ip`='$clientIP ' OR `ip`='$forwardedFor ')" ) ; ?>
<html>
<head>
<title>[GEO-D]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="background-image:url(mid.gif); background-attachment:fixed; background-repeat:no-repeat" style="margin: 0px;">
<table width=100% height=100%>
<tr><td class="subTitle"><b>Ban</b></td></tr>
<tr><td class="mainTxt">
Het IP waarmee je speelt is geband
</td></tr>
</table>
</body>
</html>
Is volgens mij beter:cool:
edit: jammer dat je een ander neemt al snap je de fout even niet, want dit moet het doen:(
Martijn1989 - 08/05/2005 16:14
PHP ver gevorderde
if(mysql_num_rows($dbres) != 0) {
Lijn 64 word tog niet afgesloten :S?
Steven - 08/05/2005 17:18 (laatste wijziging 08/05/2005 17:21)
HTML interesse
volgens mij moet je zoiezo dit helemaal bovenaan je pagina zetten:
<?php
session_start();
include("_include-funcs.php");
?>
<?php
include ( "_include-funcs.php" ) ;
?>
en dat van line 31/32 weghalen
Duikboot - 08/05/2005 17:35
Grafische gevorderde
De fout was denk ik dat je bij html php niet afgesloten hebt.
delta_004 - 09/05/2005 08:01
Onbekend
nu bent ge deze } vergeten
Je hebt 1 geopend maar niet gesloten
Gesponsorde links
Dit onderwerp is gesloten .