even offline

Status
Not open for further replies.

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
il upload every file of my website but,
when il go to the page he shows

even offline
There has been a temporary disturbance. This will be corrected as soon as possible. Thank you for your understanding and patience!
but il can't find the problem
ther is a index.php so that can't be the problem

whit frendly greet stefan van veldhoven

(i'm sorry for my bad english thats because i'm from dutch;))​
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
what is in index.php

index.php could be producing the text. is it a script that you upload, or did you write it yourself?
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
even offline
There has been a temporary disturbance. This will be corrected as soon as possible. Thank you for your understanding and patience![/LEFT]

index.php is the script producing the output; if there's a problem, index.php is involved. Look closely at the source and you'll find a couple of <?php echo ; ?> statements in the document head. Please post the contents of index.php, making sure you enclose it in
PHP:
 tags.
 

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
i didn't make the script self but, does it make any diverent if il tel you there are 2 times a index.php file:dunno:
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
post the source of index.php so we can solve why it is producing such an error.

also, since it seems to be a script that you have downloaded, see if it has an online community where you can get support.
and what is the name of the script you are using?
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
there are 2 times a index.php file:dunno:
How, exactly, are there two? You can't have two files with the same name in a directory, so either 1) their names are different (case counts; "Index.php" is not the same as "index.php") 2) they are in different directories, or 3) one is on your development computer, the other is on the public server (x10). In every case, there's still only one index.php in your document root, which is the only one that matters.
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
How, exactly, are there two? You can't have two files with the same name in a directory, so either 1) their names are different (case counts; "Index.php" is not the same as "index.php") 2) they are in different directories, or 3) one is on your development computer, the other is on the public server (x10). In every case, there's still only one index.php in your document root, which is the only one that matters.

lol. totally true I forgot about that when making my post. I'll edit mine for less confusion
 

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
its a index.php and a index2.php

