Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. Re: Cronus - Titan Gaming Media Your welcome. Always glad to help :-)
  2. Re: Cronus - Titan Gaming Media Max line's of code could be 30. 1 sql to users table.
  3. Re: Voting Issues Predefine the session_start();   <?php require "global_func.php"; session_start(); if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; 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; $is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid"); $ir=$db->fetch_row($is); $q=$db->query("SELECT * FROM votes WHERE userid=$userid AND list='xtop'"); if($db->num_rows($q)) { print "You have already voted at Xtreme Top 100 today!"; } else { $db->query("INSERT INTO votes values ($userid,'xtop')"); $db->query("UPDATE users SET crystals=crystals+5 WHERE userid=$userid"); header("Location:http://www.xtremetop100.com/in.php?site=1132237581"); exit; } ?>   I would say:   Advanced Voting: $15 Description: Sick and tired of adding new vote site's via the webpage and adding new file's then when you want to take it off you need to delete the links etc? Well then this is the mod for you, it allow's you to edit, delete, add new vote site's. This also counts how many votes per day and total vote's. Allows you to give crystals & money Made by me.
  4. Re: Cronus - Titan Gaming Media Well he is pretty busy at some time's, i will catch him on msn some time and tell him for you.
  5. Re: Revamped RentaSpy [FREE] [v2] The post above was me, i was on my other account never knew.
  6. Re: Revamped RentaSpy [FREE] [v2] Nice mod, but the spy does tell them there exact stat's not wether if they are weaker or stronger :-P
  7. Re: Enhanced Hall of fame [v2] COMPLETED! First post updated, fully functional.
  8. Re: [v1] Rich Uncle Well he does not have the predefined value befor the request: if($answer == "no" || $answer == "") Would prefer if($answer == "no" OR !$answer) OR $answer = $_POST['answer']; if($answer == "no")
  9. Re: [v1] Rich Uncle * Killah wonders if this mod works.
  10. Re: My Orginization & My Production (V2) Are you telling me you cant use <?=$ir['blah'];?> because of your host? Becuase any php version, any host allows that.
  11. Re: 3 Word Game to visit her
  12. Re: 3 Word Game she will go...
  13. Re: Free 2 - Gym It is another way to define that the mod is your's. By making the /* -- blah */ tags ontop of the they can just take it away, but add <!- Blah -!> in side the code, they will think it is used for some thing so when ever you want to see that some one is using your mod illegaly, you just click view source and look for <!- Blah -!>
  14. Re: Free 2 - Gym As for as i know the comment should be like this: <!- Nyna -!> Not double -- but i dont know i might be wrong.
  15. Re: My Orginization & My Production (V2) * Killah's eyes are burning! Oh my, if you want to make a script close of php please do it in the correct form. For example:   <?php ###################### ##keep this notice######### ##################### ?> <h3>Organization</h3> <?=$ir['bodyguards'];?>   If you notice correctly i aint using: <? nor print " i use: <?=$ir['bodyguards'];?> it will then print out what you want to print.
  16. Re: Enhanced Hall of fame [v2] COMPLETED! Refresh page, this mod works the way i wanted it to.
  17. Re: Enhanced Hall of fame [v2] COMPLETED! Colonel, i updated my post, update yours to.
  18. Re: Enhanced Hall of fame [v2] COMPLETED! @ illusions : The javascript is a pop up window setting a session to add the asc and desc. The other javascript is to close the window once the full script has loaded. @ Colonel : Remove the bails busts etc.   @ everyone else : Feel free to post a working version of the javascript's that work for ie. THIS MOD WAS TESTED WITH FF
  19. Re: Enhanced Hall of fame [v2] COMPLETED! Mod completly done. It now has: # - Filter (ASC & DESC) - (hall of shame & hall of fame put together) # - Donator Options - (All users & Non donators & Only donators) Script: <?php /* -- Created By Kyle -- Price: FREE; -- Keep notice. */ //Pop ups then closed session_start(); $close_window = '<script LANGUAGE="JavaScript"> function closePg(){ window.close(); return true; } </script> <body onLoad="return closePg()"></body>'; $display_o = "Session installed now closing. ".$close_window; if($_GET['filter'] == 1) { $_SESSION['filter'] = "ASC"; echo $display_o; } else if($_GET['filter'] == 2) { $_SESSION['filter'] = "DESC"; echo $display_o; } if($_GET['don'] == 1) { $_SESSION['donator'] = "AND donatordays=0"; echo $display_o; } else if($_GET['don'] == 2) { $_SESSION['donator'] = "AND donatordays>0"; echo $display_o; } else if($_GET['don'] == 3) { $_SESSION['donator'] = ""; echo $display_o; } //if not filter & donator if(!$_SESSION['filter']) { $_SESSION['filter'] = "DESC"; } if(!$_SESSION['donator']) { $_SESSION['donator'] = ""; } include("globals.php"); //SETTINGS// $header_image = "http://rapid-riot.com/images/header.jpg"; //Pic to display in <th> $border = 0; //Border on your game $td_align = "center"; //Align the <td> $filter = $_SESSION['filter']; //Filter - leave as is for both hall of shame and hall of fame built in one. $donator = $_SESSION['donator']; //Donator - leave as is for all donators non donators all. //SECURITY// if($_GET['display']) { $allowed = array ( level, money, crystals, ratings, bails, busts, friend_count, enemy_count, _blank, total, agility, labour, IQ, guard, strength, guard, ); if(!in_array($_GET['display'],$allowed)) { echo 'Input not allowed.'; $h->endpage(); exit; } } $filter_asc = "<a href=\"javascript:void(0)\" onclick=\"window.open('?filter=1','Pop Up','width=1, height=1'); return false;\">Ascending Order</a>"; $filter_desc = "<a href=\"javascript:void(0)\" onclick=\"window.open('?filter=2','Pop Up','width=1, height=1'); return false;\">Descending Order</a>"; $donator_non = "<a href=\"javascript:void(0)\" onclick=\"window.open('?donator=1','Pop Up','width=1, height=1'); return false;\">Non Donators</a>"; $donator_all = "<a href=\"javascript:void(0)\" onclick=\"window.open('?donator=3','Pop Up','width=1, height=1'); return false;\">All Users</a>"; $donator_onl = "<a href=\"javascript:void(0)\" onclick=\"window.open('?donator=2','Pop Up','width=1, height=1'); return false;\">Only Donators</a>"; echo ' <h1>Hall Of Fame</h1> [b]Filter:[/b] '.$filter_asc.' | '.$filter_desc.' [b]Donator\'s: '.$donator_non.' | '.$donator_all.' | '.$donator_onl.' <table class="table" width="75%" border="'.$border.'"> <tr> <th>[url="?display=level&x=1"]LEVEL[/url]</th> <th>[url="?display=money&x=1"]MONEY[/url]</th> <th>[url="?display=crystals&x=1"]POINTS[/url]</th> <th>[url="?display=ratings&x=1"]RATINGS[/url]</th> <th>[url="?display=busts&x=1"]BUSTS[/url]</th> </tr> <tr> <th>[url="?display=bails&x=1"]BAILS[/url]</th> <th>[url="?display=friend_count&x=1&dj=Most Liked"]MOST LIKED[/url]</th> <th>[url="?display=enemy_count&x=1&dj=Most Hated"]MOST HATED[/url]</th> <th>[url="?display=_blank&x=2"]HIGHEST HOUSE[/url]</th> <th>[url="?display=_blank&x=3"]TOP GANG[/url]</th> </tr> <tr> <th>[url="?display=total&x=4"]TOTAL STATS[/url]</th> <th>[url="?display=strength&x=4"]STRENGTH[/url]</th> <th>[url="?display=agility&x=4"]AGILITY[/url]</th> <th>[url="?display=IQ&x=4"]IQ[/url]</th> <th>[url="?display=labour&x=4"]LABOUR[/url]</th> </tr> <tr> <th>[url="?display=guard&x=4"]GUARD[/url]</th> </tr> </table>'; if($_GET['x'] == 1) { if(!$_GET['dj']) { $var = ucfirst(htmlspecialchars($_GET['display'])); } else { $var = $_GET['dj']; } echo ' Showing user\'s order by '.$var.' '.$filter.' <table class="table" width="75%" border="'.$border.'"> <tr> <th>Username</th> <th>'.$var.'</th> </tr> <tr><!- Kyles Hall of fame Enhanced -!>'; $display = htmlspecialchars($_GET['display']); $fetch = mysql_query("SELECT * FROM users WHERE user_level != 0 ".$donator." ORDER BY ".$display." ".$filter.",userid ASC LIMIT 20"); while($t = mysql_fetch_assoc($fetch)) { if($display == "money") { $t[$display] = money_formatter($t['money']); } else if($display == "crystals") { $t[$display] = number_format($t['crystals']); } if($ir['userid'] == $t['userid']) { $t['username'] = "[b]".$t['username']."[/b]"; } echo ' <td align="'.$td_align.'">[url="viewuser.php?u='.$t['userid'].'"]'.$t['username'].'[/url] ['.$t['userid'].']</a></td> <td align="'.$td_align.'">'.$t[$display].'</td> <tr>'; } echo ' </tr> </table>'; } if($_GET['x'] == 2) { echo ' Showing user\'s order by Highest House in '.$filter.' <table class="table" width="75%" border="'.$border.'"> <tr> <th>Username</th> <th>House</th> </tr> <tr><!- Kyles Hall of fame Enhanced -!>'; $fetch = mysql_query("SELECT * FROM users WHERE user_level!=0 ".$donator." ORDER BY maxwill ".$filter.",userid ASC LIMIT 20") or die(mysql_error()); while($t = mysql_fetch_assoc($fetch)) { $house = mysql_fetch_assoc(mysql_query("SELECT * FROM houses WHERE hWILL=".$t['maxwill'])) or die(mysql_error()); echo ' <td align="'.$td_align.'">[url="viewuser.php?u='.$t['userid'].'"]'.$t['username'].'[/url] ['.$t['userid'].']</a></td> <td align="'.$td_align.'">'.$house['hNAME'].'</td> <tr>'; } echo ' </tr> </table>'; } if($_GET['x'] == 3) { echo ' Showing gang\'s order by highest respect in '.$filter.' <table class="table" width="75%" border="'.$border.'"> <tr> <th>Gang Name</th> <th>Gang Respect</th> </tr> <tr><!- Kyles Hall of fame Enhanced -!>'; $fetch = mysql_query("SELECT * FROM gangs ORDER BY gangRESPECT ".$filter." LIMIT 20") or die(mysql_error()); while($t = mysql_fetch_assoc($fetch)) { echo ' <td align="'.$td_align.'">[url="gangs.php?action=view&ID='.$t['gangID'].'"]'.$t['gangNAME'].'[/url]</td> <td align="'.$td_align.'">'.$t['gangRESPECT'].'</td> <tr>'; } echo ' </tr> </table>'; } if($_GET['x'] == 4) { $var = ucfirst(htmlspecialchars($_GET['display'])); echo ' Showing user\'s order by '.$var.' stats in '.$filter.' <table class="table" width="75%" border="'.$border.'"> <tr> <th>Username</th> </tr> <tr>'; if($_GET['display'] == "total") { $fetch = mysql_query("SELECT * FROM userstats ORDER BY (strength+agility+guard+labour+IQ) ".$filter." LIMIT 20") or die(mysql_error()); } else { $fetch = mysql_query("SELECT * FROM userstats ORDER BY ".$_GET['display']." ".$filter." LIMIT 20") or die(mysql_error()); } while($t = mysql_fetch_assoc($fetch)) { $user = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE userid=".$t['userid'])) or die(mysql_error()); echo ' <td align="'.$td_align.'">[url="viewuser.php?u='.$user['userid'].'"]'.$user['username'].'[/url]</td> <tr>'; } echo ' </tr> </table>'; } $h->endpage(); ?>   Will update first post in a bit.
  20. Re: My First MOD EVER!!! Need help..think there is big time mistakes... You werent way off, you arnt familiar with mixing php / html / javascript into one. And the mccode base + querys. Lol in my script i misses a s in the query:   mysql_query("UPDATE user SET money=money+".$money_give." WHERE userid=".$ir['userid']);   Should be:   mysql_query("UPDATE users SET money=money+".$money_give." WHERE userid=".$ir['userid']);
  21. Re: My First MOD EVER!!! Need help..think there is big time mistakes...   <?php echo ' <html> <head> <script type="text/javascript"> function disp_alert() { alert("Hello!"); } </script> <head> </html> <body>'; include("globals.php"); $money_give = 900; //Enter money give here $d = date("D"); if($d == "Thurs") { echo 'Go away... ; Continue playing..and invite your friends!'; } else { mysql_query("UPDATE user SET money=money+".$money_give." WHERE userid=".$ir['userid']); echo 'You were giving '.money_formatter($money_give).'!'; $h->endpage(); exit; } echo ' <input action="button" onClick="disp_alert()" value="Click Here!!!"> </body>'; $h->endpage(); ?>
  22. Haunted Dawg

    Im back

    Re: Im back Welcome Back
  23. Re: Basic Stock Market [V2] * Killah sighs :cry: Who ever users this i suggest dont. Nice easy and exploitable.
  24. Re: [FREE] [V2] Ian's Investments * Killah Coughs Funny how zero affect in every other post of mine that my code is in he complain's about the tab space's. But here he want's to make a mod with you.
  25. Re: Battletent Fix Break in mod is still part of my old coding... My new way:   $v = mysql_query("SELECT * FROM users WHERE userid=".$id) or die(mysql_error()); $p = mysql_fetch_assoc($v);
×
×
  • Create New...