
dementor
Members-
Posts
484 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by dementor
-
Re: Warning I actually thought the game was real hacked Jeez just shut up and sleep for gods sake
-
Re: Warning Whatever they were doing just didnt work And I got about 5 pages on my userlist with different commands lol
-
Re: Warning Someone tried that ony my game I saw like 5 lists of usernames which looked dodgy ;printf(md5(acu printf(md5(acun ';printf(md5(ac ";printf(md5(ac and there were 5 pages of this in my userlist
-
Re: [v1] Rich Uncle The only thing the user as a player does is click confirm answer there is nowhere to actually imput anything hence why there is no need for security I would think And only a dumbo would answer no ^.^ Of course it works ya **** Ive had it running in my game for how long
-
Re: [v1] Rich Uncle security for what exactly ?
-
<?php /*----------------------------------------------------- -- Dementor yours to have :) -----------------------------------------------------*/ 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'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if ($ir['hospital']>"0") { echo "Blocked while in hospital"; $h->endpage(); exit; } if ($ir['rich']=="1") { echo "You have done this once today already. [url='explore.php']Back to the city[/url]"; $h->endpage(); exit; } if ($answer=="no" || $answer=="") { $answer=$_POST['answer']; print "<form action='richuncle.php' method=POST> <h3>Rich Uncle<h3> Hello my nephew and how are you today? Do you need some cash ? <select name='answer'> <option value='yes'>Yes Please</option> <option value='no'>Not today thanks Uncle</option> </select> <input type='submit' value='Confirm Answer'> </form>"; } if ($answer =="yes") { print "<font size=3> Your uncle gives you some cash </font>"; $currentmoney=$ir['money']; $currentenergy=$ir['energy']; $rand=rand(1,10000); $new=$currentmoney+$rand; if ($ir['rich']=="1") { print "Dont get greedy now"; } else { print "Here you go have $$rand just because I love you. [img=rich.jpg]"; mysql_query("UPDATE users SET money=$new WHERE userid=$userid", $c); mysql_query("UPDATE users SET rich=rich+1 WHERE userid=$userid", $c); } } $h->endpage(); ?> In the day cron add mysql_query("UPDATE users SET rich=0",$c); Add a line to the users table with a default of 0 and int variable This code allows the your users to visit a place in town once a day for free cash very good and encourages new players to stay and player It is a simple mod thats why its free >.>
-
Re: [review]Serious Wars I still want reviews game
-
Im thinking about starting a project using V2 codes But I need to know what are the main exploits I should be looking to put a stop to in the game when i start it ?
-
[mccode v1] Allows you to email all your game users
dementor replied to dementor's topic in Free Modifications
Re: Allows you to email all your game users Ive been in ths community for so long and I never seen cash more than 70 dollars xD -
[mccode v1] Allows you to email all your game users
dementor replied to dementor's topic in Free Modifications
Re: Allows you to email all your game users Are we talking about Serious Wars here ? -
mccode-v2 8 Lines to secure your site from known sql injections.
dementor replied to Haunted Dawg's topic in Free Modifications
Re: 8 Lines to secure your site from known sql injections. I have header codes But when I checked my files seems it had patched them already :lol: -
[mccode v1] Allows you to email all your game users
dementor replied to dementor's topic in Free Modifications
Re: Allows you to email all your game users The host is paid for I had the Domain fior so long didnt make sense to change the URL :wink: That insult want aimed at you Im simply saying when will the people who use free mods learn how to code if you perfect the code ....... -
[mccode v1] Allows you to email all your game users
dementor replied to dementor's topic in Free Modifications
Re: Allows you to email all your game users I do and done it xD -
[mccode v1] Allows you to email all your game users
dementor replied to dementor's topic in Free Modifications
Re: Allows you to email all your game users Yours basically emails all the users maybe a form for the userid, Or maybe make it so if a user dosen't come online in the last 15 days email them. When are people going to learn how to code ? Why do you think I only released a basic one ......... -
[mccode v1] Allows you to email all your game users
dementor replied to dementor's topic in Free Modifications
Re: Allows you to email all your game users Only the dumb will leave the file in the main game file Hide the file in a long path ;) And either run as a cron like once a month Or run it manually once a month -
[mccode v1] Allows you to email all your game users
dementor replied to dementor's topic in Free Modifications
Re: Allows you to email all your game users The obvious would be to change the text :lol: -
Make a file emailusers.php <?php /*----------------------------------------------------------- -- Dementor -- Email Users ------------------------------------------------------------*/ require "mysql.php"; require "global_func.php"; global $c; print "<html> <head> <title>Serious Wars</title> <style> body { font-family:Verdana;font-size:8pt;color: black;background: #C3C3C3; } .details { border: 2px dashed red; background: #F88;width:50%;height=120; } .details table,tr,td { font-size:10pt;border: 1px solid white; } .logo img { border: none; } a { text-decoration: none; } </style> </head> <body><center>"; $tt=mysql_query("SELECT * FROM users",$c) or die(mysql_error()); while($gh=mysql_fetch_array($tt)) { $to = $gh['email']; $subject = "Serious Wars"; $headers = "From: Serious Wars Staff"; $body = "Hello {$gh['username']}! This is a email to remind you to check out [url]www.seriouswars.pcriot.com[/url] and login into your account to check out the game again ! It is also to apologize for the downtime that has been going on for a while. We hope to see you here soon missing you already. Serious Wars Staff"; mail($to, $subject, $body, $headers); print "Email sent to {$gh['username']}!"; } ?> Then run it in your address bar walla all your users all emailed
-
Re: [V2] Libary Ill say it again I hate smart asses
-
Re: [V2] SafeHouse Ok add a field called travelling add to header.php if travelling=blah blah print make sure to put the function exit at the end Make sure travelling is updated to 60 when user goes safe house add to minute cron take down travelling by 1 every minute Add into header if user in safehouse print you are in safe house To travel back click here it will take 60 minutes make sure travelling is updated in both instances
-
Re: [V2] Libary useless mod .....
-
mccode-v1 Travel to User Location button on profiles
dementor replied to Cyanide's topic in Free Modifications
Re: [v1] Travel to User Location button on profiles [FREE] Me and ZA settled are differences :-D -
Re: Small Mod :) And now since everything in this world was invented Who says it is even colour boy It could be afhlafha is just some dumbo who said lit is colour To me is not colour :roll:
-
Re: Grammar Lessons If you dont like the noobs go away no one asked you to come here to get help from us noobs :wink:
-
mccode-v1 Travel to User Location button on profiles
dementor replied to Cyanide's topic in Free Modifications
Re: [v1] Travel to User Location button on profiles [FREE] Heh my tantrum was in that one post now im just ironing out your faults :wink: -
Re: Maintenance Hum, I clear my DB of old data daily Not sure if that helps an9ything though :P