maison_alexandra/www/system-brs-core/app/pubComingSoon/pubComingSoon.php

109 lines
2.6 KiB
PHP

<?php
namespace BRSystems\Core\App\pubComingSoon;
use BRSystems\Core\Library\cUrl\cUrl;
use BRSystems\Core\Library\cView\cView;
/**
* Coming soon class
*
* @category APP UPDATE
* @author Mareks Keišs <keiss.mareks@gmail.com>
* @since Version 1.0
*/
class pubComingSoon
{
public function __construct(){
//-------------------------------------------------------------
// Error reporting
//-------------------------------------------------------------
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1'){
ini_set('display_errors', 'On');
error_reporting(E_ALL);
define('DISPLAY_ERRORS', true);
}else{
// ini_set('display_errors','On');
ini_set('error_reporting', !E_NOTICE & !E_WARNING);
define('DISPLAY_ERRORS', true);
}
//-------------------------------------------------------------
// Include functions
//-------------------------------------------------------------
require_once __MDIR__ . 'system-brs-core/config/constants.php';
require_once __FUNCT__ . 'com.funct.php';
// Set handler functions
set_error_handler('errorHandler');
//-------------------------------------------------------------
// Load cfg data from ini file if needed
//-------------------------------------------------------------
}
public function setupAndShow(){
$oCore = new xCore();
$oCore->oUrl = new cUrl();
// WTF - ja so iesledz tad paceko un atrubij DB konekciju!!!!
//$url->parseUrl($cms = false, ADMINISTRATION_FOLDER);
$view = new cView($oCore);
$DIR = __DIR__ ? __DIR__ : dirname(__FILE__);
$view->setTemplateDir($DIR . "/tmpl/");
//$view->setCss('/css/base.css');
$view->setCss('/css/comingSoon.css');
$view->setJs('/js/jquery-3.3.1.min.js');
$view->setJs('/js/comingSoon.js');
$view->display('base.tpl');
}
}
/**
* Dummy class for skipping global functions
*
* @category APP pubChoosePopup
* @author Mareks Keišs <keiss.mareks@gmail.com>
* @since Version 1.0
*/
class xCore {
public $oUrl = false;
public $is_cms = false;
public $oUser = false;
public $cTimer = false;
public $uri_data = array(
'lang_code' => '',
'p_title' => '',
'p_fulltitle' => 'System Update...',
);
public function __construct(){
}
public function gM($key){
$return = "";
switch($key){
case "":
break;
}
return $return;
}
}
$oUpd = new pubComingSoon();
$oUpd->setupAndShow();