Implementing the whole template system using Smarty. This commit includes movements of ROOT/js, ROOT/images, etc. to theme specific directories like templates/<THEME>/. If you are attemping to use your own templates you won't need to modify Froxlor's core files. This commit may require additional work.
Signed-off-by: Arnold Bechtoldt <mail@arnoldbechtoldt.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
function getNextCronjobs()
|
||||
{
|
||||
global $db;
|
||||
global $db, $theme;
|
||||
|
||||
$query = "SELECT `id`, `cronfile` FROM `".TABLE_PANEL_CRONRUNS."` WHERE `interval` <> '0' AND `isactive` = '1' AND (";
|
||||
|
||||
@@ -60,7 +60,7 @@ function getNextCronjobs()
|
||||
|
||||
function includeCronjobs($debugHandler, $pathtophpfiles)
|
||||
{
|
||||
global $settings;
|
||||
global $settings, $theme;
|
||||
|
||||
$cronjobs = getNextCronjobs();
|
||||
|
||||
@@ -84,7 +84,7 @@ function includeCronjobs($debugHandler, $pathtophpfiles)
|
||||
|
||||
function getIntervalOptions()
|
||||
{
|
||||
global $db, $lng, $cronlog;
|
||||
global $db, $lng, $cronlog, $theme;
|
||||
|
||||
$query = "SELECT DISTINCT `interval` FROM `" . TABLE_PANEL_CRONRUNS . "` ORDER BY `interval` ASC;";
|
||||
$result = $db->query($query);
|
||||
@@ -110,7 +110,7 @@ function getIntervalOptions()
|
||||
|
||||
function getCronjobsLastRun()
|
||||
{
|
||||
global $db, $lng;
|
||||
global $db, $lng, $theme;
|
||||
|
||||
$query = "SELECT `lastrun`, `desc_lng_key` FROM `".TABLE_PANEL_CRONRUNS."` WHERE `isactive` = '1' ORDER BY `cronfile` ASC";
|
||||
$result = $db->query($query);
|
||||
@@ -135,7 +135,7 @@ function getCronjobsLastRun()
|
||||
|
||||
function toggleCronStatus($module = null, $isactive = 0)
|
||||
{
|
||||
global $db;
|
||||
global $db, $theme;
|
||||
|
||||
if($isactive != 1) {
|
||||
$isactive = 0;
|
||||
@@ -148,7 +148,7 @@ function toggleCronStatus($module = null, $isactive = 0)
|
||||
|
||||
function getOutstandingTasks()
|
||||
{
|
||||
global $db, $lng;
|
||||
global $db, $lng, $theme;
|
||||
|
||||
$query = "SELECT * FROM `".TABLE_PANEL_TASKS."` ORDER BY `type` ASC";
|
||||
$result = $db->query($query);
|
||||
|
||||
Reference in New Issue
Block a user