/************************************************************************
=========================================================
| @ Script Name : EasyCron
| @ Version : 1.0
| @ Description : Open and Close your website in fixed times .
| @ All rights reserved to : NaiF PHP
| @ Created In : 8-9-2006
| @ Support Site : http://www.naifphp.net
=========================================================
**************************************************************************/
# ABOUT THIS CLASS :
- Use It to manage your open/close status for your website .
- You can fix your start time for your website /open .
- You can fix your close time for your website /close .
- You can adding more hours for your website to open and close.
- You can show the time which your website will be avaliable .
- it's easy for using .
# ABOUT USING :
- go to make.php to make new cron
- include the EasyCron.php in your website header
- May you need to statement this folder 'easycron' (Chmod) the 777 .
# Notes :
- if you want to use EasyCron in another folder, just use
$obj->cron_path = "path/to/EasyCron";
then add :
include("path/to/easycron/example.php");
in the included page .
for example :
easycorn : "path/to/easycron/example.php"
add this line in example.php :
$obj->cron_path = "path/to/easycron";
you have another folder : "path/to/new_folder/index.php"
add this code in index.php for included cron page :
include("path/to/easycron/example.php");
thanks for you . |