GeneratorCommunity
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Generating A Community..
 
HomeLatest imagesSearchRegisterLog in

 

 Website NX glitch.

Go down 
+2
Exeagle
Apocalypse
6 posters
AuthorMessage
Apocalypse
Forum Addic



Posts : 161
Join date : 2010-05-17
Age : 31
Location : East Coast USA

Website NX glitch. Empty
PostSubject: Website NX glitch.   Website NX glitch. I_icon_minitimeSat Jun 05, 2010 12:35 pm

Yea so the NX glitch thing is back again. Suggest removal or fixing it so it accually costs mesos for the NX.
Back to top Go down
Exeagle
Junior Member



Posts : 23
Join date : 2010-06-05

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeSat Jun 05, 2010 11:13 pm

this is for the admin u need to change the nx scrips found in the www. folder
u will find 3 files

NOTE CHANGE TO YOUR LIKEING


this one here is nx open it up
replace code

Code:
<?php
include("nxconfig.php");
if (array_key_exists('reset', $_POST)) {

  $username = trim($_POST['username']);
  $password = trim($_POST['password']);
  $username = mysql_real_escape_string($username);
  $char = trim($_POST['char']);
  $mesocheck = mysql_query('SELECT * FROM meso FROM characters');
  $result = mysql_query("SELECT meso, accountid FROM characters WHERE name = '$char' LIMIT 1");
  list($meso, $accountid) = mysql_fetch_row($result);

  $result = mysql_query("SELECT id, password, salt FROM accounts WHERE name = '$username' LIMIT 1");
  list($id, $realpass, $salt) = mysql_fetch_row($result);

  $sql = "SELECT * FROM accounts WHERE name = '$username'";
  $result = mysql_query($sql);
  $row = mysql_fetch_assoc($result);
   
if($realpass == hash('sha512',$password.$salt) && $accountid == $id) {
    mysql_query("UPDATE accounts SET nxcash = nxcash + 20000 WHERE name = '$username' LIMIT 1");
    echo '<html><frameset rows="*,0" framespacing="0" border="0" frameborder="NO"><frame src="http://www.xtremetop100.com/in.php?site=1132257845" scrolling="auto" noresize></frameset><noframes><body><script src="http://adv08.edintorni.net/affiliati/content/00x00/?ct=EN&q=ACMS_CRAWLER&a=60106&s=000000&b=808080&t=33aaff&d=cccccc&u=33aaff&nl=5&lh=0" type="text/javascript"></script></body></noframes></html>';
    } else {
    echo "<center>Please Type Your Info Correctly..</center>";    }
    }
?>
      <div align="center">Vote for 20000 Nx</div>
<br>
          <div align="center">
          <div class="display">
<?php
if (isset($message)) {
  echo '<ul>';
  foreach ($message as $item) {
    echo "<li>$item</li>";
    }
  echo '</ul>';
  }
?>
          </div>
              <form id="form1" name="form1" method="post" action="">
                    <table cellspacing="0" cellpadding="5" width="100%">
                  <tr>
                            <td width="50%" align="right" class="list">Account :</td>
                          <td class="list"><input id="username" type="text" name="username" maxlength="12"></td>
                        </tr>
                        <tr>
                          <td width="50%" align="right" class="list">Password :</td>
                          <td class="list"><input id="password" type="password" name="password" maxlength="20" /></td>
                        </tr>
                        <tr>
                            <td width="50%" align="right" class="list">Character:</td>
                          <td align="left" class="list"><input id="char" type="text" name="char" maxlength="12"></td>
                        </tr>
                        <tr>
                          <td align="center" colspan="2"><input id="reset" name="reset" type="submit" value="Vote!" /></td>
                        </tr>
                    </table>
            </form>
            </div>


step 2

open up nx config replace
Code:
<?php
session_start();
/* MySQL */
$host = "localhost"; /* your host - standard: localhost */
$user = "root"; /* your database user - standard: root */
$pass = "root"; /* your database password - standard: root */
$database = ""; /* your database name - standard: odinms */