this is wat in index.php stands
PHP:
<?
include("_include-config2.php");
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1");
$leden = mysql_num_rows($dbres);
$dbres2 = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
$online = mysql_num_rows($dbres2);
$laatstelid = mysql_query("select `login` from `[users]` order by id desc limit 0,3");
$laatste = @mysql_result($laatstelid,0,0);
$hoogsterank = mysql_query("SELECT * FROM `[users]` WHERE `activated`>=0 ORDER BY rank DESC LIMIT 0,1");
$meestepower = mysql_query("SELECT * FROM `[users]` WHERE `activated`>=0 ORDER BY attack DESC LIMIT 0,1");
$meesterespect = mysql_query("SELECT * FROM `[users]` WHERE `activated`>=0 ORDER BY respect DESC LIMIT 0,1");
 
 
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='1'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='2'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='3'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='4'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='5'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE`ctype`='6'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='7'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='8'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='9'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE`ctype`='10'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='11'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='12'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='13'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='14'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='15'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='16'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='17'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='18'");
mysql_query("UPDATE `[users]` SET `camera`=`camera`+'2' WHERE `ctype`='19'");
mysql_query("UPDATE `[users]` SET `shotgun`=`shotgun`+'2' WHERE `ctype`='20'");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
if(isset($_POST['login'],$_POST['pass'])) {
$dbres = mysql_query("SELECT `login`,`activated` FROM `[users]` WHERE `login`='{$_POST['login']}' AND `pass`=MD5('{$_POST['pass']}')");
if(($data = mysql_fetch_object($dbres)) && $data->activated == 1) {
$validate = md5(rand(0,1000));
setcookie("login",$data->login,time()+60*60*24,"/","");
setcookie("validate",$validate,time()+60*60*24,"/","");
mysql_query("REPLACE INTO `[online]`(`time`,`login`,`IP`,`validate`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$data->login}','$validate')");
$_SESSION['login'] = $data->login;
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup` FROM `[users]` WHERE `login`='{$_SESSION['login']}'");
$_SESSION['data'] = mysql_fetch_object($dbres);
}
}
?>
<html>
<head>
<title><?php echo $page->sitetitle; ?> - A Browser Based Gangster Script</title>



thats 1 part of index.php

thank you al for the support;)
 

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
thit is part 2 of index.php

PHP:
<META NAME="KEYWORDS" CONTENT="free web based rpg,gangs rpg,street rpg,online fun rpg game,online rpg world,free internet rpg,new online rpg game,massive online rpg game ,role playing website,gangsta rpg,rpg gaming  online,new mmorpg games ,play free online mmorpg ,play free mmorpg game,free web based mmorpg,web mmorpg,free browser based mmorpg,free multiplayer web game,online multiplayer rpg game,adventure and role playing game,free gangster game,online gangsta game ,free online gangsta game,free online gangster game, gangster game, gangster rpg script, mafia rpg script, rpg script, mmorpg script, criminals rpg script, crime rpg script, pimp rpg script, thug rpg script, pimp rpg, online pimp game, web pimp,gangster game, rpg, online, criminals, crime, spel, free, gratis, winnen, 123 spel, gratis spel, spel nl, free online gangster game, freecrime, gamoking.com, pemp, pemp.nl, gangster, mobster, mobstar, mafia, maffia, game, games, drugs, dealer, kill, fight, money, game,rgp,no,name,crime,life,lycos,criminals,barafranca,mobstar,kings,of,chaos,online,php,super,goed,spel,spelletje,spellen,leuk,mooi,Wetenschaper,politie,drugsdealer,junkie,paul,erlings,dealer,drugs,freek,massive,multiplayer,online,role,playing,world, mobstar, gangsta, gangster, gang, crew, kill, free, pimp, pimpwar, pimps, rpg, role play, played, based, script, download, mobile, money, gold, digger, world, GRATIS criminals scripts sources bulletstar criminalsloco crime hacking time4crime worldcrime shop route66 misdaden werken mafia maffia american thugwars scripter scriptz thugie mobstar barafranca cola automaat hacken criminalsfanaat xtreme-war spele.nl webfanaat-sg source wmcity source basicwar maralana cheats ciawars source ,bulletstar source, criminal, fanaat, dutchleaders, dutchcrime2005, hosting, bellen, crimetop, funky, crimestar, crime-age, crime-streets, streetgang, gangstercrime, hard trueo, power, geld, php, mysql, html, asp, hulp, win, prijzen, leden ,members, world ,command ,coding, realcrime, crime, streetz ,thug,thugs ,thugz, gun, ak47 ,thugwarz, bulletgame, criminalz, kriminals, kriminalz, krime, crimeclub, Website, statistieken, xylohosting, crimeplanet ,criminalspoint, criminalspoint.nl, google ,wargames, blmgame, belikeme, online criminal, criminal, criminals, spelen, speel, games, online, onlinegames, speel, scripts, limwire, kazaa, kazaalite, downloads, hostting, criminalz, Wargame, RPG, Gangstergame, Pimpgame, Lekker crimineel spelletje spelen voor de fun. mafia video game, mafia game, maffia game, online mafia game, mafiagame, mafia the game, online maffia game, game mafia, mafia pc game, mafia online game, mafie, mafia game online, game maffia, mafia 2 game, mafia full game, mafia save game, pc game mafia, mafis, maffia the game, mafia rpg game, mafia saved game, download mafia game, mafia game download, mafia game music, mafia the game cheats, maafia, mafia game walkthrough, online game mafia, mafia 2 the game, mafia full game download, mafia game patch, save game mafia, game mafia 2, mafia game pc, mafia game soundtrack, www mafia game, game mafia cheats, mafia game downloads, mafia game mods, mafia game saves, mafia 2 pc game, ny mafia game, the mafia game, www mafiagame, mafia game 2, mafia game cheat, mafia game cheats, mafia game map, mafia network game, mafia pc game cheats, mafiagame com, the game mafia, www mafiagame com, for mafia game, mafia boss game, mafia game com, the mafia boss game, www mafia game com, le mafie, mafia card game, mafia game cars, mafia game crack, mafia game demo, mafia game for, mafia game trainer, mafis chess, maffia game, online maffia game, game maffia, maffia the game, criminalz, criminalz game, criminalz online game, criminalz rpg, habbo criminalz, criminalz het spel, red criminalz, het game criminalz, land criminalz, yellow criminalz, online criminalz game, blue criminalz, bedrijf criminalz, bedrijven criminalz, top 50 criminalz, spel criminalz, net gereset, speel criminalz.nl Mafia games , maffia games , online mafia games , online maffia games , maffiagames , mafia games online , games mafia , mafiagames , mafia online games , mafia save games , rpg mafia games , multiplayer mafia games , mafia rpg games , mafia saved games , pc games mafia , based mafia games , mafia games on , mafia pc games criminalz scripts , gratis criminalz script, fun lovin criminalz, fun loving criminalz, britons most wanted criminalz, little criminalz, scripts criminalz, criminalz verkoop, criminalz hacken, free criminalz scripts, criminalz script free, most wanted criminalz, sitekeuring.com criminalz, criminalz php script downloaden, scrip criminalz, art criminalz, coco criminalz, criminalz bug, criminalz free script, criminalz free script, download criminalz script php, koop hier criminalz, script criminalz free, criminalz logo, fun criminalz, fun lovin criminalz 2005, gratis criminalz script php,criminalz hacker, criminalz scripts download, gratis scripts voor criminalz, la vida loca criminalz, my criminalz, criminalz maken, criminalz mycyberchat, criminalz scrip, criminalz script install, criminalz spel net reset, fun love criminalz, nazi war criminalz, treu criminalz, true criminalz, criminals.nl, belikeme.nl, chat, chatbox, chatten, tieners, jongeren, jeugd, kids, kinderen, kindergame, onlinegame, livechat, juegdchat, warchat, nieuwschat, jongerenchat, jongens, meisjes, kriminelen, gangs, wargangs, gangsters, gangsterwar, gangster, wargangsters, online gangsters, veiligspelen, tekst spel, rpg, rpg online, role play, play, playing, fungame, relaxgame, coolgame, supergame gratis GRATIS vuurwerk forum community, wk, euro, geld, snel, gangster nine, gangster 9, gangster, 9 gangster, nine gangsters, nine gangster, gangster IX, gangster ix, ix, nine, gangster script, cheap gangster script, mafia script, rpg mafia script, script for sale, rrpg script, gangster scripts for sale, looking to buy a mafia script, looking to buy a gangster script, rpg gangster script, rpg gangster, gangsters, gangs, online gangster script, online mafia script, online gangster game, script for gansgter rpg, script for mafia rpg, script for gangster online game, script for mafia online game, mafia, ster, rpg, mmorpg, mmorpg gangster game, mmorpg mafia game, maffia online game, maffia rpg script, looking to buy maffia script, lookin to buy gangster script, looking to buy mafia script, buying gangster script, buy gangster script, rpg script, mmorpg script, mmo gangster game, mmo mafia game, mmo maffia game, online mafia game, online gangster game, gangster game, maffia game, mafia game, gangster games, mafia games, maffia games, english gangster scripts, english gangster game, english mafia scripts, english maffia scripts, online english gangster game, online rpg gangster script, online rpg, role playin game, role playing gangster, gangster walk, gangster talk, maffia quotes, mafia quotes, mafia images, gangster images, gang games, crim games, top mafia games, top gangster games, top 10 gangster online games, top10 gangster rpg, top 10 online gangster games, top 10 online mafia games, top 10 mafia rpg, rpgs, rpg's, gangster rpg's, gangster rpgs, mafia rpgs, mafia rpg's, original gangaster, contract gangster, gangster cronicles, gangster crime, crime rpg, crime online game, online crime game, online crime rpg, online crime script, crime scripts, looking to buy crime script, night club script, al capone, al pacino, scarface script, gta rpg script, gta script, grand theft auto script, grand theft auto rpg script, gangster game, the gangster game, gangstergame.com, game gangster, gaming gangster, gangster gaming, browser online gangster game, browser online mafia game, browser gangster rpg, mafia browser rpg, browser mafia rpg, gangster browser rpg,browser based gangster rpg, browser based mafia rpg, browser based gangster game, browser based mafia game, MAFFIA, MAFIA, RPG, MMORPG, GANGSTER, CRIMINAL, CRIME, CRIMES, THUG, text based mafia rpg, texted based mafia game, online mafia text game, online mafia browser game, online gangster bnrowser game, onmline gangster text game, text based gangster rpg, text based gangster game, gangster online mmorpg, mafia online mmorpg, mmorpg gangster, mmorpg mafia, mmorpg gangster game, mmorpg mafia game, text based rpg, browser based rpg, browser rpg, text rpg, text type mafia game, text type gangster game, browser type gangster game, browser type mafia game, browser type gangster rpg, browser tpye mafia rpg, text type mafia rpg, text type gangster rpg, gangster game script, the gangster game script, website script, gangster website script, mafia website script, website game script, website rpg script, i want a mafia rpg script, i want a gangster rpg script, how much are mafia game scripts, how much are mafia rpg scripts, how much are gangster rpg scripts, how much are gangster game scripts, online internet multiplayer games, internet mafia game, internet gangster game, multiplayer gangster game, multiplayer mafia game, free online gangster rpg, free online gangster game, free online mafia rpg, free online mafia game, free multiplayer gangster game, free multiplayer mafia game,">
<META NAME="DESCRIPTION" CONTENT="The Gangster Game is an Online Browser Based RPG Script..  Work out in the gym, do boxing and cage fighting, drug dealing, pimp hoes/ho's, shares = stock market,steal cars, take your driving test for you license, get a pimp diploma, train up your skills, business's to buy and run, gang system, houses and cars to be bought. This gangster script has everything. So sign up now! Do YOU have what it takes to be the next DON?">
 

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
this is part 3 from index.php

PHP:
<META NAME="DESCRIPTION" CONTENT="The Gangster Game is an Online Browser Based RPG Script..  Work out in the gym, do boxing and cage fighting, drug dealing, pimp hoes/ho's, shares = stock market,steal cars, take your driving test for you license, get a pimp diploma, train up your skills, business's to buy and run, gang system, houses and cars to be bought. This gangster script has everything. So sign up now! Do YOU have what it takes to be the next DON?">
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 31 Dec 2005 00:00:01 PST">
<META HTTP-EQUIV="CHARSET" CONTENT="ISO-8859-1">
<META HTTP-EQUIV="VW96.OBJECT TYPE" CONTENT="Homepage">
<META NAME="RATING" CONTENT="General">
<META NAME="REVISIT-AFTER" CONTENT="4 days">
<link rel="stylesheet" type="text/css" href="<? echo $sitelink;?>/layout/intro/css/css.css">
<link rel="shortcut icon" href="ico.ico" type="image/ico" />
<link rel="icon" href="ico.ico" type="image/ico" />
<style type="text/css">
 #tdColGauche{background: #5a0303 url(layout/intro/images/tiles/blood5.gif) repeat;}
 #tdColCentre{background: url(layout/intro/images/tiles/trousballes5.jpg) no-repeat top left;}
 #tdColCentre.special{background: url(layout/intro/images/tiles/trousballes5_special.jpg) no-repeat top left;}
 #tdColDroite{background: #2e2723 url(layout/intro/images/tiles/city5.jpg);}
</style><script language="javascript" type="text/javascript" src="js/string.js"></script>
<script language="javascript" type="text/javascript" src="js/functions.js"></script>
<script language="javascript" type="text/javascript" src="js/text_counter.js"></script>
<script language="javascript" type="text/javascript" src="js/swfobject.js"></script>
</head>
<body onLoad="MM_preloadImages('layout/intro/images/index_boutonLogRoll.jpg','layout/intro/images/index_boutonRegisterRoll.jpg')">
<div id="index">
  <div id="indexContent">
  
    <div id="group"></div>
    <h1 class="logo en"><span></span></h1>
    <h2 class="violator en"><span></span></h2>
 
<div id="loginBox">
   <form method="POST" action="login.php" id="loginForm">
   
    <input type="hidden" name="action" value="userLogin" />
    <label for="gebruikersnaam">   
    </label>
    <label for="wachtwoord">
    </label><tr><td></td></tr>
    
 
  </form>
  <ul class="inlineLinks">
 
     </ul>
 </div>
 <!-- Bouton register -->
    <div id="registerBox">
     <!-- <h3>Story</h3>-->
      <p class="inlineLinks">
   
 

<?php /* ------------------------- */
  $login     = $_POST['login'];
  $pass                                                = $_POST['pass'];
  $passconfirm                                        = $_POST['passconfirm'];
  $city      = $_POST['stad'];
  $email     = $_POST['email'];
  $recruiter     = $rec;
  $IP      = $_SERVER['REMOTE_ADDR'];
 $ctype      = $_POST['ctype'];
  ${"select$ctype"}    = "selected";

  if(isset($_POST['submit'])) {
    $message     = Array(
 "<b>Your login may only contain: A-Z, a-z, 0-9, _  - </b><BR><BR>",
    "<b>Your passwords were not the same</b><BR><BR>",
 "<b>Fill in a valid Email-Address</b><BR><BR>",
 "<b>Select a Criminal Type</b><BR><BR>",
 "<b>That login already exists in the database</b><BR><BR>",
 "<b>That email already exists in the database</b><BR><BR>",
 "<b>The Recruiter name can only contain A-Z, a-z, 0-9, _  - </b><BR><BR>",
        "<b>There is already an account in use on this computer!</b><BR><BR>"); 
    $msgnum     = -1;
    if(preg_match('/^[a-zA-Z0-9_\-]+$/',$login) == 0)
      $msgnum     = 0;
    if(preg_match('/^.+@.+\..+$/',$email) == 0)
      $msgnum     = 2;
    else {
      $dbres     = mysql_query("SELECT `id` FROM `[users]` WHERE `login`='{$login}'");
      if(mysql_num_rows($dbres) > 0)
        $msgnum     = 4;
      $dbres     = mysql_query("SELECT `id` FROM `[users]` WHERE `email`='{$email}'");
      if(mysql_num_rows($dbres) > 0)
    $msgnum     = 5;
    if(preg_match('/^[a-zA-Z0-9_\-]+$/',$login) == 0)
        $msgnum     = 6;
     
  
   
      if(mysql_num_rows($dbres) > 0)
        $msgnum                                 = 7;                 
      if($msgnum == -1) {

        mysql_query("UPDATE `[users]` SET `recruits`=`recruits`+'1' WHERE `login`='{$recruiter}'");
        mysql_query("UPDATE `[users]` SET `cash`=`cash`+'100000' WHERE `login`='{$recruiter}'");
if($rec != "") {
        mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`,`outbox`) values(NOW(),'$page->sitetitle','$recruiter','Referal','Je hebt een lid laten aanmelden op $page->sitetitle! je hebt &euro;100.000 contant geld van $page->sitetitle gekregen!','0')");
}
        mysql_query("INSERT INTO `[users]`(signup,login,pass,IP,email,land,ctype) values(NOW(),'$login',MD5('$pass'),'$IP','$email','$city','$ctype')");

        $id     = mysql_insert_id();
        mail($email,"[The Gangster Game] - Account","[The Gangster Game] - Account.
Edit:
part 4 of index.php

PHP:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dear $login
Your account details are as follows:
Login          = $login
E-mail address = $email
Password       = $pass
Keep your account information safe and DO NOT give it to amyone under any circumstances.
If you need any support, feel free to contact us via the support ticket on the site, or using the Game Forums.
DO NOT:
-Spam. Spamming is against the rules. Spamming not only annoys the admins, but annoys everybody else too.
 
-Threaten or insult anyone during your time on The Gangster Game. We know its a gangster game and people can get carried away, but do refrain from using abusive behaviour.
-Use proxies. This will result in a permenant ban from your IP.
-Create and Use multiple accounts. All the accounts will be banned. If you have a brother, sister etc take this up with the Admins.
-Do not advertise your own stuff on our site. We appreciate you wouldnt like it if we did it on your site, so dont do it on our site.
If you find a bug in the game. Report it to an Admin EMMEDIATELY. Although finding of a bug is not a bannable offence.
But abusing the bug is, and you will be caught and banned!
Abusing or not Obeying any of these rules will result in a permenant and emmediate ban. No second chances. You have been Warned!
 
Kind Regards,
Graham Corlet
(c)TheGangsterGame.com
www.TheGangsterGame.com :
Get Respect... Get Loyalty... Get Wealthy... Get GANGSTER™ 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Advertise here....
","From: [The Gangster Game]-Staff");
      }
    }
  }
