예제 #1
0
파일: main.php 프로젝트: JavaBird/easyCms
<?php

$PHP_SELF = $_SERVER['PHP_SELF'];
require_once 'setup.php';
define('BasePath', 'http://' . $_SERVER['HTTP_HOST'] . '/');
$smarty = new SmartyCms();
$smarty->assign('BasePath', BasePath);
$smarty->assign('title', '网站后台管理系统');
$smarty->display('main.tpl');
예제 #2
0
파일: index.php 프로젝트: JavaBird/easyCms
<?php

$PHP_SELF = $_SERVER['PHP_SELF'];
define('BasePath', 'http://' . $_SERVER['HTTP_HOST'] . substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') + 1));
require_once dirname(__FILE__) . '/core/setup.php';
$smarty = new SmartyCms();
$smarty->assign('BasePath', BasePath);
$smarty->assign('title', '欢迎使用网站后台管理系统');
$smarty->display('login.tpl');
?>