version 1.1.1.1.2.2, 2007/11/15 15:29:46
|
version 1.1.1.1.2.3, 2007/11/16 22:52:43
|
Line 24
|
Line 24
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
# SUCH DAMAGE. |
# SUCH DAMAGE. |
# |
# |
# $Paefchen: FreeBSD/tinderbox/webui/index.php,v 1.1.1.1.2.1 2007/11/13 07:39:25 as Exp $ | # $Paefchen: FreeBSD/tinderbox/webui/index.php,v 1.1.1.1.2.2 2007/11/15 15:29:46 as Exp $ |
# $MCom: portstools/tinderbox/webui/index.php,v 1.22 2007/10/13 02:28:47 ade Exp $ |
# $MCom: portstools/tinderbox/webui/index.php,v 1.22 2007/10/13 02:28:47 ade Exp $ |
# |
# |
|
|
Line 67 if (! defined('TEMPLATESURL')) define('TEMPLATESURL',
|
Line 67 if (! defined('TEMPLATESURL')) define('TEMPLATESURL',
|
if (! defined('TEMPLATESDIR')) define('TEMPLATESDIR', isset($templatesdir) ? $templatesdir : WWWROOT.'/templates/'.TEMPLATE); |
if (! defined('TEMPLATESDIR')) define('TEMPLATESDIR', isset($templatesdir) ? $templatesdir : WWWROOT.'/templates/'.TEMPLATE); |
if (! defined('SHOWTIMER')) define('SHOWTIMER', false); |
if (! defined('SHOWTIMER')) define('SHOWTIMER', false); |
|
|
|
foreach (array('WWWROOT', 'TBROOT', 'TEMPLATESDIR') as $dir) |
|
if (! is_dir(constant($dir))) |
|
die(sprintf("Error => config: dir %s not found (%s)\n", |
|
constant($dir), $dir)); |
|
|
set_include_path(get_include_path().PATH_SEPARATOR.'module' |
set_include_path(get_include_path().PATH_SEPARATOR.'module' |
.PATH_SEPARATOR.'core'); |
.PATH_SEPARATOR.'core'); |
|
|
function __autoload($class) { |
function __autoload($class) { |
require_once $class . '.php'; | require_once $class.'.php'; |
} |
} |
|
|
function module_list() { |
function module_list() { |