![]() |
Auto account PHP web - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Auto account PHP web (/Thread-Auto-account-PHP-web) Pages: 1 2 |
Auto account PHP web - admin_teclis - 12-24-2012 11:03 PM Hello and Merry Christmas! For days, I'm trying to create a script in PHP to automatically create accounts ... Unfortunately I do not know where to start ... PHP and MYSQL know them but I do not understand how to interact with sphere ... There are ready-made scripts out there? I was able to make sure that I create the account via the web, but now I can not be postponed password if you lose ... Can you help? RE: Auto account PHP web - admin_teclis - 12-28-2012 11:53 PM help me please.... RE: Auto account PHP web - Shaklaban - 12-29-2012 01:00 AM scripts side is this since you know mysql and php i think you can do the rest: PHP Code: [function create_new_accounts] RE: Auto account PHP web - escribano - 12-29-2012 03:34 PM All u gotta do is a table, where u need to store ACCOUNT and PASSWORD of the new account Create a Invis Stone that on=@Timer calls the db.query to execute a query and add the new accounts ![]() Code: ON=@Timer See yah! RE: Auto account PHP web - Darkyhood - 12-31-2012 08:31 AM (12-29-2012 03:34 PM)escribano Wrote: Create a Invis Stone that on=@Timer calls the db.query to execute a query and add the new accountsI think better use function f_onserver_timer RE: Auto account PHP web - admin_teclis - 01-02-2013 04:26 AM Happy new year!!! ![]() tnx for the reply... I was able to create accounts from web ... I used a script I found and modernized according to my needs ... Unfortunately, the script in question would also recover password recovery via pin and pin, but I do not know why I do not work ... If you want to place the code ... Now I have another problem inherent in the web ... Should I create a status page and let me know how to find some values .. example: Name pg - Race - Class - Gilda - Gold - Kills - Fama - Karma - connection time and the various skill above 100 ... How do I? I have not the faintest idea how to do it ... I opened the spherestatus but honestly I have not figured out how to pass the values ... Last thing .. I was also able to connect to a mysql sphere ... Eventulamente I could do this status, how do I pass it into another table? RE: Auto account PHP web - admin_teclis - 01-05-2013 11:55 PM help me pls ![]() RE: Auto account PHP web - Ultima One - 01-07-2013 01:04 PM change sphere_serv_trigs.scp to contain this: Code: // Update accounts from database In Sphere.ini set the TimerCall to 10, and activate SQL if not already done: Code: // MySql configuration. Create a file called db.php (to connect to your database): PHP Code: <?php Then, create a file called register.php : PHP Code: <?php Then, create signup.php: PHP Code: <?php This is a simplified version of the script I wrote for our server (can see it at theuoproject.co.uk) Hope that helps. RE: Auto account PHP web - Sharlenwar - 01-07-2013 08:34 PM Thanks for that basic PHP implementation. Helps out for anyone looking to do the same. ![]() RE: Auto account PHP web - Ultima One - 01-07-2013 10:35 PM NP. The one thing I hate about these forums is people asking for simple things never getting a simple answer. ![]() |