Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Plugins\MassVoting;
- require_once PLUGINS_PATH . '/' . IDNAME . '/vendor/autoload.php';
- if (!defined('APP_VERSION')) {
- exit('Yo, what\'s up?');
- }
- class IndexController extends \Controller
- {
- const IDNAME = 'massvoting';
- public function process()
- {
- $AuthUser = $this->getVariable('AuthUser');
- $this->setVariable('idname', self::IDNAME);
- if (!$AuthUser) {
- header('Location: ' . APPURL . '/login');
- exit();
- }
- else if ($AuthUser->isExpired()) {
- header('Location: ' . APPURL . '/expired');
- exit();
- }
- $user_modules = $AuthUser->get('settings.modules');
- if (!is_array($user_modules) || !in_array(self::IDNAME, $user_modules)) {
- header('Location: ' . APPURL . '/post');
- exit();
- }
- $Accounts = \Controller::model('Accounts');
- $Accounts->setPageSize(500)->setPage(\Input::get('page'))->where('user_id', '=', $AuthUser->get('id'));
- $search_query = \Input::get('q');
- if (!empty($search_query)) {
- $search_query = trim($search_query);
- $Accounts->where('username', 'LIKE', $search_query . '%');
- }
- $Accounts->orderBy('id', 'DESC')->fetchData();
- ......................................................................
- ......................................
- ..............
Add Comment
Please, Sign In to add comment