fix
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 191 KiB |
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 421 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 616 KiB |
|
@ -23,7 +23,7 @@ class Main_model extends Model {
|
||||||
private function asset_stamp($path): int {
|
private function asset_stamp($path): int {
|
||||||
$root = $GLOBALS['webroot'];
|
$root = $GLOBALS['webroot'];
|
||||||
$path = $root . '/../public/' . $path;
|
$path = $root . '/../public/' . $path;
|
||||||
return filemtime($path);
|
return @filemtime($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -45,7 +45,8 @@ class Main_model extends Model {
|
||||||
public function get_url_full($path): string {
|
public function get_url_full($path): string {
|
||||||
$host = $_SERVER['HTTP_HOST'];
|
$host = $_SERVER['HTTP_HOST'];
|
||||||
$base = lang('base_path');
|
$base = lang('base_path');
|
||||||
$url = "http://{$host}{$base}{$path}";
|
$time = @filemtime($GLOBALS['rootroot'] . '/' . $path);
|
||||||
|
$url = "http://{$host}{$base}{$path}?timestamp={$time}";
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +58,8 @@ class Main_model extends Model {
|
||||||
return $this->get_url_full($path);
|
return $this->get_url_full($path);
|
||||||
}
|
}
|
||||||
$base = lang('base_path');
|
$base = lang('base_path');
|
||||||
$url = "{$base}{$path}";
|
$time = @filemtime($GLOBALS['rootroot'] . '/' . $path);
|
||||||
|
$url = "{$base}{$path}?timestamp={$time}";
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
<meta property="og:site_name" content="<?=lang('domain')?>">
|
<meta property="og:site_name" content="<?=lang('domain')?>">
|
||||||
<meta property="og:image" content="<?=$this->main->get_url_full('public/icons/logo640.png')?>">
|
<meta property="og:image" content="<?=$this->main->get_url_full('public/icons/logo640.png')?>">
|
||||||
<title><?=$title?></title>
|
<title><?=$title?></title>
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/public/icons/logo16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="<?=$this->main->get_url("public/icons/logo16.png")?>">
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/public/icons/logo32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="<?=$this->main->get_url("public/icons/logo32.png")?>">
|
||||||
<link rel="icon" type="image/png" sizes="64x64" href="/public/icons/logo64.png">
|
<link rel="icon" type="image/png" sizes="64x64" href="<?=$this->main->get_url("public/icons/logo64.png")?>">
|
||||||
<link rel="icon" type="image/png" sizes="320x320" href="/public/icons/logo320.png">
|
<link rel="icon" type="image/png" sizes="320x320" href="<?=$this->main->get_url("public/icons/logo320.png")?>">
|
||||||
<link rel="icon" type="image/png" sizes="512x512" href="/public/icons/logo512.png">
|
<link rel="icon" type="image/png" sizes="512x512" href="<?=$this->main->get_url("public/icons/logo512.png")?>">
|
||||||
<link rel="icon" type="image/png" sizes="640x640" href="/public/icons/logo640.png">
|
<link rel="icon" type="image/png" sizes="640x640" href="<?=$this->main->get_url("public/icons/logo640.png")?>">
|
||||||
<link rel="manifest" href="/manifest.json">
|
<link rel="manifest" href="/manifest.json">
|
||||||
<?php if($this->main->get_ie_version() <= 7)
|
<?php if($this->main->get_ie_version() <= 7)
|
||||||
echo $this->main->link_css('css/legacy.css');
|
echo $this->main->link_css('css/legacy.css');
|
||||||
|
|
|
@ -5,6 +5,7 @@ ini_set('html_errors', '1');
|
||||||
$webroot = dirname(__FILE__);
|
$webroot = dirname(__FILE__);
|
||||||
$assetroot = realpath(dirname(__FILE__) . '/../assets');
|
$assetroot = realpath(dirname(__FILE__) . '/../assets');
|
||||||
$publicroot = realpath(dirname(__FILE__) . '/../public');
|
$publicroot = realpath(dirname(__FILE__) . '/../public');
|
||||||
|
$rootroot = realpath(dirname(__FILE__) . '/..');
|
||||||
$main_model = NULL;
|
$main_model = NULL;
|
||||||
|
|
||||||
// loadd all third party
|
// loadd all third party
|
||||||
|
|