config.inc.sample 7.1 KB

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