AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/new-saint-martin/administrator/components/com_mobilemenuck/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/new-saint-martin/administrator/components/com_mobilemenuck/models//items.php
<?php
/**
 * @name		Mobile Menu CK
 * @copyright	Copyright (C) 2017. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr
 */

defined('_JEXEC') or die;

use Mobilemenuck\CKModel;
use Mobilemenuck\CKFof;

class MobilemenuckModelItems extends CKModel {

	public function getItems() {
		// Create a new query object.
		$db = CKFof::getDbo();
		$query = $db->getQuery(true);

		// Select the required fields from the table.
		$query->select(
				$this->getState(
						'list.select', 'a.*'
				)
		);
		$query->from('`#__modules` AS a');

		// Filter by search in name
		$search = $this->getState('filter_search');
		if (!empty($search)) {
			if (stripos($search, 'id:') === 0) {
				$query->where('a.id = ' . (int) substr($search, 3));
			} else {
				$search = $db->Quote('%' .$search . '%');
				$query->where('(' . 'a.title LIKE ' . $search . ' )');
			}
		}

		// Do not list the trashed items
		$query->where('a.published > -1');
		$query->where('a.client_id = 0');
		$query->where('a.module IN (\'mod_menu\', \'mod_maximenuck\', \'mod_accordeonmenuck\')');

		// Add the list ordering clause.
		$orderCol = $this->state->get('filter_order');
		$orderDirn = $this->state->get('filter_order_Dir');
		if ($orderCol && $orderDirn) {
			$query->order($orderCol . ' ' . $orderDirn);
		}

		$limitstart = $this->state->get('limitstart');
		$limit = $this->state->get('limit');
		$db->setQuery($query, $limitstart, $limit);
//var_dump($this->state);
//var_dump($search);
//var_dump($limit);
//die;
		$items = $db->loadObjectList();

		// automatically get the total number of items from the query
		$total = $this->getTotal($query);
		$this->state->set('limit_total', (empty($total) ? 0 : (int)$total));

		return $items;
	}

	public function getMenus() {
		// Create a new query object.
		$db = CKFof::getDbo();
		$query = $db->getQuery(true);

		// Select the required fields from the table.
		$query->select('*');
		$query->from('`#__mobilemenuck_menus` AS a');

		// Filter by search in name
//		$search = $this->getState('filter.search');
//		if (!empty($search)) {
//			if (stripos($search, 'id:') === 0) {
//				$query->where('a.id = ' . (int) substr($search, 3));
//			} else {
//				$search = $db->Quote('%' .$search . '%');
//				$query->where('(' . 'a.name LIKE ' . $search . ' )');
//			}
//		}

		// Do not list the trashed items
		$query->where('a.state > -1');
//		$query->where('a.client_id = 0');
//		$query->where('a.module IN (\'mod_menu\', \'mod_maximenuck\', \'mod_accordeonck\')');

		// Add the list ordering clause.
//		$orderCol = $this->state->get('list.ordering');
//		$orderDirn = $this->state->get('list.direction');
//		if ($orderCol && $orderDirn) {
//			$query->order($orderCol . ' ' . $orderDirn);
//		}

		$db->setQuery($query);
		$results = $db->loadObjectList();

		return $results;
	}
}

Anon7 - 2022
AnonSec Team