
AlabamaHit
Members-
Posts
1,308 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by AlabamaHit
-
you don't need to use both of these. This is one option. It of course checks if there is an action and if it is a string. if it is. it removes spaces from it. if is not it redirects to index. $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? trim($_GET['action']) : 'index'; The other is This of course is an array. If get is not in array. you don't access page. if (!in_array($_GET['action'], array('index', 'add', 'Buy'))) { echo('Invalid Command!'); exit($h->endpage()); } You only need one of the two. You are basicaly doing the same thing twice. Also, you really don't need either of them This only stops and attack if they use GET action. they can change the word action and do an attack. I don't use either of them. Just make sure rest of page is secure from quick look it does look good.
-
Looking for Attack Page -See ScreenShot-
AlabamaHit replied to KyleH112's topic in Requests & In Production
Well, I know the point your trying to make but what I'm saying is people like the one that posted here. Saying "I Just want the completed code" is "Not" a person trying to learn or willing to pay for a coder/programmer like yourself is. That is what I was saying, you must have misunderstood, and yes this site is to talk/share/learn yes. but not to babysit/hold hands. -
Looking for Attack Page -See ScreenShot-
AlabamaHit replied to KyleH112's topic in Requests & In Production
Oh that is just great, All we need is another person on here wanting everyone on this forums to build THEIR GAME for THEM. Cause that is what your asking. People that just want the CODE and not HELP make me sick..Guess it is best I'm not admin on here cause I would truely get rid of people looking just for code and not help. If you just want the code why not just go back to the warez site you downloaded your illegal copy of mccoeds from and fine one,. -
Yeah new user has nothing, but only about 20% will actually claim a starter pack first. 80% will checdk the game out first to see if it is a waist of time. And in the adventure will get stuff. Besides it is good habit to use your funciton regardless if you need it or not.
-
You should check into item_add() function. Will make your life alot easier.
-
Well at quick glance, this "Might" block some stuff but overall this is a complete "Fail" on security... It is done completely wrong. Don't ask me to show you the right way because it has been done on here atleast 300 times.Just search.
-
lol of course he don't. Your better off gettting the professionals to do it with the $2K. If he knew how to make 1K a month off $100 he would have 'never' stopped running a game. For the simple fact he would be a very rich man by now, probarly in the millions of dollars. So no I don't belive that and will never belive that. Any 'free' advertising will get members but with free there is alot of compatition so you will not get many if any members. Just my 2cents.
-
For any this 'should' work. if(file_exist('globals.php')) { include_once('globals.php'); } else { 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(); }
-
Yes it was Golden Yes it was paid So no I wouldn't give it away. Or make a Free one from one that is paid. That is just not right.
-
I use it because it gives me more random numbers than rand() does.
-
This what you trying to do? Completely untested, and made quickly. So if there is problems you know why. <?php include_once('globals.php'); if(isset($_POST['roll'])) { // //Get the random numbers for 3 die. // $die1 = mt_rand(1,6); $die2 = mt_rand(1,6); $die3 = mt_rand(1,6); $total = $die1 + $die2 + $die3; // //Display the roll. // printf('<image src="die/die'.$die1.'.jpg" alt="die:'.$die1.'" />'); printf('<image src="die/die'.$die2.'.jpg" alt="die:'.$die2.'" />'); printf('<image src="die/die'.$die3.'.jpg" alt="die:'.$die3.'" />'); printf(' Your total is '.$die1.' + '.$die2.' + '.$die3.' = '.$total.'.</p>'); // //This is where they win their tickets/money // if($total == 6) { $update_1 = sprintf("UPDATE users SET vouchers = vouchers + 2 WHERE userid = %u",abs(@intval($ir['userid']))); $db->query($update_1); printf('<h1>Winner!!</h1> Take these 2 vouchers</p>'); } else if($total == 12) { $update_1 = sprintf("UPDATE users SET vouchers = vouchers + 3 WHERE userid = %u",abs(@intval($ir['userid']))); $db->query($update_1); printf('<h1>Winner!!</h1> Take these 3 vouchers</p>'); } else if($total == 18) { $update_1 = sprintf("UPDATE users SET vouchers = vouchers + 6, money = money + 2500 WHERE userid = %u",abs(@intval($ir['userid']))); $db->query($update_1); printf('<h1>Winner!!</h1> Take these 6 vouchers and $2,500</p>'); } else { printf('Sorry you didn\'t win anything.'); } // //Print more and roll again. Also take their tickets for the roll // $update_2 = sprintf("UPDATE users SET tickets = tickets - 5 WHERE userid = %u",abs(@intval($ir['userid']))); $db->query($update_2); printf(' You have %u tickets.</p>',number_format($ir['tickets'])); printf(' You have %u vouchers.</p>',number_format($ir['vouchers'])); printf('[url="rollem1.php"]<font color="red"><Click to roll again</font>[/url]'); } else { // //No ticket no roll // if($ir['tickets'] == 0) { printf('Sorry, you are out of tickets. '); printf('[url="casino.php"]<font color="red">Click here to buy more</font>[/url]'); $h->endpage(); exit; } // //Table for showing what they win??? // printf(' You have %u tickets.</p>',number_format($ir['tickets'])); printf(' You have %u vouchers.</p>',number_format($ir['vouchers'])); printf('<center><table BORDER=2 CELLPADDING=2 CELLSPACING=2>'); printf('<tr>'); printf('<td>Any combinations of 6 = 2 vouchers.</td>'); printf('</tr><tr>'); printf('<td>Any combinations of 12 = 3 vouchers.</td>'); printf('</tr><tr>'); printf('<td>Score 18 = 6 vouchers + $2500.</td>'); printf('</tr><tr>'); printf('<form action="rollem1.php" method="post">'); printf('<input name="roll" type="submit" value="Roll" />'); printf('</form>'); printf('</table>'); } $h->endpage(); ?>
-
The first one is 'admin' not being in the table. The second is the 'post['userID']' is not getting sent. You need to check your form there is a problem there.
-
You can use timestamps on just about everything. Just be careful if done wrong it will be slower than crons lol.
-
This is a Paid mod. It needs to be removed. Dave is the maker of this im about 80% sure. I remeber a while back he told me he made his with ion. So mods please remove this.
-
Why are these called "Ladders" I have yet to see a "Ladder" attack board. Everyone is just another (Well upgraded of course) Battletent. No matter how you look at it. Not saying the mod is bad cause this sounds like it has quite a few extras in it. Just really wonder why peopel call it a "Ladder"
-
Spread the code out for us. I know you said it isn't your fault. I understand. Sometimes on a copy and paste it messes up. But I personally am having a very hard time reading it.
-
Yeah the file has to go up a directory and then into includes. I have tried what you gave also. I have tried what i posted first and these ./../includes/functions.php and ../includes/functions.php It really has me mind boggled. It is only doing this on LAMP lol. Which really sucks lol
-
I'm having a hard time figuring this out. I have searched and search and couldn't figure it out. I have LAMP installed. (Ubuntu 9.10). PhpMyadmin is installed. I keep getting this error only on my register page. Warning: include_once(/../includes/functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/alabamahit/Projects/My Codes/pages/register.php on line 28 Warning: include_once() [function.include]: Failed opening '/../includes/functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/alabamahit/Projects/My Codes/pages/register.php on line 28 The page is in the right place. I know it is not that. What is really odd. It don't do this on my web host... The line is include_once("/../includes/functions.php"); There is nothing specail on the page. Just a very basic register page i made.. Any ideas? Or ever ran into this before?
-
I was refering to the post up there on that page. I DO have my own game engine. I DON'T have this GRPG Engine. Like I said I was talking about the one posted. NOTE I SAID SCRIPT. Not ENGINE. Why not update this script? Simple 80% of people don't appreciate the time it takes. 20% Just complain about how you do things. Rant over. (I will not be posting back on this Topic, cause I'm not going to set here and argue over something stupid.)
-
That script is all jacked up.........................
-
if you have a 3 button mouse (wheel). Click the link with the "Wheel". that opens in new tab.
-
v1 has endpage() function just like v2.
-
Great Work. :D
-
This is a very simple mod, I made for players along time ago. It allows them to view older organised crimes. Just make a link to it where ever you want it. make a page called. view_oc_log.php <?php include_once('globals.php'); printf('<h2>Last 25 Organised Crimes</h2>'); printf('<table class="table" width="100%%">'); printf('<tr>'); printf('<th width="25%%">Crime</th>'); printf('<th width="25%%">Time Executed</th>'); printf('<th width="25%%">Result</th>'); printf('<th width="25%%">Money Made</th>'); printf('</tr>'); $get_gang = sprintf("SELECT ocCRIMEN, ocTIME, oclRESULT, oclMONEY FROM oclogs WHERE oclGANG = %u ORDER BY ocTIME DESC LIMIT 25",abs(@intval($ir['gang']))); $do_gang = $db->query($get_gang); while($j = $db->fetch_row($do_gang)) { printf('<tr>'); printf('<td align="center">%s</td>',stripslashes($j['ocCRIMEN'])); printf('<td align="center">'.date('F j, Y, g:i:s a',$j['ocTIME']).'</td>'); printf('<td align="center">%s</td>',ucwords($j['oclRESULT'])); printf('<td align="center">$'.number_format($j['oclMONEY']).'</td>'); printf('</tr>'); } printf('</table>'); $h->endpage(); ?> Screenshot Yeah I know this is very simple. Players like it though, lol.
-
Care to enlighten us on how the Global is insecure?