Changeset 252 for trunk/docs


Ignore:
Timestamp:
May 4, 2007 6:31:27 AM (17 years ago)
Author:
quinn
Message:

Made the example_config file more generic and safe to deploy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/example_config.inc.php

    r202 r252  
    3636
    3737// Primary application class.
    38 $app =& App::getInstance('admin');
     38$app =& App::getInstance('example.org');
    3939$app->setParam(array(
    40     'site_name' => 'WWW Admin',
     40    'site_name' => 'My example site',
    4141    'site_email' => 'hello@example.com',
    42     'redirect_home_url' => '/admin/',
     42    'redirect_home_url' => '/',
    4343
    4444    'date_format' => 'd M Y',
     
    4747    'character_set' => 'utf-8',
    4848
    49     'enable_session' => true,
     49    'enable_session' => false,
    5050    'enable_db_session_handler' => false,
    5151    'session_use_cookies' => true,
    5252
    53     'enable_db' => true,
     53    'enable_db' => false,
    5454    'db_always_debug' => false,
    5555    'db_debug' => true,
     
    6060
    6161    'log_directory' => COMMON_BASE . '/log',
    62     'log_filename' => 'admin_log',
     62    'log_filename' => 'site.log',
    6363    'log_file_priority' => LOG_DEBUG,
    6464    'log_email_priority' => false,
     
    7171// given only to the user who will be executing the scripts: -rw-------
    7272// 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';
    7474
    7575// Start application-based functionality: database, session, environment, ini setup, etc.
     
    8181
    8282// User authentication.
    83 $auth = new Auth_SQL('admin');
     83$auth = new Auth_SQL('user');
    8484$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'
    8888));
    8989
     
    9494$css->setFile('codebase/css/codebase.inc.css');
    9595$css->setFile('codebase/css/utilities.inc.css');
    96 $css->setFile('codebase/css/admin.inc.css');
     96$css->setFile('html/css/screen.inc.css');
    9797
    9898// Global navigation elements object.
Note: See TracChangeset for help on using the changeset viewer.