Files
Testing/html5-chat/Config.php

63 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php
spl_autoload_register(function($class_name) {
include __DIR__.'/classes/'.$class_name . '.php';
});
/*function __autoload($class_name) {
include __DIR__.'/classes/'.$class_name . '.php';
}*/
define('DEFAULT_VIEW', 'home');
define('DEBUG', false);
define('LANGUE','en');
define('ADMINURL','/adminchat');
// DB
define('hostname_con1', 'localhost');
define('database_con1', 'bateworldcom');
define('username_con1', 'bateworl_bate');
define('password_con1', 'bateworld1024');
define('HOME_HTTP', 'https://mojo.bateworld.com/');
define('HTTP_NODE', 'https://mojo.bateworld.com:1999');
define('HTTP_NODE_MULTI', 'https://theme.bateworld.com:2998'); //chat
define('HTTP_NODE_MULTI2', 'https://theme.bateworld.com:2998'); // chat
define('RTMP', 'rtmp://mojo.bateworld.com:11935/hls/');
define('WEBMASTER_EMAIL', 'contact@bateworld.com');
define('WEBMASTERID', 8221);
//UPLOAD
define('UPLOAD_GENDERS', __DIR__.'/upload/genders/');
define('UPLOAD_THUMBS', __DIR__.'/upload/thumbs/');
define('UPLOAD_ROOMS', __DIR__.'/upload/rooms/');
define('UPLOAD_LOGO', __DIR__.'/upload/logo/');
define('UPLOAD_ROLES', __DIR__.'/upload/roles/');
define('UPLOAD_IMAGES_MESSAGES', __DIR__.'/upload/messages/');
define('UPLOAD_IMAGES_MESSAGES_URL', '/upload/messages/');
define('UPLOAD_IMAGES_MESSAGES_WIDTH', 48);
define('UPLOAD_IMAGES_MESSAGES_HEIGHT', 48);
define('UPLOAD_VIDEOS', __DIR__.'/upload/videos/');
define('UPLOAD_AUDIO', __DIR__.'/upload/audio/');
// SMTP
define("USESMTP", true);
define("SMTPHost", 'SSL0.OVH.NET');
define("SMTPDebug",1);
define("SMTPAuth", true);
define("SMTPPort", 465);
define("SMTPUsername", 'noreply@mojo.bateworld.com');
define("SMTPUsernameWP", 'wp@mojo.bateworld.com');
define("SMTPPassword", 'bateworld');
define("EMAILFROM", 'noreply@mojo.bateworld.com');
define("SQL_MAILING_TEST", 'select * from chat_webmaster WHERE id=1 or id=54');
// camera
define('micRate', 11);
define('cameraWidth', 320);
define('cameraHeight', 240);
define('cameraBandWidth', 0); // 0 = all possible
define('cameraQuality', 75); // 0-90
define('cameraFPS', 20); // 0-90
define('cameraKeyFrameInterval', 8); // keyframe