config.inc.sample 7.0 KB

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