config.inc.sample 6.9 KB

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