Diff for /FreeBSD/tinderbox/webui/index.php between versions 1.1 and 1.1.1.1.2.1

version 1.1, 2007/11/02 20:55:00 version 1.1.1.1.2.1, 2007/11/13 07:39:25
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$
 # $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 $
 #  #
   
$starttimer = explode( ' ', microtime() );$starttimer = microtime(true);
   
require_once 'module/moduleBuilds.php';$cfg_modules = array('Builds', 'BuildPorts', 'Config', 'Ports',
require_once 'module/moduleBuildPorts.php';    'PortFailureReasons', 'Session', 'Tinderd', 'Users');
require_once 'module/moduleConfig.php'; 
require_once 'module/modulePorts.php'; 
require_once 'module/modulePortFailureReasons.php'; 
require_once 'module/moduleSession.php'; 
require_once 'module/moduleTinderd.php'; 
require_once 'module/moduleUsers.php'; 
   
require_once $templatesdir.'/messages.inc';set_include_path(get_include_path() . PATH_SEPARATOR . 'module'
     . PATH_SEPARATOR . 'core');
   
$moduleBuilds                   = new moduleBuilds();function __autoload($class) {
$moduleBuildPorts               = new moduleBuildPorts();        require_once $class . '.php';
$moduleConfig                   = new moduleConfig();}
$modulePorts                    = new modulePorts(); 
$modulePortFailureReasons       = new modulePortFailureReasons(); 
$moduleSession                  = new moduleSession(); 
$moduleTinderd                  = new moduleTinderd(); 
$moduleUsers                    = new moduleUsers(); 
   
   foreach ($cfg_modules as $module) {
           $className = 'module' . $module;
           $$className = new $className;
   }
   
   require_once $templatesdir.'/messages.inc';
   
 $moduleSession->start();  $moduleSession->start();
 if( isset($_POST['do_login']) ) {  if( isset($_POST['do_login']) ) {
         $moduleUsers->do_login( $_POST['User_Name'], $_POST['User_Password'] );          $moduleUsers->do_login( $_POST['User_Name'], $_POST['User_Password'] );
Line 143  switch( $action ) { Line 141  switch( $action ) {
   
 echo $display;  echo $display;
   
if( isset( $with_timer ) && $with_timer == 1 ) {if (isset($with_timer) && $with_timer) 
        $endtimer = explode( ' ', microtime() );        printf('<p style="color:#FF0000;font-size:10px;">elapsed: %03.6f seconds, </p>', microtime(true) - $starttimer);
        $timer = ( $endtimer[1]-$starttimer[1] )+( $endtimer[0]-$starttimer[0] );
        printf( '<p style="color:#FF0000;font-size:10px;">elapsed: %03.6f seconds, %s', $timer, ' </p>' ); 
} 
 echo '<p style="font-size:10px;"><b>Note:</b> The Tinderbox web interface requires cookies to be enable.</p>';  echo '<p style="font-size:10px;"><b>Note:</b> The Tinderbox web interface requires cookies to be enable.</p>';
 ?>  ?>

Removed from v.1.1  
changed lines
  Added in v.1.1.1.1.2.1