原帖由 chaos00000 于 2006/7/20,(32) 12:45 AM 发表
什么宝贝呀?共享吧
好吧你能看懂我就传你
<?php
/**
* Constants define file
*
* @copyright Copyright (c) 2004 Mirchev Ideas Ltd. All rights reserved.
* @package MIPHPF
*/
/**
*/
$includePath = dirname(__FILE__) . '/../..';
require_once($includePath . '/miphpf/Config.inc');
require_once($includePath . '/miphpf/i18n/' . MI_LOCALIZATION_FILE);
# Period selection and viewing consts
define('MI_DISPLAY_DATE_FORMAT', 'D j M, Y');
define('MI_DISPLAY_TIME_FORMAT', 'j M Y G:i:s');
# Templates base directory
define('MI_TEMPLATE_BASEDIR', dirname(__FILE__) . '/../../../');
# MySQL consts
define('MI_MYSQL_DATE_FORMAT', 'Y-m-d');
define('MI_MYSQL_DATETIME_FORMAT', 'Y-m-d H:i:s');
# Filter sufix consts
define('MI_FILTER_NAME_SUFIX', 'Filter');
define('MI_FILTER_CONDITION_SUFIX', 'Condition');
# Session Name
define('MI_SESSION_NAME', 'MIPHPF_SESSION');
# System version
define('MIPHPF_VERSION', '1.1');
# System Error Levels
define('MI_ERRORLEVEL_CRITICAL', 0);
define('MI_ERRORLEVEL_WARNING', 1);
define('MI_ERRORLEVEL_NOTICE', 2);
define('MI_ERRORLEVEL_DEBUG', 3);
define('MI_ERRORLEVEL_USER', 4);
# Define System Errors Codes
define('MI_SYSTEMERROR_CONNECTDB', 100);
define('MI_SYSTEMERROR_SELECTDB', 101);
define('MI_SYSTEMERROR_DBQUERY', 102);
define('MI_SYSTEMERROR_DBFINDRECORD', 103);
define('MI_SYSTEMERROR_UKNOWNFILTER', 104);
define('MI_SYSTEMERROR_UKNOWNFILTEROPERATION', 105);
$miSystemErrorCodes = array(
MI_SYSTEMERROR_CONNECTDB => $MI_SystemErrorsMessages['MI_SYSTEMERROR_CONNECTDB_MSG'],
MI_SYSTEMERROR_SELECTDB => $MI_SystemErrorsMessages['MI_SYSTEMERROR_SELECTDB_MSG'],
MI_SYSTEMERROR_DBQUERY => $MI_SystemErrorsMessages['MI_SYSTEMERROR_DBQUERY_MSG'],
MI_SYSTEMERROR_DBFINDRECORD => $MI_SystemErrorsMessages['MI_SYSTEMERROR_DBFINDRECORD_MSG'],
MI_SYSTEMERROR_UKNOWNFILTER => $MI_SystemErrorsMessages['MI_SYSTEMERROR_UKNOWNFILTER_MSG'],
MI_SYSTEMERROR_UKNOWNFILTEROPERATION => $MI_SystemErrorsMessages['MI_SYSTEMERROR_UKNOWNFILTEROPERATION_MSG']
);
# Define the param names used by the system
define('MI_PARAM_MESSAGE', 'msg');
define('MI_PARAM_PAGE', 'page');
define('MI_PARAM_SORTBY', 'sortBy');
define('MI_PARAM_SORTDIR', 'sortDir');
?> |