config.inc.sample 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. * All Rights Reserved.
  5. *
  6. * This file is part of TheMultiversed.org.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions are met:
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * * Neither 5 Mode nor the names of its contributors
  16. * may be used to endorse or promote products derived from this software
  17. * without specific prior written permission.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  20. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  21. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  22. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY
  23. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  24. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  25. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  26. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  28. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. *
  30. * config.inc
  31. *
  32. * TheMultiversed.org configuration settings.
  33. *
  34. * @author Daniele Bonini <my25mb@aol.com>
  35. * @copyrights (c) 2021, 2024, 5 Mode
  36. */
  37. define('DEBUG', false);
  38. define('DEMO', true);
  39. define('ADMIN_VIEW', "1");
  40. define('PUBLIC_VIEW', "2");
  41. define('LOCKED_VIEW', "3");
  42. define('APP_NAME', "TheMultiversed.org");
  43. define('APP_TITLE', "TheMultiversed.org: everyone its netbuddies.");
  44. // password: your_password
  45. //define('APP_BLOG_HASH', "");
  46. // password: your_password
  47. // salt: your_salt
  48. define('APP_HASH', "");
  49. define('APP_SALT', "yoursalt");
  50. define('APP_HOST', "YourMultiversedOrg.com");
  51. define('APP_PATH', "/var/www/YourWebApp/Public");
  52. define('APP_HOME_PATH', "");
  53. define('APP_PRIVATE_PATH', "/var/www/YourWebApp/Private");
  54. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  55. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  56. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  57. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/data");
  58. define('APP_LICENSE', <<<LICENSETEXT
  59. Copyright (c) 2016, 2024, 5 Mode
  60. All rights reserved.
  61. This file is part of TheMultiversed.org.
  62. Redistribution and use in source and binary forms, with or without
  63. modification, are permitted provided that the following conditions are met:
  64. * Redistributions of source code must retain the above copyright
  65. notice, this list of conditions and the following disclaimer.
  66. * Redistributions in binary form must reproduce the above copyright
  67. notice, this list of conditions and the following disclaimer in the
  68. documentation and/or other materials provided with the distribution.
  69. * Neither 5 Mode nor the names of its contributors
  70. may be used to endorse or promote products derived from this software
  71. without specific prior written permission.
  72. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  73. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  74. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  75. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY
  76. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  77. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  78. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  79. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  80. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  81. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  82. https://opensource.org/licenses/BSD-3-Clause
  83. LICENSETEXT
  84. );
  85. // Default Locale, in two letters format
  86. define('APP_DEF_LANG', "en-US");
  87. define('APP_EMAIL_CONTACT', "info@yourmultiverseorg.com");
  88. $CONFIG = [
  89. 'DEBUG' => true,
  90. 'DEMO' => true,
  91. 'ADMIN_VIEW' => "1",
  92. 'PUBLIC_VIEW' => "2",
  93. 'LOCKED_VIEW' => "3",
  94. 'APP' => [
  95. 'NAME' => "TheMultiversed.org",
  96. 'TITLE' => "TheMultiversed.org: everyone its netbuddies.",
  97. // password: your_password
  98. // salt: your_salt
  99. 'HASH' => "",
  100. 'SALT' => "yoursalt",
  101. 'HOST' => "YourMultiversedorg.com",
  102. 'PATH' => "/var/www/YourWebApp/Public",
  103. 'HOME_PATH' => "",
  104. 'PRIVATE_PATH' => "/var/www/YourWebApp/Private",
  105. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  106. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  107. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  108. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  109. 'LICENSE' => <<<LICENSETEXT
  110. Copyright (c) 2016, 2024, 5 Mode
  111. All rights reserved.
  112. This file is part of TheMultiversed.org.
  113. Redistribution and use in source and binary forms, with or without
  114. modification, are permitted provided that the following conditions are met:
  115. * Redistributions of source code must retain the above copyright
  116. notice, this list of conditions and the following disclaimer.
  117. * Redistributions in binary form must reproduce the above copyright
  118. notice, this list of conditions and the following disclaimer in the
  119. documentation and/or other materials provided with the distribution.
  120. * Neither 5 Mode nor the names of its contributors
  121. may be used to endorse or promote products derived from this software
  122. without specific prior written permission.
  123. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  124. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  125. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  126. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY
  127. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  128. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  129. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  130. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  131. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  132. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  133. https://opensource.org/licenses/BSD-3-Clause
  134. LICENSETEXT
  135. ,
  136. 'DEF_LANG' => "en-US",
  137. 'EMAIL_CONTACT' => "info@yourmultiversedorg.com"
  138. ]
  139. ];
  140. // !!! ATTENTION !!!
  141. // Every GROUP must have max 8 buddies
  142. // Every ZONE must have max 2 buddies
  143. $FRIENDS = [
  144. 'DEV' => [
  145. 'Daniele' => [
  146. 'gender' => "male",
  147. 'hairc' => 2,
  148. 'glasses' => 1,
  149. 'beard' => 0,
  150. 'Location' => "Bologna, Italy",
  151. 'Desc' => "PHP developer",
  152. 'online' => 1,
  153. 'defStatus' => "on vacation: Unix, IDE, etc.",
  154. 'Phone' => "+393387654321",
  155. 'Homomm' => "https://homomm.5mode-foss.eu",
  156. 'Blog' => "https://blog.",
  157. 'www' => "https://www.",
  158. // password: yourpassword
  159. // salt: yoursalt
  160. 'HASH' => "",
  161. 'zone' => 1
  162. ],
  163. 'Stuart' => [
  164. 'gender' => "male",
  165. 'hairc' => 3,
  166. 'glasses' => 0,
  167. 'beard' => 0,
  168. 'Location' => "Machester, UK",
  169. 'Desc' => "C/C++ developer",
  170. 'online' => 1,
  171. 'defStatus' => "in office",
  172. 'Phone' => "+444712345678",
  173. 'Homomm' => "https://homomm.5mode-foss.eu",
  174. 'Blog' => "https://blog.",
  175. 'www' => "https://www.",
  176. // password: yourpassword
  177. // salt: yoursalt
  178. 'HASH' => "",
  179. 'zone' => 2
  180. ],
  181. 'Crystal' => [
  182. 'gender' => "female",
  183. 'hairc' => 2,
  184. 'glasses' => 0,
  185. 'beard' => 0,
  186. 'Location' => "Reading, UK",
  187. 'Desc' => "C/C++ developer",
  188. 'online' => 1,
  189. 'defStatus' => "in my studio",
  190. 'Phone' => "+444712345678",
  191. 'Homomm' => "https://homomm.5mode-foss.eu",
  192. 'Blog' => "https://blog.",
  193. 'www' => "https://www.",
  194. // password: yourpassword
  195. // salt: yoursalt
  196. 'HASH' => "",
  197. 'zone' => 2
  198. ],
  199. 'Michael' => [
  200. 'gender' => "male",
  201. 'hairc' => 2,
  202. 'glasses' => 1,
  203. 'beard' => 0,
  204. 'Location' => "Chicago, USA",
  205. 'Desc' => "Book Author, OpenBSD enthusiast",
  206. 'online' => 0,
  207. 'defStatus' => "business trip",
  208. 'Phone' => "+123412345678",
  209. 'Homomm' => "https://homomm.5mode-foss.eu",
  210. 'Blog' => "https://blog.",
  211. 'www' => "https://www.",
  212. // password: yourpassword
  213. // salt: yoursalt
  214. 'HASH' => "",
  215. 'zone' => 3
  216. ],
  217. 'Jan' => [
  218. 'gender' => "male",
  219. 'hairc' => 3,
  220. 'glasses' => 0,
  221. 'beard' => 0,
  222. 'Location' => "Liverpool, UK",
  223. 'Desc' => "C/C++ developer",
  224. 'online' => 1,
  225. 'defStatus' => "in the hell? damn it should be more nice..",
  226. 'Phone' => "+123412345678",
  227. 'Homomm' => "https://homomm.5mode-foss.eu",
  228. 'Blog' => "https://blog.",
  229. 'www' => "https://www.",
  230. // password: yourpassword
  231. // salt: yoursalt
  232. 'HASH' => "",
  233. 'zone' => 4
  234. ],
  235. 'Theo' => [
  236. 'gender' => "male",
  237. 'hairc' => 1,
  238. 'glasses' => 0,
  239. 'beard' => 1,
  240. 'Location' => "Montreal, Cananda",
  241. 'Desc' => "C/C++ developer",
  242. 'online' => 0,
  243. 'defStatus' => "business trip last",
  244. 'Phone' => "+123412345678",
  245. 'Homomm' => "https://homomm.5mode-foss.eu",
  246. 'Blog' => "https://blog.",
  247. 'www' => "https://www.",
  248. // password: yourpassword
  249. // salt: yoursalt
  250. 'HASH' => "",
  251. 'zone' => 4
  252. ]
  253. ],
  254. 'MARKETING' => [
  255. 'Bill' => [
  256. 'gender' => "male",
  257. 'hairc' => 2,
  258. 'glasses' => 1,
  259. 'beard' => 0,
  260. 'Location' => "Seattle, US",
  261. 'Desc' => "retired buddy",
  262. 'online' => 1,
  263. 'defStatus' => "on one of my boats",
  264. 'Phone' => "+444712345678",
  265. 'Homomm' => "https://homomm.5mode-foss.eu",
  266. 'Blog' => "https://blog.",
  267. 'www' => "https://www.",
  268. // password: yourpassword
  269. // salt: yoursalt
  270. 'HASH' => "",
  271. 'zone' => 1
  272. ],
  273. 'Steven' => [
  274. 'gender' => "male",
  275. 'hairc' => 3,
  276. 'glasses' => 0,
  277. 'beard' => 0,
  278. 'Location' => "Las Vegas, US",
  279. 'Desc' => "retired buddy",
  280. 'online' => 0,
  281. 'defStatus' => "playing chess",
  282. 'Phone' => "+444712345678",
  283. 'Homomm' => "https://homomm.5mode-foss.eu",
  284. 'Blog' => "https://blog.",
  285. 'www' => "https://www.",
  286. // password: yourpassword
  287. // salt: yoursalt
  288. 'HASH' => "",
  289. 'zone' => 1
  290. ]
  291. ]
  292. ];
  293. $LOCALE = [
  294. 'it-IT' => [
  295. '/home.php' => [
  296. 'ping' => "pong",
  297. 'How-to: Manage your avatars in TheMultiversed.org' => "How-to: Gestire i tuoi avatar in TheMultiversed.org",
  298. 'CV' => "CV",
  299. 'Sample' => "Esempio",
  300. 'My Network' => "Network",
  301. 'Hello from 5 Mode' => "Ciao da 5 Mode",
  302. 'This is just an example of blog entry' => "Questo e' giusto un esempio di post nel blog",
  303. 'Go' => "Vai",
  304. 'Hash Me' => "Codificami",
  305. 'Some rights reserved' => "Alcuni diritti riservati"
  306. ],
  307. '/js/home-js.php' => [
  308. 'ping' => "pong",
  309. 'Please set your hash in the config file with this value' => "Puoi impostare il tuo hash nel file config con questo valore"
  310. ]
  311. ],
  312. 'zh-CN' => [
  313. '/home.php' => [
  314. 'ping' => "pong",
  315. 'How-to: Manage your avatars in TheMultiversed.org' => "HOW-TO: 免费管理您的化身",
  316. 'CV' => "简历",
  317. 'Sample' => "样本",
  318. 'My Network' => "我的网络",
  319. 'Hello from 5 Mode' => "您好5 MODE",
  320. 'This is just an example of blog entry' => "这只是博客条目的一个例子",
  321. 'Go' => "去",
  322. 'Hash Me' => "哈希我",
  323. 'Some rights reserved' => "保留一些权利"
  324. ],
  325. '/js/home-js.php' => [
  326. 'ping' => "pong",
  327. 'Please set your hash in the config file with this value' => "请在配置文件中设置您的哈希"
  328. ]
  329. ]
  330. ];
  331. $EMOTICONS = [
  332. '[:-)]' => "&#128578;",
  333. '[:-p]' => "&#129297;",
  334. '[:c)]' => "&#128512;",
  335. '[;-)]' => "&#128521;",
  336. '[:-J]' => "&#128527;",
  337. '[;-P]' => "&#128540;",
  338. '[:-/]' => "&#128533;",
  339. '[@-)]' => "&#128531;",
  340. '[B-)]' => "&#128526;",
  341. '[=]]' => '&#128515;',
  342. '[=)]' => "&#128516;",
  343. '[*-)]' => "&#128525;"
  344. ];