config.inc.sample 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of Puzzleu.
  6. *
  7. * Puzzleu is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * Puzzleu is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with Puzzleu. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * config.inc
  21. *
  22. * Puzzleu configuration settings.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2021, 2024, 5 Mode
  26. */
  27. define('DEBUG', false);
  28. define('ADMIN_VIEW', "1");
  29. define('PUBLIC_VIEW', "2");
  30. define('APP_NAME', "Puzzleu");
  31. define('APP_TITLE', "Puzzleu: everyone its puzzle.");
  32. // password: your_password
  33. //define('APP_BLOG_HASH', "");
  34. // password: your_password
  35. // salt: your_salt
  36. define('APP_HASH', "");
  37. define('APP_SALT', "yoursalt");
  38. define('APP_HOST', "YourPuzzleu.com");
  39. define('APP_PATH', "/var/www/YourWebApp/Public");
  40. define('APP_HOME_PATH', "");
  41. define('APP_PRIVATE_PATH', "/var/www/YourWebApp/Private");
  42. define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
  43. define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
  44. define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
  45. define('APP_DATA_PATH', "/var/www/YourWebApp/Private/data");
  46. define('APP_LICENSE', <<<LICENSETEXT
  47. Copyright (c) 2016, 2024, 5 Mode
  48. All rights reserved.
  49. This file is part of Puzzleu.
  50. Puzzleu is free software: you can redistribute it and/or modify
  51. it under the terms of the GNU General Public License as published by
  52. the Free Software Foundation, either version 3 of the License, or
  53. (at your option) any later version.
  54. Puzzleu is distributed in the hope that it will be useful,
  55. but WITHOUT ANY WARRANTY; without even the implied warranty of
  56. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  57. GNU General Public License for more details.
  58. You should have received a copy of the GNU General Public License
  59. along with Puzzleu. If not, see <https://www.gnu.org/licenses/>.
  60. https://opensource.org/licenses/GPL-3.0
  61. LICENSETEXT
  62. );
  63. // Default Locale, in two letters format
  64. define('APP_DEF_LANG', "en-US");
  65. define('APP_DEF_PROFILE_PIC', "/res/pic1.png");
  66. define('APP_FILE_MAX_SIZE', 10496000);
  67. define('APP_BLOG_MAX_POSTS', 15);
  68. define('APP_PAGINATION', false);
  69. define('APP_EMAIL_CONTACT', "info@yourpuzzleu.com");
  70. $CONFIG = [
  71. 'DEBUG' => true,
  72. 'ADMIN_VIEW' => "1",
  73. 'PUBLIC_VIEW' => "2",
  74. 'APP' => [
  75. 'NAME' => "Puzzleu",
  76. 'TITLE' => "Puzzleu: everyone its puzzle.",
  77. // password: your_password
  78. // salt: your_salt
  79. 'HASH' => "",
  80. 'SALT' => "yoursalt",
  81. 'HOST' => "YourPuzzleu.com",
  82. 'PATH' => "/var/www/YourWebApp/Public",
  83. 'HOME_PATH' => "",
  84. 'PRIVATE_PATH' => "/var/www/YourWebApp/Private",
  85. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  86. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  87. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  88. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  89. 'LICENSE' => <<<LICENSETEXT
  90. Copyright (c) 2016, 2024, 5 Mode
  91. All rights reserved.
  92. This file is part of Puzzleu.
  93. Puzzleu is free software: you can redistribute it and/or modify
  94. it under the terms of the GNU General Public License as published by
  95. the Free Software Foundation, either version 3 of the License, or
  96. (at your option) any later version.
  97. Puzzleu is distributed in the hope that it will be useful,
  98. but WITHOUT ANY WARRANTY; without even the implied warranty of
  99. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  100. GNU General Public License for more details.
  101. You should have received a copy of the GNU General Public License
  102. along with Puzzleu. If not, see <https://www.gnu.org/licenses/>.
  103. https://opensource.org/licenses/GPL-3.0
  104. LICENSETEXT
  105. ,
  106. 'DEF_LANG' => "en-US",
  107. 'DEF_PROFILE_PIC' => "/res/pic1.png",
  108. 'FILE_MAX_SIZE' => 10496000,
  109. 'BLOG_MAX_POSTS' => 15,
  110. 'PAGINATION' => false,
  111. 'EMAIL_CONTACT' => "info@yourpuzzleu.com"
  112. ]
  113. ];
  114. $LOCALE = [
  115. 'it-IT' => [
  116. '/home.php' => [
  117. 'ping' => "pong",
  118. 'How-to: Manage your avatars in Puzzleu' => "How-to: Gestire i tuoi avatar in Puzzleu",
  119. 'CV' => "CV",
  120. 'Sample' => "Esempio",
  121. 'My Network' => "Network",
  122. 'Hello from 5 Mode' => "Ciao da 5 Mode",
  123. 'This is just an example of blog entry' => "Questo e' giusto un esempio di post nel blog",
  124. 'Go' => "Vai",
  125. 'Hash Me' => "Codificami",
  126. 'Some rights reserved' => "Alcuni diritti riservati"
  127. ],
  128. '/js/home-js.php' => [
  129. 'ping' => "pong",
  130. 'Please set your hash in the config file with this value' => "Puoi impostare il tuo hash nel file config con questo valore"
  131. ]
  132. ],
  133. 'zh-CN' => [
  134. '/home.php' => [
  135. 'ping' => "pong",
  136. 'How-to: Manage your avatars in Puzzleu' => "HOW-TO: 免费管理您的化身",
  137. 'CV' => "简历",
  138. 'Sample' => "样本",
  139. 'My Network' => "我的网络",
  140. 'Hello from 5 Mode' => "您好5 MODE",
  141. 'This is just an example of blog entry' => "这只是博客条目的一个例子",
  142. 'Go' => "去",
  143. 'Hash Me' => "哈希我",
  144. 'Some rights reserved' => "保留一些权利"
  145. ],
  146. '/js/home-js.php' => [
  147. 'ping' => "pong",
  148. 'Please set your hash in the config file with this value' => "请在配置文件中设置您的哈希"
  149. ]
  150. ]
  151. ];
  152. $EMOTICONS = [
  153. '[:-)]' => "&#128578;",
  154. '[:-p]' => "&#129297;",
  155. '[:c)]' => "&#128512;",
  156. '[;-)]' => "&#128521;",
  157. '[:-J]' => "&#128527;",
  158. '[;-P]' => "&#128540;",
  159. '[:-/]' => "&#128533;",
  160. '[@-)]' => "&#128531;",
  161. '[B-)]' => "&#128526;",
  162. '[=]]' => '&#128515;',
  163. '[=)]' => "&#128516;",
  164. '[*-)]' => "&#128525;"
  165. ];