I was looking at this Code (shown below)
And I was wondering if there was a way to edit it so a specific user could only...lets say collect something from this page...once a month? so basically every 30 days they'd come back to claim their reward... and otherwise they cant access the page.
Please and thank you in advance. ^^
And I was wondering if there was a way to edit it so a specific user could only...lets say collect something from this page...once a month? so basically every 30 days they'd come back to claim their reward... and otherwise they cant access the page.
PHP:
<?php
include("functions/functions.php");
include("functions/functions_users.php");
include("functions/functions_adopts.php");
include("functions/functions_friends.php");
include("functions/functions_items.php");
include("inc/lang.php");
include("inc/bbcode.php");
//***************//
// START SCRIPT //
//***************//
$cashname = grabanysetting("cost");
$reward= 1;
if($isloggedin == "yes"){
changecash($reward, $GLOBALS['username'], $GLOBALS['money']);
$article_title = "Hello, {$username}!";
$article_content = "You have gained {$reward} {$cashname}.";
}
else{
$article_title = "You are not logged in!";
$article_content = "You must be logged in to view this page!";
}
//***************//
// OUTPUT PAGE //
//***************//
echo showpage($article_title, $article_content, $date);
?>
Please and thank you in advance. ^^