Changeset 252 for trunk/docs/example_config.inc.php
- Timestamp:
- May 4, 2007 6:31:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/example_config.inc.php
r202 r252 36 36 37 37 // Primary application class. 38 $app =& App::getInstance(' admin');38 $app =& App::getInstance('example.org'); 39 39 $app->setParam(array( 40 'site_name' => ' WWW Admin',40 'site_name' => 'My example site', 41 41 'site_email' => 'hello@example.com', 42 'redirect_home_url' => '/ admin/',42 'redirect_home_url' => '/', 43 43 44 44 'date_format' => 'd M Y', … … 47 47 'character_set' => 'utf-8', 48 48 49 'enable_session' => true,49 'enable_session' => false, 50 50 'enable_db_session_handler' => false, 51 51 'session_use_cookies' => true, 52 52 53 'enable_db' => true,53 'enable_db' => false, 54 54 'db_always_debug' => false, 55 55 'db_debug' => true, … … 60 60 61 61 'log_directory' => COMMON_BASE . '/log', 62 'log_filename' => ' admin_log',62 'log_filename' => 'site.log', 63 63 'log_file_priority' => LOG_DEBUG, 64 64 'log_email_priority' => false, … … 71 71 // given only to the user who will be executing the scripts: -rw------- 72 72 // This file includes $app-> method calls so must be included after App. 73 require_once 'global/db_auth.inc.php';73 // require_once 'global/db_auth.inc.php'; 74 74 75 75 // Start application-based functionality: database, session, environment, ini setup, etc. … … 81 81 82 82 // User authentication. 83 $auth = new Auth_SQL(' admin');83 $auth = new Auth_SQL('user'); 84 84 $auth->setParam(array( 85 'db_table' => ' admin_tbl',86 'db_primary_key' => ' admin_id',87 'login_url' => '/ admin/login.php'85 'db_table' => 'user_tbl', 86 'db_primary_key' => 'user_id', 87 'login_url' => '/login.php' 88 88 )); 89 89 … … 94 94 $css->setFile('codebase/css/codebase.inc.css'); 95 95 $css->setFile('codebase/css/utilities.inc.css'); 96 $css->setFile(' codebase/css/admin.inc.css');96 $css->setFile('html/css/screen.inc.css'); 97 97 98 98 // Global navigation elements object.
Note: See TracChangeset
for help on using the changeset viewer.