Viewing file: infosys_global.php (7.9 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
*--------------> Begin: Editable zone <----------------
*/
//
// System data
//
/* System path */
$ROOT_PATH = "/var/www/html/mistk/";
$ROOT_URL = "/mistk/";
$ADMIN_LOGIN = "admin";
/* Database info */
$DBHOST = "localhost";
$DBUSER = "eoffice";
$DBPASS = "45530577";
$DBNAME_UMS = "umseo";
$DBUSER_UMS = "eoffice";
$DBPASS_UMS = "45530577";
$DBNAME_EPERSON = "people";
$DBUSER_EPERSON = "eoffice";
$DBPASS_EPERSON = "45530577";
$DBNAME_EOFFICE = "eopbri";
$DBUSER_EOFFICE = "eoffice";
$DBPASS_EOFFICE = "45530577";
$INFOSYS_MESG = "ระบบสารสนเทศ";
$SYSTEM_TITLE = ""; // To set system-title, modifies this variable at current script.
$SYSTEM_DETAIL = "";
$INFOSYS_TITLE = "ระบบสารสนเทศ"; // default system-title
$INFOSYS_LOGO = "banner_mis.jpg";
$GREETING_MESG = "ยินดีต้อนรับเข้าสู่ระบบสารสนเทศ";
/*
*--------------> End: Editable zone <----------------
*/
/*
*--------------> Begin: Read-only zone <---------------
*/
$SYS_INDEX = "infosys.php";
$HOST_NAME = $_SERVER["HTTP_HOST"];
$_PROTOCOL = (isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) == "on") ? "https://" : "http://";
$_INFO_PATH = "${ROOT_PATH}info/";
$_CLASS_PATH = "${ROOT_PATH}class/";
$_UMS_PATH = "${ROOT_PATH}ums/";
$_INFO_URL = "${ROOT_URL}info/";
$_CLASS_URL = "${ROOT_URL}class/";
$_INFO_INDEX = $HOST_NAME . $_INFO_URL . $SYS_INDEX;
$_MOD_PATH = "${_INFO_PATH}mod/";
$_TPL_PATH = "${_INFO_PATH}tpl/";
$_IMG_URL = "${_INFO_URL}img/";
/*
*--------------> End: Read-only zone <---------------
*/
/*
*--------------> Begin: Editable zone <----------------
*/
/* Subsystem path */
$_EPERSON_PATH = "${ROOT_PATH}eperson/";
$_EBUDGET_PATH = "${ROOT_PATH}ebudget/";
$_EOFFICE_PATH = "${ROOT_PATH}eoffice/";
/* Subsystem URL */
$_UMS_URL = "${ROOT_URL}ums/";
$_EPERSON_URL = "${ROOT_URL}eperson/";
$_EBUDGET_URL = "${ROOT_URL}ebudget/";
$_EOFFICE_URL = "${ROOT_URL}eoffice/";
/*
* System id mapping
*
*/
$_SYSDIR_PATH = array(1 => $_UMS_PATH,
3 => $_EBUDGET_PATH,
4 => $_EPERSON_PATH,
10 => $_EOFFICE_PATH
);
$_SYSURL_PATH = array(1 => "${_UMS_URL}",
3 => "${_EBUDGET_URL}",
4 => "${_EPERSON_URL}",
10 => "${_EOFFICE_URL}"
);
$_SUBSYS_URL = array(1 => array(1 => ""
), // --- UMS ---
3 => array(20 => "${_EBUDGET_URL}code/",
21 => "${_EBUDGET_URL}code/",
22 => "${_EBUDGET_URL}code/",
23 => "${_EBUDGET_URL}code/",
24 => "${_EBUDGET_URL}code/",
25 => "${_EBUDGET_URL}code/",
26 => "${_EBUDGET_URL}code/",
27 => "${_EBUDGET_URL}code/",
28 => "${_EBUDGET_URL}code/",
29 => "${_EBUDGET_URL}code/",
30 => "${_EBUDGET_URL}code/",
31 => "${_EBUDGET_URL}code/",
98 => "${_EBUDGET_URL}code/"
), // --- EBUDGET ---
4 => array(40 => "${_EPERSON_URL}officer/",
41 => "${_EPERSON_URL}money/",
42 => "${_EPERSON_URL}officer/",
43 => "${_EPERSON_URL}admin/",
44 => "${_EPERSON_URL}officer/",
99 => "${_EPERSON_URL}admin/"
), // --- EPERSON ---
5 => array(50 => "${_ESALARY_URL}admin/"
),
10 => array(107 => "${_EOFFICE_URL}admin/",
108 => "${_EOFFICE_URL}admin/",
109 => "${_EOFFICE_URL}admin/",
110 => "${_EOFFICE_URL}admin/",
111 => "${_EOFFICE_URL}admin/",
112 => "${_EOFFICE_URL}admin/",
114 => "${_EOFFICE_URL}admin/",
115 => "${_EOFFICE_URL}admin/"
) // --- EOFFICE ---
);
$_SYS1ST_URL = array(1 => array(1 => ""
), // --- UMS ---
3 => array(20 => "sarabanIndex.php",
21 => "sarabanIndex.php",
22 => "sarabanIndex.php",
23 => "sarabanIndex.php",
24 => "sarabanIndex.php",
25 => "sarabanIndex.php",
26 => "sarabanIndex.php",
27 => "sarabanIndex.php",
28 => "sarabanIndex.php",
29 => "sarabanIndex.php",
30 => "sarabanIndex.php",
31 => "sarabanIndex.php",
98 => "sarabanIndex.php"
), // --- EBUDGET ---
4 => array(40 => "officerIndex.php",
41 => "moneyIndex.php",
42 => "officerIndex.php",
43 => "index.php",
44 => "officerIndex.php",
99 => "adminIndex.php"
), // --- EPERSON ---
5 => array(50 => "adminIndex.php"
),
10 => array(107 => "index.php",
108 => "index.php",
109 => "index.php",
110 => "index.php",
111 => "index.php",
112 => "index.php",
114 => "selectDocPost.php",
115 => "index.php"
) // --- EOFFICE2 ---
);
$_SYS1ST_NAME = array("หน้าแรก", "หน้าเริ่มต้น");
$_SYSLNK_SKIP = array("ออกจากระบบ", "เปลี่ยนรหัสผ่าน");
$_SYSICO_MINI = array(1 => "${_INFO_URL}img/admin-mini.gif",
3 => "${_INFO_URL}img/ebudget-mini.gif",
4 => "${_INFO_URL}img/eperson-mini.gif",
10 => "${_INFO_URL}img/eoffice-mini.gif"
);
$_SYSICO_BIGZ = array(1 => "${_INFO_URL}img/admin-large.gif",
3 => "${_INFO_URL}img/ebudget-large.gif",
4 => "${_INFO_URL}img/eperson-large.gif",
10 => "${_INFO_URL}img/eoffice-large.gif"
);
$_CONFIG_TITLE = "ตั้งค่าการใช้งาน";
$_CONFIG_MOD = array(array("sys_name" => "เปลี่ยนรหัสผ่าน",
"sys_modn" => "- ทุกกลุ่มผู้ใช้ -",
"sys_link" => "${_INFO_URL}infosys.php?__m=config&__sb=chpasswd")
);
$_ADDIN_DISABLED = false; // $_ADDIN_DISABLED = false, force Addin-Tools available for all user.
$_ADDIN_BLOG = 8;
$_INFOADMIN_GPID = 83;
$_ADDIN_WGOWNER = array(1935 => 82,
1936 => 81,
1937 => 80
);
$_ADDIN_RESTRICT = array(82 => false,
81 => false,
80 => false
);
// Begin:
// Fixed bugs or depend on user-requirement.
// auto display sub-system as groups
$_FIXED_VIEW_GROUP_START = 1;
// End:
// Fixed bugs or depend on user-requirement.
//
// System option
//
$SECURE_LOG = false; // Use https protocol for submits signed-on data set $SECURE_LOG = true.
$DEBUG_MODE = true; // Test phase $DEBUG_MODE = true
/*
*--------------> End: Editable zone <----------------
*/
// Note: Use $_SESSION["ITEM_LINK"] variable for back to last menu.
?>
|