Elxis CMS Forum
Support => General => Topic started by: xmanhattan on September 08, 2025, 15:52:33
-
Hello all,
After updating to Elxis 5.6 Oxylus, I noticed that there were changes in the template five index.php file.
Before the update, I used the following code:
// add meta tags using method using classes
elxisloader::loadFile('templates/five/includes/seometatags.class.php')."\n";
$seotags = new seometatags();
$seotags->dispseometatags();
elxisloader::loadFile('templates/five/includes/five.class.php');
$tpl5 = new templateFive();
$tplts = filemtime(ELXIS_PATH.'/templates/five/css/template'.$eLang->getinfo('RTLSFX').'.css');
Now I see the following code:
$f = ELXIS_PATH.'/templates/five/css/template'.$eLang->getinfo('RTLSFX').'.css';
$integrity = $eDoc->integrityFileHash($f);
$tplts = filemtime($f);
elxisloader::loadFile('templates/five/includes/five.class.php');
$tpl5 = new templateFive();
As I realize that this is an added security measure, as you have added
integrity="sha256-<?php echo $integrity; and $eDoc->getNonce();
into the html head section link.
How can I add in the seometatags.class.php file?
Another question: I use the following js addin,
<script data-account="999999999" src="https://cdn.userway.org/widget.js"></script>
Do I have to modify html script tag for security purposes?
-
Solved. :D