Jump to content
MakeWebGames

McCodes Lite


5000marios

Recommended Posts

So.. I have downloaded this McCodes Lite version, and when I try to register, it says:

Notice: Undefined index: HTTP_X_FORWARDED_FOR in C:\xampp\htdocs\register.php on line 37

Warning: mysql_connect() [function.mysql-connect]: [2002] No connection could be made because the target machine actively (trying to connect via tcp://localhost:3306) in C:\xampp\htdocs\mysql.php on line 2

Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\mysql.php on line 2

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\mysql.php on line 3

Warning: mysql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\register.php on line 55

Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:\xampp\htdocs\register.php on line 56
The passwords did not match, go back and try again.

What does that mean? :/

( does that mean that I don't have a connection?, if yes, how do I solve it? :P I mean, I just buy a domain, and upload the files? )

Link to comment
Share on other sites

MCCodes Installation

2. Install"; if(!is_writable('mysql.php')) { print "INSTALLATION ERROR: The file mysql.php is not writable. Please use FTP or any other means to CHMOD this file to 0777."; } else if(!$_POST['dbHostName'] || !$_POST['dbUserName'] || !$_POST['dbDatabase'] || !$_POST['adUsername'] || !$_POST['adPassword'] || !$_POST['adCPassword'] || !$_POST['adEmail']) { print "ERROR: You did not fill in one or more elements of the form. Please go back and try again."; } else if($_POST['adPassword'] != $_POST['adCPassword']) { print "ERROR: The passwords you entered did not match. Please go back and try again."; } else { $c = mysql_connect($_POST['dbHostName'], $_POST['dbUserName'], $_POST['dbPassword']) or die("INSTALLATION ERROR: ".mysql_error()."

> Back"); mysql_select_db($_POST['dbDatabase'], $c) or die("INSTALLATION ERROR: ".mysql_error()."

> Back"); $l=fopen("mysql.php","w"); $mykey=rand(1,2147483647); fwrite($l,""); fclose($l); print "Wrote mysql.php file...

"; $fo=fopen("dbdata.sql","r"); $query=""; $lines=explode("\n",fread($fo,1024768)); fclose($fo); foreach($lines as $line) { if(!(strpos($line,"--") === 0) && $line != "") //check for commented lines or blankies { $query.=$line; if(!(strpos($line,";") === FALSE)) { $query=str_replace(array('adUsername', 'adPassword', 'adEmail'), array($_POST['adUsername'], $_POST['adPassword'], $_POST['adEmail']), $query); mysql_query($query,$c) or die("INSTALLATION ERROR: ".mysql_error()."

> Back"); $query=""; } } } print "Wrote mysql data into database...

"; $path=$_SERVER['HTTP_HOST'].str_replace('installer.php','',$_SERVER['SCRIPT_NAME']); $cj1="http://".$path."cron_fivemins.php?code=".md5($path.$mykey); $cj2="http://".$path."cron_day.php?code=".md5($path.$mykey); print " Done! DO NOT CLOSE THIS WINDOW.

You need to install these crons into cPanel or whatever interface you have using the instructions in the Installation Manual.

*/5 * * * * curl {$cj1}

0 0 * * * curl {$cj2}

 

After that, you're done! Enjoy MCcodes Lite."; } } function doStartInstall() { print "1. Config -> 2. Install"; if(!is_writable('mysql.php')) { print "INSTALLATION ERROR: The file mysql.php is not writable. Please use FTP or any other means to CHMOD this file to 0777."; } else { print "Database Details:

MySQL Hostname:

If unsure, localhost is the default on most servers

MySQL Username:

MySQL Password:

MySQL Database:

Please make sure the user has access to the database.

Admin Details

Admin Username:

Admin Password:

Confirm Password:

Admin Email Address:

"; } } ?>

 

THIS IS WHAT I GET.. AND I INSERT THIS DETAILS, AM I DOING SOMETHING WRONG?

--> MySQL Hostname:

If unsure, localhost is the default on most servers

MySQL Username: something random?

MySQL Password: something random?

MySQL Database: CyLand ( the blank database I have just created )

Please make sure the user has access to the database.

Admin Details

Admin Username: creating a new username here

Admin Password: creating a new password here

Confirm Password: creating a new password here

Admin Email Address: MY EMAIL

Link to comment
Share on other sites

I don’t understand... you get a html form asking you to fill out your details why would you have done something wrong? Here watch this -

My video again!

and he got that error because I don't think he had PHP enabled.

Link to comment
Share on other sites

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...