Quantcast

Home arrow Forum
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Limit of 10 games for unregistered user (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Limit of 10 games for unregistered user
#628
Gentex (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Props: 30
  
Re:Limit of 10 games for unregistered user 1 Month ago  
mey bi the problem is in

Code:

CREATE TABLE `jos_puarcade_numplayed` ( `id` int(11) NOT NULL auto_increment, `ip` varchar(50) collate utf8_bin NOT NULL, `date` date NOT NULL, PRIMARY KEY (`id`), KEY `ip` (`ip`), KEY `date` (`date`) );
or not?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#629
steveometer (Admin)
Admin
Posts: 285
graph
User Online Now Click here to see the profile of this user
Props: 511
  
Re:Limit of 10 games for unregistered user 1 Month ago  
it was working, the problem is prolly where it checks to see if current date is the same as saved dates

i still haven't had a chance to look at it

SoM
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#630
steveometer (Admin)
Admin
Posts: 285
graph
User Online Now Click here to see the profile of this user
Props: 511
  
Re:Limit of 10 games for unregistered user 1 Month ago  
i got the solution

not

Code:

$REMOTE_ADDR
but
Code:

$_SERVER['REMOTE_ADDR']
also can remove the global call for $REMOTE_ADDR, saving 1 line SoM
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#631
Gentex (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Props: 30
  
Re:Limit of 10 games for unregistered user 1 Month ago  
i change $REMOTE_ADDR whit $_SERVER['REMOTE_ADDR']
this is my function

Code:

function writeflashgame($game,$Itemid,$license="",$checksum,$uname,$fullscreen=""){ global $_SERVER['REMOTE_ADDR'] global $mainframe,$database,$my,$mosConfig_live_site; if (!$my->id){ $maxplayxday=10; if (puarcade_html::pu_getIPCanPlay($REMOTE_ADDR,$maxplayxday,1)==0) { return 0; } }
this is error Parse error: syntax error, unexpected '[', expecting ',' or ';' in /var/www/htdocs/components/com_puarcade/puarcade.html.php on line 738 line 738 is global $_SERVER['REMOTE_ADDR'] where is the problem pls
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#632
Gentex (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Props: 30
  
Re:Limit of 10 games for unregistered user 1 Month ago  
10x steve

QUOTE:
}

function writeflashgame($game,$Itemid,$license="",$checksum,$uname,$fullscreen=""){

global $mainframe,$database,$my,$mosConfig_live_site;
if (!$my->id){

$maxplayxday=10;
if (puarcade_html::pu_getIPCanPlay($_SERVER['REMOTE_ADDR'],$maxplayxday,1)==0)
{
return 0;
}


now work fine 10x
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#634
steveometer (Admin)
Admin
Posts: 285
graph
User Online Now Click here to see the profile of this user
Props: 511
  
Re:Limit of 10 games for unregistered user 1 Month ago  
yeah, thats it...

glad it works now

SoM
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop