View Single Post
Old 07-31-2006, 10:42 PM   #8 (permalink)
Shadow_Storm
Forum Novice
 
Join Date: Jun 2006
Posts: 145
Default

Admin Vorspire, This is a hard thing for me to explain because of my low english but I am going to give it a try. I was able to get everything to compile correctly, however, their is some minore problem with php scripts that I was able to fix. FYI When you need to comment somthing in php remember to use /* "comment"*/ becasue php is ignoring <!--!> this type .

I change the comments but I am still having issues, some characters PHP has a problem translating. I was able to fix most of them by addin \ before the letter that it was seen as a veriable and that fix the problem but now I am stuck on the lastone. I am not sure where you define the function that is looking for, I will look inot your scrip some more maybe i can figure it out.

Code:
Notice: Undefined variable: e in c:\Inetpub\wwwroot\WAConfig.php on line 11

Notice: Undefined variable: a in c:\Inetpub\wwwroot\WAConfig.php on line 11

Notice: Undefined variable: IP in c:\Inetpub\wwwroot\WAConfig.php on line 11

Notice: Undefined variable: a in c:\Inetpub\wwwroot\WAConfig.php on line 16

Notice: Undefined variable: crypt_email in c:\Inetpub\wwwroot\WAConfig.php on line 16

Notice: Undefined variable: a in c:\Inetpub\wwwroot\WAConfig.php on line 16

Notice: Undefined variable: e in c:\Inetpub\wwwroot\WAConfig.php on line 16

Notice: Undefined variable: crypt_query in c:\Inetpub\wwwroot\WAConfig.php on line 22

Notice: Undefined variable: query in c:\Inetpub\wwwroot\WAConfig.php on line 22

Notice: Undefined variable: a in c:\Inetpub\wwwroot\WAConfig.php on line 27

Notice: Undefined variable: crypt_email in c:\Inetpub\wwwroot\WAConfig.php on line 27

Notice: Undefined variable: a in c:\Inetpub\wwwroot\WAConfig.php on line 27

Notice: Undefined variable: e in c:\Inetpub\wwwroot\WAConfig.php on line 27

Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\WAConfig.php on line 41
This is the php file
PHP Code:
<?PHP

/*<!- General Information Section -!>*/

$WebURL "http://kingdomofshadows.game-server.cc"/*<!- Keep http:// (keep this the same path as this file)-!>*/
$AdminEmailAddress "kingdomofshadows@comcast.net";

/*<!- Requesting Accounts Admin Notification Section -!>*/

$EmailSubjectAdmin "Kingdom of Shadows - Someone requested an account!";
$EmailMessageAdmin "Someone is requesting an account!\n\nThis email is for information purposes only!\n\nDetails of request sender:\n\nEmail: \$e\nAccount: \$a\nLogged IP: \$IP";

/*<!- Requesting Accounts Section -!>*/

$EmailSubject1 "Kingdom of Shadows - Account Request!";
$EmailMessage1 "Hi,\nYou are trying to register the account:\n\$a\nPlease visit\n$WebURL/VerifyRequestAccount.php&v=\$crypt_email&ac=\$a&em=\$e\nin order to verify your new account request!";;


/*<!- Lost Password Section -!>*/

$EmailSubject2 "Kingdom of Shadows - Lost Password!";
$EmailMessage2 "Hi,\n\nPlease visit\n$WebURL/VerifyLostPW.php&verify=\$crypt_query&email=\$query\nin order to verify your lost password request.";

/*<!- Lost Password Section -!>*/

$EmailSubject3 "Kingdom of Shadows - Change Account Email!";
$EmailMessage3 "Hi,\nYou are trying to register this email address for the account:\n\n\$a\n\nPlease visit\n$WebURL/VerifyChangeEmail.php&verify=\$crypt_email&account=\$a&email=\$e\nin order to verify your new email request!";

/*<!- MySQL Database Setup Section -!>*/

$link=connectmysql();
function 
connectmysql() {

  
$mysql_host "Database Host";
  
$mysql_user "Database User";
  
$mysql_pass "Database Password";
  
$db_name "Database Name";

/*<!- DO NOT EDIT PAST HERE! -!>*/

  
$link mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die ("Could not connect to mySQL daemon<br>\n");
  
mysql_select_db($db_name);
  return 
$link;
  }
  
  
?>
__________________
Kingdom of Shadows
My Scripts :p
2.0 Soul of Ice
2.0 Armor & Weapons

Last edited by Shadow_Storm; 07-31-2006 at 11:16 PM.
Shadow_Storm is offline   Reply With Quote