public function __construct($exceptions = false) {
			parent::__construct($exceptions);
			$sysvar = new JTSysvar();
			$this->service_email = $sysvar->get(self::SERVICE_EMAIL);
			$this->service_email_name = $sysvar->get(self::SERVICE_EMAIL_NAME);
			$this->CharSet = "UTF-8";
			$this->IsHTML(true);
		}
Beispiel #2
0
		public function _update() {
			$sysvar = new JTSysvar($_SESSION['login_user_id']);
			$sysvar->set( 'web.header.title', $_POST['web_header_title'] );
			$sysvar->set( 'web.header.keyword', $_POST['web_header_keyword'] );
			$sysvar->set( 'web.header.description', $_POST['web_header_description'] );
			$this->addAlert(new JAlert('更新完成','告知訊息',"./?action=edit"));
			$this->action('edit');
		}
Beispiel #3
0
<?php

if (!isset($sysvar)) {
    $sysvar = new JTSysvar();
}
?>
<!-- <meta name="title" content="" /> -->
<meta name="keywords" content="<?php 
echo htmlspecialchars($sysvar->get('web.header.keyword'));
?>
"><!-- 關鍵字 -->
<meta name="description" content="<?php 
echo htmlspecialchars($sysvar->get('web.header.description'));
?>
" /><!-- 網站描述 -->
<meta name="Copyright" content="" /><!-- 版權宣告 -->
<meta name="robots" content="index,follow">

<meta name="viewport" content="width=device-width, user-scalable=yes">
<!-- Don't forget to set your site up: http://google.com/webmasters -->
<meta name="google-site-verification" content="" />

<link rel="shortcut icon" href="favicon.ico" />

<link rel="stylesheet" href="<?php 
path_au('css');
?>
reset.css" />
<link rel="stylesheet" href="plugin/bootstrap-material-design/css/ripples.css">
<link rel="stylesheet" href="plugin/bootstrap-material-design/css/material.css">
<link rel="stylesheet" href="<?php 
    }
}
function notPhone($title)
{
    global $detect;
    global $deviceType;
    if ($deviceType != 'phone') {
        echo $title;
    }
}
define('IMG_PATH', 'dist/images/');
define('TEMP_IMG_PATH', 'dist/images/temp/');
define('INC_PATH', 'dist/inc/');
define('CSS_PATH', 'dist/css/');
define('JS_PATH', 'dist/js/');
$sysvar = new JTSysvar();
$webTitle = htmlspecialchars($sysvar->get('web.header.title'));
//	$webTitle = '康和期貨經理事業';
function path_au($what)
{
    switch ($what) {
        case 'img':
            echo IMG_PATH;
            break;
        case 'temp':
            echo TEMP_IMG_PATH;
            break;
        case 'css':
            echo CSS_PATH;
            break;
        case 'js':