The69Pimp
10-05-2002, 09:20 AM
ok i am making this game and i have this file inc.header.php and there is a error at the very last line nomatter what the line it even if it is blank here is the script it is long so.....
<?
$ip = getenv(/Joes/');
$newfilename = $uid . "." . $secid . "." . $ip;
require('inc.settings.php');
if ((file_exists("$homedir/$newfilename")) && ($uid != "")) {
$sql = "SELECT * from og_userinfo where uid='$uid'";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$result = @mysql_query($sql);
$myrow = @mysql_fetch_array($result);
$networthdisplay = $myrow[networth];
$sqlcbmm = "SELECT uid from og_marketmods";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmm = @mysql_query($sqlcbmm);
$myrowcbmm = @mysql_fetch_array($resultcbmm);
if ($myrowcbmm[uid] == "") {
$sqlcbmm2 = "update og_marketmods set uid='$uid' where id=1";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmm2 = @mysql_query($sqlcbmm2);
//market check
$timemod = time();
$sqlcb = "SELECT * from og_marketinfo where endtime <= $timemod";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb = @mysql_query($sqlcb);
$myrowcb = @mysql_fetch_array($resultcb);
$i2 = 0;
do {
if (($myrowcb[type]) && ($myrowcb[id] != $lastid)) {
$lastid = $myrowcb[id];
if ($myrowcb[type] == 1) {
$product = "prostitutes";
$product2 = "prostitutes";
}
if ($myrowcb[type] == 11) {
$product = "thugs";
$product2 = "thugs";
}
if ($myrowcb[type] == 12) {
$product = "dealers";
$product2 = "dealers";
}
if ($myrowcb[type] == 13) {
$product = "informants";
$product2 = "informants";
}
if ($myrowcb[type] == 2) {
$product = "crackrocks";
$product2 = "crackrocks";
}
if ($myrowcb[type] == 21) {
$product = "smack";
$product2 = "smack";
}
if ($myrowcb[type] == 3) {
$product = "glocks";
$product2 = "glocks";
}
if ($myrowcb[type] == 31) {
$product = "tek9s";
$product2 = "tek9s";
}
if ($myrowcb[type] == 32) {
$product = "uzis";
$product2 = "uzis";
}
if ($myrowcb[type] == 33) {
$product = "aks";
$product2 = "aks";
}
if ($myrowcb[type] == 4) {
$product2 = "civics";
$product = "hondas";
}
if ($myrowcb[type] == 41) {
$product2 = "cadillacs";
$product = "cadillacs";
}
if ($myrowcb[type] == 42) {
$product2 = "s-classes";
$product = "mercedes";
}
if ($myrowcb[type] == 43) {
$product2 = "5-series";
$product = "bmws";
}
if (($myrowcb[bidder] == "") || ($myrowcb[bidder] == 0)) {
$marketitem = $myrowcb[id];
$sqlcb2b = "delete from og_marketinfo where id=$marketitem";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2b = @mysql_query($sqlcb2b);
$amountwin = $myrowcb[number];
$bidderwin = $myrowcb[seller];
$toid = $bidderwin;
$fromid = 0;
$type = 3;
$cartelid = 0;
$msg = "Nobody bided on your " . $myrowcb[number] . " " . $product2 . ". So, your items have been returned to you.";
$msg = addslashes($msg);
$sqlcbmz = "SELECT count(*) from og_messages where message like '%$msg%' AND time=$timemod";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmz = @mysql_query($sqlcbmz);
$myrowcbmz = @mysql_fetch_array($resultcbmz);
if ($myrowcbmz[0] == 0) {
$sqlzb = "INSERT into og_messages (sent, message, cartel, type, fromid, toid, time, id) values (null, '$msg', $cartelid, $type, $fromid, $toid, $timemod, null)";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultzb = @mysql_query($sqlzb);
$sqlcb2 = "UPDATE og_userinfo set $product=$product+$amountwin where id=$bidderwin";
//logging start
$stringlogging = $sqlcb2;
require( 'inc.log.php' );
//logging finish
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2 = @mysql_query($sqlcb2);
}
} else {
$marketitem = $myrowcb[id];
$sqlcb2b = "delete from og_marketinfo where id=$marketitem";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2b = @mysql_query($sqlcb2b);
$amountwin = $myrowcb[number];
$bidderwin = $myrowcb[bidder];
$toid = $bidderwin;
$fromid = 0;
$type = 3;
$cartelid = 0;
$msg = "You have won the market items you were bidding on. " . $amountwin . " " . $product2 . " have been delivered to you!";
$msg = addslashes($msg);
$sqlcbmz2 = "SELECT count(*) from og_messages where message like '%$msg%' AND time=$timemod";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmz2 = @mysql_query($sqlcbmz2);
$myrowcbmz2 = @mysql_fetch_array($resultcbmz2);
if ($myrowcbmz2[0] == 0) {
$sqlzb = "INSERT into og_messages (sent, message, cartel, type, fromid, toid, time, id) values (null, '$msg', $cartelid, $type, $fromid, $toid, $timemod, null)";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultzb = @mysql_query($sqlzb);
//give items
$sqlcb2aa = "UPDATE og_userinfo set $product=$product+$amountwin where id=$bidderwin";
//logging start
$stringlogging = $sqlcb2aa;
require( 'inc.log.php' );
//logging finish
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2aa = @mysql_query($sqlcb2aa);
//give money to winner
$seller = $myrowcb[seller];
$winningamt = $myrowcb[price];
$sqlcb2 = "UPDATE og_userinfo set money=money+$winningamt where id=$seller";
//logging start
$stringlogging = $sqlcb2;
require( 'inc.log.php' );
//logging finish
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2 = @mysql_query($sqlcb2);
//msg to winner
$toid3 = $seller;
$fromid3 = 0;
$type3 = 3;
$cartelid3 = 0;
$msg3 = "We were able to sell your " . $amountwin . " " . $product2 . " on the market for $" . number_format($winningamt) . "!";
$msg3 = addslashes($msg3);
$sqlzb3 = "INSERT into og_messages (sent, message, cartel, type, fromid, toid, time, id) values (null, '$msg3', $cartelid3, $type3, $fromid3, $toid3, $timemod, null)";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultzb3 = @mysql_query($sqlzb3);
}
}
}
$i2 = $i2 + 1;
} while($myrowcb = @mysql_fetch_array($resultcb));
}
// clear key
$sqlcbmm2b = "update og_marketmods set uid='' where id=1";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmm2b = @mysql_query($sqlcbmm2b);
$sql3bc = "SELECT count(*) from og_userinfo where networth > $networthdisplay";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$result3bc = @mysql_query($sql3bc);
$myrow3bc = @mysql_fetch_array($result3bc);
$rank = $myrow3bc[0] + 1;
?>
<!doctype html public "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1">
<title></title>
<STYLE type=text/css>
A:HOVER {
background : #000000;
color : black;
}
.text {
font-family: Verdana, Arial, sans-serif;
FONT-SIZE: 11px;
line-height : 12px;
color : FFC000;
}
-->
</style>
</head>
<body text="FFFFFF" bgcolor="#000000" link="#FFC000" alink="#FFC000" vlink="#FFC000" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<p><br>
</body>
</html>
ALL help would be greatly appricated
<?
$ip = getenv(/Joes/');
$newfilename = $uid . "." . $secid . "." . $ip;
require('inc.settings.php');
if ((file_exists("$homedir/$newfilename")) && ($uid != "")) {
$sql = "SELECT * from og_userinfo where uid='$uid'";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$result = @mysql_query($sql);
$myrow = @mysql_fetch_array($result);
$networthdisplay = $myrow[networth];
$sqlcbmm = "SELECT uid from og_marketmods";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmm = @mysql_query($sqlcbmm);
$myrowcbmm = @mysql_fetch_array($resultcbmm);
if ($myrowcbmm[uid] == "") {
$sqlcbmm2 = "update og_marketmods set uid='$uid' where id=1";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmm2 = @mysql_query($sqlcbmm2);
//market check
$timemod = time();
$sqlcb = "SELECT * from og_marketinfo where endtime <= $timemod";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb = @mysql_query($sqlcb);
$myrowcb = @mysql_fetch_array($resultcb);
$i2 = 0;
do {
if (($myrowcb[type]) && ($myrowcb[id] != $lastid)) {
$lastid = $myrowcb[id];
if ($myrowcb[type] == 1) {
$product = "prostitutes";
$product2 = "prostitutes";
}
if ($myrowcb[type] == 11) {
$product = "thugs";
$product2 = "thugs";
}
if ($myrowcb[type] == 12) {
$product = "dealers";
$product2 = "dealers";
}
if ($myrowcb[type] == 13) {
$product = "informants";
$product2 = "informants";
}
if ($myrowcb[type] == 2) {
$product = "crackrocks";
$product2 = "crackrocks";
}
if ($myrowcb[type] == 21) {
$product = "smack";
$product2 = "smack";
}
if ($myrowcb[type] == 3) {
$product = "glocks";
$product2 = "glocks";
}
if ($myrowcb[type] == 31) {
$product = "tek9s";
$product2 = "tek9s";
}
if ($myrowcb[type] == 32) {
$product = "uzis";
$product2 = "uzis";
}
if ($myrowcb[type] == 33) {
$product = "aks";
$product2 = "aks";
}
if ($myrowcb[type] == 4) {
$product2 = "civics";
$product = "hondas";
}
if ($myrowcb[type] == 41) {
$product2 = "cadillacs";
$product = "cadillacs";
}
if ($myrowcb[type] == 42) {
$product2 = "s-classes";
$product = "mercedes";
}
if ($myrowcb[type] == 43) {
$product2 = "5-series";
$product = "bmws";
}
if (($myrowcb[bidder] == "") || ($myrowcb[bidder] == 0)) {
$marketitem = $myrowcb[id];
$sqlcb2b = "delete from og_marketinfo where id=$marketitem";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2b = @mysql_query($sqlcb2b);
$amountwin = $myrowcb[number];
$bidderwin = $myrowcb[seller];
$toid = $bidderwin;
$fromid = 0;
$type = 3;
$cartelid = 0;
$msg = "Nobody bided on your " . $myrowcb[number] . " " . $product2 . ". So, your items have been returned to you.";
$msg = addslashes($msg);
$sqlcbmz = "SELECT count(*) from og_messages where message like '%$msg%' AND time=$timemod";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmz = @mysql_query($sqlcbmz);
$myrowcbmz = @mysql_fetch_array($resultcbmz);
if ($myrowcbmz[0] == 0) {
$sqlzb = "INSERT into og_messages (sent, message, cartel, type, fromid, toid, time, id) values (null, '$msg', $cartelid, $type, $fromid, $toid, $timemod, null)";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultzb = @mysql_query($sqlzb);
$sqlcb2 = "UPDATE og_userinfo set $product=$product+$amountwin where id=$bidderwin";
//logging start
$stringlogging = $sqlcb2;
require( 'inc.log.php' );
//logging finish
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2 = @mysql_query($sqlcb2);
}
} else {
$marketitem = $myrowcb[id];
$sqlcb2b = "delete from og_marketinfo where id=$marketitem";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2b = @mysql_query($sqlcb2b);
$amountwin = $myrowcb[number];
$bidderwin = $myrowcb[bidder];
$toid = $bidderwin;
$fromid = 0;
$type = 3;
$cartelid = 0;
$msg = "You have won the market items you were bidding on. " . $amountwin . " " . $product2 . " have been delivered to you!";
$msg = addslashes($msg);
$sqlcbmz2 = "SELECT count(*) from og_messages where message like '%$msg%' AND time=$timemod";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmz2 = @mysql_query($sqlcbmz2);
$myrowcbmz2 = @mysql_fetch_array($resultcbmz2);
if ($myrowcbmz2[0] == 0) {
$sqlzb = "INSERT into og_messages (sent, message, cartel, type, fromid, toid, time, id) values (null, '$msg', $cartelid, $type, $fromid, $toid, $timemod, null)";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultzb = @mysql_query($sqlzb);
//give items
$sqlcb2aa = "UPDATE og_userinfo set $product=$product+$amountwin where id=$bidderwin";
//logging start
$stringlogging = $sqlcb2aa;
require( 'inc.log.php' );
//logging finish
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2aa = @mysql_query($sqlcb2aa);
//give money to winner
$seller = $myrowcb[seller];
$winningamt = $myrowcb[price];
$sqlcb2 = "UPDATE og_userinfo set money=money+$winningamt where id=$seller";
//logging start
$stringlogging = $sqlcb2;
require( 'inc.log.php' );
//logging finish
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcb2 = @mysql_query($sqlcb2);
//msg to winner
$toid3 = $seller;
$fromid3 = 0;
$type3 = 3;
$cartelid3 = 0;
$msg3 = "We were able to sell your " . $amountwin . " " . $product2 . " on the market for $" . number_format($winningamt) . "!";
$msg3 = addslashes($msg3);
$sqlzb3 = "INSERT into og_messages (sent, message, cartel, type, fromid, toid, time, id) values (null, '$msg3', $cartelid3, $type3, $fromid3, $toid3, $timemod, null)";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultzb3 = @mysql_query($sqlzb3);
}
}
}
$i2 = $i2 + 1;
} while($myrowcb = @mysql_fetch_array($resultcb));
}
// clear key
$sqlcbmm2b = "update og_marketmods set uid='' where id=1";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$resultcbmm2b = @mysql_query($sqlcbmm2b);
$sql3bc = "SELECT count(*) from og_userinfo where networth > $networthdisplay";
@mysql_connect($dbhost, $dbuser, $dbpass);
@mysql_select_db($dbname) or die("Error opening database");
$result3bc = @mysql_query($sql3bc);
$myrow3bc = @mysql_fetch_array($result3bc);
$rank = $myrow3bc[0] + 1;
?>
<!doctype html public "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1">
<title></title>
<STYLE type=text/css>
A:HOVER {
background : #000000;
color : black;
}
.text {
font-family: Verdana, Arial, sans-serif;
FONT-SIZE: 11px;
line-height : 12px;
color : FFC000;
}
-->
</style>
</head>
<body text="FFFFFF" bgcolor="#000000" link="#FFC000" alink="#FFC000" vlink="#FFC000" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<p><br>
</body>
</html>
ALL help would be greatly appricated