/* ------------------------- */ ?>
 
<?php /* ------------------------- */
  if(isset($_GET['id'],$_GET['code'])) {
    print "  <tr><td class=\"subTitle\"><b>Activated</b></td></tr>\n";
    $id      = $_GET['id'];
    $code     = $_GET['code'];
    $dbres     = mysql_query("SELECT `login` FROM `[temp]` WHERE `area`='signup' AND `id`='$id' AND `code`='$code'");
    if($data = mysql_fetch_object($dbres)) {
 $acti = 1;
 mysql_query("UPDATE `[users]` SET `activated`=1,`signup`=NOW() WHERE `login`='{$login}'");
      mysql_query("DELETE FROM `[temp]` WHERE `id`='{$id}'");
      print "  <tr><td class=\"mainTxt\">Activated Account, You can now loggin</td></tr>\n";
    }
    else
      print "  <tr><td class=\"mainTxt\">Incorrect activation-code...</td></tr>\n";
  }
  else {
    if($msgnum != -1) {
      if(isset($msgnum) && $msgnum != -1)
        print "{$message[$msgnum]}\n";
        $rec = $_GET['rec'];
    print "  <tr><td class=\"mainTxt\">
   <b> </b>
</td></tr>\n"; print <<<ENDHTML
 
Last edited:

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
and the last part of index.php

PHP:
</td>

<div id="regBox">
  <tr><td class="mainTxt">
      </td></tr>
<br>
   <form method="POST" action="login.php" id="loginForm">
    
    <input type="hidden" name="action" value="userLogin" />
    <label for="gebruikersnaam"><input tabIndex="1" name="login" type="text" maxlength="15" value="" class="width2"/>
    </label>
    <label for="wachtwoord">
<br>
<input tabIndex="2" name="pass" type="password" maxlength="25" value="" class="width2" />
    </label>
 
 
  <td align=center><input class="2"  type="submit"  name="submit" id="play" style="width: 225;" value="GAME LOGIN"></td><br>
<tr><td></td></tr>
    
  
 
  </form>
<tr><td align="center"> <a href="javascript: //" onClick="window.open('register.php')"><input class="2" type="submit" style="width: 225;" value="GAME REGISTER"></td></a></tr>
  <ul class="inlineLinks">
    </ul>
 
<br>
 
  <a href="http://thegangstergame.com/script/"><font color="FFFFFF">[ CLICK HERE - TO PURCHASE ]</font></a>
 
 <!-- Button register -->
    

ENDHTML;
    }
    else
      print "<tr><td class=\"subTitle\">Register</td></tr>
<tr><td class=\"mainTxt\" align=center>Success<br><br>
Congratulations and Welcome to <b>The Gangster Game</b>. You can now login and start a world of drugdealing, murder, corruption, gambling and many other crimes that comes along with being a Mob Boss... or on the other hand, a simple drug runner! You decide!</td></tr>\n";
  }
