Location: PHPKode > projects > Dominant Creature RPG > cron/cron.php
<?php

/*

 * CRON USAGE

 * 

 * php -q /home/user/public_html/.../cron.php

 * 

 */

if ($_SERVER['REQUEST_METHOD'] == 'GET' OR $_SERVER['REQUEST_METHOD'] == 'POST') {

	

	header("Location: ../index.php");

	

} else {

	

	include("../database.php");

	

	$cronquery = " UPDATE users SET turns = turns + 30";

	

	$q = mysql_query($cronquery);

	

	// todo: add logging function

	

}



?>
Return current item: Dominant Creature RPG