kaine- Posted November 21, 2009 Posted November 21, 2009 when i tRY tO BUY a house it says Not Found The requested URL /createhouses.php8 was not found on this server. then when i try to get on my poker it says Fatal error: Cannot redeclare checkincomingdata() (previously declared in /home/thenewre/public_html/header.php:8) in /home/thenewre/public_html/header.php on line 22 if anyone can help then please message me thanks. Quote
Danny696 Posted November 22, 2009 Posted November 22, 2009 post up your house page, or pm it to me Quote
Curt Posted November 22, 2009 Posted November 22, 2009 just to clarify, you get this error when you try to buy a house ?....or when u try to make one in the staffpanel ?...lol first off .. /createhouses.php8 <<< that 8 on the end doesnt belong... also createhouses.php is not a standard page with the default mccodes...so not sure where u got that from... to buy a house the page is called : estate.php cheers Quote
Curt Posted November 22, 2009 Posted November 22, 2009 i thought that might have been the case so i checked the v1 files and i still dont see a createhouses.php...:P not by default anyway...he might be using a mod... Quote
seanybob Posted November 22, 2009 Posted November 22, 2009 RE: on my game i have these errors can anyone help? when i tRY tO BUY a house it says Not Found The requested URL /createhouses.php8 was not found on this server. then when i try to get on my poker it says Fatal error: Cannot redeclare checkincomingdata() (previously declared in /home/thenewre/public_html/header.php:8) in /home/thenewre/public_html/header.php on line 22 if anyone can help then please message me thanks. Wherever the createhouses page was linked (most like explore.php or header.php) you mis-typed the link. Check it, you'll have appended an 8 accidentally to the end of the url. On your poker page, it looks like you included your headers twice somehow. If you post the first 30 lines of your poker page, I am nearly certain your error will be easily seen to some of the coders here. Quote
kaine- Posted November 22, 2009 Author Posted November 22, 2009 it says estate but IT sAys THAt when i try to buy one of them.. Quote
kaine- Posted November 22, 2009 Author Posted November 22, 2009 [align=justify]i just posted them here is the poker session_start(); require "globals.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); print "<h3>Poker</h3>"; //-Configuration $ChipPrice=500; // Price Per Chip in Poker $times=350; //-- how many rounds the poker game should last if(!$_SESSION['chips']) { $chiptxt="no"; } else {$chiptext=$_SESSION['chips']; } if(!$_GET['action']) { if($_SESSION['game'] == 1) { die("You cannot visit here while in a game!"); } print "Welcome to the All-Stars Poker Room! This Place is either where you have your day or you don't! Warning: If you enter the game and decide to quit before finished, You lose all your chips You currently have $_SESSION[chips] chips! <table width=50% border=1 style=\"border:groove;\" bordercolor=orange> <tr><td> Buy Chips</td></tr> <tr><td>Back to Game</td></tr>"; if($_SESSION['chips'] > 0) { [/align] Quote
kaine- Posted November 23, 2009 Author Posted November 23, 2009 im using v2 and i also need my game securing who can help with that? Quote
Curt Posted November 23, 2009 Posted November 23, 2009 well as for the poker mod you simply need to convert it to v2 which is simple... change this part : session_start(); require "globals.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); into this : include "globals.php"; now about the security there is two routes you could take... 1) Search through the forums and learn as much about security as you can...and secure it yourself 2) Pay someone to secure your game for you.. i guarantee you that no one will secure your game for free...and if someone offers to do so..be cautious be very cautious :P cheers Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.