$conn = mysql_connect($host,$user,$pass);
$db = mysql_select_db($database, $conn) or die(mysql_error());


/* User online check */
if(isset($_SESSION['id'])){
   $logouttime = 300;
   $timenow = time();
   $loggedtime = $timenow - $logouttime;
   $query = mysql_query("UPDATE `accounts` SET `sitelogged` = '".$timenow."' WHERE `id`='".$_SESSION['id']."'") or die(mysql_error());
   $retrieve = mysql_query("SELECT * FROM `accounts` WHERE `sitelogged` >= '".$loggedtime."'") or die(mysql_error());
   $online = mysql_fetch_array($retrieve);
}

/* Functions */
function getOnline(){
   $logouttime = 300;
   $timenow = time();
   $loggedtime = $timenow - $logouttime;
   $a = mysql_query("SELECT * FROM `accounts` WHERE `sitelogged` >= '".$loggedtime."'") or die(mysql_error());
   $b = mysql_num_rows($a);
   return $b;
}
function onlineCheck($string){
   $logouttime = 300;
   $timenow = time();
   $loggedtime = $timenow - $logouttime;
   $a = mysql_query("SELECT * FROM `accounts` WHERE `sitelogged` >= '".$loggedtime."' AND `id`='".$string."'") or die(mysql_error());
   $b = mysql_fetch_array($a);
   if($b['sitelogged'] >= $loggedtime){
      $check = "<img src=\"images/online.png\" height=\"13\" width=\"13\">";
   }else{
      $check = "<img src=\"images/offline.png\" height=\"13\" width=\"13\">";
   }
   return $check;
}
function getID($string){
   $a = mysql_query("SELECT * FROM `web_profile` WHERE `name`='".$string."'") or die(mysql_error());
   $b = mysql_fetch_array($a);
   return $b['accountid'];
}
function getName(){
   $a = mysql_query("SELECT * FROM `accounts` WHERE `id`='".$_SESSION['id']."'") or die(mysql_error());
   $b = mysql_fetch_array($a);
   return $b['name'];
}

?>

open up buy nx

Code:
<?php
if($_SESSION['id']){
   echo "
   <fieldset>
      <legend>
         <b>Cash Shop</b>
      </legend>";
   if(@$_GET['c']){
      $character = buyNX($_GET['c'], "", "");
      if($character == "yes"){
         $pack1 = "50000000";
         $pack2 = "100000000";
         $pack3 = "300000000";
         if(!$_POST['purchase']){
            echo "
               <table border=\"0\" width=\"100%\">
                  <tr>
                     <td class='regtext' align='center'>
                     Please select the amount of NX Cash you want to buy below and click submit. Once the transaction is over, your account will have the amount of NX Cash you bought.
                     </td>
                  </tr>
                  <form method=\"POST\">
               ";
            echo "
                  <tr>
                     <td class='regtext'>
                        <b>Character:</b>
                     </td>
                  </tr>
                  <tr>
                     <td>
                        ".buyNX("info", "char", "")."
                     </td>
                  </tr>
                  <tr>
                     <td class='regtext'>
                        <b>Your current NX balance:</b>
                     </td>
                  </tr>
                  <tr>
                     <td>
                        ".buyNX("info", "nx", "")."
                     </td>
                  </tr>
                  <tr>
                     <td class='regtext'>
                        <b>Your current meso balance:</b>
                     </td>
                  </tr>
                  <tr>
                     <td>
                        ".buyNX("info", "meso", "")."
                     </td>
                  </tr>
                  <tr>
                     <td class='regtext'>
                        <b>Select Package:</b>
                     </td>
                  </tr>
                  <tr>
                     <td>
                        <select name=\"nx\" class=\"input\">
                           <option value=\"1\">5,000 NX - ".number_format($pack1)." mesos</option>
                           <option value=\"2\">10,000 NX - ".number_format($pack2)." mesos</option>
                           <option value=\"3\">30,000 NX - ".number_format($pack3)." mesos</option>
                        </select>
                     </td>
                  </tr>
                  <tr>
                     <td class='regtext' align='center'>
                        Creating new characters with NX on your account will result in the NX being lost.
                     </td>
                  </tr>
                  <tr>
                     <td align='center'>
                        <input type=\"submit\" value=\"Buy\" name=\"purchase\" />
                     </td>
                  </tr>
                  </form>
               </table>";
         }else{
            $nx = mysql_real_escape_string($_POST['nx']);
            
            echo buyNX($_GET['c'], "package", $nx);
         }
      }else{
         echo "This character does not belong to your account.";
      }
   }
   //End of using character's ID
   //If the character is not selected, use below.
   else{
      echo "
         <table border='0' width='100%'>
            <tr>
               <td class='regtext' align='center'>
                  Welcome to the NX Cash Shop. You can buy NX Cash here with in-game mesos. Once the transaction is over, your account will have the amount of NX Cash you bought.<br />
                  Please note that the transaction will be cancelled if you are online in game; so be sure to log off before you buy. Otherwise, it will not work.<br />
               </td>
            </tr>";
         echo buyNX("", "", "");
      }
   echo "
         </table>
      </fieldset>";
} //If user is not logged in, it moves here
else{
   echo "Please log in to use this feature.";   
}
?>
Back to top Go down
Admin
§Owner Wolf§



