
HITMAN 17
Members-
Posts
1,145 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by HITMAN 17
-
Re: Simple user rating system v2 ok cool raid
-
Re: Make Money from Your Site with these tips ! how do i get more ppl on my site
-
Re: [mccode] staff applications can u talk threw where i put the staff apps accept box on v2
-
Re: Simple user rating system v2 what links give example plz
-
Re: Free Hosting Sites it is mate and u can also make a free reseller thts when im heading for
-
Re: Simple user rating system v2 were abouts do i add images and whats the code for images
-
Re: Simple user rating system v2 thnx
-
Re: Simple user rating system v2 do u have thumbs up pictures plz and add them
-
Re: [mccode] Mining mod is there a way u can replace it with out droping them
-
Re: Simple user rating system v2 i coverted this plz thank me <?php session_start(); require "globals.php"; $ID = mysql_real_escape_string($_GET['ID']); $action = mysql_real_escape_string($_GET['action']); switch($action) { case 'goodrating': good_rating(); break; case 'badrating': bad_rating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function good_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = mysql_real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_array($result)) { $gratings = $row['rating']; } mysql_query("UPDATE users SET rating = {$gratings}+1 WHERE userid='{$ID}'"); mysql_query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a good rating"; } } else { die("You can only rate once a day."); } } function bad_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = mysql_real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_array($result)) { $bratings = $row['rating']; } mysql_query("UPDATE users SET rating = {$bratings}-1 WHERE userid='{$ID}'"); mysql_query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a bad rating"; } } else { die("You can only rate once a day."); } } $h->endpage(); ?>
-
Re: [mccode] Mining mod this sounds stupid but how do i delete them
-
Re: [mccode] Mining mod still dont work a sql is wrong
-
Re: [mccode] staff applications V2 STAFF APPS V2 <?php session_start(); require "globals.php"; if($_POST['app']) { mysql_query("INSERT INTO staffapps VALUES('',$userid,'{$_POST['pos']}','{$_POST['app']}')", $c) or die("Your staff application could not be processed. Make sure you have filled out the form completely"); print "Staff application processed. You will receive a mail in less than 3 days with our decision. Good luck"; } else { print "<h3>Staff Application</h3> <form action='staffapps.php' method='post'> Position: <select name='pos'><option value='2'>Admin</option><option value='3'>Secretary</option><option value='5'>Assistant</option></select></br> Why do you deserve the position?: <textarea rows='7' cols='40' name='app'>{$_GET['app']}</textarea> <input type='submit' value='Submit Application' /></form>"; } $h->endpage(); ?>
-
Re: [mccode] Streets for v2.0 you are suppose to call the file street.php not streets
-
Re: Simple user rating system v2 thnx isomer shall i post it on here
-
Re: Simple user rating system v2 another error Fatal error: Call to a member function query() on a non-object in /home/eyers/public_html/rating.php on line 39
-
Re: Simple user rating system v2 i converted this to v2 but get error Fatal error: Call to undefined method database::real_escape_string() in /home/eyers/public_html/rating.php on line 5 <?php session_start(); require "globals.php"; $ID = $db->real_escape_string($_GET['ID']); $action = $db->real_escape_string($_GET['action']); switch($action) { case 'goodrating': good_rating(); break; case 'badrating': bad_rating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function good_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = $db->real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = $db->query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = $db->fetch_array($result)) { $gratings = $row['rating']; } $db->query("UPDATE users SET rating = {$gratings}+1 WHERE userid='{$ID}'"); $db->query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a good rating"; } } else { die("You can only rate once a day."); } } function bad_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = $db->real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = $db->query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = $db->fetch_array($result)) { $bratings = $row['rating']; } $db->query("UPDATE users SET rating = {$bratings}-1 WHERE userid='{$ID}'"); $db->query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a bad rating"; } } else { die("You can only rate once a day."); } } $h->endpage(); ?> wats wrong with it
-
Re: Money Gym Warning: Missing argument 4 for headers::userdata(), called in /home/eyers/public_html/mgym.php on line 58 and defined in /home/eyers/public_html/header.php on line 136 also repeats menu twice
-
Re: Simple user rating system v2 Warning: include(mysql.php) [function.include]: failed to open stream: No such file or directory in /home/eyers/public_html/rating.php on line 10 Warning: include(mysql.php) [function.include]: failed to open stream: No such file or directory in /home/eyers/public_html/rating.php on line 10 Warning: include() [function.include]: Failed opening 'mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eyers/public_html/rating.php on line 10 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/eyers/public_html/rating.php on line 12
-
Re: Simple user rating system v2 can someone fix error plz
-
Re: Free Hosting Sites want a free reseller well why not try http://bryansoft.com/member.php?action=register&referrer=259 very good u can make a website there
-
Re: Money Gym this will be good when v2
-
Re: [Free] [V1] Random Explore Mod +1
-
Re: [mccode] crystal slots o lol well aquib just gave me an illegal mod
-
Re: Simple user rating system v2 Parse error: syntax error, unexpected T_IF in /home/eyers/public_html/rating.php on line 29