mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-16 00:54:12 +03:00
Use autoload for \Mibew\Settings class
This commit is contained in:
parent
4ea034e92e
commit
8256aea4cd
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
|
@ -15,7 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Initialize librariess
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/track.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(MIBEW_FS_ROOT.'/libs/track.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api.php');
|
||||
@ -29,7 +33,6 @@ require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/page_style.php');
|
||||
|
||||
|
||||
/**
|
||||
* Names for chat-related cookies
|
||||
*/
|
||||
|
@ -15,6 +15,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace Mibew;
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use \Database;
|
||||
|
||||
/**
|
||||
* Encapsulates work with system settings.
|
||||
*/
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Represents a chat style
|
||||
*/
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Represents a style for invitations
|
||||
*/
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Represents a style for operator pages
|
||||
*/
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Represents a chat thread
|
||||
*
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Incapsulates thread api and thread processing functions.
|
||||
*
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Incapsulates awaiting users list api related functions.
|
||||
*
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
||||
|
||||
/* ajax server actions use utf-8 */
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
function generate_button($title, $locale, $style, $invitation_style_name, $group, $inner, $showhost, $forcesecure, $modsecurity, $operator_code)
|
||||
{
|
||||
$app_location = get_app_location($showhost, $forcesecure);
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
function group_by_id($id)
|
||||
{
|
||||
$db = Database::getInstance();
|
||||
|
@ -38,7 +38,6 @@ spl_autoload_register('class_autoload');
|
||||
|
||||
// Include system classes
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/database.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/settings.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/event_dispatcher.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/plugin_manager.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/plugin.php');
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Check invitation state for specified visitior
|
||||
*
|
||||
|
@ -15,10 +15,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/** Name of the cookie to remember an operator
|
||||
*
|
||||
*/
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
/**
|
||||
* Name of the cookie to remember an operator
|
||||
*/
|
||||
define('REMEMBER_OPERATOR_COOKIE_NAME', 'mibew_operator');
|
||||
|
||||
/** Permissions constants */
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
function setup_settings_tabs($active)
|
||||
{
|
||||
global $page, $mibewroot;
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
function get_statistics_query($type)
|
||||
{
|
||||
$query = $_SERVER['QUERY_STRING'];
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
|
||||
function track_visitor($visitorid, $entry, $referer)
|
||||
|
@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
function get_useragent_version($userAgent)
|
||||
{
|
||||
global $knownAgents;
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/expand.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/canned.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator_settings.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/settings.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/settings.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/settings.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
|
@ -15,6 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
|
Loading…
Reference in New Issue
Block a user