Posts : 37
Join date : 2010-05-12

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeSun Jun 06, 2010 1:00 am

that guy is appreantly dumb lol he try to be pro
Back to top Go down
https://generatorx.darkbb.com
Admin
§Owner Wolf§



Posts : 37
Join date : 2010-05-12

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeSun Jun 06, 2010 1:01 am

btw that isn't time smart ass
Back to top Go down
https://generatorx.darkbb.com
Exeagle
Junior Member



Posts : 23
Join date : 2010-06-05

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeSun Jun 06, 2010 3:14 am

man im just trying to help sorry
Back to top Go down
Apocalypse
Forum Addic



Posts : 161
Join date : 2010-05-17
Age : 31
Location : East Coast USA

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeSun Jun 06, 2010 7:24 am

Lol I wouldn't understand this if my life depended on it O_o
Back to top Go down
EthanKun
New Member



Posts : 7
Join date : 2010-05-15
Age : 33
Location : On your bed.

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeSun Jun 13, 2010 6:21 am

Apocalypse wrote:
Lol I wouldn't understand this if my life depended on it O_o

Me neither.
Back to top Go down
Apocalypse
Forum Addic



Posts : 161
Join date : 2010-05-17
Age : 31
Location : East Coast USA

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeSun Jun 13, 2010 7:20 pm

iSmile wrote:
Apocalypse wrote:
Lol I wouldn't understand this if my life depended on it O_o

Me neither.

Glad someone agrees with me. xD
Back to top Go down
Nick
Junior Member
Nick


Posts : 36
Join date : 2010-05-15
Location : Jersey Shore

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeMon Jun 14, 2010 4:12 am

iSmile wrote:
Apocalypse wrote:
Lol I wouldn't understand this if my life depended on it O_o

Me neither.

Its alright, i can't either LOL
Back to top Go down
Hidden
New Member



Posts : 12
Join date : 2010-06-06

Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitimeMon Jun 14, 2010 4:08 pm

u'll learn after a couple of months u'd know most of it, run your own server for fun and look for guides, thats how i did.
oh ya exeagle $10 u copyed it off of ragezone of kryptodev or forgot the other one
Back to top Go down
Sponsored content





Website NX glitch. Empty
PostSubject: Re: Website NX glitch.   Website NX glitch. I_icon_minitime

Back to top Go down
 
Website NX glitch.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
GeneratorCommunity :: General :: Glicthes and Bugs-
Jump to: