Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 07-30-2006, 09:05 PM   #1 (permalink)
Forum Expert
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,054
Rep Power: 60 Vorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond repute
Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Exclamation Complete Automated Web Accounting Service 1.0

This version is depricated...

[RUO 2.0 F+] Complete Automated Web-Accounting Service V2.0.1
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard

Last edited by Admin Vorspire; 05-15-2008 at 08:54 AM.
Vorspire is offline   Reply With Quote
Old 07-30-2006, 09:07 PM   #2 (permalink)
Forum Expert
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,054
Rep Power: 60 Vorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond repute
Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Cool

Run this MySQL 4 query in PhPMyAdmin, to add the 'accounts' table to your chosen database:

Code:
CREATE TABLE IF NOT EXISTS accounts (
  `name` text NOT NULL,
  `password` text NOT NULL,
  `email` text NOT NULL,
  phase int(5) NOT NULL default '0'
) TYPE=MyISAM;
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard

Last edited by Admin Vorspire; 08-01-2006 at 06:30 AM.
Vorspire is offline   Reply With Quote
Old 07-30-2006, 11:06 PM   #3 (permalink)
Forum Novice
 
Join Date: Jun 2006
Posts: 145
Rep Power: 8 Shadow_Storm will become famous soon enough
Default

Great job, I will test this tomorrow, I been trying to learn php and mysql cause i wanted to do somthing similar to this. Agai thanks and great job I will let you knnow if i ran inot any problem tomorrow
__________________
Kingdom of Shadows
My Scripts :p
2.0 Soul of Ice
2.0 Armor & Weapons
Shadow_Storm is offline   Reply With Quote
Old 07-30-2006, 11:50 PM   #4 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 23
Posts: 1,656
Rep Power: 40 Pyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant future
Send a message via MSN to Pyro-Tech
Default

will this work if i have my site hosted somewhere other than my server??
__________________

Pyro-Tech is online now   Reply With Quote
Old 07-31-2006, 05:37 AM   #5 (permalink)
Forum Expert
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,054
Rep Power: 60 Vorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond repute
Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Cool

It will work anywhere, as long as all requirements are met

I forgot to mention that you will need to create an "accounts" table in MySQL with the rows:

(text)"name"(255), (text)"password"(255), (text)"email"(255) and (int)"phase"(3)

in THAT order

i will update the readme later.


Also, if anyone has the system running, please post me a URL so i can see it myself
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard
Vorspire is offline   Reply With Quote
Old 07-31-2006, 12:47 PM   #6 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 23
Posts: 1,656
Rep Power: 40 Pyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant future
Send a message via MSN to Pyro-Tech
Default

i know some things had problems with working on two seperate machines....

i pay for hosting and what not, so im just wondering how hard this will be to set up to send the stuff to my computer to update and all

i dunno if im making sense

but thanks....ill look into it
__________________

Pyro-Tech is online now   Reply With Quote
Old 07-31-2006, 01:13 PM   #7 (permalink)
Forum Expert
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,054
Rep Power: 60 Vorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond repute
Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

its very easy, thats what the odbc driver is for. make sure both machines have it installed.. setup should be very easy :P
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard
Vorspire is offline   Reply With Quote
Old 07-31-2006, 10:42 PM   #8 (permalink)
Forum Novice
 
Join Date: Jun 2006
Posts: 145
Rep Power: 8 Shadow_Storm will become famous soon enough
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
Old 08-01-2006, 03:17 AM   #9 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 23
Posts: 1,656
Rep Power: 40 Pyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant futurePyro-Tech has a brilliant future
Send a message via MSN to Pyro-Tech
Default

Quote:
Originally Posted by Admin Vorspire
its very easy, thats what the odbc driver is for. make sure both machines have it installed.. setup should be very easy :P
is there anything specific i need to ask my webhost to see if they have it installed?
__________________

Pyro-Tech is online now   Reply With Quote
Old 08-01-2006, 06:19 AM   #10 (permalink)
Forum Expert
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,054
Rep Power: 60 Vorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond repute
Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

Just ask about ODBC, thats all. ODBC is a driver that lets users connect from other locations securely.

I have actually updated the package with the correct php file. The problem was because i didn't have sufficient hosting to test the code
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard
Vorspire is offline   Reply With Quote
Old 08-01-2006, 07:59 AM   #11 (permalink)
Forum Novice
 
Join Date: Jun 2006
Posts: 145
Rep Power: 8 Shadow_Storm will become famous soon enough
Default

I updated the files and still getting an error
Code:
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\WAConfig.php on line 22
The part mark in with ** is line 22

PHP Code:
?>
<!- Lost Password Section -!>**
<?PHP

$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.";
I change the <!- -!> comments and replace them with /* */ that took care of that problem but now this
Code:
Notice: Undefined variable: e in c:\Inetpub\wwwroot\WAConfig.php on line 12

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

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

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

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

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

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

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

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

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

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

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

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

Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\WAConfig.php on line 51
__________________
Kingdom of Shadows
My Scripts :p
2.0 Soul of Ice
2.0 Armor & Weapons

Last edited by Shadow_Storm; 08-01-2006 at 08:48 AM.
Shadow_Storm is offline   Reply With Quote
Old 08-01-2006, 09:16 PM   #12 (permalink)
Forum Novice
 
Join Date: Jun 2006
Posts: 145
Rep Power: 8 Shadow_Storm will become famous soon enough
Default

well I been playing with the php pages trying to fix my problem. Now I am getting the following message on 3 of the php files that came in the zip files. RquestAccount.php, LostPW.php, and ChangeE-mail. I have no idea how to fix this
Code:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.


