[RELEASE] Simple C9 register page, Translated to EN

Results 1 to 12 of 12
  1. #1
    Valued Member TheRastafarian is offline
    MemberRank
    May 2014 Join Date
    Ganja FarmLocation
    116Posts

    idea [RELEASE] Simple C9 register page, Translated to EN

    originally shared by @xlmansox
    i only translated to English

    you need to have these enabled in your php.ini
    Quote Originally Posted by xlmansox View Post
    extension=php_sqlsrv_52_ts_vc6.dll
    extension=php_pdo_sqlsrv_52_ts_vc6.dll
    download link:
    https://mega.nz/#!c09ATSTS!ypSZkySVm...2T__TIjiS8anW0


  2. #2
    Account Upgraded | Title Enabled! djbadboys38 is offline
    MemberRank
    Aug 2010 Join Date
    TanzanyaLocation
    1,365Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    Quote Originally Posted by TheRastafarian View Post
    originally shared by @xlmansox
    i only translated to English

    you need to have these enabled in your php.ini


    download link:
    https://mega.nz/#!c09ATSTS!ypSZkySVm...2T__TIjiS8anW0
    Thanks for share i have error... i am using xampp and i get error, i have already this extension;

    extension=php_sqlsrv_52_ts_vc6.dll
    extension=php_pdo_sqlsrv_52_ts_vc6.dll

  3. #3
    Valued Member TheRastafarian is offline
    MemberRank
    May 2014 Join Date
    Ganja FarmLocation
    116Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    Quote Originally Posted by djbadboys38 View Post
    Thanks for share i have error... i am using xampp and i get error, i have already this extension;

    extension=php_sqlsrv_52_ts_vc6.dll
    extension=php_pdo_sqlsrv_52_ts_vc6.dll

    what error are you getting ?

  4. #4
    Account Upgraded | Title Enabled! xlmansox is offline
    MemberRank
    Sep 2014 Join Date
    LondonLocation
    232Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    much more easy code. but not recommend to use it (about security).

    Code:
    <?php
    session_start();
    $mssql_host    =    "127.0.0.1,1433";
    $mssql_user    =    "c9";
    $mssql_pass    =    "Tlskdls";
    $mssql_db    =    "C9Unity";
    $ip = $_SERVER['REMOTE_ADDR'];
    
    
    function cl($text)
    {
        $a = str_replace("'","/",$text);
        return $a;
    }
    
    
    function popup($text)
    {
        echo "<script>alert('".$text."');</script>";
    }
    
    
    include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php';
    
    
    $securimage = new Securimage();
    
    
    mssql_connect($mssql_host,$mssql_user,$mssql_pass) or die("Cannot connect to SQL Server");
    mssql_select_db($mssql_db) or die("Cannot selected database.");
    
    
    if($_POST['submit'])
    {
        // Check User
        $chk_user = mssql_query("SELECT cAccId FROM Auth.TblAccount WHERE cAccId = '".cl($_POST['account'])."'");
        $chk = mssql_fetch_array($chk_user);
        if(trim($_POST['account']) == "" || $_POST['password'] == "" || $_POST['repass'] == "" || $_POST['captcha_code'] == "")
        {
            popup("Please fill all field.");
        }
        else if(trim($_POST['account']) == $chk['cAccId'])
        {
            popup("Account name is already used.");
        }
        else if($_POST['password'] != $_POST['repass'])
        {
            popup("Password is not match");
        }
        else if ($securimage->check($_POST['captcha_code']) == false)
        {
            popup("Security code wrong.");
        }
        else
        {
            $username = cl($_POST['account']);
            $password = cl($_POST['repass']);
            $auth = (int)1;
            $stmt = mssql_init('Admin.UspAddAccount');
            mssql_bind($stmt, '@pAccId', $username, SQLVARCHAR, false, false, 32);
            mssql_bind($stmt, '@pPassword', $password, SQLVARCHAR, false, false, 32);
            mssql_bind($stmt, '@pAuthLevel', $auth, SQLVARCHAR, false, false, 32);
            mssql_bind($stmt, '@pIpAddr', $ip, SQLVARCHAR, false, false, 32);
            mssql_execute($stmt) or die ("<strong>Error occurred while executing the statement.</strong>");
            mssql_free_statement($stmt);
            popup("Welcome ".$username.". Enjoy the game.");
        }
    }
    
    
    ?>
    <form name="register" method="post" action="">
      <table width="500" align="center">
        <tr>
          <td align="right">Account Name :</td>
          <td><label for="account"></label>
          <input type="text" name="account" id="account" autocomplete="off"></td>
        </tr>
        <tr>
          <td align="right">Password :</td>
          <td><label for="password"></label>
          <input type="password" name="password" id="password"></td>
        </tr>
        <tr>
          <td align="right">Re-Password :</td>
          <td><label for="repass"></label>
          <input type="password" name="repass" id="repass"></td>
        </tr>
        <tr>
          <td align="right" valign="top">Security :</td>
          <td><img src="/securimage/securimage_show.php" alt="CAPTCHA Image" width="148" height="49" id="captcha" /><br><input type="text" name="captcha_code" autocomplete="off" size="10" maxlength="6" />
    <a href="#" onclick="document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false">[ Different Image ]</a></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="submit" name="submit" id="submit" value="Register"></td>
        </tr>
      </table>
    </form>


    FULL : https://mega.nz/#!dNg0gBLB!C_Z9wVvkD..._LnexZk7_Di1NE

  5. #5
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    Quote Originally Posted by djbadboys38 View Post
    Thanks for share i have error... i am using xampp and i get error, i have already this extension;

    extension=php_sqlsrv_52_ts_vc6.dll
    extension=php_pdo_sqlsrv_52_ts_vc6.dll
    Make sure your XAMPP installation is using the thread-safe settings, otherwise you need the nts versions of those .dll files, not the ts. You can check this using the phpinfo() page. Also make sure you keep the .dll files in the correct folder in the XAMPP installation folder (xampp\php\ext), ;).

    In future, please make Help posts in the Help section, further Help posts in the wrong section will be deleted, :).

  6. #6
    Proficient Member Denciok is offline
    MemberRank
    Sep 2008 Join Date
    151Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    im new and how to install this webreg thnx btw im using xammp

  7. #7
    Proficient Member beaten_wings is offline
    MemberRank
    Aug 2009 Join Date
    159Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    DESING REGISTER WEBZEN


    Download here!
    https://www.sendspace.com/file/vebc1x

  8. #8
    Member maedagua is offline
    MemberRank
    Dec 2011 Join Date
    56Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    Quote Originally Posted by beaten_wings View Post
    DESING REGISTER WEBZEN


    Download here!
    https://www.sendspace.com/file/vebc1x
    congratulations.
    mssql not know much about, but I put in the field "$ip = $_SERVER['REMOTE_ADDR'];" ? What is it REMOTE_ADDR ?

  9. #9
    Proficient Member beaten_wings is offline
    MemberRank
    Aug 2009 Join Date
    159Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    Quote Originally Posted by maedagua View Post
    congratulations.
    mssql not know much about, but I put in the field "$ip = $_SERVER['REMOTE_ADDR'];" ? What is it REMOTE_ADDR ?
    this for add database a TABLE "pIpAddr"

  10. #10
    Proficient Member CrazyGuardian is offline
    MemberRank
    Oct 2015 Join Date
    C9 Waterford EULocation
    168Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    hey i vps use ...what wrong ?
    Fatal error: Call to undefined function mssql_connect() in C:\Program Files\VertrigoServ\www\index.php on line 24


  11. #11
    Proficient Member CrazyGuardian is offline
    MemberRank
    Oct 2015 Join Date
    C9 Waterford EULocation
    168Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    Quote Originally Posted by beaten_wings View Post
    DESING REGISTER WEBZEN


    Download here!
    https://www.sendspace.com/file/vebc1x
    please again update ?

  12. #12
    Proficient Member beaten_wings is offline
    MemberRank
    Aug 2009 Join Date
    159Posts

    Re: [RELEASE] Simple C9 register page, Translated to EN

    Quote Originally Posted by CrazyGuardian View Post
    please again update ?
    i work and other game now



Advertisement