/* ------------------------- */ ?>
 
 
  <ul class="inlineLinks">
     </ul>
 </div>
    </div>
  </div>
  <p id="footer">
&nbsp;&nbsp;&nbsp;<font size=3 color="white">Get Respect...  &nbsp;  Get Loyalty...   &nbsp; Get Wealthy.... &nbsp; Get GANGSTER ™</font> 
<br>
Members: <?=$leden?> - Online: <?=$online?> - Newest Member: <?=$laatste?> - <a HREF="login.php?x=lostpass">Forgotten your password? Click here to Reset it.</a>
<BR>   
<?php
//Copyright variabelen instellen
$beginjaar = '2007'; // Beginjaar van je site
$jaar = date ("Y");  //Ophalen systeemjaar
$jaar2 = $jaar + 1;  //jaar2 = jaar + 1
$bedrijfsnaam = ''; //Bedrijfsnaam website
$rechten = ''; //Neerzetten rechten
echo ' &copy' . ' ' . $beginjaar . ' - ' . $jaar . ' - ' . $bedrijfsnaam;
?> <?php echo $page->sitetitle; ?>
 
 
   </p>
</div>
</body>
</html>
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
My guess is that the problem happens in file _include-config2.php which is included at the top of index.php.

Look in there and see if you see any text that matches the error message you keep getting. If not, look for another line like