and on the the last 3 i am getting this
Code:
Notice: Undefined variable: email in c:\Inetpub\wwwroot\verifychangeemail.php on line 1

Notice: Undefined variable: verify in c:\Inetpub\wwwroot\verifychangeemail.php on line 1
Invalid verification code! 

Notice: Undefined variable: email in c:\Inetpub\wwwroot\verifylostPW.php on line 1

Notice: Undefined variable: verify in c:\Inetpub\wwwroot\verifylostPW.php on line 1
Invalid verification code! 

Notice: Undefined variable: em in c:\Inetpub\wwwroot\verifyrequestaccount.php on line 1

Notice: Undefined variable: v in c:\Inetpub\wwwroot\verifyrequestaccount.php on line 1
Invalid verification code!
__________________
Kingdom of Shadows
My Scripts :p
2.0 Soul of Ice
2.0 Armor & Weapons

Last edited by Shadow_Storm; 08-01-2006 at 09:23 PM.
Shadow_Storm is offline   Reply With Quote
Old 08-01-2006, 09:36 PM   #13 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,411
Rep Power: 125 TMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond reputeTMSTKSBK has a reputation beyond repute
Default

Looks...interesting.
__________________
-Socks are great.
Ask Radwen. runuo.com/forums/showthread.php?t=76473
TMSTKSBK is offline   Reply With Quote
Old 08-03-2006, 12:44 PM   #14 (permalink)
Forum Expert
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,054
Rep Power: 60 Vorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond reputeVorspire has a reputation beyond repute
Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

The pages seemed to work fine for me, however you should check that the custom variables are correctly set in connectmysql() in WAConfig.php

don't forget to end the input line with ;
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard
Vorspire is offline   Reply With Quote
Old 08-03-2006, 11:53 PM   #15 (permalink)
Forum Novice
 
Join Date: Jun 2006
Posts: 145
Rep Power: 8 Shadow_Storm will become famous soon enough
Default

Well I found a problem with my server for some reason IIS and PHP had some issues, so I just finish redoing my webs server today. I install apache this time and everything looks good so I am going to try your system again. I think part of the problem was some kind of bug between IIS and PHP that I could not find a work around.

I will let you know if things work sometime tomorrow
__________________
Kingdom of Shadows
My Scripts :p
2.0 Soul of Ice
2.0 Armor & Weapons
Shadow_Storm is offline   Reply With Quote
Old 08-04-2006, 10:06 AM   #16 (permalink)
Forum Novice
 
Join Date: Jun 2006
Posts: 145
Rep Power: 8 Shadow_Storm will become famous soon enough
Default

I installed your files again to give it another try and I am still having problems. I was wondering where you are defining your variables, because most of the warning I have is because undefined variables. I think if I can define this variables my problems will be fix.

FYI I know that php, mysql and apache are configure correct, I’ve spend the past two days installing and testing my new web server to makes sure that I did not have the same issues as with my old server that had some issues.

My old sever sometimes would not be able to open some files with the extension php it would error out, I found it was an issue with IIS and PHP that I could not find a workaround. So I decide to install apache to replace IIS. Anyhow, this is getting out of the subject. If could please point out where do I need to define this variables I’ll appreciate it.


This is the errors I am getting:


PHP Code:
NoticeUndefined variablee in c:MyWebWAConfig.php on line 4

Notice
Undefined variablea in c:MyWebWAConfig.php on line 4

Notice
Undefined variableIP in c:MyWebWAConfig.php on line 4

Notice
Undefined variablea in c:MyWebWAConfig.php on line 6

Notice
Undefined variablecrypt_email in c:MyWebWAConfig.php on line 6

Notice
Undefined variablea in c:MyWebWAConfig.php on line 6

Notice
Undefined variablee in c:MyWebWAConfig.php on line 6

Notice
Undefined variablecrypt_query in c:MyWebWAConfig.php on line 8

Notice
Undefined variablequery in c:MyWebWAConfig.php on line 8

Notice
Undefined variablea in c:MyWebWAConfig.php on line 10

Notice
Undefined variablecrypt_email in c:MyWebWAConfig.php on line 10

Notice
Undefined variablea in c:MyWebWAConfig.php on line 10

Notice
Undefined variablee in c:MyWebWAConfig.php on line 10

Notice
Undefined variableREMOTE_ADDR in c:MyWebrequestaccount.php on line 4
:: Logged IP: ::


NoticeUndefined variablep in c:MyWebrequestaccount.php on line 8

Notice
Undefined variableqemail2 in c:MyWebrequestaccount.php on line 14

Notice
Undefined variableqemail in c:MyWebrequestaccount.php on line 14

Notice
Undefined variableaccname in c:MyWebrequestaccount.php on line 21

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:MyWebrequestaccount.php on line 23

Notice
Undefined variableemail in c:MyWebrequestaccount.php on line 30

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:MyWebrequestaccount.php on line 32

Notice
Undefined variableemail in c:MyWebrequestaccount.php on line 39

Notice
Undefined variableaccname in c:MyWebrequestaccount.php on line 39

Notice
Undefined variableREMOTE_ADDR in c:MyWebrequestaccount.php on line 39

Notice
Undefined variableEmailSubject1 in c:MyWebrequestaccount.php on line 45

Notice
Undefined variableEmailMessage1 in c:MyWebrequestaccount.php on line 45

Notice
Undefined variableAdminEmailAddress in c:MyWebrequestaccount.php on line 45

Warning
mail() [function.mail]: SMTP server response503 need RCPT command [datain c:MyWebrequestaccount.php on line 45

Notice
Undefined variable