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