123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?php
- /**
- * Copyright 2021, 2024 5 Mode
- *
- * This file is part of Homomm.
- *
- * Homomm is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Homomm is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Homomm. If not, see <https://www.gnu.org/licenses/>.
- *
- * config.inc
- *
- * Homomm configuration settings.
- *
- * @author Daniele Bonini <my25mb@aol.com>
- * @copyrights (c) 2021, 2024, 5 Mode
- */
- define('DEBUG', true);
-
- define('APP_NAME', "Homomm");
- define('APP_SPLASH', true);
- define('APP_PATH', "/var/www/YourWebApp/Public/static");
- define('APP_SCRIPT_PATH', "/var/www/YourWebApp/Private/scripts");
- define('APP_AJAX_PATH', "/var/www/YourWebApp/Private/scripts_ajax");
- define('APP_ERROR_PATH', "/var/www/YourWebApp/Private/error");
- define('APP_SALT', "yoursalt");
- define('APP_REPO_PATH', "/var/www/YourWebApp/Private/Repo");
- define('APP_PIC_PATH', "/var/www/YourWebApp/Public/static/hmm-img");
- // Timezone in +N format (without leading zero)
- define('APP_SERVER_TIMEZONE', "+2");
- // Default Locale, in two letters format
- define('APP_LOCALE', "EN");
- // Server pushing interval in ms
- define('APP_PUSH_INTERVAL', "25000");
- define('CMDLINE_VALIDCMDS', "~|sendmsg|refreshbrd|delmsg|delpic|openpic|");
- define('HISTORY_MAX_ITEMS', 50);
- // SMS by using your Twilio account
- define('SMS_API_URL', "");
- // Set here your Account SID
- define('SMS_USERNAME', "");
- // Set here your Auth Token
- define('SMS_PASSWORD', "");
- // Set here the Message Service to send message from..
- define('SMS_MESSAGING_SERVICE', "");
- // Set here the Message body
- define('SMS_BODY', "You have a new message on http://homomm.org");
- $CONFIG = [
- 'DEBUG' => true,
- 'APP' => [
- 'NAME' => "Homomm",
- 'SPLASH' => true,
- 'PATH' => "/var/www/YourWebApp/Public/static",
- 'SCRIPT_PATH' => "/var/www/YourWebApp/Private/scripts",
- 'AJAX_PATH' => "/var/www/YourWebApp/Private/scripts_ajax",
- 'ERROR_PATH' => "/var/www/YourWebApp/Private/error",
- 'SALT' => "yoursalt",
- 'REPO_PATH' => "/var/www/YourWebApp/Private/Repo",
- 'PIC_PATH' => "/var/www/YourWebApp/Public/static/hmm-img",
- // Timezone in +N format (without leading zero)
- 'SERVER_TIMEZONE' => "+2",
- // Default Locale, in two letters format
- 'LOCALE' => "EN",
- // Server pushing interval in ms
- 'PUSH_INTERVAL' => "25000"
- ],
-
- 'AUTH' => [
- 'MASTER' => [
- 'USERNAME' => "Dan",
- 'PHONE' => "+160612345567",
- 'REPO_FOLDER' => "master",
- 'PIC_FOLDER' => "master",
- // password: yourpassword
- // salt: yoursalt
- 'HASH' => "",
- // Timezone in +N format (without leading zero)
- 'TIMEZONE' => "+2",
- // Language, in two letters format
- 'LOCALE' => "EN"
- ],
- 'FRIEND_0' => [
- 'USERNAME' => "John",
- 'PHONE' => "+16061234567",
- 'REPO_FOLDER' => "user",
- 'PIC_FOLDER' => "user",
- // password: yourpassword
- // salt: yoursalt
- 'HASH' => "",
- // Timezone in +N format (without leading zero)
- 'TIMEZONE' => "+2",
- // Language, in two letters format
- 'LOCALE' => "EN"
- ],
- 'FRIEND_1' => [
- 'USERNAME' => "Nickname",
- 'PHONE' => "+16061234567",
- 'REPO_FOLDER' => "user",
- 'PIC_FOLDER' => "user",
- // password: yourpassword
- // salt: yoursalt
- 'HASH' => "",
- // Timezone in +N format (without leading zero)
- 'TIMEZONE' => "+2",
- // Language, in two letters format
- 'LOCALE' => "EN"
- ],
- 'FRIEND_2' => [
- 'USERNAME' => "Nickname",
- 'PHONE' => "+16061234567",
- 'REPO_FOLDER' => "user",
- 'PIC_FOLDER' => "user",
- // password: yourpassword
- // salt: yoursalt
- 'HASH' => "",
- // Timezone in +N format (without leading zero)
- 'TIMEZONE' => "+2",
- // Language, in two letters format
- 'LOCALE' => "EN"
- ]
- ],
-
- 'CMDLINE' => [
- 'VALIDCMDS' => "~|sendmsg|refreshbrd|delmsg|delpic|openpic|"
- ],
- 'HISTORY' => [
- 'MAX_ITEMS' => 50
- ],
-
- 'SMS' => [
- 'API_URL' => "",
- 'USERNAME' => "",
- 'PASSWORD' => "",
- 'MESSAGING_SERVICE' => "",
- 'BODY' => "You have a new message on http://homomm.org"
- ]
-
- ];
- $LOCALE = [
- 'CN' => [
- 'Monday' => "星期一",
- 'Tuesday' => "星期二",
- 'Wednesday' => "星期三",
- 'Thursday' => "星期四",
- 'Friday' => "星期五",
- 'Saturday' => "星期六",
- 'Sunday' => "星期天",
- 'January' => "一月",
- 'February' => "二月",
- 'March' => "三月",
- 'April' => "四月",
- 'May' => "五月",
- 'June' => "六月",
- 'July' => "七月",
- 'August' => "八月",
- 'September' => "九月",
- 'October' => "十月",
- 'November' => "十一月",
- 'December' => "十二月",
- 'Friends' => "朋友",
- 'Message board' => "留言板",
- 'Message' => "消息",
- 'Go' => "发送",
- 'Hash me' => "哈希这个",
- 'Try the Beep' => '试试哔声'
- ],
- 'DE' => [
- 'Monday' => "Montag",
- 'Tuesday' => "Dienstag",
- 'Wednesday' => "Mittwoch",
- 'Thursday' => "Donnerstag",
- 'Friday' => "Freitag",
- 'Saturday' => "Samstag",
- 'Sunday' => "Sonntag",
- 'January' => "Januar",
- 'February' => "Februar",
- 'March' => "März",
- 'April' => "April",
- 'May' => "Mai",
- 'June' => "Juni",
- 'July' => "Juli",
- 'August' => "August",
- 'September' => "September",
- 'October' => "Oktober",
- 'November' => "November",
- 'December' => "Dezember",
- 'Friends' => "Freunde",
- 'Message board' => "Brett",
- 'Message' => "Nachricht",
- 'Go' => "Go",
- 'Hash me' => "Hash mich",
- 'Try the Beep' => "Teste den Bip"
- ],
- 'ES' => [
- 'Monday' => "Lunes",
- 'Tuesday' => "Martes",
- 'Wednesday' => "Miércoles",
- 'Thursday' => "Jueves",
- 'Friday' => "Viernes",
- 'Saturday' => "Sábado",
- 'Sunday' => "Domingo",
- 'January' => "Enero",
- 'February' => "Febrero",
- 'March' => "Marzo",
- 'April' => "Abril",
- 'May' => "Mayo",
- 'June' => "Junio",
- 'July' => "Julio",
- 'August' => "Agosto",
- 'September' => "Septiembre",
- 'October' => "Octubre",
- 'November' => "Noviembre",
- 'December' => "Diciembre",
- 'Friends' => "Amigos",
- 'Message board' => "Mensajeria",
- 'Message' => "Mensaje",
- 'Go' => "Go",
- 'Hash me' => "Hash me",
- 'Try The Beep' => "Prueba el Bip"
- ],
- 'FR' => [
- 'Monday' => "Lundi",
- 'Tuesday' => "Mardi",
- 'Wednesday' => "Mercredi",
- 'Thursday' => "Jeudi",
- 'Friday' => "Vendredi",
- 'Saturday' => "Samedi",
- 'Sunday' => "Dimanche",
- 'January' => "Janvier",
- 'February' => "Février",
- 'March' => "Mars",
- 'April' => "Avril",
- 'May' => "Mai",
- 'June' => "Juin",
- 'July' => "Juillet",
- 'August' => "Août",
- 'September' => "Septembre",
- 'October' => "Octobre",
- 'November' => "Novembre",
- 'December' => "Décembre",
- 'Friends' => "Amis",
- 'Message board' => "Messagerie",
- 'Message' => "Message",
- 'Go' => "Go",
- 'Hash me' => "Hash cet",
- 'Try the Beep' => "Lancer le Bip"
- ],
- 'IT' => [
- 'Monday' => "Lunedì",
- 'Tuesday' => "Martedì",
- 'Wednesday' => "Mercoledì",
- 'Thursday' => "Giovedì",
- 'Friday' => "Venerdì",
- 'Saturday' => "Sabato",
- 'Sunday' => "Domenica",
- 'January' => "Gennaio",
- 'February' => "Febbraio",
- 'March' => "Marzo",
- 'April' => "Aprile",
- 'May' => "Maggio",
- 'June' => "Giugno",
- 'July' => "Luglio",
- 'August' => "Agosto",
- 'September' => "Settembre",
- 'October' => "Ottobre",
- 'November' => "Novembre",
- 'December' => "Dicembre",
- 'Friends' => "Amici",
- 'Message board' => "Messaggeria",
- 'Message' => "Messaggio",
- 'Go' => "Vai",
- 'Hash me' => "Hashmi",
- 'Try the Beep' => "Prova il Bip"
- ]
- ];
-
-
- $EMOTICONS = [
- '[:-)]' => "🙂",
- '[:-p]' => "🤑",
- '[:c)]' => "😀",
- '[;-)]' => "😉",
- '[:-J]' => "😏",
- '[;-P]' => "😜",
- '[:-/]' => "😕",
- '[@-)]' => "😓",
- '[B-)]' => "😎",
- '[=]]' => '😃',
- '[=)]' => "😄",
- '[*-)]' => "😍"
- ];
|