File:  [Paefchen] / FreeBSD / tinderbox2 / webui / inc_tinderbox.php.dist
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sat Oct 20 17:58:26 2007 UTC (17 years, 1 month ago) by as
Branches: MAIN
CVS tags: HEAD
Fix $path

<?php
# $Paefchen: FreeBSD/tinderbox2/webui/inc_tinderbox.php.dist,v 1.3 2007/10/20 17:58:26 as Exp $

# Configurable options
$tinderbox_name	 = 'Example Tinderbox';
$tinderbox_title = 'Example Tinderbox';
$wwwrootdir	 = dirname( __FILE__ );
$rootdir	 = realpath( $wwwrootdir . '/../..' );
$protocol	 = isset( $_SERVER['HTTPS'] ) ? 'https' : 'http';
$host		 = $_SERVER['SERVER_NAME'];
$path		 = pathinfo( $_SERVER['REQUEST_URI'] );
$path		 = $path['basename'];
if (! empty($path))
	$path	 = '/'.$path;
$wwwrooturi	 = $protocol . '://' . $host;
if ($_SERVER['SERVER_PORT'] != 80)
	$wwwrooturi	.= ':' . $_SERVER['SERVER_PORT'];
$wwwrooturi	.= $path;
$template_dir	 = 'default';

# These should probably be left alone
$pkguri		 = $wwwrooturi.'/packages';
$pkgdir		 = $rootdir.'/packages';
$loguri		 = $wwwrooturi.'/logs';
$logdir		 = $rootdir.'/logs';
$errorloguri	 = $wwwrooturi.'/errors';
$errorlogdir	 = $rootdir.'/errors';
$templatesdir	 = $wwwrootdir.'/templates/'.$template_dir;
$templatesuri	 = $wwwrooturi.'/templates/'.$template_dir;
#$with_timer	 = 1;

?>