Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. Re: Phaos Game Engine Host gator drops constantly i know i had my site on there i recommend http://byethost.com/
  2. Re: [MCcodes V2] Gang Bomb [$15.00] Yeah i agree they may use the same type of method but in standing i object to the claim "it is the same" Since i took my time to code this from scratch i would like it to be known that i have not just grabbed a copy of Cronus's car bomb mod changed some words and a-presto gang mod
  3. Re: [MCcodes V2] Gang Bomb [$15.00]   My mod = car bombs Your mod = gang bombs Also your design on this could use some tables or something. They are just dangling there. true ill add some tables but that means the screen shot's ain't exactly right but yall get the gist till i edit it tomorrow.   i also made mailbomb... i do admit the idea of the name came from car bomb but i don't see how its affiliated in any sense since the idea was entirely different but you are allowed your opinion and i respect that maybe if you want more information mail me and i can give it in more detail to save posts. but for the record i don't believe you have both of the modifications to actually see the difference but im sure me and cronus would happily sell you them for cross reference lol
  4. Re: [mccode v2] Secure Bank! maybe the errors are because of the use of %s instead os %u but i do understand , would be contained so i'd assume %s would work so you maybe right im just throwing a suggestion in + 1 anyways Karlos EDITED: Your doing well mate you also need to come back and play my game lol
  5. Re: [MCcodes V2] Gang Bomb [$15.00]   whats so funny? thanks contact me via ce or msn for a copy on msn i sometimes don't add everyone since alot of people just do it for weird reasons like so its best to notify me on here before actually adding me
  6. Re: Secure Bank! [V2] lol nice job Karlos
  7. Name: Gang Bomb Availability: 10 Copies Price: $15.00 USD Special Offer: $10.00 USD for the first 2 sales then $15.00 USD for the last 8 sales Includes: 1 php file(gangbomb.php) 1 txt file(Instructions.txt) Description:. The modification allows a user to use a specified item (by you) to attack gangs (bomb them) they can only use the item if they are in a gang themselves because of the gang respect gain and other aspects. They bomb the gang and gain a random amount of respect (never more than a 10th of the victim gangs respect but this can be changed which is explained in mod) and puts every member in hospital for a random amount of time (between 10 and 100 which also can be changed, explained in mod) But as people say words are nothing compared to pictures so view the screen shots below. Screen Shots: Screen Shot 1 Screen Shot 2 Screen Shot 3 Contact Me: [email protected] [MSN] or message me on here [CE]. This mod is only for v2 you can convert it yourself if you wish.
  8. Re: Mine Shaft [FREE] Thanks Mate
  9. mine.php <?php require "globals.php"; $_POST['shaft'] = abs((int) $_POST['shaft']); echo '<h3>Mine Shalf</h3>'; if($_POST['shaft'] == 1 OR $_POST['shaft'] == 5 OR $_POST['shaft'] == 10 OR $_POST['shaft'] == 25 OR $_POST['shaft'] == 50 OR $_POST['shaft'] == 60 OR $_POST['shaft'] == 75 OR $_POST['shaft'] == 100) { $costi = $ir['level']*2+3; // Normal level gain is +2 brave each level so $ir['level']*2+3 the plus 3 is because they start with 5 is the max will for the users level $cost = $costi/2; // the divide 2 allows multiple goes if oyu add a 3 they will get 3 goes and so on if($ir['brave'] < $cost) // checks to see if the user has enough brave { echo 'Invalid Command. You don\'t have enough brave for this shaft. ><a href="http://'.$_SERVER['PHP_SELF'].'" target="_blank">Go Back</a>'; $h->endpage(); exit; } if($_POST['shaft'] <= 25) // checks if its a money function { $earn = rand(1, $_POST['shaft'])*2; // example: 44 multiplied by 2 equals 88, so the user gets $88 (i suggest editing this to maybe *5) which then would equal $220 $Mtype = 'money'; // This is basically what tells the sql query several lines down what to add depending on shaft in this case money } elseif($_POST['shaft'] > 25 AND $_POST['shaft'] <= 100) // checks if its a crystal function { $earn = rand(1, $_POST['shaft'])/2; // example: 88 divided by 2 equals 44, so the user would get 44 crystals (that's using shaft 100 [the max]) $Mtype = 'crystals'; // This is basically what tells the sql query several lines down what to add depending on shaft in this case crystals } $chance = rand(1, 3); if($chance == 3) { echo '<font color="green"><b>You\'re mining trip came out to be successful, you earned: $'.$earn.' congratulations.</b></font>'; $query = sprintf('UPDATE `users` SET %s = %s + %u, brave = brave - %u WHERE userid = %u', $Mtype, $Mtype, $earn, $cost, $userid); // %s is text AND %u is numbers $db->query($query); } else { echo '<font color="red"><b>You\'re mining trip came out to be disastrous.</b></font>'; $query = sprintf('UPDATE `users` SET brave = brave - %u WHERE userid = %u', $cost, $userid); $db->query($query); } echo ' ><a href="http://'.$_SERVER['PHP_SELF'].'" target="_blank">Go Back</a>'; $h->endpage(); exit; } else { echo ' <form action="'.$_SERVER['PHP_SELF'].'" method="post"> <table width="60%" class="h" border="1" align="center"> <tr> <th width=50%>Level</th> <th width=50%>Do</th> </tr> <tr align="center" class="h"> <td colspan="2">Money</td> </tr> <tr align="center"> <td>1</td> <td><input type="radio" name="shaft" value="1"></td> </tr> <tr align="center"> <td>5</td> <td><input type="radio" name="shaft" value="5"></td> </tr> <tr align="center"> <td>10</td> <td><input type="radio" name="shaft" value="10"></td> </tr> <tr align="center"> <td>25</td> <td><input type="radio" name="shaft" value="25"></td> </tr> <tr align="center" class="h"> <td colspan="2">Crystal</td> </tr> <tr align="center"> <td>50</td> <td><input type="radio" name="shaft" value="50"></td> </tr> <tr align="center"> <td>60</td> <td><input type="radio" name="shaft" value="60"></td> </tr> <tr align="center"> <td>75</td> <td><input type="radio" name="shaft" value="75"></td> </tr> <tr align="center"> <td>100</td> <td><input type="radio" name="shaft" value="100"></td> </tr> <tr align="center" class="h"> <td colspan="2"><input type="submit" value="Mine"></form></td> </tr> </table> '; } $h->endpage(); ?>   Screen Shots: Screen Shot 1 Screen Shot 2 Screen Shot 3   Some help: if sprintf   Any questions please mail me [CE]
  10. Re: The Standards of CE Mod! actually its i'm in everyone's lists lately this is pretty cool lol and i hopefully am right in thinking md trusts me not that i am asking for the position or whatever im just stating it lol but back to topic love the new section md nice work mate :-D
  11. Re: [MOD] House Images   Your welcome mate glad i could help
  12. Re: The Standards of CE Mod!   wanna bet lol everyone now who thinks they are (super coders) will be trying to get the first post approved lol
  13. Re: [MOD] House Images staff_houses.php <?php include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains shop stuffs switch($_GET['action']) { case "addhouse": addhouse(); break; case "edithouse": edithouse(); break; case "delhouse": delhouse(); break; default: print "Error: This script requires an action."; break; } function addhouse() { global $db, $ir, $c, $h, $userid; $price = abs((int) $_POST['price']); $will = abs((int) $_POST['will']); $name = $_POST['name']; $hsepic = $_POST['hsepic']; if($price and $will and $name) { $query = sprintf('SELECT COUNT(hID) AS count FROM `houses` WHERE hWILL = $u', $will); $query = $db->query($query); $q = $db->fetch_row($query); if($q['count']) { print "Sorry, you cannot have two houses with the same maximum will."; $h->endpage(); exit; } $query = sprintf("INSERT INTO `houses` VALUES(NULL, '%s', '%.0f', '%u', '%s')", $name, $price, $will, $hsepic); $db->query(); print "House {$name} added to the game."; print "House Image {$hsepic} was added to database."; stafflog_add("Created House $name"); } else { print "<h3>Add House</h3><hr /> <form action='staff_houses.php?action=addhouse' method='post'> Name: <input type='text' name='name' /> Price: <input type='text' name='price' /> Max Will: <input type='text' name='will' /> [b]Item Pics[/b] <input type='text' name='hsepic' value='{$ir['hsepic']}' /><hr /> <input type='submit' value='Add House' /></form>"; } } function edithouse() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $price=abs((int) $_POST['price']); $will=abs((int) $_POST['will']); $sql = sprintf('SELECT COUNT(hID) AS count FROM `houses` WHERE hWILL = $u AND hID! = $u', $will, $_POST['id']); $sql = $db->query($sql); $q = $db->fetch_row($sql); if($q['count']) { print "Sorry, you cannot have two houses with the same maximum will."; $h->endpage(); exit; } $name=$_POST['name']; $ql = sprintf('SELECT `hWILL` FROM `houses` WHERE hID = %u', $_POST['id']); $ql = $db->query($ql); $old = $db->fetch_row($ql); if($old['hWILL'] == 100 && $old['hWILL'] != $will) { die("Sorry, this house's will bar cannot be edited."); } $db->query("UPDATE houses SET hWILL=$will, hPRICE=$price, hNAME='$name' WHERE hID={$_POST['id']}"); $db->query("UPDATE users SET maxwill=$will WHERE maxwill={$old['hWILL']}"); $db->query("UPDATE users SET will=maxwill WHERE will > maxwill"); print "House $name was edited successfully."; stafflog_add("Edited house $name"); break; case "1": $ql = sprintf('SELECT `hWILL`, `hNAME`, `hPRICE` FROM `houses` WHERE hID = %u', $_POST['house']); $ql = $db->query($ql); $old = $db->fetch_row($ql); print "<h3>Editing a House</h3><hr /> <form action='staff_houses.php?action=edithouse' method='post'> <input type='hidden' name='step' value='2' /> <input type='hidden' name='id' value='{$_POST['house']}' /> Name: <input type='text' name='name' value='{$old['hNAME']}' /> Price: <input type='text' name='price' value='{$old['hPRICE']}' /> Max Will: <input type='text' name='will' value='{$old['hWILL']}' /> [b]Item Pics[/b] <input type='text' name='hsepic' value='{$ir['hsepic']}' /><hr /> <input type='submit' value='Edit House' /></form>"; break; default: print "<h3>Editing a House</h3><hr /> <form action='staff_houses.php?action=edithouse' method='post'> <input type='hidden' name='step' value='1' /> House: ".house_dropdown($c, "house")." <input type='submit' value='Edit House' /></form>"; break; } } function delhouse() { global $db,$ir,$c,$h,$userid; if($_POST['house']) { $ql = sprintf('SELECT `hWILL`, `hID`, `hPRICE`, `hNAME` FROM `houses` WHERE hID = %u', $_POST['house']); $ql = $db->query($ql); $old = $db->fetch_row($ql); if($old['hWILL']==100) { die("This house cannot be deleted."); } $q2 = sprintf('SELECT `userid` FROM `users` WHERE maxwill = %u', $old['hWILL']); $q2 = $db->query($q2); $ids=array(); while($r=$db->fetch_row($q2)) { $ids[]=$r['userid']; } if(count($ids)) { $query = sprintf("UPDATE `users` SET money=money+"%.0f", maxwill = %u WHERE userid IN(".implode(', ', %u).")", $old['hPRICE'], 100, $ids); $db->query($query); } $db->query('UPDATE `users` SET will = maxwill WHERE will > maxwill'); $query = sprintf('DELETE FROM `houses` WHERE hID = %u', $old['hID']); $db->query($query); print "House {$old['hNAME']} deleted."; stafflog_add("Deleted house {$old['hNAME']}"); } else { print "<h3>Delete House</h3><hr /> Deleting a house is permanent - be sure. Any users that are currently on the house you delete will be returned to the first house, and their money will be refunded.<form action='staff_houses.php?action=delhouse' method='post'> House: ".house_dropdown($c, "house")." <input type='submit' value='Delete House' /></form>"; } } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $query = sprintf('DELETE FROM `preports` WHERE prID = %u', $_GET['ID']); $db->query($query); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } $h->endpage(); ?>   estate.php <?php include "globals.php"; $mpq = sprintf('SELECT `hWILL`, `hNAME` FROM `houses` WHERE hWILL = %u', $ir['maxwill']); $mpq = $db->query($mpq); $mp=$db->fetch_row($mpq); $_GET['property']=abs((int) $_GET['property']); if($_GET['property']) { $npq = sprintf('SELECT `hWILL`, `hPRICE`, `hNAME` FROM `houses` WHERE hID = %u', $_GET['property']); $npq = $db->query($npq); $np=$db->fetch_row($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hNAME']}."; } else { $query = sprintf('UPDATE `users` SET money=money-"%.0f",will=0,maxwill = %u WHERE userid = %u', $np['hPRICE'], $np['hWILL'], $userid); $db->query($query); print "Congrats, you bought the {$np['hNAME']} for \${$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq = sprintf('SELECT `hPRICE`, `hNAME` FROM `houses` WHERE hWILL = %u', $ir['maxwill']); $npq = $db->query($npq); $np=$db->fetch_row($npq); if($ir['maxwill'] == 100) { print "You already live in the lowest property!"; } else { $query = sprintf('UPDATE `users` SET money=money+"%.0f",will=0,maxwill=100 WHERE userid = %u', $np['hPRICE'], $userid); $db->query($query); print "You sold your {$np['hNAME']} and went back to your shed."; } } else { print "<center>Your current property: <font color=blue>[b]{$mp['hNAME']}[/b]</font> The houses you can buy are listed below. Click a house to buy it. "; print "[url='estate.php?sellhouse']Sell Your House[/url] "; if($ir['willmax'] > 100) { } print " <table cellspacing=2 class='table'><tr style='background:gray;'><th>House</th><th>House Price</th><th>House Will</th><th>Image</th><th>Buy?</th></tr>"; $hq = sprintf('SELECT `hNAME`, `hPRICE`, `hWILL`, `hsepics`, `hID` FROM `houses` WHERE hWILL > %u ORDER BY hWILL ASC', $ir['maxwill']); $hq = $db->query($hq); while($r=$db->fetch_row($hq)) { print "<tr><td>{$r['hNAME']}</a></td><td>\$$t".money_formatter($r['hPRICE'],'')."</td> <td>{$r['hWILL']}</td> <td>[img=hsepics/{$r[]</td> <td><a href='estate.php?property={$r['hID']}'>Buy</tr>"; } print "</table>"; } } if($ir['married']) { echo 'You cannot manage estate while married. >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } $h->endpage(); ?>   I get bored easy so i thought i'd polish over your estate and staff houses coding hope you don't mind (i didn't test them so give 'em a go if ya like let me know if i forgot something)
  14. Re: The Standards of CE Mod!   this topic is about people who post off topic right lol so you to chatting like old ladies is a little hypocritical huh
  15. Hey guys since i've seen loads of peoples selling their mods together here's my deal. ZBank [$5] : Advanced Merit System [$10] : Hit-List [$10] : Protection System [$10] : Advanced Burn House [$15] : Advanced Turns[$15] : [Law Services] [$20.00] : AV Bounty/Hitmanlist [$20.00] : Contest [$25.00 USD] : Total Price: $130.00 USD I'll do: 3 mods with a 5% reduction. 6 mods with a 10% reduction. 9 mods with a 20% reduction.   If you want to talk about business or try suggesting another offer then contact me on [email protected] [MSN] or contact me via private message on here Zero_Affect [CE]
  16. Re: Cron issue Yeah most likely your host
  17. Re: Register [Free]   <?php /*----------------------------------------------------- -- Register Page -- Graphics By Zero-Affect -- Coded by Zero-Affect -- Brought to you by Heaven-Designs -- Made on: 28/7/2008 -----------------------------------------------------*/ 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']; } $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $t = mysql_query("SELECT * FROM ips WHERE userIP='{$IP}'"); if($a = mysql_num_rows($t)> 0) { die('YOU ARE BANNED NOW BYE!'); } //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: #000000; background-image:url(images/lgridb.png); margin-top: 0px; margin-bottom: 0px; font-family:Palatino Linotype;font-size:12px;color: white; scrollbar-base-color: black; scrollbar-arrow-color: red; scrollbar-DarkShadow-Color: black; } a:visited,a:active,a:link { color: gray;text-decoration: none; } a:hover { color: silver;text-decoration: overline underline;background: none; } table,tr,td { font-family:Palatino Linotype;font-size: 12px; } .button { font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: red; } input,textarea,dropdown{ font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: black; } ..submit{ font-family:Palatino Linotype; font-size:12; color:#000000; background-color: red; } img { border:none; } textarea { font-family:Palatino Linotype;font-size:12px;color: black; } .table2 { } .center { width:932px; // background-color:#ffffff; background-image:url(images/lgridb.png); vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#000000; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; } td .h { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#222; } .table th { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } .linegrad2 { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: right; width:2px; } .navi { background-image:url(header.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } --> </style> </head> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="center">[img=/images/rheader.png] EOF; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $iap = $_SERVER['REMOTE_ADDR']; $gq=mysql_query("SELECT * FROM `users` WHERE `lastip`='$iap'",$c); if (mysql_num_rows($gq) > 0) { die("<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts, If you have another party in your household wanting to play please contact {$set['game_owner']}"); } $gq=mysql_query("SELECT * FROM `users` WHERE `lastip_login`='$iap'",$c); if (mysql_num_rows($gq) > 0) { die("<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts, If you have another party in your household wanting to play please contact {$set['game_owner']}"); } $gq=mysql_query("SELECT * FROM `users` WHERE `lastip_signup`='$iap'",$c); if (mysql_num_rows($gq) > 0) { die("<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts, If you have another party in your household wanting to play please contact {$set['game_owner']}"); } 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(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; $cr=10; if($_POST['promo'] == "Promo Code") { $sm=1000; $cr=200; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $ql = sprintf('SELECT COUNT(userid) AS count FROM `users` WHERE username = %s OR login_name = %s', $username, $username); $ql = $db->query($ql); $q = $db->fetch_row($ql) $sql = sprintf('SELECT COUNT(userid) AS count FROM `users` WHERE email = %s', $_POST['email']); $sql = $db->query($sql); $q2 = $db->fetch_row($sql) if($q['count']) { echo "<font face='Palatino Linotype' size='-1' color='white'>Username already in use. Please go back and try another username.</font> >[url='register.php']Back[/url]"; } else if($q2['count']) { echo "<font face='Palatino Linotype' size='-1' color='white'>E-Mail already in use. Choose another.</font> >[url='register.php']Back[/url]"; } else if ($_POST['tos'] == "no") { echo "You dont agree with the Terms Of Service, Goodbye. >[url='register.php']Back[/url]"; } else if($_POST['password'] != $_POST['cpassword']) { echo "<font face='Palatino Linotype' size='-1' color='white'>The passwords did not match, go back and try again. </font> >[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("<font face='Palatino Linotype' size='-1' color='red'>No Making Multies!</font> >[url='register.php']Back[/url]"); } $year=date('Y'); if($_POST['ref']) { $q=$db->query("SELECT `lastip` 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, new_mail) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, $cr, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP', '1')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); $ownerID = 1; // select the id of which you would like the mail to come from. $mSubject = 'Welcome to '.$set['game_name'].''; $mBody = 'Hey i'd just like to welcome you on behalf of the full '.$set['game_name'].' Staff. This mail is just to let you know if you have any problems you can always mail us. Regards '.$set['game_name'].' Staff'; $query = sprintf("INSERT INTO `mail` VALUES ('',0,$ownerID,$i,unix_timestamp(),'{$mSubject}','{$mBody}')",$c) or die(mysql_error()); $db->query($query); if($_POST['ref']) { require "global_func.php"; $query = sprintf('UPDATE `users` SET crystals=crystals+%u WHERE userid = %u', 10, $_POST['ref']); $db->query($query); event_add($_POST['ref'],"For refering $username to the game, you have earnt 10 valuable crystals!",$c); $query = sprintf("INSERT INTO `referals` VALUES('', %u, $i, unix_timestamp(),'{$r['lastip']}','$IP')", $_POST['ref']); $db->query($query); } echo "<font face='Palatino Linotype' size='-1' color='white'>Hey there {$_POST['username']} Your account has been registered. Please sign in and start playing!</font> > [url='login.php']Login[/url]"; } } else { if($set['regcap_on']) { $chars="123456789"; $len=strlen($chars); $_SESSION['captcha']=""; for($i=0;$i<6;$i++) $_SESSION['captcha'].=$chars[rand(0, $len - 1)]; } echo " <table width=100% valign=center align=center> <tr bgcolor=black> <th width=20%>[url='login.php']Login[/url]</th> <th width=20%>[url='fpass.php']Forgot Password[/url]</th> <th width=20%>[url='']Screenshots[/url]</th> <th width=20%>[url='']Rules[/url]</th> <th width=20%>[url='']Terms Of Service[/url]</th> </tr> </table> <table width='400' border='0' cellpadding='0' cellspacing='0' background='images/RC.png' align='center'> <tr> <td height='76' colspan='3' valign='top'><table width='400' border='0' cellpadding='0' cellspacing='0' background='images/RT.png'> <tr> <td width='400' height='10'></td> </tr><tr> <td height='35' align='center' valign='bottom'><font face='Palatino Linotype'>[b]Register.[/b]</font></td> </tr><tr> <td height='16'> </td> </tr></table></td></tr><tr> <td width='17'> </td> <td width='400' valign='top'><font face='Palatino Linotype'><center>"; echo "<form action=register.php method=post> <center><table width='85%' class='table2' cellspacing='1'> <tr> <td width='30%'><center>Username:</font></center></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><center>Password:</font></center></td> <td><input type=password id='pw1' name=password onkeyup='CheckPasswords(this.value);PasswordMatch();'></td> <td><div id='passwordresult'></div></td> </tr> <tr> <td><center>Confirm Password:</font> </center></td><td><input type=password name=cpassword id='pw2' onkeyup='PasswordMatch();'></td> <td><div id='cpasswordresult'></div></td> </tr> <tr> <td><center>Email:</center></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>"; // tos.php does not exist so making your own would be valuable or remove the option. echo " <td>Agree to [url='tos.php']TOS[/url]:</td> <td colspan='2'>Yes: <input type='radio' name='tos' value='yes'> No: <input type='radio' name='tos' value='no'></td> </tr> <tr>"; // exit tos echo " <td><center>Promo Code: (Leave Blank If Unknown)</font></center></td><td colspan=2><input type=text name=promo></td> </tr> <input type=hidden name=ref value='"; if($_GET['REF']) { $_GET['ref'] = abs(@intval($_GET['ref'])); $_GET['REF'] = abs(@intval($_GET['REF'])); print $_GET['REF']; } echo "' />"; if($set['regcap_on']) { echo "<tr> <center><td colspan=3><center>[img=captcha_verify.php?bgcolor=232323] <center><input type='text' name='captcha' /></td> </tr>"; } echo " <tr> <td colspan=3 align=center><input type=submit value=Submit></td> </tr> </table> </form> [b]Brought to you by Zero.Affect © Heaven-Designs™ {$year}-2009.[/b]"; echo "</center></font> </td> <td width='19'> </td></tr><tr> <td height='62' colspan='3' valign='top'>[img=images/RB.png]</td> </tr></table>"; } print <<<OUT </td> </tr> </table> </center> </body> </html> OUT; ?> I edited it a little
  18. Re: the market shouldn't this be in the requests folder?
  19. Re: Staff Applications [FREE] kinda ruins it a little
  20. Re: The Standards of CE Mod!   My list would be   Luke Floydian Nyna   :s And radio-active, a rating system just doesn't work as it has shown in the past. Thanks mate, your off my Christmas list now :wink: That's a joke BTW... i would never compare my coding with Luke, Nyna OR Floydie poo they could code rings around most of us but has each day goes by we all learn something new The idea of the beginner / semi pro / advanced is quite clever Karma was something i never had chance to appreciate since it was taken off just before i joined Getting rid of the IE: {buy a cookie and get brave} modifications out of free modifications and in something like learning scripts would be a good idea since most people just stay in the game modifications dir in forum. but has i have said on several of the older posts DELETE TOPIC good idea lol i seriously want to delete some of my older posts
  21. Re: Voting token exchange why on earth would you add strip tags.... its numeric...   <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); if(!$_GET['spend']) { print "Welcome to the Voting Redemption Center! You have [b]{$ir['votetoken']}[/b] Vote Tokens. What would you like to spend your Vote Tokens on? [url='votingredmptioncenter.php?spend=IQ']IQ - 50 IQ per Vote Token[/url] [url='votingredmptioncenter.php?spend=labour3']Trade for labour - 3,000 labour per Vote Token[/url] [url='votingredmptioncenter.php?spend=guard3']Trade for guard - 3,000 guard per Vote Token[/url] [url='votingredmptioncenter.php?spend=agility3']Trade for agility - 3,000 agility per Vote Token[/url] [url='votingredmptioncenter.php?spend=strength3']Trade for strength - 3,000 strength per Vote Token[/url] [url='votingredmptioncenter.php?spend=Diamonds']Trade for 6 Crystals per Vote Token[/url] [url='votingredmptioncenter.php?spend=Donator']Trade for 1 Donator Day per 35 Vote Tokens[/url] [url='votingredmptioncenter.php?spend=Vip']Trade for 1 Vip Day per 60 Vote Tokens[/url] [url='votingredmptioncenter.php?spend=Honor']Trade for 1 Honor Award per 120 Vote Tokens[/url] "; } else { if($_GET['spend'] == 'IQ') { print "Type in the amount of Vote Tokens you want to swap for IQ. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 50 IQ.<form action='votingredmptioncenter.php?spend=IQ2' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['votetoken']=abs((int) $_POST['votetoken']); if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['votetoken']*50; $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $iqgain IQ."; } } else if($_GET['spend'] == 'labour3') { print "Type in the amount of Vote Tokens you want to swap for labour. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 labour.<form action='votingredmptioncenter.php?spend=labour4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'labour4') { $_POST['votetoken']=(int) $_POST['votetoken']; if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=labour3']Back[/url]"; } else { $labourgain=$_POST['votetoken']*3000; $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET labour=labour+$labourgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $labourgain labour."; } } else if($_GET['spend'] == 'guard3') { print "Type in the amount of Vote Tokens you want to swap for guard. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 guard.<form action='votingredmptioncenter.php?spend=guard4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard4') { $_POST['votetoken']=abs((int)($_POST['votetoken'])); if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=guard3']Back[/url]"; } else { $guardgain=$_POST['votetoken']*3000; $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $guardgain guard."; } } else if($_GET['spend'] == 'agility3') { print "Type in the amount of Vote Tokens you want to swap for agility. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 agility.<form action='votingredmptioncenter.php?spend=agility4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility4') { $_POST['votetoken']=(int) $_POST['votetoken']; if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=agility3']Back[/url]"; } else { $agilitygain=$_POST['votetoken']*3000; $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $agilitygain agility."; } } else if($_GET['spend'] == 'strength3') { print "Type in the amount of Vote Tokens you want to swap for strength. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 strength.<form action='votingredmptioncenter.php?spend=strength4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength4') { $_POST['votetoken']=(int) $_POST['votetoken']; if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=strength3']Back[/url]"; } else { $strengthgain=$_POST['votetoken']*3000; $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $strengthgain strength."; } } else if($_GET['spend'] == 'Diamonds') { if($ir['votetoken'] <1) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-1,crystals=crystals+6 WHERE userid=$userid",$c); print "You have paid 1 Vote Token for 6 Crystals."; } } else if($_GET['spend'] == 'Donator') { if($ir['votetoken'] <35) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-35,donatordays=donatordays+1 WHERE userid=$userid",$c); print "You have paid 5 Vote Tokens for 35 Donator Day."; } } else if($_GET['spend'] == 'Vip') { if($ir['votetoken'] <60) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-60,vipdays=vipdays+1 WHERE userid=$userid",$c); print "You have paid 60 Vote Tokens for 1 Vip Day."; } } else if($_GET['spend'] == 'Honor') { if($ir['votetoken'] <120) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-120 WHERE userid=$userid",$c); mysql_query("UPDATE honortable SET honor=honor+1 WHERE userid=$userid",$c); print "You have paid 120 Vote Tokens for 1 Honor Award."; } } } $h->endpage(); ?>   and maybe just for a little help learn   Strip_Tags Sprintf MRES
  22. Re: The Standards of CE Mod!   I like that just cause i got in that list maybe that's because of my login/register mods but MD maybe think over the delete own topic idea it would come in handy rather than adding loads of topics to war zone or rather than people just emptying the main post and changing the subject to delete and i agree with war hero a approval position would be a good idea good: free modifications medium: newbie modifications bad: delete i mean we all spend alot of time on here lol (more than the sites i code for sometimes :-D) so what ya reckon MD?   EDITED BELOW: We could also have the newbie modifications section for helping people with learning me and Kyle could easily post some nice examples of sql inputs deletes etc...
  23. Re: The Standards of CE Mod! md should add a delete topic option to topic creators that would be a good thing because of several old topics of mine i would love to delete rather than posting on them again and changing it to "delete me please" which never get deleted anyways which is kind of annoying and iamwicked & sniko you are showing the behavior of which this post is all against i would recommend not posting one line replies over something that could be resolved in private messaging. and just to comment on it since its being discussed here, capital letters don't mean sh!t get a f'ing life it's not like its going to annoy you in any way how someone else types it's not like he's doing it how i used to do it IE: ZeRo AffECT so refrain from your idiotic replies because if i was a admin i would ban you just for that. (this is not targeted specially for sniko and iamwicked it is targeted to loads of people on here who should be banned IE: kyle lol Just kidding mate :lol:) and Sniko i mean no offense i actually like you but cut down on the replies mate or atleast take it to private message.
  24. Re: Voting token exchange nice mod, i was thinking of making something similar the other day but abit more advanced
  25. Re: AV Bounty/Hitmanlist [V2] sadly on here people don't try they just are idiots
×
×
  • Create New...