Jump to content

Lamron333

Members
  • Posts

    24
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Posts posted by Lamron333

  1. 3 hours ago, WpgnGaming said:

    This is the php script I use on daggerspine of course the one on my website is heavily modified but this is a working script for both Mangos and TC that I come across a while back I can not remember who did it the original code is not my own hope its helpful, 

    just goto Inc folder and edit db settings there and set what version of game you are using and your ready to go very simple to edit too.

    http://www.psd-designs.com/files/registration.zip

    <?php
    
    include('inc/settings.php');
    
    try
    {
        $con = new PDO('mysql:host=' . $config['HOST'] . ';dbname=' . $config['DB'] . ';charset=UTF8', $config['USER'], $config['PASS']);
    }
    catch(PDOException $e)
    {
        die($e->getMessage());
    }
    
    ?>
    <?php
    
    $config = array(
        'HOST' => '127.0.0.1',
        'USER' => 'NAME',
        'PASS' => 'PASSWORD',
        'DB'   => 'auth',
        'CORE' => ''
    );
    
    
    // General Settings
    define('EXPANSION', 1); // 1 = Vanilla / 2 = TBC / 3 = WOTLK
    define('REALMLIST', 'set realmlist logon.DOMAINNAME.com');
    
    // Google ReCaptcha Settings
    define('CAPTCHA_SECRET', '');
    define('CAPTCHA_CLIENT_ID', '');
    
    // Message Settings
    define('SUCCESS_MESSAGE', 'Successfully Registered!');
    
    ?>

     

    Ok what do I add where?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use