]>
git.p6c8.net - jirafeau_mojo42.git/blob - lib/template/header.php
2b4e5258a614ceff89745a5e7f98ea1dfa7ea233
2 header('Vary: Accept');
3 header('Content-Type: text/html; charset=utf-8');
4 header('x-ua-compatible: ie=edge');
6 $protocol = (bool)is_ssl() ?
'https' : 'http';
8 if ( !empty($cfg['web_root']) ) {
9 $cfg['web_root'] = preg_replace('#https?://#', $protocol . '://', $cfg['web_root'], 1);
12 /* Avoids irritating errors with the installer (no conf file is present then). */
13 if (!isset ($cfg['web_root']))
14 $web_root = $protocol+
'://' . $_SERVER['HTTP_HOST'] . '/';
16 $web_root = $cfg['web_root'];
18 if (!isset ($cfg['style']))
21 $style = $cfg['style'];
26 <meta charset
="utf-8">
27 <title
><?php
echo (true === empty($cfg['title']))?
t('Jirafeau, your web file repository') : $cfg['title']; ?
></title
>
28 <link href
="<?php echo $web_root . 'media/' . $style . '/style.css.php'; ?>" rel
="stylesheet" type
="text/css" />
31 <script type
="text/javascript" src
="lib/functions.js.php"></script
>
34 <a href
="<?php echo $web_root; ?>">
35 <?php
echo (true === empty($cfg['title']))?
t('Jirafeau, your web file repository') : $cfg['title']; ?
>
patrick-canterino.de