mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-16 00:54:12 +03:00
Use autoload for \Mibew\Tread class
This commit is contained in:
parent
bd5d6a277d
commit
532a08763f
@ -17,13 +17,13 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
// 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');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
|
||||
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : "";
|
||||
if($referer && isset($_SESSION['threadid'])) {
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
@ -27,7 +28,6 @@ require_once(MIBEW_FS_ROOT.'/libs/expand.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/captcha.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/track.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');
|
||||
|
@ -21,7 +21,6 @@ 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');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/statistics.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/cron.php');
|
||||
|
@ -18,10 +18,10 @@
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
// 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');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_interaction.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_chat_interaction.php');
|
||||
|
@ -15,10 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace Mibew;
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\EventDispatcher;
|
||||
use Mibew\Settings;
|
||||
use \ThreadProcessor;
|
||||
|
||||
/**
|
||||
* Represents a chat thread
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
/**
|
||||
* Incapsulates thread api and thread processing functions.
|
||||
@ -58,7 +59,7 @@ class ThreadProcessor extends ClientSideProcessor {
|
||||
*
|
||||
* @param int $thread_id Id of the thread
|
||||
* @param int $last_token Last token of the thread
|
||||
* @return Thread
|
||||
* @return \Mibew\Thread
|
||||
* @throws ThreadProcessorException
|
||||
*/
|
||||
public static function getThread($thread_id, $last_token) {
|
||||
|
@ -19,6 +19,7 @@
|
||||
use Mibew\Database;
|
||||
use Mibew\EventDispatcher;
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
/**
|
||||
* Incapsulates awaiting users list api related functions.
|
||||
|
@ -18,6 +18,7 @@
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
/**
|
||||
* Check invitation state for specified visitior
|
||||
|
@ -18,6 +18,7 @@
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
function get_statistics_query($type)
|
||||
{
|
||||
|
@ -18,6 +18,7 @@
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
@ -24,7 +25,6 @@ require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/expand.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/notify.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
@ -26,7 +27,6 @@ require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/pagination.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/expand.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');
|
||||
|
@ -17,13 +17,13 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Thread;
|
||||
|
||||
// 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');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/pagination.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/page_style.php');
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
|
@ -19,7 +19,6 @@ require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/track.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
|
||||
$operator = check_login();
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
@ -24,7 +25,6 @@ require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/expand.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
|
@ -22,7 +22,6 @@ require_once(MIBEW_FS_ROOT.'/libs/operator.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
|
||||
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');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_interaction.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_users_interaction.php');
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
|
||||
|
@ -22,7 +22,6 @@ require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/captcha.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/notify.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_interaction.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_chat_interaction.php');
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
|
||||
// Initialize libraries
|
||||
require_once(dirname(__FILE__).'/libs/init.php');
|
||||
|
Loading…
Reference in New Issue
Block a user