mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 02:24:08 +02:00
Placeholder for downloads cron and some cleanup.
This commit is contained in:
55
e107_plugins/download/e_cron.php
Normal file
55
e107_plugins/download/e_cron.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* Plugin configuration module - gsitemap
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/gsitemap/e_cron.php,v $
|
||||
* $Revision: 12212 $
|
||||
* $Date: 2011-05-11 15:25:02 -0700 (Wed, 11 May 2011) $
|
||||
* $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
class download_cron // include plugin-folder in the name.
|
||||
{
|
||||
function config()
|
||||
{
|
||||
include_lan(e_PLUGIN."download/languages/".e_LANGUAGE."/admin_download.php");
|
||||
|
||||
$cron = array();
|
||||
|
||||
$cron[] = array(
|
||||
'name' => "Prune Download Log older than 12 months", // Prune downloads history
|
||||
'function' => "pruneLog",
|
||||
'category' => '',
|
||||
'description' => "Non functional at the moment"
|
||||
);
|
||||
|
||||
return $cron;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function pruneLog()
|
||||
{
|
||||
// Whatever code you wish.
|
||||
e107::getMessage()->add("Executed dummy function within gsitemap/e_cron.php");
|
||||
return ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user