Jump to content
MakeWebGames

RecklessCounty

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Everything posted by RecklessCounty

  1. Re: Help me out with an error </body></html>"; $h->endpage(); ?> and/or remebering to end all your functions with a }
  2. Re: Help with v2 please. dude just chmod it..
  3. Re: what is this top site would be www.example.com/ home page would be www.example.com/index.php
  4. This Made by me with the help of Snatchy and Decepti0n <?php /** * @author ShannenName aka ReckleesCounty * do not remove this message */ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; 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['crystals'],''); $bm=money_formatter($ir['l100bank']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if ($ir['user_level'] != 2) { print "You sneak, get out of here!"; $h->endpage(); exit; } $posta = mysql_real_escape_string(print_r($_POST, 1), $c); $geta = mysql_real_escape_string(print_r($_GET, 1), $c); mysql_query("INSERT INTO adminlogs VALUES('', $userid, '$posta', '$geta', unix_timestamp() )", $c); switch ($_GET['action']) { case "delcity": del_city(); break; case "delcitysub": del_city_sub(); break; case 'newcity': new_city(); break; case 'newcitysub': new_city_sub(); break; case 'editcity': edit_city(); break; case 'editcitysub': edit_city_sub(); break; case 'delcity': del_city(); break; case 'delcitysub': del_city_sub(); break; } print "[[url='newcity.php?action=newcity']Create New city[/url]] [[url='newcity.php?action=editcity']Edit City[/url]] [[url='newcity.php?action=delcity']Delete City[/url]] City List </pre> <table>"; $q=mysql_query("SELECT * FROM cities ",$c); print"city id no.NameDescriptionMin Level{$r['cityid']}{$r['cityname']}{$r['citydesc']}{$r['cityminlevel']}"; function new_city() { global $ir, $c, $h, $userid; print "Create New City This will create a new city. City name: City desc: City min level "; } function new_city_sub() { global $ir, $c, $h, $userid; $_POST['cityminlevel'] = abs((int)$_POST['cityminlevel']); mysql_query("INSERT INTO cities (cityname, citydesc, cityminlevel) VALUES ('{$_POST['cityname']}', '{$_POST['citydesc']}', '{$_POST['cityminlevel']}');", $c); print "[url='admin.php']> Back[/url]"; } function edit_city() { global $ir, $c, $h, $userid, $cityid; print "Edit City This will edit a city. City City id: City Name EXACTLY as it appears: City desc: City min level "; } function edit_city_sub() { global $ir,$c,$h,$userid; mysql_query("UPDATE cities SET cityid='{$_POST['cityid']}',cityname='{$_POST['cityname']}', citydesc='{$_POST['citydesc']}', cityminlevel='{$_POST['cityminlevel']}' WHERE cityid='{$_POST['cityid']}'",$c); print "City edited..."; } function del_city() { global $ir, $c, $h, $userid, $cityid; print "Delete City This will delete a city. City id: "; } function del_city_sub() { global $ir,$c,$h,$userid; mysql_query("DELETE FROM cities WHERE cityid='{$_POST['cityid']}'",$c); print "City deleted"; } $h->endpage(); ?></
  5. Re: New City Anyone? **bump**
  6. Re: Mysql Injections binary numbers can be converted before being cracked
  7. Re: Mysql Injections Don't use such a common password because md5 can't be reversed but there are md5 databases that have the md5 hash for common passwords, also add salt to the md5 that way hackers can't get it
  8. can someone tell me why my code doesn't work? <?php /** * @author ShannenName * @copyright 2007 */ session_start(); require "global_func.php"; if ($_SESSION['loggedin'] == 0) { header("Location: login.php"); exit; } $userid = $_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; 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']); $lv = date('F j, Y, g:i a', $ir['laston']); $h->userdata($ir, $lv, $fm); $h->menuarea(); if ($ir['user_level'] != 2) { print "You sneak, get out of here!"; $h->endpage(); exit; } $posta = mysql_real_escape_string(print_r($_POST, 1), $c); $geta = mysql_real_escape_string(print_r($_GET, 1), $c); mysql_query("INSERT INTO adminlogs VALUES('', $userid, '$posta', '$geta', unix_timestamp() )", $c); switch ($_GET['action']) { case "delcity": delcity(); break; case 'newcity': new_city(); break; case 'newcitysub': new_city_sub(); break; case 'editcity': edit_city(); break; case 'editcitysub': edit_city_sub(); break; } print "[[url='newcity.php?action=newcity']Create New city[/url]] [[url='newcity.php?action=editcity']Edit City[/url]] "; function new_city() { global $ir, $c, $h, $userid; print "Create New City This will create a new city. City name: City desc: City min level "; } function new_city_sub() { global $ir, $c, $h, $userid; $_POST['cityminlevel'] = abs((int)$_POST['cityminlevel']); mysql_query("INSERT INTO cities (cityname, citydesc, cityminlevel) VALUES ('{$_POST['cityname']}', '{$_POST['citydesc']}', '{$_POST['cityminlevel']}');", $c); print "[url='admin.php']> Back[/url]"; } function edit_city() { global $ir, $c, $h, $userid, $cityid; print "Edit City This will edit a city. City Name EXACTLY as it appears: City desc: City min level "; } function edit_city_sub() { global $ir,$c,$h,$userid; mysql_query("UPDATE cities (cityname, citydesc, cityminlevel)VALUES ('{$_POST['cityname']}', '{$_POST['citydesc']}', '{$_POST['cityminlevel']}');", $c); print "City edited..."; } $h->endpage(); ?>
  9. Re: End page error Thanks Decepti0n worked liked a charm! I also found a program that when you click before or after a } or { it highlights green if it has a matching } or { and red if it doesnt (if matching found it also highlights green) It's called PHP Designer 2007
  10. Re: End page error   function new_city_sub() { global $ir, $c, $h, $userid; $_POST['cityminlevel']=abs((int) $_POST['cityminlevel']); mysql_query("INSERT INTO cities (cityname, citydesc, cityminlevel) VALUES ('{$_POST['cityname']}', '{$_POST['citydesc']}', '{$_POST['cityminlevel']}');", $c); print "[url='admin.php']> Back[/url]"; } $h->endpage(); ?> is that correct because this is what I get Parse error: syntax error, unexpected $end in /home/atkscape/public_html/newcity.php on line 68
  11. Re: End page error Ok will try!
  12. I keep getting this error when trying to view newcity.php (I'm working on it!) Parse error: syntax error, unexpected $end in /home/atkscape/public_html/newcity.php on line 69   <?php /** * @author ShannenName * @copyright 2007 */ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; 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']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); if ($ir['user_level'] != 2) { print "You sneak, get out of here!"; $h->endpage(); exit; } $posta = mysql_real_escape_string(print_r($_POST, 1), $c); $geta = mysql_real_escape_string(print_r($_GET, 1), $c); mysql_query("INSERT INTO adminlogs VALUES('', $userid, '$posta', '$geta', unix_timestamp() )", $c); switch ($_GET['action']) { case 'newcity': new_city(); break; case 'newcitysub': new_city_sub(); break; case 'editcity': edit_city(); break; case 'editcitysub': edit_city_sub(); break; function new_city() { global $ir, $c, $h, $userid; print "Create New City This will create a new city. cityname: cityid: citydesc: cityminlevel "; } function new_city_sub() { global $ir, $c, $h, $userid; mysql_query("INSERT INTO city VALUES ('', '{$_POST['cityname']}', '{$_POST['cityid']}', '{$_POST['citydesc']}', '{$_POST['cityminlevel']}', $c);", $c); print "[url='admin.php']> Back[/url]"; $h->endpage(); ?> can someone tell me why and how to fix this?
  13. Re: [v1 & LITE] Crime Item Mod Would this be the SQL Query? ALTER TABLE `crimes` ADD `crimeITEM` INT( 11 ) NOT NULL DEFAULT '0';
  14. Re: [v1 & LITE] Crime Item Mod Can You post the part that credits user money for completing a crime I can't find it. Is it in criminal.php?
  15. Re: [mccode] Register Page Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/*/public_html/test.php on line 2 Parse error: syntax error, unexpected T_STRING in /home/*/public_html/test.php on line 2
  16. Re: Giving Item To All Users [FREE] lol a few spelling mistakes but works ok! The !popliation! has just !bin! given an item 7, Click Here to check.
  17. Re: [v1]Refill Users What like this? function fill_all() { global $ir,$c,$h,$userid; print "<h3>Refill Users</h3> This will refill: -Energy to max -Will to max -Brave to max -Health to max "; print " [[b][url='admin.php?action=refillsub']FILL-ALL[/url][/b]]"; print " [[b][url='admin.php?action=refillenergy']FILL Energy[/url][/b]]"; print " [[b][url='admin.php?action=refillwill']FILL Will[/url][/b]]"; print " [[b][url='admin.php?action=refillbrave']FILL Brave[/url][/b]]"; print " [[b][url='admin.php?action=refillhealth']FILL Health[/url][/b]]"; } function fill_all_send() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); mysql_query("UPDATE users SET energy=maxenergy",$c); mysql_query("UPDATE users SET brave=maxbrave",$c); mysql_query("UPDATE users SET health=maxhealth",$c); print "Your users have been refilled! [url='admin.php']> Back[/url]"; } function fill_energy() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET energy=maxenergy",$c); print "Energy Refilled! [url='admin.php']> Back[/url]"; } function fill_will() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); print "Will Refilled! [url='admin.php']> Back[/url]"; } function fill_brave() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET brave=maxbrave",$c); print "Brave Refilled! [url='admin.php']> Back[/url]"; } function fill_health() { mysql_query("UPDATE users SET health=maxhealth",$c); print "Health Refilled! [url='admin.php']> Back[/url]"; } Then add to case case 'refillenergy': fill_energy(); break; case 'refillmood': fill_mood(); break; case 'refillbrave': fill_brave(); break; case 'refillhealth': fill_health(); break; =)
×
×
  • Create New...