Annotation of FreeBSD/tinderbox2/webui/inc_tinderbox.php.dist, revision 1.3
1.1 as 1: <?php
1.3 ! as 2: # $Paefchen: FreeBSD/tinderbox2/webui/inc_tinderbox.php.dist,v 1.2 2007/10/20 17:33:35 as Exp $
1.1 as 3:
4: # Configurable options
5: $tinderbox_name = 'Example Tinderbox';
6: $tinderbox_title = 'Example Tinderbox';
1.2 as 7: $wwwrootdir = dirname( __FILE__ );
8: $rootdir = realpath( $wwwrootdir . '/../..' );
9: $protocol = isset( $_SERVER['HTTPS'] ) ? 'https' : 'http';
10: $host = $_SERVER['SERVER_NAME'];
11: $path = pathinfo( $_SERVER['REQUEST_URI'] );
1.3 ! as 12: $path = $path['basename'];
! 13: if (! empty($path))
! 14: $path = '/'.$path;
1.2 as 15: $wwwrooturi = $protocol . '://' . $host;
16: if ($_SERVER['SERVER_PORT'] != 80)
17: $wwwrooturi .= ':' . $_SERVER['SERVER_PORT'];
18: $wwwrooturi .= $path;
1.1 as 19: $template_dir = 'default';
20:
21: # These should probably be left alone
1.2 as 22: $pkguri = $wwwrooturi.'/packages';
1.1 as 23: $pkgdir = $rootdir.'/packages';
1.2 as 24: $loguri = $wwwrooturi.'/logs';
1.1 as 25: $logdir = $rootdir.'/logs';
1.2 as 26: $errorloguri = $wwwrooturi.'/errors';
1.1 as 27: $errorlogdir = $rootdir.'/errors';
1.2 as 28: $templatesdir = $wwwrootdir.'/templates/'.$template_dir;
1.1 as 29: $templatesuri = $wwwrooturi.'/templates/'.$template_dir;
30: #$with_timer = 1;
31:
32: ?>