index.php3
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:3k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. /*
  3.    $Id: index.php3,v 2.6 2000/04/29 09:58:46 zerodiv Exp $
  4.    $Author: zerodiv $
  5.    $Date: 2000/04/29 09:58:46 $
  6.    $Revision: 2.6 $
  7. */
  8. /*
  9. Default title
  10. */
  11. $title      = 'Prometheus';
  12. $session    = '';
  13. /* The one and only master global config variable */
  14. $PROMETHEUS_APP_BASE          = '.';
  15. /* Libraries */
  16. include( $PROMETHEUS_APP_BASE . '/prometheus-library/all.lib' );
  17. /* Load our additional paths */
  18. include( $PROMETHEUS_APP_BASE . '/lib/prometheus-apl.path' );
  19. // $PHP_AUTO_LOADER_DEBUG = 1;
  20. if ( file_exists( './autoload.lib' ) ) {
  21.    include( './autoload.lib' );
  22. } else {
  23.    /* Load the autoloader file */
  24.    include( $PROMETHEUS_APP_BASE . '/index.auto' );
  25. }
  26. /* Load the local configuration */
  27. include( $PROMETHEUS_APP_BASE . '/config/all.config' );
  28. /* This is the actual application time... */
  29. include( $default->template_base . '/session_open.inc' );
  30. /* User authentication and base information lookups */
  31. include( './prometheus/templates/user_auth.inc' );
  32. if ( $form_mode == '' ) {
  33.    $form_mode = 'PROMETHEUS';
  34. }
  35. /* Create the browser match object */
  36. $browser_obj  = new WebClient();
  37. $browser_obj  = $browser_obj->Detect();
  38. /* Create the template object */
  39. $template_obj = new TemplateObject();
  40. include( './themes/' . $user_theme_obj->theme_name . '/main.inc' );
  41. include( './themes/common/main.inc' );
  42. /* Create the application server */
  43. $app_server = new AppServer();
  44. for( $i = 0; $i < count( $current_apps ); $i++ ) {
  45.    if ( file_exists( $current_apps[ $i ]) ) {
  46.       include( $current_apps[ $i ] );
  47.    }
  48. }
  49. if ( ! file_exists( './autoload.lib' ) ) {
  50. reset( $app_server->apps );
  51. while( list( $app, $obj_ref ) = each( $app_server->apps ) ) {
  52.    $app_dir       = strtolower( $app );
  53.    /* ./pimp/lib/pimp.path */
  54.    $autoload_path = 
  55.       $PROMETHEUS_APP_BASE . 
  56.          '/' . $app_dir . '/lib/' . $app_dir . '.path';
  57.    /* ./pimp/pimp.auto */
  58.    $autoload_file = 
  59.       $PROMETHEUS_APP_BASE . '/' . $app_dir . '/' . $app_dir . '.auto';
  60.    if ( file_exists( $autoload_path ) ) {
  61.       include( $autoload_path );
  62.    }
  63.    if ( file_exists( $autoload_file ) ) {
  64.       include( $autoload_file );
  65.    }
  66. }
  67. } else {
  68.    include( './autoload.lib' );
  69. }
  70. AutoLoadDeallocate();
  71. /* Include application configs */
  72. reset( $app_server->apps );
  73. while( list( $app, $obj_ref ) = each( $app_server->apps ) ) {
  74.    $app_config = './config/' . strtolower( $app ) . '.php3';
  75.    if ( file_exists( $app_config ) ) {
  76.       include( $app_config );
  77.    }
  78. }
  79. $app_server->Handle( $form_mode );
  80. $app_server->Close();
  81. include( $default->template_base . '/session_close.inc' );
  82. /*
  83. echo( '<table bgcolor="#eeeeee" width="100%"><tr><td>' );
  84. $benchmark_obj = new BenchMark();
  85. $benchmark_obj->IgnoreUnixEnvVars();
  86. $benchmark_obj->IgnoreWebServerVars();
  87. $benchmark_obj->IgnorePhpVars();
  88. $benchmark_obj->IgnoreVar( 'benchmark_obj' );
  89. $benchmark_obj->GlobalStackDump();
  90. echo( '</td></tr></table>' );
  91. */
  92. ?>