gunz register page

Results 1 to 21 of 21
  1. #1
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    gunz register page

    hi can any 1 help me plz

    i wanna to make gunz register page

    and it so hard

    can any one tell me how to make gunz private server register page

    easy way!!


  2. #2
    Veni, Vidi, Vici Arcelor is offline
    MemberRank
    Jan 2010 Join Date
    Delhi, IndiaLocation
    1,763Posts

    Re: gunz register page

    1. Open up Notepad.
    2. Copy the following text to Notepad.

      PHP Code:
      <?php
      /*
      This script was written by Wizkid.
      All rights reserved. Any support can be requested via RageZone.

      You're allowed to edit this script and modify the template.
      However, you are NOT allowed to remove and/or edit my copyright.

      Removing this copyright will be your death.
      */

      //Edit to fit YOUR requirements.
      $servername "LegendGamers";
      $accounttable "Account";
      $logintable "Login";

      //Edit these variables. If not, no regpage for you. (Or you're fuxpro with the same logins as me.)
      $host "PETER-C31A91FEC\SQLEXPRESS";
      $user "SA";
      $pass "";
      $dbname "GunzDB";

      $connect odbc_connect("Driver={SQL Server};Server={$host}; Database={$dbname}"$user$pass) or die("Can't connect the MSSQL server.");

      //The well-known antisql injection. Bad enough, it's needed.
      function antisql($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;
      }

      //My favorite function. Get The Fuck Off. (Nothing personally :].)
      function gtfo($wut) {
      echo 
      "<center><table width='500' cellpadding='5' cellspacing='0' border='0' style='border: 1px ;'>
      <tr>
      <td align=center width='100%' style='border-bottom: 1px solid black;'><b>Error</b></td>
      </tr>
      <tr>
      <td width='100%'><center>
      $wut</center></td>
      </tr>
      </table>"
      ;
      die();
      }

      //Check email function. This to prevent fake emails. (Remember the time YOU doing that?)
      function checkemail($address) {
      list(
      $local$host) = explode("@"$address);
      $pattern_local "^([0-9a-z]*([-|_]?[0-9a-z]+)*)(([-|_]?)\.([-|_]?)[0-9a-z]*([-|_]?[0-9a-z]+)+)*([-|_]?)$";
      $pattern_host  "^([0-9a-z]+([-]?[0-9a-z]+)*)(([-]?)\.([-]?)[0-9a-z]*([-]?[0-9a-z]+)+)*\.[a-z]{2,4}$";
      $match_local eregi($pattern_local$local);
      $match_host eregi($pattern_host$host);
      if(
      $match_local && $match_host) {
      return 
      1;
      }
      else {
      return 
      0;
      }
      }

      //The num_rows() function for ODBC since the default one always returns -1.
      function num_rows(&$rid) {

      //We can try it at least, right?
      $numodbc_num_rows($rid);
      if (
      $num >= 0) {
      return 
      $num;
      }

      if (!
      odbc_fetch_row($rid1)) {
      odbc_fetch_row($rid0);
      return 
      0;
      }

      if (!
      odbc_fetch_row($rid2)) {
      odbc_fetch_row($rid0);
      return 
      1;
      }

      $lo2;
      $hi8192000;

      while (
      $lo < ($hi 1)) {
      $mid= (int)(($hi $lo) / 2);
      if (
      odbc_fetch_row($rid$mid)) {
      $lo$mid;
      } else {
      $hi$mid;
      }
      }
      $num$lo;
      odbc_fetch_row($rid0);
      return 
      $num;
      }
      ?>
      <html>
      <head>
      <title><?=$servername?> Registration</title>
      </head>
      <body>
      <center>
      <?php
      //Oh well. Let's create the variable $ip to start with.
      $ip antisql($_SERVER['REMOTE_ADDR']);

      /*
      An extra feature. This is NOT enabled before you remove this + the comment thingy's.

      To ban 1 IP it will be:
      if ($ip == "xxxxxx")
      {
      gtfo("Your IP is blacklisted.");
      }

      For multiple IP's, use this way:
      if ($ip == "xxxxxx" OR $ip == "xxxxxx")
      {
      gtfo("Your IP is blacklisted.");
      }
      */

      //Get the AID out of the Login table (defined at the top of this file) where LastIP is the visitors IP.
      $query1 odbc_exec($connect,"SELECT AID FROM $logintable WHERE LastIP = '$ip'");

      //Understable for the real people. Editing this without knowledge will be the death of your regpage.
      $i=1;
      while (
      odbc_fetch_row($query1$i)){
      $aid odbc_result($query1'AID');

      $query2 odbc_exec($connect,"SELECT UGradeID FROM $accounttable WHERE AID = '$aid'");
      odbc_fetch_row($query2);
      $ugradeid odbc_result($query21);

      if (
      $ugradeid == "253")
      {
      //Get the fuck off.
      gtfo("You have one or more accounts banned here. You're not welcome anymore.");
      }

      $i++;
      }

      //The doreg part.
      if (isset($_GET['act']) AND $_GET['act'] == "doreg")
      {

      //Check for any shit.
      if (!is_numeric($_POST['age']) OR !checkemail($_POST['email']) OR empty($_POST['username']) OR empty($_POST['password']) OR empty($_POST['email']) OR empty($_POST['name']) OR empty($_POST['age']))
      {
      gtfo("You're not funny.");
      }

      //Check if the username exists already.
      $query1 odbc_exec($connect"SELECT AID FROM $accounttable WHERE UserID = '" antisql($_POST['username']) . "'");
      $count1 num_rows($query1);

      if (
      $count1 >= 1)
      {
      gtfo("Username in use.");
      }

      //Check if the Email is in use.
      $query2 odbc_exec($connect"SELECT AID FROM $accounttable WHERE Email = '" antisql($_POST['email']) . "'");
      $count2 num_rows($query2);

      if (
      $count2 >= 1)
      {
      gtfo("Email address in use.");
      }

      //Regdate
      $regdate date("Y-m-d H:i:s");

      //Time for the real work. Editing this will be the end of your regpage.
      $query3 odbc_exec($connect"INSERT INTO $accounttable (UserID, UGradeID, PGradeID, RegDate, Email, Age, Name) VALUES ('".antisql($_POST['username'])."', '0', '0', '$regdate', '".antisql($_POST['email'])."', '".antisql($_POST['age'])."', '".antisql($_POST['name'])."')");

      $query4 odbc_exec($connect"SELECT AID FROM $accounttable WHERE UserID = '" antisql($_POST['username']) . "'");
      odbc_fetch_row($query4);
      $aid odbc_result($query41);

      //If no results comes back. (Registration failed.)
      if (!$aid)
      {
      gtfo("Shit happened. Please report this bug at our forums.");
      }

      odbc_exec($connect"INSERT INTO $logintable (UserID, AID, Password) VALUES ('".antisql($_POST['username'])."', '$aid', '".antisql($_POST['password'])."')");

      //When everything is done, show the username/password to the visitor.
      gtfo("Your account has been created.<br><br>
      Username: 
      $_POST[username]<br>
      Password: 
      $_POST[password]<br><br>
      Have fun at 
      $servername!");
      }

      //Here the party begins. Feel free to edit this.
      echo "<table width='350'>
      <form action='" 
      $_SERVER['PHP_SELF'] . "?act=doreg' method='POST'>
      <b>Register an account at 
      $servername.</b><br><br>
      <tr>
      <td width='50%'><b>Username:</b></td>
      <td width='50%'><input type='text' name='username'></td>
      </tr>
      <tr>
      <td width='50%'><b>Password:</b></td>
      <td width='50%'><input type='password' name='password'></td>
      </tr>
      <tr>
      <td width='50%'><b>E-mail:</b></td>
      <td width='50%'><input type='text' name='email'></td>
      </tr>
      <tr>
      <td width='50%'><b>Name:</b></td>
      <td width='50%'><input type='text' name='name'></td>
      </tr>
      <tr>
      <td width='50%'><b>Age:</b></td>
      <td width='50%'><input type='text' name='age'></td>
      </tr>
      <tr>
      <td width='50%'><b></b></td>
      <td width='50%'><input type='submit' value='Register'></td>
      </tr>
      </table>"
      ;
      ?>
      <br>
      <!-- No you don't remove it. -->
      <font size="1">Copyright 2008 Wizkid - <?=$servername?>.</font>
      <!-- See? -->
      </center>
      </body>
      </html>
    3. Now scroll up to the top of the text you just pasted.
    4. Replace whats needed.
      $servername = "Servername";
      $accounttable = "Account";
      $logintable = "Login";
      $host = "HOSTNAME";
      $user = "SA";
      $pass = "MSSQL LOGIN PASSWORD";
      $dbname = "GunzDB";

  3. #3
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    sad Re: gunz register page

    sorry i make note pade and write all that
    then i change all thing u said exept login and the account the account that i use in the game right?

    and can u tell me what i write in host name

    and when i do all that how can i go in the register page

    sorry for that it is my first time i make a game

    can u tell me how from the first too the last thing plz

    and if u can tell me how to make full site like www.euro-gunz.eu
    can?
    Last edited by dinasor; 19-02-10 at 04:48 PM.

  4. #4
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    k can any 1 help me in anthar thing sorry

    i make my gunz but when i give it to my friends thay doesn't see server

    help pleeeeeeeeeeeeeeeeese

  5. #5
    joe's **** stealhtfire is offline
    MemberRank
    Jul 2008 Join Date
    notwhereiwanttoLocation
    243Posts

    Re: gunz register page

    you need to be more specific .. there could be hundred of reasons

  6. #6
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    i only want my friend to see the server how?

    i can see the server but my friend no

    what the problem?

  7. #7
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    aaaaa


    are there any 1 make gunz private server and can help me????!!!

    pleeese i want 1 who make gunz to connect me i need help plz

  8. #8
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    i need only 1 think

    when i give the client to my friends thay doesn't see the server
    plz help

  9. #9
    joe's **** stealhtfire is offline
    MemberRank
    Jul 2008 Join Date
    notwhereiwanttoLocation
    243Posts

    Re: gunz register page

    might be your friends firewall

  10. #10
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: gunz register page

    Just post your server.ini >.>

  11. #11
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    here is my server.ini

    [DB]
    DNS="GunzDB"
    USERNAME="sa"
    PASSWORD="my password"

    [SERVER]
    MAXUSER=1337
    SERVERID=1
    SERVERNAME="MonsterGunz"
    FREELOGINIP="my ip"
    KEEPERIP="my ip"
    MONITORIP="127.0.0.1"
    MONITORPORT=9000
    MODE="test"
    COUNTRY="BRZ"
    LANGUAGE="BRZ"
    USETICKET="0"

    [LANGUAGE]
    LANG_TYPE="eng"

    [LOCALE]
    DBAgentPort=5100
    DBAgentIP=127.0.0.1

    [FILTER]
    USE="0"
    ACCEPT_INVALID_IP="1"

    [ENVIRONMENT]
    USE_HSHIELD="0"
    USE_XTRAP="0"
    USE_EVENT="0"
    USE_FILECRC="0"
    USE_MD5="0"

  12. #12
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    any information ?????!

    i do all thing to know how to fix no server in the other
    Computers
    plz help

  13. #13
    Account Upgraded | Title Enabled! CheckPoint is offline
    MemberRank
    Sep 2009 Join Date
    507Posts

    Re: gunz register page

    1. Why is FreeLoginIP set to your wan IP?It is supposed to be blank
    2. Make sure the ports on your router are open,if not,portforward them.
    3. Make sure the system.mrs is edited correctly.

    Hope I helped,Good luck.

  14. #14
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    my port is open
    and the freelogin ip i do it 127.0.0.1 or what ?

    and this my system.mrs
    <?xml version="1.0" encoding="UTF-8" ?>
    <XML>
    <XMLHEADER>version="1.0" encoding="UTF-8"</XMLHEADER>

    <SKIN>Default</SKIN>

    <DEFFONT>Arial</DEFFONT>

    <IME>true</IME>

    <BAREPORT>
    <ADDR>www.battlearena.com</ADDR>
    <DIR>incoming/gunz_global</DIR>
    </BAREPORT>

    <HOMEPAGE>
    <URL>http://www.gunzonline.com</URL>
    <TITLE>GunZ the Dual</TITLE>
    </HOMEPAGE>

    <EMBLEM_URL>http://localhost/emblems/</EMBLEM_URL>

    <TEMBLEM_URL>http://localhost/emblems/</TEMBLEM_URL>


    <LOCATORLIST>
    <LOCATOR id="1" IP="127.0.0.1" />
    <LOCATOR id="2" IP="127.0.0.1" />
    <LOCATOR id="3" IP="127.0.0.1" />
    </LOCATORLIST>

    <TLOCATORLIST>
    <LOCATOR id="1" IP="127.0.0.1" />
    <LOCATOR id="2" IP="127.0.0.1" />
    <LOCATOR id="3" IP="127.0.0.1" />
    </TLOCATORLIST>

    </XML>


    and when i change it to my ip
    it doesn't open for me or for my friends

    and the server.stuts
    i do
    127.0.0.1

    and when i do my ip the server cannot access for me and stell no server on my friends comp

    ---------- Post added at 07:47 PM ---------- Previous post was at 07:40 PM ----------

    my port is open
    and the freelogin ip i do it 127.0.0.1 or what ?

    and this my system.mrs
    <?xml version="1.0" encoding="UTF-8" ?>
    <XML>
    <XMLHEADER>version="1.0" encoding="UTF-8"</XMLHEADER>

    <SKIN>Default</SKIN>

    <DEFFONT>Arial</DEFFONT>

    <IME>true</IME>

    <BAREPORT>
    <ADDR>www.battlearena.com</ADDR>
    <DIR>incoming/gunz_global</DIR>
    </BAREPORT>

    <HOMEPAGE>
    <URL>http://www.gunzonline.com</URL>
    <TITLE>GunZ the Dual</TITLE>
    </HOMEPAGE>

    <EMBLEM_URL>http://localhost/emblems/</EMBLEM_URL>

    <TEMBLEM_URL>http://localhost/emblems/</TEMBLEM_URL>


    <LOCATORLIST>
    <LOCATOR id="1" IP="127.0.0.1" />
    <LOCATOR id="2" IP="127.0.0.1" />
    <LOCATOR id="3" IP="127.0.0.1" />
    </LOCATORLIST>

    <TLOCATORLIST>
    <LOCATOR id="1" IP="127.0.0.1" />
    <LOCATOR id="2" IP="127.0.0.1" />
    <LOCATOR id="3" IP="127.0.0.1" />
    </TLOCATORLIST>

    </XML>


    and when i change it to my ip
    it doesn't open for me or for my friends

    and the server.stuts
    i do
    127.0.0.1

    and when i do my ip the server cannot access for me and stell no server on my friends comp

  15. #15
    Account Upgraded | Title Enabled! CheckPoint is offline
    MemberRank
    Sep 2009 Join Date
    507Posts

    Re: gunz register page

    First dbo.serverstatus has to be your WAN ip,they should also be your WAN IP.Secondly,the FreeLoginIP should be fully blank.Both ports 6000 and 8900 should be open,go check them on http://canyouseeme.org . Also for you to connect,i'd suggest to change your system.xml to connect to your WAN IP too,not 127.0.0.1,just for a test
    Last edited by CheckPoint; 01-03-10 at 06:51 PM.

  16. #16
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    i go to
    http://canyouseeme.org/
    and write 80

    and it open

    and can u saw to me your server.ini

    and thx alot
    but u sure that it will work?
    Last edited by dinasor; 03-03-10 at 05:58 AM.

  17. #17
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    i need help so much plz

    only i have 2 problems

    first the apache of xampp when i press start it doesn't work i unstall it and download a new 1 and it stell doesn't work
    i need to fix it for the register page

    sacand and it is the important 1 i need help in it so much
    when i give the game to any 1 he can't see the server only my comp the server work on it
    why?
    my system.mrs:

    <?xml version="1.0" encoding="UTF-8" ?>
    <XML>
    <XMLHEADER>version="1.0" encoding="UTF-8"</XMLHEADER>

    <SKIN>Default</SKIN>

    <DEFFONT>Arial</DEFFONT>

    <IME>true</IME>

    <BAREPORT>
    <ADDR>www.battlearena.com</ADDR>
    <DIR>incoming/gunz_global</DIR>
    </BAREPORT>

    <HOMEPAGE>
    <URL>http://www.gunzonline.com</URL>
    <TITLE>GunZ the Dual</TITLE>
    </HOMEPAGE>

    <EMBLEM_URL>http://localhost/emblems/</EMBLEM_URL>

    <TEMBLEM_URL>http://localhost/emblems/</TEMBLEM_URL>


    <LOCATORLIST>
    <LOCATOR id="1" IP="127.0.0.1" />
    <LOCATOR id="2" IP="127.0.0.1" />
    <LOCATOR id="3" IP="127.0.0.1" />
    </LOCATORLIST>

    <TLOCATORLIST>
    <LOCATOR id="1" IP="127.0.0.1" />
    <LOCATOR id="2" IP="127.0.0.1" />
    <LOCATOR id="3" IP="127.0.0.1" />
    </TLOCATORLIST>

    </XML>

    my locator.ini:

    [DB]
    DNS="GunzDB"
    USERNAME="sa"
    PASSWORD="my pass"

    [NETWORK]
    IP="my ip"
    PORT="8900"
    [ENV]
    ID="1"
    LOCATOR_UID_HIGH="5"
    LOCATOR_UID_LOW="0"
    MAX_ELAPSED_UPDATE_SERVER_STATUS_TIME="1000"
    UDP_LIVE_TIME="10000000"
    MAX_FREE_RECV_COUNT_PER_LIVE_TIME="9"
    BLOCK_TIME="0"
    UPDATE_UDP_MANAGER_ELAPSED_TIME="3"
    MARGIN_OF_ERROR_MIN="500000"
    USE_COUNTRY_CODE_FILTER="no"
    GMT_DIFF="-3"
    ELAPSED_TIME_UPDATE_LOCATOR_LOG="3600000"
    ELAPSED_TIME_UPDATE_LOCATOR_LOG="10000"
    ELAPSED_TIME_UPDATE_COUNTRYCODEFILTER_LOG="10000"
    UPDATE_COUNTRY_CODE="66 89 69 77 73 83 65 78 68"
    TEST_SERVER="0"


    my server.ini:

    [DB]
    DNS="GunzDB"
    USERNAME="sa"
    PASSWORD="my pass"

    [SERVER]
    MAXUSER=1337
    SERVERID=1
    SERVERNAME="MonsterGunz"
    FREELOGINIP="my ip"
    KEEPERIP="my ip"
    MONITORIP="127.0.0.1"
    MONITORPORT=9000
    MODE="test"
    COUNTRY="BRZ"
    LANGUAGE="BRZ"
    USETICKET="0"

    [LANGUAGE]
    LANG_TYPE="eng"

    [LOCALE]
    DBAgentPort=5100
    DBAgentIP=127.0.0.1

    [FILTER]
    USE="0"
    ACCEPT_INVALID_IP="1"

    [ENVIRONMENT]
    USE_HSHIELD="0"
    USE_XTRAP="0"
    USE_EVENT="0"
    USE_FILECRC="0"
    USE_MD5="0"



    my agentconfig:

    <?xml version="1.0" encoding="euc-kr"?>
    <XML>
    <AGENTCONFIG>
    <NAME>Name this server</NAME>
    <MAXCLIENT>500</MAXCLIENT>
    <MATCHSERVERADDRESS ip="127.0.0.1" tcpport="6000"/>
    <ADDRESS ip="my ip" tcpport="7777" udpport="5100"/>
    </AGENTCONFIG>
    </XML>

    my server bdo.serverstuts:

    serverID----CurrPlayer---maxplayer--time-----ip---------port
    1------------1------------1337-----my date--127.0.0.1---6000
    servername--opened---type
    MonsterGunz---1-------4

    my bdo.LocatorStuts:the important thing!
    locatorid-------ip---------port
    1--------------my ip-------8900




    k thats all plz help
    and when i change the system.xml to my ip no server for me or my friends comp
    and when i change bdo.serverstuts to my ip cannot access server for me and stell no server on my friends comp

    pleeeeeeeeeeeese heeeeeeeeeeeeeeeeeeeeeeelp
    Last edited by dinasor; 04-03-10 at 03:59 PM.

  18. #18
    Member dinasor is offline
    MemberRank
    Feb 2010 Join Date
    63Posts

    Re: gunz register page

    any help?

  19. #19
    Member danere2010 is offline
    MemberRank
    Apr 2010 Join Date
    Portsmouth, UniLocation
    62Posts

    Re: gunz register page

    use log me in hamatchi not xampp trust me its a lot esyer all you need to do is hex edit gunz launcher wiv hamatchi ip also make sure all programs you use for your gunz like matchserver matchagent locater are all active so your friends can see network if that dont work exit all and open agien

  20. #20
    Be a kicker than cheater. cheaterastic is offline
    MemberRank
    Dec 2009 Join Date
    764Posts

    Re: gunz register page

    dinasor....

    Did you have an Xammp? or Apache?

    If you have....
    look at again what Arcelor post...

    Copy that PHP CODE....
    then go to NOTEPAD... paste it and save it to register.php

    if you are using Xammp, put the register.php to - xampplite\htdocs
    or if you are using Apache, put the register.php to - AppServ\php5


    I have try it and it work....
    Just study very well, and hard....

  21. #21
    Enthusiast kenvelo is offline
    MemberRank
    Mar 2009 Join Date
    39Posts

    Re: gunz register page

    Quote Originally Posted by dinasor View Post
    I.sorry i make note pade and write all that
    then i change all thing u said exept login and the account the account that i use in the game right?


    II.sorry for that it is my first time i make a game

    III. can u tell me how from the first too the last thing plz

    and if u can tell me how to make full site like www.euro-gunz.eu
    can?
    1. NOT YOUR LOGIN & PASS In-game. The "id" & pass of your Database.
    2. Atleast follow the tutorials. All things that u asked are in here , in this forum.
    3. Use search button.

    Good luck



Advertisement