VM暫存
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.php 8.9KB

8 年之前
8 年之前
8 年之前
8 年之前
8 年之前
8 年之前
8 年之前
8 年之前
8 年之前
8 年之前
8 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /*
  3. |--------------------------------------------------------------------------
  4. | File and Directory Modes
  5. |--------------------------------------------------------------------------
  6. |
  7. | These prefs are used when checking and setting modes when working
  8. | with the file system. The defaults are fine on servers with proper
  9. | security, but you may wish (or even need) to change the values in
  10. | certain environments (Apache running a separate process for each
  11. | user, PHP under CGI with Apache suEXEC, etc.). Octal values should
  12. | always be used to set the mode correctly.
  13. |
  14. */
  15. define('FILE_READ_MODE', 0644);
  16. define('FILE_WRITE_MODE', 0666);
  17. define('DIR_READ_MODE', 0755);
  18. define('DIR_WRITE_MODE', 0777);
  19. /*
  20. |--------------------------------------------------------------------------
  21. | File Stream Modes
  22. |--------------------------------------------------------------------------
  23. |
  24. | These modes are used when working with fopen()/popen()
  25. |
  26. */
  27. define('FOPEN_READ', 'rb');
  28. define('FOPEN_READ_WRITE', 'r+b');
  29. define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
  30. define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
  31. define('FOPEN_WRITE_CREATE', 'ab');
  32. define('FOPEN_READ_WRITE_CREATE', 'a+b');
  33. define('FOPEN_WRITE_CREATE_STRICT', 'xb');
  34. define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
  35. /*end*/
  36. // user define
  37. // define('DEBUG_MODE', true);
  38. define('APP_BASE', '/home/bigbang/apps/parkings/'); // 應用系統根路徑
  39. define('FILE_BASE', '/home/data/parkings/'); // 檔案存取根路徑
  40. define('CAR_PIC', FILE_BASE.'cars/pics/'); // 車輛照片存檔路徑
  41. define('PKS_PIC', FILE_BASE.'pks/pics/'); // 車輛入車格照片存檔路徑
  42. define('EXPORT_BASE', '/home/data/export/'); // 檔案匯出根路徑
  43. define('SOS_BASE', FILE_BASE. 'sos/'); // 警急求救路徑
  44. define('SOS_MSG', SOS_BASE. 'sos.txt'); // 警急求救檔案路徑
  45. define('STATION_NAME', '未設定'); // 本場站名稱
  46. define('STATION_NO', 54321); // 本場站編號
  47. define('STATION_IP', $_SERVER['SERVER_NAME']); // 本場站IP
  48. define('STATION_URL', 'http://'.STATION_IP.'/'); // 本場站URL
  49. define('STATION_LOCAL_IP', '192.168.10.201'); // 內網IP
  50. define('PHPLIBS_BASE', '/home/bigbang/libs/phplibs/'); // phplibs 根路徑
  51. define('ALTOB_SYNC_FILE', PHPLIBS_BASE.'Altob.Sync.Integration.php'); // ALTOB (同步)
  52. define('ALTOB_CRYPT_FILE', PHPLIBS_BASE.'Altob.Crypt.Integration.php'); // ALTOB (資料加解密)
  53. define('ALTOB_BILL_FILE', PHPLIBS_BASE.'Altob.Payment.Integration.php'); // ALTOB (金流: 費率)
  54. define('ALTOB_TWGC_FILE', PHPLIBS_BASE.'Altob.TWGC.Integration.php'); // ALTOB (歐Pa卡: TWGC)
  55. define('ALTOB_CTBC_FILE', PHPLIBS_BASE.'ctbcbank/Altob.CTBC.Bank.Integration.php'); // 中國信託 (金流)
  56. define('ALLPAY_FILE', PHPLIBS_BASE.'AllPay.Payment.Integration.php'); // 歐付寶 (金流)
  57. define('ALLPAY_INVOICE_FILE', PHPLIBS_BASE.'AllPay_Invoice.php'); // 歐付寶 (電子發票)
  58. define('MQ_CLASS_FILE', PHPLIBS_BASE.'phpMQTT.php'); // MQTT: class file name
  59. define('MQ_HOST', 'localhost'); // MQTT: host
  60. define('MQ_PORT', 1883); // MQTT: port (default:1883)
  61. define('MQ_TOPIC_SUBLEVEL', 'SUBLEVEL'); // MQTT TOPIC: 樓層在席顯示
  62. define('MQ_TOPIC_SUBTEXT', 'SUBTEXT'); // MQTT TOPIC: 出入口字幕機
  63. define('MQ_TOPIC_OPEN_DOOR', 'OPEN_DOOR'); // MQTT TOPIC: 出入口開門
  64. define('MQ_TOPIC_ALTOB', 'altob.com.tw.mqtt'); // MQTT TOPIC: common mqtt topic
  65. define('MQ_ALTOB_MSG', 'msg'); // MQTT TOPIC: cmd: msg
  66. define('MQ_ALTOB_MSG_END_TAG', ',altob'); // MQTT TOPIC: cmd: msg end tag
  67. define('MQ_ALTOB_888', '888'); // MQTT TOPIC: cmd: 888
  68. define('MQ_ALTOB_888_END_TAG', ',altob'); // MQTT TOPIC: cmd: 888 end tag
  69. define('MQ_ALTOB_POS', 'pos'); // MQTT TOPIC: cmd: pos
  70. define('MQ_ALTOB_POS_END_TAG', ',altob'); // MQTT TOPIC: cmd: pos end tag
  71. define('MEMCACHE_HOST', 'localhost'); // memcache host
  72. define('MEMCACHE_PORT', 11211); // memcache post no (default:11211)
  73. // Date.timezone
  74. //date_default_timezone_set("Asia/Taipei"); // <-- TODO: php.ini 無效 ?????????????????????????????????????????????
  75. /*
  76. |--------------------------------------------------------------------------
  77. | DELIMITER - 共用設定
  78. |--------------------------------------------------------------------------
  79. */
  80. define('SYNC_DELIMITER_ST_NAME', ' & '); // (拆分) 場站名稱
  81. define('SYNC_DELIMITER_ST_NO', ','); // (拆分) 場站編號
  82. define('SYNC_DELIMITER_ST_INFO', '|'); // (拆分) 其它
  83. /*
  84. |--------------------------------------------------------------------------
  85. | MEMCACHE KEY - 共用設定
  86. |--------------------------------------------------------------------------
  87. */
  88. define('MCACHE_STATION_NO_STR', 'station_no_str');
  89. define('MCACHE_STATION_NO_LIST_STR', 'station_no_list_str'); // 會員資料同步
  90. define('MCACHE_STATION_NAME_STR', 'station_name_str');
  91. define('MCACHE_STATION_IP_STR', 'station_ip_str');
  92. define('MCACHE_STATION_PORT_STR', 'station_port_str');
  93. define('MCACHE_STATION_888_STR', 'station_888_str');
  94. define('MCACHE_SYNC_888_TMP_LOG', 'sync_888_tmp_log'); // 暫存 888 進出
  95. define('MCACHE_STATION_SETTINGS', 'altob_station_settings'); // 場站設定匯整
  96. /*
  97. |--------------------------------------------------------------------------
  98. | 自定義連結 - 共用設定
  99. |--------------------------------------------------------------------------
  100. */
  101. define("ALTOB_PAYMENT_TXDATA_URL", "http://localhost/txdata.html"); // 費率 ServiceURL
  102. /*
  103. |--------------------------------------------------------------------------
  104. | LOG檔名 - 共用設定
  105. |--------------------------------------------------------------------------
  106. */
  107. define("MEMBER_LOG_TITLE", 'member-log://'); // 會員資料記錄
  108. define("TX_LOG_TITLE", 'tx-log://'); // 交易資料記錄
  109. define("ADMIN_LOG_TITLE", 'admin-log://'); // 管理操作記錄
  110. define("EXPORT_LOG_TITLE", 'export-log://'); // 檔案匯出記錄
  111. define("PARKTRON_LOG_TITLE", 'parktron-log://'); // 博辰資料記錄
  112. /*
  113. |--------------------------------------------------------------------------
  114. | 資料庫欄位 - 共用設定
  115. |--------------------------------------------------------------------------
  116. */
  117. // member_tx.verify_state
  118. define("MEMBER_TX_VERIFY_STATE_NONE", 0); // 0: 未審核
  119. define("MEMBER_TX_VERIFY_STATE_OK", 1); // 1: 人工審核完成
  120. define("MEMBER_TX_VERIFY_STATE_GG", 99); // 99: 審核不通過
  121. // member_tx.tx_state
  122. define("MEMBER_TX_TX_STATE_NONE", 0); // 0: 無
  123. define("MEMBER_TX_TX_STATE_STOP", 4); // 4: 已退租
  124. define("MEMBER_TX_TX_STATE_CANCEL", 44); // 44: 交易取消
  125. // member_tx_bill.invoice_state
  126. define("MEMBER_TX_BILL_INVOICE_STATE_NONE", 0); // 0: 無
  127. define("MEMBER_TX_BILL_INVOICE_STATE_MORE", 1); // 1: 待補開
  128. define("MEMBER_TX_BILL_INVOICE_STATE_ALLOWANCE", 2); // 2: 待折讓
  129. define("MEMBER_TX_BILL_INVOICE_STATE_MORE_DONE", 91); // 91: 補開完成
  130. define("MEMBER_TX_BILL_INVOICE_STATE_ALLOWANCE_DONE", 92); // 92: 折讓完成
  131. // member_refund.refund_state
  132. define("MEMBER_REFUND_STATE_NONE", 0); // 0: 無
  133. define("MEMBER_REFUND_STATE_MORE_INVOICE", 1); // 1: 待補開
  134. define("MEMBER_REFUND_STATE_LESS_INVOICE", 2); // 2: 待折讓
  135. define("MEMBER_REFUND_STATE_DONE", 100); // 100: 已完成
  136. // member_refund.dismiss_state
  137. define("MEMBER_REFUND_DISMISS_STATE_NONE", 0); // 0: 無
  138. define("MEMBER_REFUND_DISMISS_STATE_TRANSFERRED", 1); // 1: 已轉租
  139. define("MEMBER_REFUND_DISMISS_STATE_KEEP_DEPOSIT", 10); // 10: 押金未退
  140. define("MEMBER_REFUND_DISMISS_STATE_DONE", 100); // 100: 已結清
  141. // tx_bill_ats.status
  142. define("TX_BILL_ATS_STATUS_NONE", 0); // 0: 剛建立
  143. define("TX_BILL_ATS_STATUS_PAID", 1); // 1: 結帳完成
  144. define("TX_BILL_ATS_STATUS_INVOICE_VOID", 104); // 104: 發票已作廢
  145. define("TX_BILL_ATS_STATUS_INVOICE_ALLOWANCE", 105); // 105: 發票已折讓
  146. // tx_bill.status
  147. define("TX_BILL_STATUS_NONE", 0); // 0: 剛建立
  148. define("TX_BILL_STATUS_PAID", 1); // 1: 結帳完成
  149. define("TX_BILL_STATUS_ERROR_AMT", 2); // 2: 錢沒對上
  150. define("TX_BILL_STATUS_ERROR_INVOICE", 3); // 3: 發票沒建立
  151. define("TX_BILL_STATUS_HAND_MODE", 4); // 4: 手動調整
  152. define("TX_BILL_STATUS_TIME_OUT", 99); // 99: 訂單逾期作廢
  153. define("TX_BILL_STATUS_PROCESSING", 100); // 100: 交易進行中
  154. define("TX_BILL_STATUS_FAIL", 101); // 101: 交易失敗
  155. define("TX_BILL_STATUS_DONE", 111); // 111: 產品已領取
  156. /* End of file constants.php */
  157. /* Location: ./application/config/constants.php */