Viewing file: infosys_global.php (14.25 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
*--------------> Begin: Editable zone <----------------
*/
//
// System data
//
/* System path */
//$ROOT_PATH = "/var/www/html/eoffice/";
$ROOT_PATH = "c:/WM/www/eoffice/";
$ROOT_URL = "/eoffice/";
$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 = "scphkk_logo22.jpg"; // default = infosyslogo.jpg, logo-path = ${ROOT_PATH}info/img/
$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 */
//$_EOFFICE_PATH = "${ROOT_PATH}eoffice/";
$_EPERSON_PATH = "${ROOT_PATH}eperson/";
$_EBUDGET_PATH = "${ROOT_PATH}ebudget/";
$_ESALARY_PATH = "${ROOT_PATH}esalary/";
$_EPASSESS_PATH = "${ROOT_PATH}epassess/";
$_EREGIS_PATH = "${ROOT_PATH}eregis/";
$_INFOADDIN_PATH = "${ROOT_PATH}infoaddin/";
$_EASSESS_PATH = "${ROOT_PATH}eassess/";
$_EOFFICE_PATH = "${ROOT_PATH}eoffice/";
/* Subsystem URL */
$_UMS_URL = "${ROOT_URL}ums/";
//$_EOFFICE_URL = "${ROOT_URL}eoffice/";
$_EPERSON_URL = "${ROOT_URL}eperson/";
$_EBUDGET_URL = "${ROOT_URL}ebudget/";
$_ESALARY_URL = "${ROOT_URL}esalary/";
$_EPASSESS_URL = "${ROOT_URL}epassess/";
$_EREGIS_URL = "${ROOT_URL}eregis/";
$_INFOADDIN_URL = "${ROOT_URL}infoaddin/";
$_EASSESS_URL = "${ROOT_URL}eassess/";
$_EOFFICE_URL = "${ROOT_URL}eoffice/";
/*
* System id mapping
* 1 = ums, 2 = eoffice, 3 = ebudget, 4 = eperson, 5 = esalary,
* 6 = epassess, 7 = eregis, 8 = add-in utilities, 9 = eassess
*/
$_SYSDIR_PATH = array(1 => $_UMS_PATH,
//2 => $_EOFFICE_PATH,
3 => $_EBUDGET_PATH,
4 => $_EPERSON_PATH,
5 => $_ESALARY_PATH,
6 => $_EPASSESS_PATH,
7 => $_EREGIS_PATH,
8 => $_INFOADDIN_PATH,
9 => $_EASSESS_PATH,
10 => $_EOFFICE_PATH
);
$_SYSURL_PATH = array(1 => "${_UMS_URL}",
//2 => "${_EOFFICE_URL}",
3 => "${_EBUDGET_URL}",
4 => "${_EPERSON_URL}",
5 => "${_ESALARY_URL}",
6 => "${_EPASSESS_URL}",
7 => "${_EREGIS_URL}",
8 => "${_INFOADDIN_URL}",
9 => "${_EASSESS_URL}",
10 => "${_EOFFICE_URL}"
);
$_SUBSYS_URL = array(1 => array(1 => ""
), // --- UMS ---
/*
2 => array(10 => "${_EOFFICE_URL}mod/",
11 => "${_EOFFICE_URL}mod/",
12 => "${_EOFFICE_URL}mod/",
13 => "${_EOFFICE_URL}mod/",
14 => "${_EOFFICE_URL}mod/",
15 => "${_EOFFICE_URL}mod/",
101 => "${_EOFFICE_URL}mod/"
), // --- EOFFICE ---
*/
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/"
), // --- ESALARY ---
6 => array(60 => "${_EPASSESS_URL}admin/",
61 => "${_EPASSESS_URL}mstaff/",
62 => "${_EPASSESS_URL}staff/",
85 => "${_EPASSESS_URL}admin/",
102 => "${_EPASSESS_URL}admin/"
), // --- EPASSESS ---
7 => array(70 => "${_EREGIS_URL}admin/",
71 => "${_EREGIS_URL}teacher/",
72 => "${_EREGIS_URL}student/",
73 => "${_EREGIS_URL}admin/",
74 => "${_EREGIS_URL}admin/",
75 => "${_EREGIS_URL}admin/",
76 => "${_EREGIS_URL}admin/",
94 => "${_EREGIS_URL}admin/",
95 => "${_EREGIS_URL}admin/",
100 => "${_EREGIS_URL}admin/"
), // --- EREGIS ---
8 => array(80 => "${_INFOADDIN_URL}announce/",
81 => "${_INFOADDIN_URL}onlinedocs/code/",
82 => "${_INFOADDIN_URL}appointment/"
), // --- INFO-ADDIN ---
9 => array(90 => "${_EASSESS_URL}admin/",
91 => "${_EASSESS_URL}student/",
92 => "${_EASSESS_URL}teacher/",
93 => "${_EASSESS_URL}admin/",
96 => "${_EASSESS_URL}admin/",
97 => "${_EASSESS_URL}admin/"
), // --- EASSESS ---
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 ---
/*
2 => array(10 => "eoffice.php",
11 => "eoffice.php",
12 => "eoffice.php",
13 => "eoffice.php",
14 => "eoffice.php",
15 => "eoffice.php",
101 => "eoffice.php"
), // --- EOFFICE ---
*/
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"
), // --- ESALARY ---
6 => array(60 => "adminindex.php",
61 => "adminindex.php",
62 => "adminindex.php",
85 => "adminindex.php",
102 => "adminindex.php"
), // --- EPASSESS ---
7 => array(70 => "adminIndex.php",
71 => "teacherIndex.php",
72 => "studentIndex.php",
73 => "adminIndex.php",
74 => "adminIndex.php",
75 => "adminIndex.php",
76 => "adminIndex.php",
94 => "adminIndex.php",
95 => "adminIndex.php",
100 => "adminIndex.php"
), // --- EREGIS ---
8 => array(80 => "index.php",
81 => "onlinepublicdocview.php",
82 => "index.php"
), // --- INFO-ADDIN ---
9 => array(90 => "index.php",
91 => "index.php",
92 => "index.php",
93 => "index.php",
96 => "index.php",
97 => "index.php"
), // --- EASSESS ---
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",
// 2 => "${_INFO_URL}img/eoffice-mini.gif",
3 => "${_INFO_URL}img/ebudget-mini.gif",
4 => "${_INFO_URL}img/eperson-mini.gif",
5 => "${_INFO_URL}img/esalary-mini.gif",
6 => "${_INFO_URL}img/epassess-mini.gif",
7 => "${_INFO_URL}img/eregis-mini.gif",
8 => "${_INFO_URL}img/addin-mini.gif",
9 => "${_INFO_URL}img/eassess-mini.gif",
10 => "${_INFO_URL}img/eoffice-mini.gif"
);
$_SYSICO_BIGZ = array(1 => "${_INFO_URL}img/admin-large.gif",
// 2 => "${_INFO_URL}img/eoffice-large.gif",
3 => "${_INFO_URL}img/ebudget-large.gif",
4 => "${_INFO_URL}img/eperson-large.gif",
5 => "${_INFO_URL}img/esalary-large.gif",
6 => "${_INFO_URL}img/epassess-large.gif",
7 => "${_INFO_URL}img/eregis-large.gif",
8 => "${_INFO_URL}img/addin-large.gif",
9 => "${_INFO_URL}img/eassess-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.
?>
|