Annotation of FreeBSD/tinderbox2/webui/inc_tinderbox.php.dist, revision 1.4

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