<?php
/*
+-----------------------------------------------------------------------------+
| $Id: configure.php 2010-05-24 12:37:44Z Bleakwind $
| Config public Variable
| Copyright (c) 2003-2010 Bleakwind (www.weaverdream.com)
| http://www.weaverdream.com/
| Release under the GNU Lesser General Public License Version 3 (LGPLv3):
|   http://www.gnu.org/licenses/lgpl.html
+-----------------------------------------------------------------------------+
*/

// sys configure
$CONFIGURE['sys'] = array(
    'cookie_prefix'             => CONFIG_COOKIE_PREFIX != "" ? CONFIG_COOKIE_PREFIX : "firmkernel_",
    'cookie_lifetime'           => CONFIG_COOKIE_LIFETIME == "auto" ? ((int)ini_get("session.gc_maxlifetime") > 0 ? (int)ini_get("session.gc_maxlifetime") : 1440) : 0,
    'cookie_path'               => CONFIG_COOKIE_PATH != null ? CONFIG_COOKIE_PATH : null,
    'cookie_domain'             => CONFIG_COOKIE_DOMAIN != null ? CONFIG_COOKIE_DOMAIN : null,

    'encrypt_mix'               => "bleakwind",
    'lifetime'                  => (int)ini_get("session.gc_maxlifetime") > 0 ? (int)ini_get("session.gc_maxlifetime") : 1440,
);

// common configure
$CONFIGURE['common'] = array(
    'control_admin'             => "admin.php",
    'control_index'             => "index.php",
    'if_output_template'        => "1",
);

// database configure
$CONFIGURE['database'] = array(
    'hostname'                  => CONFIG_DB_HOSTNAME,
    'username'                  => CONFIG_DB_USERNAME,
    'password'                  => CONFIG_DB_PASSWORD,
    'database'                  => CONFIG_DB_DATABASE,
    'charset'                   => CONFIG_DB_CHARSET,
    'type'                      => CONFIG_DB_TYPE,
    'prefix'                    => CONFIG_DB_PREFIX,
    'table_session'             => DB_TABLE_SESSION,
);

// module configure
$CONFIGURE['module'] = array(
    'index'                     => "index",
    'login'                     => "login",

    "article_list"              => "article_list",
    "article_show"              => "article_show",
    "quicklaunch"               => "quicklaunch",
    "pm_in"                     => "pm_in",
    "pm_out"                    => "pm_out",
    "pm_send"                   => "pm_send",
    "amend"                     => "amend",

    "channel"                   => "channel",
    "setmodel"                  => "setmodel",
    "trans"                     => "trans",
    "trans_group"               => "trans_group",
    "manage"                    => "manage",

    'content'                   => "content",

    "member"                    => "member",
    "member_group"              => "member_group",
    "admin"                     => "admin",
    "admin_group"               => "admin_group",
    "forbid_ip"                 => "forbid_ip",

    "set_config"                => "set_config",
    "set_select"                => "set_select",

    "article"                   => "article",
    "datum"                     => "datum",
    "template"                  => "template",
    "admin_template"            => "admin_template",
    "language"                  => "language",
    "admin_language"            => "admin_language",
    "clean_compile"             => "clean_compile",
    "clean_cache"               => "clean_cache",
    "clean_db"                  => "clean_db",
    "clean_content_cover"       => "clean_content_cover",
    "clean_content_attach"      => "clean_content_attach",
    "clean_article_cover"       => "clean_article_cover",
    "clean_article_attach"      => "clean_article_attach",
    "clean_datum_cover"         => "clean_datum_cover",
    "clean_datum_attach"        => "clean_datum_attach",

    "datum_show"                => "datum_show",

    "help_system"               => "help_system",
    "help_frame"                => "help_frame",
    "help_template"             => "help_template",
    "help_skill"                => "help_skill",

    'curve'                     => "curve",
    'verifycode'                => "verifycode",
    'prompt'                    => "prompt",
);
?>
