6

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

Your comment:
[p] [b] [i] [u] [s] [quote] [pre] [br] [code] [url] [email] strip help 2000

Enter a maximum of 2000 characters.
Improve the presentation of your text with the following formatting tags:
[p]paragraph[/p], [b]bold[/b], [i]italics[/i], [u]underline[/u], [s]strike[/s], [quote]citation[/quote], [pre]as is[/pre], [br]line break,
[url]http://www.izend.org[/url], [url=http://www.izend.org]site[/url], [email]izend@izend.org[/email], [email=izend@izend.org]izend[/email],
[code]command[/code], [code=language]source code in c, java, php, html, javascript, xml, css, sql, bash, dos, make, etc.[/code].