mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +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 ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
@@ -211,16 +211,7 @@ define("DOWLAN_196", "list");
|
||||
define("DOWLAN_197", "random");
|
||||
define("DOWLAN_198", "Filter");
|
||||
|
||||
define("DOWLAN_199", "Beware: after pruning the statistics shown per download might not reflect their total history!");
|
||||
define("DOWLAN_200", "Number");
|
||||
define("DOWLAN_201", "Year/month");
|
||||
define("DOWLAN_202", "Prune downloads history");
|
||||
define("DOWLAN_203", "Download history records deleted.");
|
||||
define("DOWLAN_204", "Back to prune overview");
|
||||
define("DOWLAN_205", "Prune downloads history details");
|
||||
define("DOWLAN_206", "Download history record deleted.");
|
||||
define("DOWLAN_207", "Back to prune details overview");
|
||||
define("DOWLAN_208", "Prune downloads history");
|
||||
|
||||
|
||||
define("DOWLAN_HELP_1", "Help");
|
||||
define("DOWLAN_HELP_2", "<p>Create/edit a download.</p><p>Enter only one of: File, URL or Mirror.</p><p>Ensure you select a category, otherwise your download will not be visible on the downloads page.</p>");
|
||||
|
@@ -14,7 +14,7 @@
|
||||
<link url='admin_download.php?cat' description='' icon='images/downloads_32.png' iconSmall=''>DOWLAN_31</link>
|
||||
<link url='admin_download.php?opt' description='' icon='settings' iconSmall=''>DOWLAN_32</link>
|
||||
<link url='admin_download.php?limits' description='' icon='images/downloads_32.png' iconSmall=''>DOWLAN_112</link>
|
||||
<link url='admin_download.php?mirror' description='' icon='images/downloads_32.png' iconSmall=''>DOWLAN_128</link>
|
||||
<link url='admin_download.php?mirror' description='' icon='images/downloads_32.png' iconSmall=''>DOWLAN_128</link>
|
||||
</adminLinks>
|
||||
<siteLinks>
|
||||
<link url="{e_PLUGIN}download/download.php" perm="everyone" >DOWLAN_29</link>
|
||||
|
@@ -61,7 +61,7 @@ class gallery
|
||||
$text = "";
|
||||
foreach($this->catList as $val)
|
||||
{
|
||||
$sc->setParserVars($val);
|
||||
$sc->setVars($val);
|
||||
$text .= e107::getParser()->parseTemplate($template['CAT_ITEM'],TRUE);
|
||||
}
|
||||
$text = $template['CAT_START'].$text.$template['CAT_END'];
|
||||
@@ -88,7 +88,7 @@ class gallery
|
||||
|
||||
foreach($list as $row)
|
||||
{
|
||||
$sc->setParserVars($row);
|
||||
$sc->setVars($row);
|
||||
$inner .= $tp->parseTemplate($template['LIST_ITEM'],TRUE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user