/web/lionel/123carlens.com/www/lib/external/packages/tigron/skeleton-pager/lib/Skeleton/Pager/Web/Pager.php
$template->assign('pager', $this);
return $template->render(\Skeleton\Pager\Config::$header_template, false);
}
/**
* Paginate the results
*
* @access private
*/
public function page($all = false) {
$pager_uri_key = $this->get_pager_uri_key();
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
if (!isset($_GET['q']) AND isset($_SESSION['pager'][$pager_uri_key]) AND Config::$sticky_pager) {
$this->options = array_replace_recursive($this->options, $this->get_options_from_hash($_SESSION['pager'][$pager_uri_key]));
} elseif (isset($_GET['q'])) {
$query_options = $this->get_options_from_hash($_GET['q']);
// If multiple pagers exist on the same page, only load the options of the one with the same classname
if ($query_options['classname'] == $this->classname) {
unset($this->options['conditions']);
$this->options = array_replace_recursive($this->options, $this->get_options_from_hash($_GET['q']));
}
}
}
if (isset($_GET['p'])) {
$this->set_page($_GET['p']);
}
parent::page($all);
$this->generate_links();
$hash = $this->create_options_hash($this->options['conditions'], $this->options['page'], $this->options['sort'], $this->options['direction'], $this->options['joins']);
if (Config::$sticky_pager) {
$_SESSION['pager'][$pager_uri_key] = $hash;
}
}
/**
Arguments
"Undefined index: classname"
/web/lionel/123carlens.com/www/lib/external/packages/tigron/skeleton-pager/lib/Skeleton/Pager/Web/Pager.php
$template->assign('pager', $this);
return $template->render(\Skeleton\Pager\Config::$header_template, false);
}
/**
* Paginate the results
*
* @access private
*/
public function page($all = false) {
$pager_uri_key = $this->get_pager_uri_key();
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
if (!isset($_GET['q']) AND isset($_SESSION['pager'][$pager_uri_key]) AND Config::$sticky_pager) {
$this->options = array_replace_recursive($this->options, $this->get_options_from_hash($_SESSION['pager'][$pager_uri_key]));
} elseif (isset($_GET['q'])) {
$query_options = $this->get_options_from_hash($_GET['q']);
// If multiple pagers exist on the same page, only load the options of the one with the same classname
if ($query_options['classname'] == $this->classname) {
unset($this->options['conditions']);
$this->options = array_replace_recursive($this->options, $this->get_options_from_hash($_GET['q']));
}
}
}
if (isset($_GET['p'])) {
$this->set_page($_GET['p']);
}
parent::page($all);
$this->generate_links();
$hash = $this->create_options_hash($this->options['conditions'], $this->options['page'], $this->options['sort'], $this->options['direction'], $this->options['joins']);
if (Config::$sticky_pager) {
$_SESSION['pager'][$pager_uri_key] = $hash;
}
}
/**
Arguments
8
"Undefined index: classname"
"/web/lionel/123carlens.com/www/lib/external/packages/tigron/skeleton-pager/lib/Skeleton/Pager/Web/Pager.php"
81
array:3 [
"all" => false
"pager_uri_key" => "YXJ0aWNsZS8vc2hvcD9ubA=="
"query_options" => array:1 [
"conditions" => []
]
]
/web/lionel/123carlens.com/www/app/front/module/shop.php
* Display method
*
* @access public
*/
public function display() {
$template = Template::get();
$categories = Category::get_all();
if (isset($_GET['category_id'])) {
$current_category = Category::get_by_id($_GET['category_id']);
} else {
$categories = Category::get_root();
$current_category = array_shift($categories);
}
$pager = new Pager('article');
if (isset($_GET['category_id']) && empty($_GET['category_id']) == false) {
$pager->add_condition('category_id', '=', $_GET['category_id']);
}
$pager->page();
$template->assign('pager', $pager);
$template->assign('current_category', $current_category);
}
}
/web/lionel/123carlens.com/www/lib/external/packages/tigron/skeleton-core/lib/Skeleton/Core/Web/Module.php
$application = Application::Get();
$path = '/' . str_replace($application->module_path, '', $reflection->getFileName());
$path = str_replace('.php', '', $path);
return $path;
}
/**
* Handle the request
*
* @access public
*/
public function handle_request() {
$template = \Skeleton\Core\Web\Template::Get();
// Find out which method to call, fall back to calling displa()
if (isset($_REQUEST['action']) AND method_exists($this, 'display_' . $_REQUEST['action'])) {
$template->assign('action', $_REQUEST['action']);
call_user_func([$this, 'display_'.$_REQUEST['action']]);
} else {
$this->display();
}
// If the module has defined a template, render it
if ($this->template !== null and $this->template !== false) {
$template->display($this->template);
}
}
/**
* Is login required?
*
* @access public
*/
public function is_login_required() {
return $this->login_required;
}
/**
* Get the classname of the current module
*
/web/lionel/123carlens.com/www/lib/external/packages/tigron/skeleton-core/lib/Skeleton/Core/Web/Module.php
$allowed = $this->secure();
}
// If the request is not allowed, make sure it gets handled properly
if ($allowed === false) {
$module_403 = strtolower(\Skeleton\Core\Config::$module_403);
// Always check if it can not be handled by an event first
if ($application->event_exists('module', 'access_denied')) {
$application->call_event_if_exists('module', 'access_denied', [ $this ]);
} elseif ($module_403 !== null and file_exists($application->module_path . '/' . $module_403 . '.php')) {
require $application->module_path . '/' . $module_403 . '.php';
$classname = 'Web_Module_' . $module_403;
$module = new $classname;
$module->accept_request();
} else {
throw new \Exception('Access denied');
}
} else {
$this->handle_request();
}
// Call the teardown event if it exists
$application->call_event_if_exists('application', 'teardown', [ $this ]);
}
/**
* get module_path
*
* @access public
* @return string $path
*/
public function get_module_path() {
$reflection = new \ReflectionClass($this);
$application = Application::Get();
$path = '/' . str_replace($application->module_path, '', $reflection->getFileName());
$path = str_replace('.php', '', $path);
return $path;
}
/web/lionel/123carlens.com/www/lib/external/packages/tigron/skeleton-core/lib/Skeleton/Core/Web/Handler.php
}
}
$application->language = $_SESSION['language'];
}
/**
* Validate CSRF
*/
$csrf = Security\Csrf::get();
if ($session_properties['resumed'] === true && !$csrf->validate()) {
if ($application->event_exists('security', 'csrf_validation_failed')) {
$application->call_event_if_exists('security', 'csrf_validation_failed');
} else {
HTTP\Status::code_403('CSRF validation failed');
}
}
if ($module !== null) {
$module->accept_request();
}
}
}
/web/lionel/123carlens.com/www/webroot/handler.php
<?php
/**
* Initialize the application
*
* @author Christophe Gosiau <christophe@tigron.be>
* @author Gerry Demaret <gerry@tigron.be>
* @author David Vandemaele <david@tigron.be>
*/
require_once dirname(__FILE__) . '/../config/global.php';
\Skeleton\Core\Web\Handler::Run();