config.inc.sample 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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_PAGINATION', true);
  68. define('APP_BLOG_MAX_POSTS', 0);
  69. define('APP_BLOG_WIDE_MAX_POSTS', 15);
  70. define('APP_BLOG_THIN_MAX_POSTS', 6);
  71. define('APP_BLOG_ULTRATHIN_MAX_POSTS', 3);
  72. define('APP_EMAIL_CONTACT', "info@yourpuzzleu.com");
  73. $CONFIG = [
  74. 'DEBUG' => true,
  75. 'ADMIN_VIEW' => "1",
  76. 'PUBLIC_VIEW' => "2",
  77. 'APP' => [
  78. 'NAME' => "Puzzleu",
  79. 'TITLE' => "Puzzleu: everyone its puzzle.",
  80. // password: your_password
  81. // salt: your_salt
  82. 'HASH' => "",
  83. 'SALT' => "yoursalt",
  84. 'HOST' => "YourPuzzleu.com",
  85. 'PATH' => "/var/www/YourWebApp/Public",
  86. 'HOME_PATH' => "",
  87. 'PRIVATE_PATH' => "/var/www/YourWebApp/Private",
  88. 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
  89. 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
  90. 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
  91. 'DATA_PATH' => "/var/www/YourWebApp/Private/data",
  92. 'LICENSE' => <<<LICENSETEXT
  93. Copyright (c) 2016, 2024, 5 Mode
  94. All rights reserved.
  95. This file is part of Puzzleu.
  96. Puzzleu is free software: you can redistribute it and/or modify
  97. it under the terms of the GNU General Public License as published by
  98. the Free Software Foundation, either version 3 of the License, or
  99. (at your option) any later version.
  100. Puzzleu is distributed in the hope that it will be useful,
  101. but WITHOUT ANY WARRANTY; without even the implied warranty of
  102. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  103. GNU General Public License for more details.
  104. You should have received a copy of the GNU General Public License
  105. along with Puzzleu. If not, see <https://www.gnu.org/licenses/>.
  106. https://opensource.org/licenses/GPL-3.0
  107. LICENSETEXT
  108. ,
  109. 'DEF_LANG' => "en-US",
  110. 'DEF_PROFILE_PIC' => "/res/pic1.png",
  111. 'FILE_MAX_SIZE' => 10496000,
  112. 'PAGINATION' => true,
  113. 'BLOG_MAX_POSTS ' => 0,
  114. 'BLOG_WIDE_MAX_POSTS' => 15,
  115. 'BLOG_THIN_MAX_POSTS' => 6,
  116. 'BLOG_ULTRATHIN_MAX_POSTS' => 3,
  117. 'EMAIL_CONTACT' => "info@yourpuzzleu.com"
  118. ]
  119. ];
  120. $LOCALE = [
  121. 'it-IT' => [
  122. '/home.php' => [
  123. 'ping' => "pong",
  124. 'How-to: Manage your avatars in Puzzleu' => "How-to: Gestire i tuoi avatar in Puzzleu",
  125. 'CV' => "CV",
  126. 'Sample' => "Esempio",
  127. 'My Network' => "Network",
  128. 'Hello from 5 Mode' => "Ciao da 5 Mode",
  129. 'This is just an example of blog entry' => "Questo e' giusto un esempio di post nel blog",
  130. 'Go' => "Vai",
  131. 'Hash Me' => "Codificami",
  132. 'Some rights reserved' => "Alcuni diritti riservati"
  133. ],
  134. '/js/home-js.php' => [
  135. 'ping' => "pong",
  136. 'Please set your hash in the config file with this value' => "Puoi impostare il tuo hash nel file config con questo valore"
  137. ]
  138. ],
  139. 'zh-CN' => [
  140. '/home.php' => [
  141. 'ping' => "pong",
  142. 'How-to: Manage your avatars in Puzzleu' => "HOW-TO: 免费管理您的化身",
  143. 'CV' => "简历",
  144. 'Sample' => "样本",
  145. 'My Network' => "我的网络",
  146. 'Hello from 5 Mode' => "您好5 MODE",
  147. 'This is just an example of blog entry' => "这只是博客条目的一个例子",
  148. 'Go' => "去",
  149. 'Hash Me' => "哈希我",
  150. 'Some rights reserved' => "保留一些权利"
  151. ],
  152. '/js/home-js.php' => [
  153. 'ping' => "pong",
  154. 'Please set your hash in the config file with this value' => "请在配置文件中设置您的哈希"
  155. ]
  156. ]
  157. ];
  158. $EMOTICONS = [
  159. '[:-)]' => "&#128578;",
  160. '[:-p]' => "&#129297;",
  161. '[:c)]' => "&#128512;",
  162. '[;-)]' => "&#128521;",
  163. '[:-J]' => "&#128527;",
  164. '[;-P]' => "&#128540;",
  165. '[:-/]' => "&#128533;",
  166. '[@-)]' => "&#128531;",
  167. '[B-)]' => "&#128526;",
  168. '[=]]' => '&#128515;',
  169. '[=)]' => "&#128516;",
  170. '[*-)]' => "&#128525;"
  171. ];