Initial commit
This commit is contained in:
23
archive/version_01/admin/includes/init_includes/init_database.php
Executable file
23
archive/version_01/admin/includes/init_includes/init_database.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package admin
|
||||
* @copyright Copyright 2003-2006 Zen Cart Development Team
|
||||
* @copyright Portions Copyright 2003 osCommerce
|
||||
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
|
||||
* @version $Id: init_database.php 3001 2006-02-09 21:45:06Z wilt $
|
||||
*/
|
||||
if (!defined('IS_ADMIN_FLAG')) {
|
||||
die('Illegal Access');
|
||||
}
|
||||
// include the cache class
|
||||
require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'cache.php');
|
||||
$zc_cache = new cache;
|
||||
// Load db classes
|
||||
|
||||
// Load queryFactory db classes
|
||||
require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'db/' .DB_TYPE . '/query_factory.php');
|
||||
$db = new queryFactory();
|
||||
$db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE);
|
||||
|
||||
$zc_cache->sql_cache_flush_cache();
|
||||
?>
|
||||
Reference in New Issue
Block a user