VM暫存
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

157 satır
7.4KB

  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('STATION_NAME', '未設定'); // 本場站名稱
  44. define('STATION_NO', 54321); // 本場站編號
  45. define('STATION_IP', '192.168.0.201'); // 本場站IP
  46. define('STATION_URL', 'http://'.STATION_IP.'/'); // 本場站URL
  47. define('PHPLIBS_BASE', '/home/bigbang/libs/phplibs/'); // phplibs 根路徑
  48. define('ALTOB_SYNC_FILE', PHPLIBS_BASE.'Altob.Sync.Integration.php'); // ALTOB (同步)
  49. define('ALTOB_CRYPT_FILE', PHPLIBS_BASE.'Altob.Crypt.Integration.php'); // ALTOB (資料加解密)
  50. define('ALTOB_BILL_FILE', PHPLIBS_BASE.'Altob.Payment.Integration.php'); // ALTOB (金流: 費率)
  51. define('ALTOB_TWGC_FILE', PHPLIBS_BASE.'Altob.TWGC.Integration.php'); // ALTOB (歐Pa卡: TWGC)
  52. define('ALTOB_CTBC_FILE', PHPLIBS_BASE.'ctbcbank/Altob.CTBC.Bank.Integration.php'); // 中國信託 (金流)
  53. define('ALLPAY_FILE', PHPLIBS_BASE.'AllPay.Payment.Integration.php'); // 歐付寶 (金流)
  54. define('ALLPAY_INVOICE_FILE', PHPLIBS_BASE.'AllPay_Invoice.php'); // 歐付寶 (電子發票)
  55. define('MQ_CLASS_FILE', PHPLIBS_BASE.'phpMQTT.php'); // MQTT: class file name
  56. define('MQ_HOST', '192.168.0.202'); // MQTT: host
  57. define('MQ_PORT', 1883); // MQTT: port (default:1883)
  58. define('MQ_TOPIC_SUBLEVEL', 'SUBLEVEL'); // MQTT TOPIC: 樓層在席顯示
  59. define('MQ_TOPIC_SUBTEXT', 'SUBTEXT'); // MQTT TOPIC: 出入口字幕機
  60. define('MQ_TOPIC_OPEN_DOOR', 'OPEN_DOOR'); // MQTT TOPIC: 出入口開門
  61. define('MQ_TOPIC_ALTOB', 'altob.com.tw.mqtt'); // MQTT TOPIC: common mqtt topic
  62. define('MQ_ALTOB_MSG', 'msg'); // MQTT TOPIC: cmd: msg
  63. define('MQ_ALTOB_MSG_END_TAG', ',altob'); // MQTT TOPIC: cmd: msg end tag
  64. define('MQ_ALTOB_888', '888'); // MQTT TOPIC: cmd: 888
  65. define('MQ_ALTOB_888_END_TAG', ',altob'); // MQTT TOPIC: cmd: 888 end tag
  66. define('MEMCACHE_HOST', 'localhost'); // memcache host
  67. define('MEMCACHE_PORT', 11211); // memcache post no (default:11211)
  68. // Date.timezone
  69. //date_default_timezone_set("Asia/Taipei"); // <-- TODO: php.ini 無效 ?????????????????????????????????????????????
  70. /*
  71. |--------------------------------------------------------------------------
  72. | 自定義連結 - 共用設定
  73. |--------------------------------------------------------------------------
  74. */
  75. define("ALTOB_PAYMENT_TXDATA_URL", "http://localhost/txdata.html"); // 費率 ServiceURL
  76. /*
  77. |--------------------------------------------------------------------------
  78. | LOG檔名 - 共用設定
  79. |--------------------------------------------------------------------------
  80. */
  81. define("MEMBER_LOG_TITLE", 'member-log://'); // 會員資料記錄
  82. define("TX_LOG_TITLE", 'tx-log://'); // 交易資料記錄
  83. define("ADMIN_LOG_TITLE", 'admin-log://'); // 管理操作記錄
  84. define("EXPORT_LOG_TITLE", 'export-log://'); // 檔案匯出記錄
  85. /*
  86. |--------------------------------------------------------------------------
  87. | 資料庫欄位 - 共用設定
  88. |--------------------------------------------------------------------------
  89. */
  90. // member_tx.verify_state
  91. define("MEMBER_TX_VERIFY_STATE_NONE", 0); // 0: 未審核
  92. define("MEMBER_TX_VERIFY_STATE_OK", 1); // 1: 人工審核完成
  93. define("MEMBER_TX_VERIFY_STATE_GG", 99); // 99: 審核不通過
  94. // member_tx.tx_state
  95. define("MEMBER_TX_TX_STATE_NONE", 0); // 0: 無
  96. define("MEMBER_TX_TX_STATE_STOP", 4); // 4: 已退租
  97. define("MEMBER_TX_TX_STATE_CANCEL", 44); // 44: 交易取消
  98. // member_tx_bill.invoice_state
  99. define("MEMBER_TX_BILL_INVOICE_STATE_NONE", 0); // 0: 無
  100. define("MEMBER_TX_BILL_INVOICE_STATE_MORE", 1); // 1: 待補開
  101. define("MEMBER_TX_BILL_INVOICE_STATE_ALLOWANCE", 2); // 2: 待折讓
  102. define("MEMBER_TX_BILL_INVOICE_STATE_MORE_DONE", 91); // 91: 補開完成
  103. define("MEMBER_TX_BILL_INVOICE_STATE_ALLOWANCE_DONE", 92); // 92: 折讓完成
  104. // member_refund.refund_state
  105. define("MEMBER_REFUND_STATE_NONE", 0); // 0: 無
  106. define("MEMBER_REFUND_STATE_MORE_INVOICE", 1); // 1: 待補開
  107. define("MEMBER_REFUND_STATE_LESS_INVOICE", 2); // 2: 待折讓
  108. define("MEMBER_REFUND_STATE_DONE", 100); // 100: 已完成
  109. // member_refund.dismiss_state
  110. define("MEMBER_REFUND_DISMISS_STATE_NONE", 0); // 0: 無
  111. define("MEMBER_REFUND_DISMISS_STATE_TRANSFERRED", 1); // 1: 已轉租
  112. define("MEMBER_REFUND_DISMISS_STATE_KEEP_DEPOSIT", 10); // 10: 押金未退
  113. define("MEMBER_REFUND_DISMISS_STATE_DONE", 100); // 100: 已結清
  114. // tx_bill_ats.status
  115. define("TX_BILL_ATS_STATUS_NONE", 0); // 0: 剛建立
  116. define("TX_BILL_ATS_STATUS_PAID", 1); // 1: 結帳完成
  117. define("TX_BILL_ATS_STATUS_INVOICE_VOID", 104); // 104: 發票已作廢
  118. define("TX_BILL_ATS_STATUS_INVOICE_ALLOWANCE", 105); // 105: 發票已折讓
  119. // tx_bill.status
  120. define("TX_BILL_STATUS_NONE", 0); // 0: 剛建立
  121. define("TX_BILL_STATUS_PAID", 1); // 1: 結帳完成
  122. define("TX_BILL_STATUS_ERROR_AMT", 2); // 2: 錢沒對上
  123. define("TX_BILL_STATUS_ERROR_INVOICE", 3); // 3: 發票沒建立
  124. define("TX_BILL_STATUS_HAND_MODE", 4); // 4: 手動調整
  125. define("TX_BILL_STATUS_TIME_OUT", 99); // 99: 訂單逾期作廢
  126. define("TX_BILL_STATUS_PROCESSING", 100); // 100: 交易進行中
  127. define("TX_BILL_STATUS_FAIL", 101); // 101: 交易失敗
  128. define("TX_BILL_STATUS_DONE", 111); // 111: 產品已領取
  129. /* End of file constants.php */
  130. /* Location: ./application/config/constants.php */