4

index

DESCRIPTION
CODE
  1. define('ROOT_DIR', dirname(__FILE__));
  2.  
  3. set_include_path(ROOT_DIR . PATH_SEPARATOR . get_include_path());
  4. set_include_path(ROOT_DIR . DIRECTORY_SEPARATOR . 'includes' . PATH_SEPARATOR . get_include_path());
  5. set_include_path(ROOT_DIR . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR . get_include_path());
  6.  
  7. require_once 'bootstrap.php';
  8.  
  9. bootstrap();
  10.  
  11. require_once 'engine.php';
  12.  
  13. dispatch($supported_languages); // see config.inc
DESCRIPTION
CODE
  1. define('ROOT_DIR', dirname(__FILE__));
  2.  
  3. set_include_path(ROOT_DIR . PATH_SEPARATOR . get_include_path());
  4. set_include_path(ROOT_DIR . DIRECTORY_SEPARATOR . 'includes' . PATH_SEPARATOR . get_include_path());
  5. set_include_path(ROOT_DIR . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR . get_include_path());
  6.  
  7. global $db_url;
  8.  
  9. @include 'settings.inc';
  10. @include 'config.inc';
  11. @include 'db.inc';
  12.  
  13. if ($db_url == 'mysql://username:password@localhost/databasename') {
  14.     $db_url = false;
  15. }
  16.  
  17. if ($db_url) {
  18.     require_once 'pdo.php';
  19.  
  20.     db_connect($db_url);
  21.  
  22.     require_once 'cron.php';
  23.  
  24.     cron_run();
  25. }
SEE ALSO

cron, db

Comments

To add a comment, click here.