Jump to content
MakeWebGames

Recommended Posts

Posted

This Is From This Topic

http://criminalexistence.com/ceforums/index.php?topic=14829.0

I Edited It A Little And Here Is My Finished Product::

rating.php:::

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Daily Cron

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

SQL's

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: User Rating

Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*******'@'localhost' (using password: YES) in /home/*******/public_html/mysql.php on line 3

Access denied for user '*******'@'localhost' (using password: YES)

Any idea whats wrong?

Posted

Re: User Rating

Just a quick question, I lost my old mysql.php file and I put it like this in the file.

 

<?

$c=mysql_connect('localhost','Passwordhere' or die(mysql_error());

mysql_select_db('DBhere',$c);

?>

Then I get Parse error: syntax error, unexpected ';' in /home/gurpreet/public_html/mysql.php on line 3

Sorry to be noobish but I lost all my knowledge of this stuff.

Posted

Re: User Rating

Fatal error: Call to a member function query() on a non-object in /home/gurpreet/public_html/header.php on line 90

$db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid");

Any idea what's wrong?

Posted

Re: User Rating

 

Fatal error: Call to a member function query() on a non-object in /home/gurpreet/public_html/header.php on line 90

$db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid");

Any idea what's wrong?

line 50 should look like this.....

global $ir,$userid,$db;

Posted

Re: User Rating

global $db,$c,$userid, $db,$set;

$IP = ($_SERVER['HTTP_X_FORWARDED_FOR'])

? $_SERVER['HTTP_X_FORWARDED_FOR']

: $_SERVER['REMOTE_ADDR'];

$db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid");

line 86-90

Posted

Re: User Rating

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*******'@'localhost' (using password: YES) in /home/*******/public_html/mysql.php on line 3

Access denied for user '*******'@'localhost' (using password: YES)

Any idea whats wrong?

Your game got jacked. Make sure you deleted your installer.php. Then go into config.php and set the details to what it should be. Edit: I double checked and that is correct.
Posted

Re: User Rating

Well its to make sure everything was working ok. Plus it sets up user id 1... which you can do manually. Along with everything else that is done on that page. But I'm assuming just "cuz its easier".

Posted

Re: User Rating

Funny thing is it isn't too hard to fix up provided you really know what happened. I have my error output for this be "of course not" so I remember to check for any weak spots.

  • 4 weeks later...
  • 1 month later...
Posted

Re: User Rating

 

*cough* killah *cough*

ummm...you do know that u could keep the installer up and just make it where only ur ip can do it if seen games like that like this one game iplay has certain stuff like he can chosse to run his crons mainully witih one click ut onlyhis ip and his coder's can do it

Posted

Re: User Rating

 

*cough* killah *cough*

ummm...you do know that u could keep the installer up and just make it where only ur ip can do it if seen games like that like this one game iplay has certain stuff like he can chosse to run his crons mainully witih one click ut onlyhis ip and his coder's can do it

This is really quite simple to do.

Posted

Re: User Rating

 

*cough* killah *cough*

ummm...you do know that u could keep the installer up and just make it where only ur ip can do it if seen games like that like this one game iplay has certain stuff like he can chosse to run his crons mainully witih one click ut onlyhis ip and his coder's can do it

This is really quite simple to do.

yes XD just like a simple few lines of code bam all ip's except the one ur running is workable with that feature/mod

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...