Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: [Free] Log Suspicious Users Open header.php and find:   $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];   After add:   // Log Suspicious Users if ($ir['log']>0) { $access=$_SERVER['REQUEST_METHOD']; $log=$_SERVER['REQUEST_URI']; $date=date ('F j, Y'); $time=date('g:i:s a'); mysql_query("INSERT INTO `logs` ( `ID` , `userid` , `IP` , `action` , `time` , `date` , `access` ) VALUES ( NULL , '$userid', '$ip', '$log', '$time', '$date', '$access' )", $c); }   Open staff.php and find:   case 'basicset': basicsettings(); break;   Under add:   case 'loguser': loguser(); break;   Then find in smenu.php:   > [url='staff.php?action=basicset']Basic Settings[/url]   Under add:   > [url='staff.php?action=loguser']Log User[/url]   Find in staff.php:   } function basicsettings() { global $db,$ir,$c,$h,$userid,$set; if($ir['user_level'] != 2) { die("403"); } if($_POST['submit']) { unset($_POST['submit']); foreach($_POST as $k => $v) { $db->query("UPDATE `settings` SET conf_value='$v' WHERE conf_name='$k'"); } print "Settings updated! [url='staff.php?action=basicset']Back[/url]"; stafflog_add("Updated the basic game settings"); } else { print "<h3>Basic Settings</h3><hr /> <form action='staff.php?action=basicset' method='post'> <input type='hidden' name='submit' value='1' /> Game Name: <input type='text' name='game_name' value='{$set['game_name']}' /> Game Owner: <input type='text' name='game_owner' value='{$set['game_owner']}' /> Game Description: <textarea rows='7' cols='50' name='game_description'>{$set['game_description']}</textarea> Paypal Address: <input type='text' name='paypal' value='{$set['paypal']}' /> Gym/Crimes Validation: <select name='validate_on' type='dropdown'>"; $opt=array( "1" => "On", "0" => "Off" ); foreach($opt as $k => $v) { if($k == $set['validate_on']) { print "<option value='{$k}' selected='selected'>{$v}</option>"; } else { print "<option value='{$k}'>{$v}</option>"; } } print "</select> Validation Period: <select name='validate_period' type='dropdown'>"; $opt=array( "5" => "Every 5 Minutes", "15" => "Every 15 Minutes", "60" => "Every Hour", "login" => "Every Login" ); foreach($opt as $k => $v) { if($k == $set['validate_period']) { print "<option value='{$k}' selected='selected'>{$v}</option>"; } else { print "<option value='{$k}'>{$v}</option>"; } } print "</select> Registration CAPTCHA: <select name='regcap_on' type='dropdown'>"; $opt=array( "1" => "On", "0" => "Off" ); foreach($opt as $k => $v) { if($k == $set['regcap_on']) { print "<option value='{$k}' selected='selected'>{$v}</option>"; } else { print "<option value='{$k}'>{$v}</option>"; } } print "</select> Send Crystals: <select name='sendcrys_on' type='dropdown'>"; $opt=array( "1" => "On", "0" => "Off" ); foreach($opt as $k => $v) { if($k == $set['sendcrys_on']) { print "<option value='{$k}' selected='selected'>{$v}</option>"; } else { print "<option value='{$k}'>{$v}</option>"; } } print "</select> Bank Xfers: <select name='sendbank_on' type='dropdown'>"; $opt=array( "1" => "On", "0" => "Off" ); foreach($opt as $k => $v) { if($k == $set['sendbank_on']) { print "<option value='{$k}' selected='selected'>{$v}</option>"; } else { print "<option value='{$k}'>{$v}</option>"; } } print "</select> Energy Refill Price (crystals): <input type='text' name='ct_refillprice' value='{$set['ct_refillprice']}' /> IQ per crystal: <input type='text' name='ct_iqpercrys' value='{$set['ct_iqpercrys']}' /> Money per crystal: <input type='text' name='ct_moneypercrys' value='{$set['ct_moneypercrys']}' /> Will Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])." <input type='submit' value='Update Settings' /></form>"; } }   Before add:   // Log Suspicious Users Mod function loguser() { global $ir,$c,$h,$userid; echo '<h3>Log Suspicious Users</h3>'; if ($_GET['log']=="view" && !empty($_GET['ID'])) { echo 'Last 1000 actions of ID: '.$_GET['ID'].' <table width="90%" border="1"><tr><td><u>Action</u></td><td><u>Accessed By</u></td><td><u>IP</u></td><td><u>Time</u></td><td><u>Date</u></td>'; $user=abs(@intval($_GET['ID'])); $loggy=mysql_query("SELECT * FROM `logs` WHERE userid=$user ORDER BY ID DESC LIMIT 1000", $c); while($logs=mysql_fetch_object($loggy)) { echo '<tr><td>'.$logs->action.'</td><td>'.$logs->access.'</td><td>'.$logs->IP.'</td><td>'.$logs->time.'</td><td>'.$logs->date.'</td></tr>'; } echo '</table>'; $h->endpage(); exit; } if (isset($_POST['submit'])) { $length=abs(@intval($_POST['length'])); $ID=abs(@intval($_POST['userid'])); mysql_query("UPDATE users SET log=$length WHERE userid=$ID", $c); if ($length==0) { echo 'User '.$ID.' will no longer be logged! '; } if ($length>0) { echo 'User '.$ID.' will now be logged for '.$length.' days! '; } } echo 'Add a User to be logged: <form action="'.$_SERVER['PHP_SELF'].'?action=loguser" method="POST">User ID: <input type="text" name="userid" /> Length: <input type="text" name="length" /> <input type="submit" name="submit" value="Log!"> </form> Current users being logged: <table width="80%"><tr><td><u>User</u></td><td><u>Length of Log</u></td><td><u>View?</u></td></tr>'; $logz=mysql_query("SELECT * FROM `users` WHERE log>=1", $c); while($log=mysql_fetch_object($logz)) { echo '<tr><td>[url="viewuser.php?u='.$log->userid.'"]'.$log->username.'[/url]['.$log->userid.']</td><td> '.$log->log.'</td><td>[url="'.$_SERVER['PHP_SELF'].'?action=loguser&log=view&ID='.$log->userid.'"]View[/url] </td></tr>'; } echo '</table> [i](To delete a user just enter the ID and put 0 as the length)[/i]'; }   Open your daily cron and add:   $db->query("UPDATE users SET log=log-1 WHERE log > 0",$c);   SQL:   ALTER TABLE `users` ADD `log` INT( 10 ) NOT NULL ; CREATE TABLE `logs` ( `ID` INT( 25 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `userid` INT( 25 ) NOT NULL , `IP` VARCHAR( 255 ) NOT NULL , `action` VARCHAR( 255 ) NOT NULL , `time` VARCHAR( 255 ) NOT NULL , `date` VARCHAR( 255 ) NOT NULL , `access` VARCHAR( 255 ) NOT NULL ) ENGINE = MYISAM   I had a little spare time so i converted it
  2. Re: Generate Password i know but at least it stops ppl using fake email addresses
  3. Re: [mccode] Register Page can someone help plz i used the register page for v2 but dosnt stop multis if anyone can help plz do
  4. Re: IP Banning tool [V1] + [V2] (I think) nice one works for v2
  5. Re: [FREE][MCCODE V1] Mass Payment can someone make where its only for active users
  6. Re: IP Banning tool [V1] + [V2] (I think) Warning: fopen(/home/a5069509/public_html/ipbans/77.101.220.73) [function.fopen]: failed to open stream: Permission denied in /home/a5069509/public_html/staff.php on line 30
  7. Re: IP Banning tool [V1] + [V2] (I think) i was thinking about requesting this know need
  8. Re: Registration problem at 50 members is it the original register page
  9. Re: Generate Password now all we need is one that sends to email
  10. Re: crime hospital time   wats the sql for this then as its a weird sql
  11. Re: Little Modification Pack im a little interested wat version do u have it
  12. Re: Newsletter Mod ino hehehe im just warning ppl mate
  13. Re: Newsletter Mod Warningmay i just say i have used this on 000webhost and it suspends u so if u are on 000webhost.com dont use it or you will get suspendedWarning
  14. when i try surrender to someone i get this QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT * FROM gangwars where warID=
  15. Re: attack bug i dont want ppl losing exp i just want ppl going to hosp for losing attack anyone do that for me if so add me on msn [email protected]
  16. Re: Crimes same its the crimes formula that bugs me i dont understand it
  17. Re: Gym with Current Stats (v1) here is correct one then <?php /*----------------------------------------------------- -- Mono Country v2.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ include "globals.php"; check_level(); $fm=money_formatter($ir['money']); $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $out=""; $_GET['times']= abs((int) $_GET['times']); if(isset($_GET['train'])) { if($_GET['train'] != "strength" && $_GET['train'] != "agility" && $_GET['train'] != "guard" && $_GET['train'] != "labour") { $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); die("Abusers aren't allowed."); } $tgain=0; for($i=1;$i<=$_GET['times'] && $ir['energy'] > 0;$i++) { if ($ir['energy'] > 0) { $gain=rand(1,3)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)/150); $tgain+=$gain; if ($_GET['train']=="IQ") { $gain/=100; } $ir[$_GET['train']]+=$gain; $egain=$gain/10; $ts=$ir[$_GET['train']]; $st=$_GET['train']; mysql_query("UPDATE userstats SET $st=$st+".$gain." WHERE userid=$userid",$c) or die("UPDATE userstats SET $st=$st+$gain,energy=energy-1,exp=exp+$egain WHERE userid=$userid ".mysql_error()); $wu=(int) (rand(1,3)); if ($ir['will'] >= $wu) { $ir['will']-=$wu; mysql_query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=will-$wu WHERE userid=$userid",$c); } else { $ir['will']=0; mysql_query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=0 WHERE userid=$userid",$c); } $ir['energy']-=1; $ir['exp']+=$egain; } else { $out="You do not have enough energy to train."; } } $stat=$ir[$st]; $i--; $out="<center><h3>Gym</h3><hr width=50%><div> <center>You begin training your $st. <font color=green>You have gained [b]$tgain $st[/b] by training it $i times.</font> You now have [b]$stat $st[/b] and [b]{$ir['energy']}[/b] energy left. "; } else { $out="<center><h3>Gym</h3><hr width=50%><div> "; } print $out; print "<center>Enter the times you wish to train the stat you select You can train {$ir['energy']} times with the energy you have <form method='get' action=gym.php> <table border=0><tr> <td align=center>Times</td> <td align=center>Stat</td> </tr><tr> <td align=center><input type='text' size='5' name='times' value='{$ir['energy']}' maxlength='2'></td> <td align=center><select type='dropdown' name='train'> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='labour'>Labour</option> <option value='guard'>Guard</option> </select></td> </tr><tr> <td colspan=2 align=center><input type=submit value='Train'></form></td> </tr></table><hr width=50%><center>[b]<center>Your Current Stats:[/b]<hr width=50%> <table width=50%><tr><td>[b]<center>Strength:[/b]<font color=#000066> {$ir['strength']} [Ranked: <font color=#000066>{$ir['strank']}]</td><td>[b]<center>Agility:[/b] <font color=#000066>{$ir['agility']} [Ranked: <font color=#000066>{$ir['agirank']}]</td></tr> <tr><td>[b]<center>Guard:[/b] <font color=#000066>{$ir['guard']} [Ranked: <font color=#000066>{$ir['guarank']}]</td><td>[b]<center>Labour:[/b]<font color=#000066> {$ir['labour']} [Ranked: <font color=#000066>{$ir['labrank']}]</td></tr> <tr><td>[b]<center>IQ: [/b] <font color=#000066>{$ir['IQ']} [Ranked: <font color=#000066>{$ir['IQrank']}]</td><td>[b]<center>Total stats:[/b] <font color=#000066>{$ts} [Ranked: <font color=#000066>$tsrank]</td></tr></table> <hr width=50%>[url='index.php']Back to Home[/url]<hr width=50%>"; $h->endpage(); ?>
  18. Re: [Free] Jail / Prison i need a prison that works like v2 prison anyone got one plz
  19. Re: Gym with Current Stats (v1) *warning this has not been tested so do not hold me responsible for mesiing up the gym* <?php /*----------------------------------------------------- -- Mono Country v2.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ include "globals.php"; check_level(); $fm=money_formatter($ir['money']); $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $out=""; $_GET['times']= abs((int) $_GET['times']); if(isset($_GET['train'])) { if($_GET['train'] != "strength" && $_GET['train'] != "agility" && $_GET['train'] != "guard" && $_GET['train'] != "labour") { $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); die("Abusers aren't allowed."); } $tgain=0; for($i=1;$i<=$_GET['times'] && $ir['energy'] > 0;$i++) { if ($ir['energy'] > 0) { $gain=rand(1,3)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)/150); $tgain+=$gain; if ($_GET['train']=="IQ") { $gain/=100; } $ir[$_GET['train']]+=$gain; $egain=$gain/10; $ts=$ir[$_GET['train']]; $st=$_GET['train']; mysql_query("UPDATE userstats SET $st=$st+".$gain." WHERE userid=$userid",$c) or die("UPDATE userstats SET $st=$st+$gain,energy=energy-1,exp=exp+$egain WHERE userid=$userid ".mysql_error()); $wu=(int) (rand(1,3)); if ($ir['will'] >= $wu) { $ir['will']-=$wu; mysql_query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=will-$wu WHERE userid=$userid",$c); } else { $ir['will']=0; mysql_query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=0 WHERE userid=$userid",$c); } $ir['energy']-=1; $ir['exp']+=$egain; } else { $out="You do not have enough energy to train."; } } $stat=$ir[$st]; $i--; $out="<center><h3>Gym</h3><hr width=50%><div> <center>You begin training your $st. <font color=green>You have gained [b]$tgain $st[/b] by training it $i times.</font> You now have [b]$stat $st[/b] and [b]{$ir['energy']}[/b] energy left. "; } else { $out="<center><h3>Gym</h3><hr width=50%><div> "; } $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print $out; print "<center>Enter the times you wish to train the stat you select You can train {$ir['energy']} times with the energy you have <form method='get' action=gym.php> <table border=0><tr> <td align=center>Times</td> <td align=center>Stat</td> </tr><tr> <td align=center><input type='text' size='5' name='times' value='{$ir['energy']}' maxlength='2'></td> <td align=center><select type='dropdown' name='train'> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='labour'>Labour</option> <option value='guard'>Guard</option> </select></td> </tr><tr> <td colspan=2 align=center><input type=submit value='Train'></form></td> </tr></table><hr width=50%><center>[b]<center>Your Current Stats:[/b]<hr width=50%> <table width=50%><tr><td>[b]<center>Strength:[/b]<font color=#000066> {$ir['strength']} [Ranked: <font color=#000066>{$ir['strank']}]</td><td>[b]<center>Agility:[/b] <font color=#000066>{$ir['agility']} [Ranked: <font color=#000066>{$ir['agirank']}]</td></tr> <tr><td>[b]<center>Guard:[/b] <font color=#000066>{$ir['guard']} [Ranked: <font color=#000066>{$ir['guarank']}]</td><td>[b]<center>Labour:[/b]<font color=#000066> {$ir['labour']} [Ranked: <font color=#000066>{$ir['labrank']}]</td></tr> <tr><td>[b]<center>IQ: [/b] <font color=#000066>{$ir['IQ']} [Ranked: <font color=#000066>{$ir['IQrank']}]</td><td>[b]<center>Total stats:[/b] <font color=#000066>{$ts} [Ranked: <font color=#000066>$tsrank]</td></tr></table> <hr width=50%>[url='index.php']Back to Home[/url]<hr width=50%>"; $h->endpage(); ?>
  20. Re: Gym with Current Stats (v1) so if i converted this to v2 it would work well im going to try it
  21. Re: v2 register change font colour mate there is no font colour on register page
  22. Re: Gym with Current Stats (v1) nice one mate did u code this yourself
  23. Re: [Free] Jail / Prison this may sound stupid but how i make a chance like 50/50
  24. <?php include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } //thx to [url]http://www.phpit.net/code/valid-email/[/url] for valid_email function valid_email($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } session_start(); print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script type="text/javascript"> var xmlHttp // xmlHttp variable function GetXmlHttpObject(){ // This function we will use to call our xmlhttpobject. var objXMLHttp=null // Sets objXMLHttp to null as default. if (window.XMLHttpRequest){ // If we are using Netscape or any other browser than IE lets use xmlhttp. objXMLHttp=new XMLHttpRequest() // Creates a xmlhttp request. }else if (window.ActiveXObject){ // ElseIf we are using IE lets use Active X. objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") // Creates a new Active X Object. } // End ElseIf. return objXMLHttp // Returns the xhttp object. } // Close Function function CheckPasswords(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="check.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("passwordresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function CheckUsername(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="checkun.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("usernameresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function CheckEmail(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="checkem.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("emailresult").innerHTML = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function PasswordMatch() { pwt1=document.getElementById('pw1').value; pwt2=document.getElementById('pw2').value; if(pwt1 == pwt2) { document.getElementById('cpasswordresult').innerHTML="<font color='green'>OK</font>"; } else { document.getElementById('cpasswordresult').innerHTML="<font color='red'>Not Matching</font>"; } } </script> <style type="text/css"> <!-- body { background-color: #DEDEDE; margin-top: 0px; margin-bottom: 0px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#190707; vertical-align:top; text-align:center; } .table { background-color:#190707; } .table3 { background-color:#190707; } .table td { background-color:#190707; height:22px; } .table3 td { background-color:#190707; } td .alt { background-color:#190707; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center">[img=title.jpg] EOF; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("Captcha Test Failed >[url='register.php']Back[/url]"); } unset($_SESSION['captcha']); } if(!valid_email($_POST['email'])) { die("Sorry, the email is invalid. >[url='register.php']Back[/url]"); } if(strlen($_POST['username']) < 4) { die("Sorry, the username is too short. >[url='register.php']Back[/url]"); } $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}' OR login_name='{$username}'"); $q2=$db->query("SELECT * FROM users WHERE email='{$_POST['email']}'"); if($db->num_rows($q)) { print "Username already in use. Choose another. >[url='register.php']Back[/url]"; } else if($db->num_rows($q2)) { print "E-Mail already in use. Choose another. >[url='register.php']Back[/url]"; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again. >[url='register.php']Back[/url]"; } else { $_POST['ref'] = abs((int) $_POST['ref']); $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); if($db->num_rows($q)) { die("No creating referral multies. Bad dog. >[url='register.php']Back[/url]"); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } print "You have signed up, enjoy the game. > [url='login.php']Login[/url]"; } } else { if($set['regcap_on']) { $chars="123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!?\\/%^"; $len=strlen($chars); $_SESSION['captcha']=""; for($i=0;$i<6;$i++) $_SESSION['captcha'].=$chars[rand(0, $len - 1)]; } print "<h3>{$set['game_name']} Registration</h3>"; print "<form action=register.php method=post> <table width='75%' class='table' cellspacing='1'> <tr> <td width='30%'>Username</td> <td width='40%'><input type=text name=username onkeyup='CheckUsername(this.value);'></td> <td width='30%'><div id='usernameresult'></div></td> </tr> <tr> <td>Password</td> <td><input type=password id='pw1' name=password onkeyup='CheckPasswords(this.value);PasswordMatch();'></td> <td><div id='passwordresult'></div></td> </tr> <tr> <td>Confirm Password</td><td><input type=password name=cpassword id='pw2' onkeyup='PasswordMatch();'></td> <td><div id='cpasswordresult'></div></td> </tr> <tr> <td>Email</td><td><input type=text name=email onkeyup='CheckEmail(this.value);'></td> <td><div id='emailresult'></div></td> </tr> <tr> <td>Gender</td> <td colspan='2'><select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></td> </tr> <tr> <td>Promo Code</td><td colspan=2><input type=text name=promo></td> </tr> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "' />"; if($set['regcap_on']) { print "<tr> <td colspan=3>[img=captcha_verify.php?bgcolor=C3C3C3] <input type='text' name='captcha' /></td> </tr>"; } print " <tr> <td colspan=3 align=center><input type=submit value=Submit></td> </tr> </table> </form> > [url='login.php']Go Back[/url]"; } print <<<OUT </td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> </center> </body> </html> OUT; ?> can someone high light where i change the font colour
  25. Re: [mccode] Mining mod   we all have now u can see it working at www.tbrpg.890m.com
×
×
  • Create New...