This commit is contained in:
Freya Murphy 2024-06-29 21:35:49 -04:00
parent 9dd13e2022
commit aa314ae901
Signed by: freya
GPG key ID: 744AB800E383AE52
10 changed files with 12 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

After

Width:  |  Height:  |  Size: 616 KiB

View file

@ -23,7 +23,7 @@ class Main_model extends Model {
private function asset_stamp($path): int {
$root = $GLOBALS['webroot'];
$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 {
$host = $_SERVER['HTTP_HOST'];
$base = lang('base_path');
$url = "http://{$host}{$base}{$path}";
$time = @filemtime($GLOBALS['rootroot'] . '/' . $path);
$url = "http://{$host}{$base}{$path}?timestamp={$time}";
return $url;
}
@ -57,7 +58,8 @@ class Main_model extends Model {
return $this->get_url_full($path);
}
$base = lang('base_path');
$url = "{$base}{$path}";
$time = @filemtime($GLOBALS['rootroot'] . '/' . $path);
$url = "{$base}{$path}?timestamp={$time}";
return $url;
}

View file

@ -14,12 +14,12 @@
<meta property="og:site_name" content="<?=lang('domain')?>">
<meta property="og:image" content="<?=$this->main->get_url_full('public/icons/logo640.png')?>">
<title><?=$title?></title>
<link rel="icon" type="image/png" sizes="16x16" href="/public/icons/logo16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/public/icons/logo32.png">
<link rel="icon" type="image/png" sizes="64x64" href="/public/icons/logo64.png">
<link rel="icon" type="image/png" sizes="320x320" href="/public/icons/logo320.png">
<link rel="icon" type="image/png" sizes="512x512" href="/public/icons/logo512.png">
<link rel="icon" type="image/png" sizes="640x640" href="/public/icons/logo640.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="<?=$this->main->get_url("public/icons/logo32.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="<?=$this->main->get_url("public/icons/logo320.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="<?=$this->main->get_url("public/icons/logo640.png")?>">
<link rel="manifest" href="/manifest.json">
<?php if($this->main->get_ie_version() <= 7)
echo $this->main->link_css('css/legacy.css');

View file

@ -5,6 +5,7 @@ ini_set('html_errors', '1');
$webroot = dirname(__FILE__);
$assetroot = realpath(dirname(__FILE__) . '/../assets');
$publicroot = realpath(dirname(__FILE__) . '/../public');
$rootroot = realpath(dirname(__FILE__) . '/..');
$main_model = NULL;
// loadd all third party