10

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. }
VOIR AUSSI

cron, db

Commentaires

Votre commentaire :
[p] [b] [i] [u] [s] [quote] [pre] [br] [code] [url] [email] strip aide 2000

Entrez un maximum de 2000 caractères.
Améliorez la présentation de votre texte avec les balises de formatage suivantes :
[p]paragraphe[/p], [b]gras[/b], [i]italique[/i], [u]souligné[/u], [s]barré[/s], [quote]citation[/quote], [pre]tel quel[/pre], [br]à la ligne,
[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]commande[/code], [code=langage]code source en c, java, php, html, javascript, xml, css, sql, bash, dos, make, etc.[/code].