Annotation of FreeBSD/tinderbox2/webui/inc_tinderbox.php.dist, revision 1.2
1.1 as 1: <?php
1.2 ! as 2: # $Paefchen$
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'] );
! 12: $path = $path['dirname'];
! 13: $wwwrooturi = $protocol . '://' . $host;
! 14: if ($_SERVER['SERVER_PORT'] != 80)
! 15: $wwwrooturi .= ':' . $_SERVER['SERVER_PORT'];
! 16: $wwwrooturi .= $path;
1.1 as 17: $template_dir = 'default';
18:
19: # These should probably be left alone
1.2 ! as 20: $pkguri = $wwwrooturi.'/packages';
1.1 as 21: $pkgdir = $rootdir.'/packages';
1.2 ! as 22: $loguri = $wwwrooturi.'/logs';
1.1 as 23: $logdir = $rootdir.'/logs';
1.2 ! as 24: $errorloguri = $wwwrooturi.'/errors';
1.1 as 25: $errorlogdir = $rootdir.'/errors';
1.2 ! as 26: $templatesdir = $wwwrootdir.'/templates/'.$template_dir;
1.1 as 27: $templatesuri = $wwwrooturi.'/templates/'.$template_dir;
28: #$with_timer = 1;
29:
30: ?>