[TUT.] Creating a Register PAGE (WORK 100%)

Page 1 of 6 123456 LastLast
Results 1 to 25 of 140
  1. #1
    Member lwirkk is offline
    MemberRank
    Jan 2007 Join Date
    60Posts

    [TUT.] Creating a Register PAGE (WORK 100%)

    Originaly posted until the 11 in TOPPIC:
    http://forum.ragezone.com/gunz-onlin...rs-206502.html
    ...............................
    Q.
    2.2 How to make a register website?
    A.
    <version 2.1, credits to: Kentucky & snaity>
    1) Download wamp. (wamp allows to run a website on your computer. a = apache)


    Code:
    http://optusnet.dl.sourceforge.net/s...amp5_1.6.6.exe
    2) Install it.
    Click:
    Next >
    I Accept -> Next >
    Install to "c:\wamp"
    Next >
    Next >
    Next >
    Install

    3) It will now Install, click ok with each popup that comes up.

    4) Click Launch WAMP now, then click OK.

    5) Go to:


    Code:
    C:\wamp\php\php.ini
    6) Find the line ";extension=php_mssql.dll" and remove the ;

    7) Click the WAMP icon then click "Put Online"

    8) Go to c:\wamp\www and delete everything in there.

    9) Right Click -> New -> File -> index.php

    10) Right Click index.php -> Open With -> Notepad
    11) Copy In: ( read // in the CODE)

    [php]

    <html>
    <head>
    <title>GunZ User Account Register</title>
    <style>
    body {
    color: #003300;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    input {
    border: 1px solid #003300;
    color: #003300;
    background: #DDDDDD;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    tr {
    font-size: 10pt;
    }
    a:link {
    text-decoration: none;
    color: #003300;
    }
    a:visited {
    text-decoration: none;
    color: #003300;
    }
    a:active {
    text-decoration: none;
    color: #003300;
    }
    a:hover {
    text-decoration: none;
    color: #FF6600;
    }
    </style>
    </head>
    <body>
    <div align="center">
    <?php
    $srvip = "YOUR_IP"; // YOUR IP here ----- Seu IP aqui
    $srvport = "6000"; // PORT, default is 6000 ---- Porta, padr
    Last edited by lwirkk; 05-06-07 at 09:00 AM. Reason: Have error?


  2. #2
    Account Upgraded | Title Enabled! Ulti is offline
    MemberRank
    Oct 2005 Join Date
    Ze NetherlandsLocation
    495Posts
    let's try this.
    I'll edit this with the result

    EDIT:

    Can't try it without a php.ini xD
    Last edited by Ulti; 07-01-07 at 01:03 AM.

  3. #3
    Account Upgraded | Title Enabled! bepetemish is offline
    MemberRank
    Nov 2006 Join Date
    The NetherlandsLocation
    384Posts
    Great job lwirkk,
    I will edit the "register page tutorial" in the questions & awnsers post. Offcourse credits will be given to you for this excelent job.

    grtz,

    Bepetemish


    ps. I wait with editing until Ulti posted the results.

  4. #4
    Member lwirkk is offline
    MemberRank
    Jan 2007 Join Date
    60Posts
    Thanx to all^^...

    any doubt, pole that I will make the maximum to help. ^^

  5. #5
    Account Upgraded | Title Enabled! Ulti is offline
    MemberRank
    Oct 2005 Join Date
    Ze NetherlandsLocation
    495Posts
    I have lost my php.ini and now i need a new one.
    My own one is fucked up so can anyone upload a fresh/working one?

  6. #6
    Member lwirkk is offline
    MemberRank
    Jan 2007 Join Date
    60Posts
    Quote Originally Posted by Ulti View Post
    I have lost my php.ini and now i need a new one.
    My own one is fucked up so can anyone upload a fresh/working one?
    http://www.host.uniextreme.com/etc/gunz/php.ini

  7. #7
    RageZ Hell kekku500 is offline
    MemberRank
    Nov 2006 Join Date
    EstoniaLocation
    672Posts
    i did all what in tut but
    Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\index.php on line 47

    what i msut do?


    this is line 47

    $conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
    Last edited by kekku500; 07-01-07 at 01:46 AM.

  8. #8
    Proficient Member Gunner54 is offline
    MemberRank
    Aug 2006 Join Date
    183Posts
    enable msql in php.ini

  9. #9
    Account Upgraded | Title Enabled! buddy1986 is offline
    MemberRank
    Aug 2006 Join Date
    germanyLocation
    361Posts
    i have enable it and i have the same error

  10. #10
    RageZ Hell kekku500 is offline
    MemberRank
    Nov 2006 Join Date
    EstoniaLocation
    672Posts
    same i enable but same error!!!
    maybe i msut restart something???

  11. #11
    Member DexlanM is offline
    MemberRank
    Aug 2006 Join Date
    99Posts
    yeah i get that error too

  12. #12
    Member lwirkk is offline
    MemberRank
    Jan 2007 Join Date
    60Posts
    Quote Originally Posted by kekku500 View Post
    i did all what in tut but
    Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\index.php on line 47

    what i msut do?


    this is line 47
    put your PHP file (register) here.... thanx. ^^ .

  13. #13
    Member DexlanM is offline
    MemberRank
    Aug 2006 Join Date
    99Posts
    ok i will my code is
    <html>
    <head>
    <title>GunZ User Account Register</title>
    <style>
    body {
    color: #003300;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    input {
    border: 1px solid #003300;
    color: #003300;
    background: #DDDDDD;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    tr {
    font-size: 10pt;
    }
    a:link {
    text-decoration: none;
    color: #003300;
    }
    a:visited {
    text-decoration: none;
    color: #003300;
    }
    a:active {
    text-decoration: none;
    color: #003300;
    }
    a:hover {
    text-decoration: none;
    color: #FF6600;
    }
    </style>
    </head>
    <body>
    <div align="center">
    <?php
    $srvip = "dothex.no-ip.org"; // YOUR IP here ----- Seu IP aqui
    $srvport = "6000"; // PORT, default is 6000 ---- Porta, padr&#227;o &#233; 6000
    $mssql_user = "sa"; // LEAVE BLANK if in SQL SERVER is WINDOWS AUTHENTICATION --- se em AUTHENTICATHION no SQL SERVER &#233; WINDOWS AUTHENTICATION
    $mssql_pass = "*******"; // LEAVE BLANK if in SQL SERVER is WINDOWS AUTHENTICATION --- se em AUTHENTICATHION no SQL SERVER &#233; WINDOWS AUTHENTICATION
    $mssql_database = "GunzDB"; // DATABASE of GUNZ you have created, deafult is GunzDB ---- Banco de Dados do Gunz que voc&#234; criou anteriormente, o padr&#227;o &#233; GunzDB
    $mssql_host = "DECLAN\SQLEXPRESS"; // Host MSSQL in SQL SERVER, or SERVER NAME in SQL SERVER ---- Nome do HOST MSSQL no SQL SERVER, ou o Nome do SERVER no SQL SERVER
    $conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
    mssql_select_db($mssql_database);
    ?>
    <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>?act=register">
    <table cellspacing=0 border=0>
    <tr>
    <td colspan=2 style="border: 1px solid #003300; background: #DDDDDD;"><CENTER><A HREF="#">Gunz - Games Extreme Servers</A></CENTER></td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Login:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="login"&nbsp;></td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Senha:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha1">&nbsp;</td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Repetir Senha:&nbsp;</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha2">&nbsp;</td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Email:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="email">&nbsp;</td>
    </tr>
    <tr>
    <td style="border: 1px solid #003300; border-top: 0px;" colspan=2><CENTER><INPUT NAME="Cadastrar" VALUE="Cadastrar" TYPE="submit"></CENTER></td>
    </tr>
    </table>
    </FORM>
    <?php
    if ($_GET['act'] == 'register')
    {
    $user = anti_injection($_POST['login']);
    $pass1 = anti_injection($_POST['senha1']);
    $pass2 = anti_injection($_POST['senha2']);
    $email = anti_injection($_POST['email']);
    if (valida(Array($user,$pass1,$pass2,$email)) == true)
    {
    if ($pass1 == $pass2)
    {
    if (ereg("([0-9,a-z,A-Z])", $user))
    {
    if (ereg("^([0-9,a-z,A-Z]+)([.,_]([0-9,a-z,A-Z]+))*[@]([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z]+))*[.]([0-9,a-z,A-Z]){2}([0-9,a-z,A-Z])?$", $email))
    {
    $query = mssql_query("SELECT * FROM Accounts WHERE UserID='$user'");
    $num_rows = mssql_num_rows($query);
    if ($num_rows == 0)
    {
    $query = mssql_query("SELECT * FROM Accounts WHERE E_Mail='$email'");
    $num_rows = mssql_num_rows($query);
    if ($num_rows == 0)
    {
    $query = mssql_query("INSERT INTO Accounts (UserID, Password, E_Mail) VALUES ('$user','$pass1','$email')");
    if (!$query)
    {
    echo ":: Erro, tente novamente mais tarde ::<br>";
    }
    else
    {
    echo ":: Conta Registrada com Sucesso ::<br>";
    }
    }
    else
    {
    echo ":: Email em uso ::<br>";
    }
    }
    else
    {
    echo ":: Usuario em uso ::<br>";
    }
    }
    else
    {
    echo ":: Email Inv&#225;lido ::<br>";
    }
    }
    else
    {
    echo ":: Use somente letras e n&#250;meros no LOGIN ::<br>";
    }
    }
    else
    {
    echo ":: Senhas est&#227;o diferenciadas ::<br>";
    }
    }
    }
    $query = mssql_query("SELECT * FROM Accounts");
    $num_rows = mssql_num_rows($query);
    echo "Total Accounts: ".$num_rows."<br>";
    echo "<br><B>Status do Servidor:</B> ";
    $fp = @fsockopen($srvip, $srvport, $errno, $errstr, 1);
    if (!$fp) {
    echo "<font style='color: #FF3300'><B>Offline</B></font></br>";
    } else {
    echo "<font style='color: #009933'><B>Online</B></font></br>";
    fclose($fp);
    }
    // Fun&#231;&#227;o Anti Injection
    function anti_injection($sql)
    {
    $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
    $sql = trim($sql);
    $sql = strip_tags($sql);
    $sql = addslashes($sql);
    return $sql;
    }
    // Verificar Campos Vazios
    function valida($campos){
    foreach($campos as $c){
    if(empty($c)){
    echo ":: Preencha todos os campos ::<br>";
    return false;
    }else{
    return true;
    }
    }
    }
    ?>
    </div>
    </body>
    </html>

  14. #14
    Member DexlanM is offline
    MemberRank
    Aug 2006 Join Date
    99Posts
    sorry double post

  15. #15
    Account Upgraded | Title Enabled! buddy1986 is offline
    MemberRank
    Aug 2006 Join Date
    germanyLocation
    361Posts
    i have it put into my www folder look here
    GunZ User Account Register

  16. #16
    RageZ Hell kekku500 is offline
    MemberRank
    Nov 2006 Join Date
    EstoniaLocation
    672Posts
    lwirkk what you mean with

    put your PHP file (register) here.... thanx. ^^ .

  17. #17
    Member DexlanM is offline
    MemberRank
    Aug 2006 Join Date
    99Posts
    ok i posted once and i need you to check mine kk btw... i dont know how to make the quote scrolly
    <html>
    <head>
    <title>GunZ User Account Register</title>
    <style>
    body {
    color: #003300;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    input {
    border: 1px solid #003300;
    color: #003300;
    background: #DDDDDD;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    tr {
    font-size: 10pt;
    }
    a:link {
    text-decoration: none;
    color: #003300;
    }
    a:visited {
    text-decoration: none;
    color: #003300;
    }
    a:active {
    text-decoration: none;
    color: #003300;
    }
    a:hover {
    text-decoration: none;
    color: #FF6600;
    }
    </style>
    </head>
    <body>
    <div align="center">
    <?php
    $srvip = "dothex.no-ip.org"; // YOUR IP here ----- Seu IP aqui
    $srvport = "6000"; // PORT, default is 6000 ---- Porta, padr&#227;o &#233; 6000
    $mssql_user = "sa"; // LEAVE BLANK if in SQL SERVER is WINDOWS AUTHENTICATION --- se em AUTHENTICATHION no SQL SERVER &#233; WINDOWS AUTHENTICATION
    $mssql_pass = "*******"; // LEAVE BLANK if in SQL SERVER is WINDOWS AUTHENTICATION --- se em AUTHENTICATHION no SQL SERVER &#233; WINDOWS AUTHENTICATION
    $mssql_database = "GunzDB"; // DATABASE of GUNZ you have created, deafult is GunzDB ---- Banco de Dados do Gunz que voc&#234; criou anteriormente, o padr&#227;o &#233; GunzDB
    $mssql_host = "DECLAN\SQLEXPRESS"; // Host MSSQL in SQL SERVER, or SERVER NAME in SQL SERVER ---- Nome do HOST MSSQL no SQL SERVER, ou o Nome do SERVER no SQL SERVER
    $conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
    mssql_select_db($mssql_database);
    ?>
    <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>?act=register">
    <table cellspacing=0 border=0>
    <tr>
    <td colspan=2 style="border: 1px solid #003300; background: #DDDDDD;"><CENTER><A HREF="#">Gunz - Games Extreme Servers</A></CENTER></td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Login:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="login"&nbsp;></td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Senha:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha1">&nbsp;</td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Repetir Senha:&nbsp;</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha2">&nbsp;</td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Email:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="email">&nbsp;</td>
    </tr>
    <tr>
    <td style="border: 1px solid #003300; border-top: 0px;" colspan=2><CENTER><INPUT NAME="Cadastrar" VALUE="Cadastrar" TYPE="submit"></CENTER></td>
    </tr>
    </table>
    </FORM>
    <?php
    if ($_GET['act'] == 'register')
    {
    $user = anti_injection($_POST['login']);
    $pass1 = anti_injection($_POST['senha1']);
    $pass2 = anti_injection($_POST['senha2']);
    $email = anti_injection($_POST['email']);
    if (valida(Array($user,$pass1,$pass2,$email)) == true)
    {
    if ($pass1 == $pass2)
    {
    if (ereg("([0-9,a-z,A-Z])", $user))
    {
    if (ereg("^([0-9,a-z,A-Z]+)([.,_]([0-9,a-z,A-Z]+))*[@]([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z]+))*[.]([0-9,a-z,A-Z]){2}([0-9,a-z,A-Z])?$", $email))
    {
    $query = mssql_query("SELECT * FROM Accounts WHERE UserID='$user'");
    $num_rows = mssql_num_rows($query);
    if ($num_rows == 0)
    {
    $query = mssql_query("SELECT * FROM Accounts WHERE E_Mail='$email'");
    $num_rows = mssql_num_rows($query);
    if ($num_rows == 0)
    {
    $query = mssql_query("INSERT INTO Accounts (UserID, Password, E_Mail) VALUES ('$user','$pass1','$email')");
    if (!$query)
    {
    echo ":: Erro, tente novamente mais tarde ::<br>";
    }
    else
    {
    echo ":: Conta Registrada com Sucesso ::<br>";
    }
    }
    else
    {
    echo ":: Email em uso ::<br>";
    }
    }
    else
    {
    echo ":: Usuario em uso ::<br>";
    }
    }
    else
    {
    echo ":: Email Inv&#225;lido ::<br>";
    }
    }
    else
    {
    echo ":: Use somente letras e n&#250;meros no LOGIN ::<br>";
    }
    }
    else
    {
    echo ":: Senhas est&#227;o diferenciadas ::<br>";
    }
    }
    }
    $query = mssql_query("SELECT * FROM Accounts");
    $num_rows = mssql_num_rows($query);
    echo "Total Accounts: ".$num_rows."<br>";
    echo "<br><B>Status do Servidor:</B> ";
    $fp = @fsockopen($srvip, $srvport, $errno, $errstr, 1);
    if (!$fp) {
    echo "<font style='color: #FF3300'><B>Offline</B></font></br>";
    } else {
    echo "<font style='color: #009933'><B>Online</B></font></br>";
    fclose($fp);
    }
    // Fun&#231;&#227;o Anti Injection
    function anti_injection($sql)
    {
    $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
    $sql = trim($sql);
    $sql = strip_tags($sql);
    $sql = addslashes($sql);
    return $sql;
    }
    // Verificar Campos Vazios
    function valida($campos){
    foreach($campos as $c){
    if(empty($c)){
    echo ":: Preencha todos os campos ::<br>";
    return false;
    }else{
    return true;
    }
    }
    }
    ?>
    </div>
    </body>
    </html>

  18. #18
    RageZ Hell kekku500 is offline
    MemberRank
    Nov 2006 Join Date
    EstoniaLocation
    672Posts
    my code is
    <html>
    <head>
    <title>EstoniaGunZ Register</title>
    <style>
    body {
    color: #003300;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    input {
    border: 1px solid #003300;
    color: #003300;
    background: #DDDDDD;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    tr {
    font-size: 10pt;
    }
    a:link {
    text-decoration: none;
    color: #003300;
    }
    a:visited {
    text-decoration: none;
    color: #003300;
    }
    a:active {
    text-decoration: none;
    color: #003300;
    }
    a:hover {
    text-decoration: none;
    color: #FF6600;
    }
    </style>
    </head>
    <body>
    <div align="center">
    <?php
    $srvip = "5.97.45.105"; // YOUR IP here ----- Seu IP aqui
    $srvport = "6000"; // PORT, default is 6000 ---- Porta, padr?o &#233; 6000
    $mssql_user = ""; // LEAVE BLANK if in SQL SERVER is WINDOWS AUTHENTICATION --- se em AUTHENTICATHION no SQL SERVER &#233; WINDOWS AUTHENTICATION
    $mssql_pass = ""; // LEAVE BLANK if in SQL SERVER is WINDOWS AUTHENTICATION --- se em AUTHENTICATHION no SQL SERVER &#233; WINDOWS AUTHENTICATION
    $mssql_database = "GunzDB"; // DATABASE of GUNZ you have created, deafult is GunzDB ---- Banco de Dados do Gunz que voc? criou anteriormente, o padr?o &#233; GunzDB
    $mssql_host = "ARVUTI\SQLEXPRESS"; // Host MSSQL in SQL SERVER, or SERVER NAME in SQL SERVER ---- Nome do HOST MSSQL no SQL SERVER, ou o Nome do SERVER no SQL SERVER
    $conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
    mssql_select_db($mssql_database);
    ?>
    <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>?act=register">
    <table cellspacing=0 border=0>
    <tr>
    <td colspan=2 style="border: 1px solid #003300; background: #DDDDDD;"><CENTER><A HREF="#">Gunz - Games Extreme Servers</A></CENTER></td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Login:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="login"&nbsp;></td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Senha:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha1">&nbsp;</td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Repetir Senha:&nbsp;</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha2">&nbsp;</td>
    </tr>
    <tr>
    <td style="border-left: 1px solid #003300">&nbsp;Email:</td>
    <td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="email">&nbsp;</td>
    </tr>
    <tr>
    <td style="border: 1px solid #003300; border-top: 0px;" colspan=2><CENTER><INPUT NAME="Cadastrar" VALUE="Cadastrar" TYPE="submit"></CENTER></td>
    </tr>
    </table>
    </FORM>
    <?php
    if ($_GET['act'] == 'register')
    {
    $user = anti_injection($_POST['login']);
    $pass1 = anti_injection($_POST['senha1']);
    $pass2 = anti_injection($_POST['senha2']);
    $email = anti_injection($_POST['email']);
    if (valida(Array($user,$pass1,$pass2,$email)) == true)
    {
    if ($pass1 == $pass2)
    {
    if (ereg("([0-9,a-z,A-Z])", $user))
    {
    if (ereg("^([0-9,a-z,A-Z]+)([.,_]([0-9,a-z,A-Z]+))*[@]([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z]+))*[.]([0-9,a-z,A-Z]){2}([0-9,a-z,A-Z])?$", $email))
    {
    $query = mssql_query("SELECT * FROM Accounts WHERE UserID='$user'");
    $num_rows = mssql_num_rows($query);
    if ($num_rows == 0)
    {
    $query = mssql_query("SELECT * FROM Accounts WHERE E_Mail='$email'");
    $num_rows = mssql_num_rows($query);
    if ($num_rows == 0)
    {
    $query = mssql_query("INSERT INTO Accounts (UserID, Password, E_Mail) VALUES ('$user','$pass1','$email')");
    if (!$query)
    {
    echo ":: Erro, tente novamente mais tarde ::<br>";
    }
    else
    {
    echo ":: Conta Registrada com Sucesso ::<br>";
    }
    }
    else
    {
    echo ":: Email em uso ::<br>";
    }
    }
    else
    {
    echo ":: Usuario em uso ::<br>";
    }
    }
    else
    {
    echo ":: Email Inv?lido ::<br>";
    }
    }
    else
    {
    echo ":: Use somente letras e n?meros no LOGIN ::<br>";
    }
    }
    else
    {
    echo ":: Senhas est?o diferenciadas ::<br>";
    }
    }
    }
    $query = mssql_query("SELECT * FROM Accounts");
    $num_rows = mssql_num_rows($query);
    echo "Total Accounts: ".$num_rows."<br>";
    echo "<br><B>Status do Servidor:</B> ";
    $fp = @fsockopen($srvip, $srvport, $errno, $errstr, 1);
    if (!$fp) {
    echo "<font style='color: #FF3300'><B>Offline</B></font></br>";
    } else {
    echo "<font style='color: #009933'><B>Online</B></font></br>";
    fclose($fp);
    }
    // Fun??o Anti Injection
    function anti_injection($sql)
    {
    $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
    $sql = trim($sql);
    $sql = strip_tags($sql);
    $sql = addslashes($sql);
    return $sql;
    }
    // Verificar Campos Vazios
    function valida($campos){
    foreach($campos as $c){
    if(empty($c)){
    echo ":: Preencha todos os campos ::<br>";
    return false;
    }else{
    return true;
    }
    }
    }
    ?>
    </div>
    </body>
    </html>

  19. #19
    Account Upgraded | Title Enabled! buddy1986 is offline
    MemberRank
    Aug 2006 Join Date
    germanyLocation
    361Posts
    here this my file

    [QUOTE]<html>
    <head>
    <title>GunZ User Account Register</title>
    <style>
    body {
    color: #003300;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    input {
    border: 1px solid #003300;
    color: #003300;
    background: #DDDDDD;
    font-family: Verdana, Arial, Serif;
    font-size: 10pt;
    }
    tr {
    font-size: 10pt;
    }
    a:link {
    text-decoration: none;
    color: #003300;
    }
    a:visited {
    text-decoration: none;
    color: #003300;
    }
    a:active {
    text-decoration: none;
    color: #003300;
    }
    a:hover {
    text-decoration: none;
    color: #FF6600;
    }
    </style>
    </head>
    <body>
    <div align="center">
    <?php
    $srvip = "banana-ro.de"; // YOUR IP here ----- Seu IP aqui
    $srvport = "6000"; // PORT, default is 6000 ---- Porta, padr

  20. #20
    Member DexlanM is offline
    MemberRank
    Aug 2006 Join Date
    99Posts
    BUMP guy who made this or any1 we need help

  21. #21
    Member lwirkk is offline
    MemberRank
    Jan 2007 Join Date
    60Posts
    DexLAN:
    If you connect with the SQLEXPRESS with WINDOWS AUTHENTICATION, leave the MSSQL user and pass BLANk....

    BUDDy:
    The same message from Dex....

    Kekku:
    Complicated the your situation, is all correct.... i think.

    PS.: REMEBER: USE THIS SCRIPT only the same PC hosted the SQLEXPRESS DATABASES...... or ERROR CONNECTION with MSSQL.

  22. #22
    Member DexlanM is offline
    MemberRank
    Aug 2006 Join Date
    99Posts
    dude i have a sql auth put in there not windows auth so what do i do

  23. #23
    Member DexlanM is offline
    MemberRank
    Aug 2006 Join Date
    99Posts
    and i still get error if i try with windows auth

  24. #24
    Account Upgraded | Title Enabled! buddy1986 is offline
    MemberRank
    Aug 2006 Join Date
    germanyLocation
    361Posts
    Quote Originally Posted by DexlanM View Post
    dude i have a sql auth put in there not windows auth so what do i do

    I have the same too no windows auth

    i have sql auth

  25. #25
    Member lwirkk is offline
    MemberRank
    Jan 2007 Join Date
    60Posts
    Quote Originally Posted by DexlanM View Post
    dude i have a sql auth put in there not windows auth so what do i do
    I am starting to find that the problem is in HOST SQL, mine I placed someente a name, without bars (RAFFAEL) and the ones that I am seeing have the bar and exactly they are not giving certain, what it was to have given certain.



Page 1 of 6 123456 LastLast

Advertisement