コード例 #1
0
 function CoreBase()
 {
     global $i18n;
     $view =& view::instance();
     $this->db =& $view->db;
     $this->i18n =& $i18n;
 }
コード例 #2
0
 /**
  * Constructor
  */
 function xml_feed()
 {
     $this->view =& view::instance();
     $this->db_conf =& new db_config();
     $this->rewrite = $this->db_conf->get_config('mod_rewrite');
     $this->http_root = get_httproot();
 }
コード例 #3
0
 function CoreRewrite()
 {
     $view =& view::instance();
     $this->db =& $view->db;
     $rewrite = $this->rewrite;
 }
コード例 #4
0
 /**
  * Constructor
  */
 function tree()
 {
     $this->view =& view::instance();
 }
コード例 #5
0
 /**
  * Constructor
  */
 function db_config()
 {
     $this->view =& view::instance();
 }
コード例 #6
0
ファイル: index.php プロジェクト: BackupTheBerlios/core-svn
 *
 */
@(include_once 'administration/inc/config.php');
if (!defined('CORE_INSTALLED')) {
    header('Location: install/install.php');
    exit;
}
require_once 'inc/common_lib.php';
require_once pathjoin(ROOT, 'inc', 'main_lib.php');
// mysql_server_version
get_mysql_server_version();
$required_classes = array('db_mysql.php', 'fast_template.php', 'calendar.php', 'view.php', 'tree.php', 'db_config.php', 'corebase.php', 'news.php', 'corenews.php', 'corerewrite.php');
while (list($c) = each($required_classes)) {
    require_once pathjoin(PATH_TO_CLASSES, 'cls_' . $required_classes[$c]);
}
$view =& view::instance();
$tree =& new tree();
$db =& new DB_Sql();
$db_conf =& new db_config();
$CoreRewrite = new CoreRewrite();
$rewrite = $db_conf->get_config('mod_rewrite');
$max_photo_width = $db_conf->get_config('max_photo_width');
$date_format = $db_conf->get_config('date_format');
$show_calendar = $db_conf->get_config('show_calendar');
$lang = $db_conf->get_config('language_set');
require_once pathjoin(ROOT, 'i18n', $lang, 'i18n.php');
// counter
if (!isset($_COOKIE['core_counter'])) {
    @setcookie('core_counter', 'hit', time() + 10800);
    $db_conf->set_config('counter', $db_conf->get_config('counter') + 1);
}