Smarty
This commit is contained in:
parent
eeb506bdf7
commit
0b4e75547a
25 changed files with 276 additions and 331 deletions
19
common.php
19
common.php
|
@ -12,9 +12,22 @@
|
|||
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://rudloff.pro
|
||||
* */
|
||||
if (DISABLED) {
|
||||
require_once 'vendor/autoload.php';
|
||||
if (is_file('config.php')) {
|
||||
include_once 'config.php';
|
||||
} else {
|
||||
include_once 'config.example.php';
|
||||
}
|
||||
define('FILENAME', basename($_SERVER["SCRIPT_FILENAME"]));
|
||||
if (DISABLED && FILENAME != 'disabled.php') {
|
||||
header('Location: disabled.php'); exit;
|
||||
} else if (MAINTENANCE) {
|
||||
} else if (MAINTENANCE && FILENAME != 'maintenance.php') {
|
||||
header('Location: maintenance.php'); exit;
|
||||
}
|
||||
?>
|
||||
$smarty = new Smarty();
|
||||
$smarty->assign(
|
||||
array(
|
||||
'base_url'=>BASE_URL,
|
||||
'convert'=>CONVERT
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue