Compare commits
No commits in common. "74f6779c63bf7d79eebc7090344b58fe44747d7c" and "ff2c51d5052beb44c64e3f5b1d57d7fe7af70f07" have entirely different histories.
74f6779c63
...
ff2c51d505
@ -22,9 +22,6 @@ class SettingsManager{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function update ($name, $value) {
|
public static function update ($name, $value) {
|
||||||
if ($this.getByName($name)){
|
|
||||||
$this->create($name, $value);
|
|
||||||
} else {
|
|
||||||
try {
|
try {
|
||||||
Db::edit ('settings', ['value' => $value], 'WHERE name = ?', array($name));
|
Db::edit ('settings', ['value' => $value], 'WHERE name = ?', array($name));
|
||||||
} catch(PDOException $error) {
|
} catch(PDOException $error) {
|
||||||
@ -33,5 +30,4 @@ class SettingsManager{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
@ -53,7 +53,6 @@ class Automation extends Template
|
|||||||
|
|
||||||
$template = new Template('automation');
|
$template = new Template('automation');
|
||||||
$template->prepare('baseDir', BASEDIR);
|
$template->prepare('baseDir', BASEDIR);
|
||||||
$template->prepare('baseUrl', BASEURL);
|
|
||||||
$template->prepare('debugMod', DEBUGMOD);
|
$template->prepare('debugMod', DEBUGMOD);
|
||||||
$template->prepare('title', 'Automation');
|
$template->prepare('title', 'Automation');
|
||||||
$template->prepare('langMng', $langMng);
|
$template->prepare('langMng', $langMng);
|
||||||
|
@ -19,7 +19,6 @@ class Log extends Template
|
|||||||
$result = $this->logFinder ('../logs/', $result);
|
$result = $this->logFinder ('../logs/', $result);
|
||||||
|
|
||||||
$template->prepare('baseDir', BASEDIR);
|
$template->prepare('baseDir', BASEDIR);
|
||||||
$template->prepare('baseUrl', BASEURL);
|
|
||||||
$template->prepare('debugMod', DEBUGMOD);
|
$template->prepare('debugMod', DEBUGMOD);
|
||||||
$template->prepare('logToLiveTime', LOGTIMOUT);
|
$template->prepare('logToLiveTime', LOGTIMOUT);
|
||||||
$template->prepare('title', 'Logy');
|
$template->prepare('title', 'Logy');
|
||||||
|
@ -12,7 +12,6 @@ class Login extends Template
|
|||||||
|
|
||||||
$template = new Template('login');
|
$template = new Template('login');
|
||||||
$template->prepare('baseDir', BASEDIR);
|
$template->prepare('baseDir', BASEDIR);
|
||||||
$template->prepare('baseUrl', BASEURL);
|
|
||||||
$template->prepare('title', 'Home');
|
$template->prepare('title', 'Home');
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ class Oauth extends Template
|
|||||||
|
|
||||||
$template = new Template('oauth');
|
$template = new Template('oauth');
|
||||||
$template->prepare('baseDir', BASEDIR);
|
$template->prepare('baseDir', BASEDIR);
|
||||||
$template->prepare('baseUrl', BASEURL);
|
|
||||||
$template->prepare('title', 'Simple Home - Oauth');
|
$template->prepare('title', 'Simple Home - Oauth');
|
||||||
|
|
||||||
if (isset($_GET['redirect_uri'])) {
|
if (isset($_GET['redirect_uri'])) {
|
||||||
|
@ -25,7 +25,6 @@ class Plugins extends Template
|
|||||||
|
|
||||||
$template = new Template('plugins');
|
$template = new Template('plugins');
|
||||||
$template->prepare('baseDir', BASEDIR);
|
$template->prepare('baseDir', BASEDIR);
|
||||||
$template->prepare('baseUrl', BASEURL);
|
|
||||||
$template->prepare('debugMod', DEBUGMOD);
|
$template->prepare('debugMod', DEBUGMOD);
|
||||||
$template->prepare('title', 'Plugins');
|
$template->prepare('title', 'Plugins');
|
||||||
$template->prepare('langMng', $langMng);
|
$template->prepare('langMng', $langMng);
|
||||||
|
@ -36,7 +36,6 @@ class Server extends Template
|
|||||||
$template->prepare('title', 'Server');
|
$template->prepare('title', 'Server');
|
||||||
|
|
||||||
$template->prepare('baseDir', BASEDIR);
|
$template->prepare('baseDir', BASEDIR);
|
||||||
$template->prepare('baseUrl', BASEURL);
|
|
||||||
$template->prepare('debugMod', DEBUGMOD);
|
$template->prepare('debugMod', DEBUGMOD);
|
||||||
$template->prepare('langMng', $langMng);
|
$template->prepare('langMng', $langMng);
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ class Setting extends Template
|
|||||||
|
|
||||||
$template = new Template('setting');
|
$template = new Template('setting');
|
||||||
$template->prepare('baseDir', BASEDIR);
|
$template->prepare('baseDir', BASEDIR);
|
||||||
$template->prepare('baseUrl', BASEURL);
|
|
||||||
$template->prepare('debugMod', DEBUGMOD);
|
$template->prepare('debugMod', DEBUGMOD);
|
||||||
$template->prepare('title', 'Automation');
|
$template->prepare('title', 'Automation');
|
||||||
$template->prepare('langMng', $langMng);
|
$template->prepare('langMng', $langMng);
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$partial = new Partial('head');
|
$partial = new Partial('head');
|
||||||
$partial->prepare('baseDir',$BASEDIR);
|
$partial->prepare('baseDir',$BASEDIR);
|
||||||
$partial->prepare('baseUrl',$BASEURL);
|
|
||||||
|
|
||||||
$partial->render();
|
$partial->render();
|
||||||
?>
|
?>
|
||||||
<title><?php echo $TITLE ?></title>
|
<title><?php echo $TITLE ?></title>
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$partial = new Partial('head');
|
$partial = new Partial('head');
|
||||||
$partial->prepare('baseDir', $BASEDIR);
|
$partial->prepare('baseDir', $BASEDIR);
|
||||||
$partial->prepare('baseUrl', $BASEURL);
|
|
||||||
$partial->render();
|
$partial->render();
|
||||||
?>
|
?>
|
||||||
<title><?php echo $TITLE ?></title>
|
<title><?php echo $TITLE ?></title>
|
||||||
|
Loading…
Reference in New Issue
Block a user