| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/www/libraries/nexevocontact/loader/ |
Upload File : |
<?php defined("_JEXEC") or die('Restricted access');
/**
@Nexevo Responsive Conact Form
@author Nexevo Technologies <info@nexevo.in>
@link http://www.Nexevo.in
@copyright (C) 2010 - 2011 Nexevo-Extension
@license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
abstract class Loader
{
public $headers = array();
abstract protected function type();
abstract protected function content_header();
abstract protected function content_footer();
public function Show()
{
$this->headers();
$this->content_header();
$this->load();
$this->content_footer();
JFactory::getApplication()->close();
}
private function headers()
{
foreach ($this->headers as $header)
{
header($header);
}
}
protected function load()
{
$input = JFactory::getApplication()->input;
$owner = $input->get("owner", "component");
$id = $input->get("id", "0");
$uid = "_" . $owner[0] . $id;
$language = JFactory::getLanguage();
$direction = intval($language->get('rtl', 0));
$left = $direction ? "right" : "left";
$right = $direction ? "left" : "right";
$juri_root = JURI::root(true);
$filename = $input->get("filename", "");
preg_match('/^[A-Z0-9-_]+$/i', $filename) or $filename = "invalid";
$filename = $this->IncludePath . "/" . $this->type() . "/" . $filename . "." . $this->type();
if (is_file($filename) && is_readable($filename))
{
require_once $filename;
}
else
{
echo JText::_("JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT_FOUND");
}
}
}
abstract class CachableLoader extends Loader
{
public function __construct()
{
$this->headers[] = "Cache-Control: max-age=604800, public";
$this->headers[] = "Connection: keep-alive, Keep-Alive";
$this->headers[] = "Date: " . gmdate("D, d M Y H:i:s") . " GMT";
$this->headers[] = "Expires: " . gmdate("D, d M Y H:i:s", time() + 604800) . " GMT";
}
}
abstract class UncachableLoader extends Loader
{
public function __construct()
{
$this->headers[] = "Expires: " . gmdate("D, d M Y H:i:s") . " GMT";
$this->headers[] = "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT";
$this->headers[] = "Cache-Control: no-cache, private, must-revalidate, max-age=0";
$this->headers[] = "Pragma: no-cache";
}
}