include("somefilename.php")

and look in somefilename.php

If you post it here remeber to XXXXXX out any passwords, usernames, etc.
 

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
PHP:
<?php /* ------------------------- */
  include("gegevens.php");
function quote_smart($value) {
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
if(version_compare(phpversion(),"4.3.0") == "-1") {
return mysql_escape_string($value);
} else {
return mysql_real_escape_string($value);
}
}
  if(!(@mysql_connect("$host","$user","$pass") && @mysql_select_db("$tablename"))) {
    print <<<ENDHTML
<html>

<head>
<title><?php echo $page->sitetitle; ?></title>
<link rel="stylesheet" type="text/css" href="<? echo $sitelink;?>/layout/layout<?php echo $page->layout; ?>/css/css.css">
<script language="javascript">
function showTxt(id) {
    document.getElementById(id).style.position  = "relative";
    document.getElementById(id).style.visibility = "visible";
}
</script>
</head>

  <table width=50%>
    <tr><td class="subTitle"><b>Even offline</b></td></tr>
    <tr><td class="mainTxt">
<center>There has been a temporary disturbance. This will be corrected as soon as possible. Thank you for your understanding and patience!
</center>
    </td></tr>
  </table>
</body>

this is a part what stands in the file _include-config2.php her stands the fold message but what do i have to do to get it away? just delete it?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
PHP:
  if(!(@mysql_connect("$host","$user","$pass") && @mysql_select_db("$tablename")))

That is telling you that either it is not connecting to the database or it cannot select the database.

Since the author disabled warnings from the two functions, you cannot tell which one is the problem.

But the best bet is that one of $host, $user, $pass, or $tablename is an incorrect value for your database.
 

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
huh i don't understant it, im sorry but il don't work dayly whit php file's so can you bring it to me in a simply language
thank you!
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
It means that when you go to your main page it tries to connect to a database server and select a database to interact with.
It fails.
It prints the error message you see.

There are many reasons why it might be failing.
1. Trying to connect to a database not on x10hosting. x10hosting does not allow that.
2. The database does not exist. You (or the installation script) did not make the database yet. Or it is misspelled in your script.
3. You have the wrong username and/or password. Or the user is not attached with proper permissions to the database.
4. You are using the wrong 'hostname'. It is 'localhost' on x10hosting.

My guess this is someone else's script you are using.

Ok.

First step, remove the @ from the two function calls

PHP:
 if(!(@mysql_connect("$host","$user","$pass") && @mysql_select_db("$tablename")))

in _include-config2.php so they look like

PHP:
 if(!(mysql_connect("$host","$user","$pass") && mysql_select_db("$tablename")))

This will solve the problem.
That will give more descriptive error messages.

You also have to find out where $host, $user, $pass, and $tablename are given values.
If it was not in _include-config2.php , then it might be in gegevens.php, since gegevens means "data"
 
Last edited:

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
alricht il try te delete every @ in the file and when im going to the page il get this

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mygaming_corlet'@'boru.x10hosting.com' (using password: YES) in /home/stefkee3/public_html/_include-config2.php on line 15
Even offlineThere has been a temporary disturbance. This will be corrected as soon as possible. Thank you for your understanding and patience!

but when il delete te file _include-config2.php out of cpanel a part of the site works

just see it now there is no file _include-config2.php
watch: www.maffiaswitch.x10hosting.com
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
I suggest you contact the person you bought the script from.
I have no idea if you/the script set up a database or created users/passwords properly.
The username 'mygaming_corlet' is not correct for mySQL on x10hosting (it should start with your cPanel username).
 

stefkee3

New Member
Messages
13
Reaction score
0
Points
0
yes but, when il delete the file ther stands a whole other thing en when i add the file there stands stefkee3 my cpanel username:dunno:
Edit:
You also have to find out where $host, $user, $pass, and $tablename are given values.
If it was not in _include-config2.php , then it might be in gegevens.php, since gegevens means "data"

il open gegevens.php and this is in it
PHP:
<?php$host		=	"localhost";	
$user		=	"mygaming_corlet";
$pass		=	"rubber1";
$tablename	=	"mygaming_gangster";
$sitelink  	= 	"http://www.thegangstergame.com";   	
$admin1    	= 	"Graham";  
?>
 
Last edited:

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
just making sure: is the database located at x10hosting?

becuase then your db user and table would follow the format, for you: stefkee3_username and stefkee3_tablename
 
Status
Not open for further replies.
Top