parent
d5a4beae84
commit
c3fc84e0bc
|
@ -57,8 +57,9 @@ class Template{
|
|||
<head>
|
||||
<?php
|
||||
if(!$admin){
|
||||
$headfile = fopen("head.txt", "r") or die("Unable to open head.txt!");
|
||||
$head_additionalcode = fread($headfile,filesize("head.txt"));
|
||||
$headpath = $_SERVER['DOCUMENT_ROOT'] . "/head.txt";
|
||||
$headfile = fopen("$headpath", "r") or die("Unable to open head.txt!");
|
||||
$head_additionalcode = fread($headfile,filesize($headpath));
|
||||
fclose($headfile);
|
||||
echo $head_additionalcode;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue