PHP Classes

File: setup.php

Recommend this page to a friend!
  Classes of Voznyak Nazar   MVC Membership System   setup.php   Download  
File: setup.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: MVC Membership System
Membership system using the MVC design pattern
Author: By
Last change:
Date: 20 years ago
Size: 884 bytes
 

Contents

Class file image Download
<?

/*** root path */
 
define('ROOT', '../');

/*** ADOdb library path */
 
define('LIB_ADODB', ROOT.'../adodb/');

/*** include ADOdb database access class *
 * {@link http://php.weblogs.com/ADOdb/ php.weblogs.com/ADOdb} */
 
require_once LIB_ADODB.'adodb.inc.php';

/*** Smarty library path */
 
define('LIB_SMARTY', ROOT.'../smarty/');

/*** Smarty Template System *
 * {@link http://smarty.php.net/ smarty.php.net}
 */
 
require_once LIB_SMARTY.'libs/Smarty.class.php';

/*** DB access and SQL scripts */
 
define('DB', 'db/');
  require_once
DB.'dbsetup.inc';
  require_once
DB.'membersql.inc';
  require_once
DB.'partnersql.inc';
  require_once
DB.'adminsql.inc';

/*** templates path */
 
define('TEMPLATES', ROOT.'templates/');

/*** actions path */
 
define('ACTIONS', ROOT);
  require_once
ACTIONS.'actions.php';
 
 
session_start();
?>