Windows XP
|
Thanks Aerewen, very nice - I'll be testing it and tell you how it went. My big interest was to have something fairly secure, and is why I asked what OS Sakrateri was running under. It's a lot easier to do something secure under Linux.
BtW Sakrateri, I tested and you don't have to reboot server ; I logged one of my accounts, then switched to another Via Database by changing IP's and it worked fine. |
Quote:
|
I put it all in, but all I get is a blank page for peq_updater.php.
|
version of php, mysql, and apache please :)
and ill check the code for compatibility |
haha nvm found the problem... i forgot to put an = sign in the servername line
u should be gtg now i tested it again and it works fine. :P just make sure to update the server information in both the peq_updater.php and eqhost.txt files and place them in the same directory. edit: the rar and zip's have been re-uploaded with the new version |
PHP = 5.0.4
MySQL = 5.0.24a Apache = 2.0.54 EDIT: I just saw your last post - thanks |
Damn! very, very cool - my hat's off to you!
Here's some extra pointers for anyone else who wants to try this; make a separate directory for this php and rename it "index.php" that's because inside the php, it refers to "index.php" all the time. or you have to rename all the references to index.php to what the file name currently is (peq_updater.php). If you want more security, you can make a new MySql account for this php and only give priv to the account table of your database. Really works great! If you can get this running, you need look no more, if this is what you want. Thanks! :) |
all i can say is :D
it's a simple script too :p just kinda dawned on me the one morning (pun intended lol)... i was like hey wait a sec... php can detect ip addresses... and after the hamster got back on the wheel... tadaa script was born :p Feel free to re-host the zips on the eqemu site and wiki them if you like... theres really nothing that will need updating on this... for a loooooong time :) |
There always has to be someone with a problem lol , well here is mine
This is what I get when I hit the Login/create account key Code:
Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in e:\program files\easyphp1-8\www\updater\index.php on line 119 |
Quote:
Did you edit the peq_updater.php file and change the login settings to yours? |
yes I did, I believe it is trying to use the MYSQL database that was installed with apache automatically when I installed easyphp, Any easy way for me to direct apache to my MYSQL that I use for eqemu? I Put For: DB_ADDY = "localhost"; . Mabey I should put the actual IP and a port number?
|
Ok, I put the address and port number and now Im getting this
Code:
Warning: mysql_connect(): Host 'gameserver.launchmodem.com' is not allowed to connect to this MySQL server in e:\program files\easyphp1-8\www\updater\index.php on line 119 think im getting somewhere, lol not sure where |
Here's all my files tested and working -
Note: blackwater.dynip.com is the dynamic dns I used for resolving my ip address. Also, I have a dedicated MySql server on another machine in my LAN, so I specify the IP where needed. eqhost.txt on client; Code:
LoginServer] Code:
<?xml version="1.0"> Code:
[LoginServer] Code:
*/ Code:
3306/udp 5999/udp 9000/udp 7000:7010/udp 3306/tcp 5999/tcp 7000:7010/tcp It looks like your MySql Server is not permiting your PhP setup to access it, maybe your webserver is somewhere else and you need to add the host in the Mysql user list? |
Ok Aerewen , I just gotta say you are AWSOME, its working and now I can enjoy a little bit more of that flavor known as freedom :) This is just way to cool !! I think this may be even better then the real login as now it checks your Account name, Password AND IP !! Damnit man did I say your AWSOME? well thank you so much for this ....its rocks !!
P.S And thanks for your Help Angel , Your Awsome too ! |
All times are GMT -4. The time now is 02:36 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.