| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:22:37 2008 ] | [ Jlog 1.0.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 3 // error_reporting(E_ALL); 4 5 define("JLOG_VERSION", '1.0.1'); 6 define("JLOG_DB_CONTENT", JLOG_DB_PREFIX."content"); 7 define("JLOG_DB_COMMENTS", JLOG_DB_PREFIX."comments"); 8 define("JLOG_DB_CATASSIGN", JLOG_DB_PREFIX."catassign"); 9 define("JLOG_DB_CATEGORIES", JLOG_DB_PREFIX."categories"); 10 define("JLOG_DB_ATTRIBUTES", JLOG_DB_PREFIX."attributes"); 11 12 // need this in every page 13 require_once (JLOG_BASEPATH.'lang'.DIRECTORY_SEPARATOR.'lang.inc.php'); 14 require_once (JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'database.class.php'); 15 require_once (JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'bbcode.php'); 16 require_once (JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'general.func.php'); 17 require_once (JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'comments.php'); 18 19 // need this only on admincenter 20 if(defined('JLOG_ADMIN')) require_once (JLOG_BASEPATH.'lang'.DIRECTORY_SEPARATOR.'lang-admin.inc.php'); 21 22 // connect database 23 $connect = @mysql_connect(JLOG_DB_URL, JLOG_DB_USER, JLOG_DB_PWD); 24 if ($connect == FALSE) { 25 mail(JLOG_EMAIL, $l['admin']['e_db'], $l['admin']['e_db_is']."\n".mysql_error()); 26 die("<strong>".$l['db_error']."</strong><br />".$l['plz_try_again']."."); 27 } 28 $select = @mysql_select_db( JLOG_DB ); 29 30 // need this in every page, too but with database 31 setlocale(LC_TIME, $l['locale']); 32 require_once (JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'categories.class.php'); 33 require_once (JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'jlogPlugins.class.php'); 34 $plugins = new JlogPluginManager(JLOG_BASEPATH.'plugins'.DIRECTORY_SEPARATOR); 35 36 ### Plugin Hooks for bbcode 37 $bbcode = $plugins->callHook('bbcode', $bbcode); 38 $bbcomments = $plugins->callHook('bbcomments', $bbcomments); 39 40 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |