
Decepti0n
Members-
Posts
731 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Decepti0n
-
Re: how do u turn dps 2 items with a lot of work.
-
[site tools] Useful little function: Get_url
Decepti0n replied to DougK's topic in Free Modifications
Re: Useful little function: Get_url just use $url = get_url(); -
Re: DB class a class is a set of functions all designed to do a similar thing (database functions, attacking, forums) etc im just guessing that a database class is a set of functions to replace the traditional mysql_query etc...its what i use and its useful :) also, i dont even know what your question was really
-
Re: Cron MYSQL Link Problem. did you include the mysql.php page? the ,$c part is optional anyway, its not needed for the query to run. without it, it just uses the last connection opened with mysql_connect(). and since its a warning, it generally doesn't do much to interfere with the running of the script also, im pretty sure you don't need global $c anywhere, except inside functions.
-
Re: Cron MYSQL Link Problem. delete the ,$c bit
-
Warning: Cannot modify header information??
Decepti0n replied to corruption's topic in General Discussion
Re: Warning: Cannot modify header information?? some plugins/proxies can block it, i can block meta redirection with my firefox toolbar also, it stops loading at the header tag, so none of the page is loaded. if you put the meta thing in, it'll load all up until it, then re-direct. also even with 0 as the value its kinda slow :s -
Warning: Cannot modify header information??
Decepti0n replied to corruption's topic in General Discussion
Re: Warning: Cannot modify header information?? can't use header(), or setcookie() or any of the header tags before you output html. whats on line 24? -
Re: Accept c/c Payments without Paypal nice lesson there dlion lol, interesting
-
Re: Brave not refilling, does anything come up in the error_log file? also, is mysql.php in the same directory as the cron? if its not, like the cron is in /blah/my/cron/cron.php, you'll need to use like, include('../../../../mysql.php'); or something along those lines.
-
Re: Refilling Bars this link was posted on the old forum which used a different page systemt hingo
-
Re: Authenticate.php SQL Error help try deleting the ,$c on line 30, its not needed anyway and thats what the error is from what i remember not sure if thats why it comes up blank though, might be something else, see if anything changes if you delete that bit
-
Re: Happy Thansgiving I was i had an excuse to eat a lot of food as it is, i dont, but i will anyway!
-
Re: crime EXP theres nothing in that code that updates the database with new exp :s
-
Re: account broken at a guess function userdata($ir,$lv,$fm,$dosessh=1) { global $c,$userid; $lastip = $ir['lastip']; $q = mysql_query("SELECT COUNT(*) as num FROM `ipban` WHERE `ip`='$lastip'",$c); $rows = mysql_fetch_assoc($q); if($rows['num'] >= 1){ $a = mysql_fetch_assoc(mysql_query("SELECT `reason` FROM `ipban` WHERE `ip` = '$lastip'")); die("<body bgcolor='#333333'><center>You are banned from the site for the reason {$a['reason']}</center></body>"); } else { $i = (getenv('HTTP_X_FORWARDED_FOR') != false) ? getenv('HTTP_X_FORWARDED_FOR') : getenv('REMOTE_ADDR'); $host = gethostbyaddr($i); mysql_query("UPDATE `users` SET `lastip`='$i', laston = unix_timestamp() WHERE `userid`='$userid'",$c); } if(!$ir['email']) { die ("<body>Your account may be broken.
-
Re: Multi Account Issues $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=mysql_query("SELECT COUNT(*) FROM users WHERE lastip='$ip'"); $count = mysql_fetch_array($q); if($count[0] > 0) { die("One acc per ip"); }
-
Re: Resource id #9 and Similar Goofyness fetch it into an array first $loc=$db->query("SELECT cityname from cities WHERE cityid=$ir['location']"); $array = mysql_fetch_assoc($array); print $array['cityname']; unless you have like $db->array
-
Re: Mod ideas I made that xD
-
Free Jail Features V1.00000000 Relesed! if ($ir['brave'] = 1) die("You dont have enough brave to bail this person out of jail > [url='jail.php']Back[/url]"); always equals true eg: $vals = array('val' => 'petrol','val1' => 'fuel'); echo $vals['val']; // outputs petrol if ($vals['val'] = 'coke') // $vals['val'] is petrol, but it returns 'im cool' { echo "im cool"; } else { echo "i suck"; } need == (comparison operator)
-
Free Jail Features V1.00000000 Relesed! if ($ir['jail'] = 0) { die("This User isnt in jail"); } that'll say they always aren't in jail, basically if $ir['jail'] is set to 0, which it always does. change it to ==
-
[mccode] adding a crime panel in admin panel
Decepti0n replied to seanybob's topic in Free Modifications
adding a crime panel in admin panel you can use escapeshellcmd() and addslashes() and htmlspecialchars() on your inputs (dunno bout #3 but i sometimes use it when stuff doesn't work) echo stripslashes($var); to remove the backslashes -
User Notepad put it on the index page :s with like $ir['usernotes'] or whatever
-
[mccode] adding a crime panel in admin panel
Decepti0n replied to seanybob's topic in Free Modifications
adding a crime panel in admin panel CrimeITEXT: <textarea rows=4 cols=40 name='crimeITEXT' />{$itemi['crimeITEXT']}</textarea> for the value of a textarea (me thinks) -
[Lite] Bugget streets v1 theres no need to write global $c; as you only need to declare globals when you aren't in the global scope (ie in a function) resource mysql_query ( string query [, resource link_identifier] ) since link_identifier is in brackets, its not required in the query function (the $c bit)
-
Admin Modifcations why have three functions for it? :s You can just put it all into one with a switch on a hidden post variable
-
Developing locally on your own local PHP/MySQL/Apache server It took me about 3 months to set up php, mysql and apache on my machine manually...well not three months straight but still i found it in a book, and it was still kinda mashed together, but it works for me and it was a good learning experience lol