Subversion Repositories cheapmusic

Rev

Rev 68 | Rev 108 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
// Generate page title from file name
$pageFile = basename($_SERVER['PHP_SELF']);
$pageTitle = '';
if (!empty($pageFile) && $pageFile != 'index.php') {
    $replaceVals = array(
        '_' => ' ',
        '-' => ' ',
        '.php' => ''
    );
    $pageTitle = strtr($pageFile, $replaceVals);
    $pageTitle = preg_replace('/(?<!\ )[A-Z]/', ' $0', $pageTitle);
    $pageTitle = ucwords($pageTitle) . ' - ';
}
$metaTitle = trim($pageTitle . SITE_TITLE, ' ');
?>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $metaTitle; ?></title>
<link href="<?php echo PUBLIC_URL; ?>css/style.css" rel="stylesheet" type="text/css" media="all" integrity="sha384-h4JE2pDGcfooA/zPXrC50BMMDDKNtwWkpgtYWYxedvJRbZBFEam9O+sthBUiAJr0" crossorigin="anonymous">
<?php if (!empty($pageFile) && $pageFile != 'index.php' && $pageFile != 'forgotPassword.php' && $pageFile != 'resetPassword.php' && $pageFile != 'registration.php') { ?>
<link href="<?php echo PUBLIC_URL; ?>css/account.css" rel="stylesheet" type="text/css" media="all" integrity="sha384-cmkIQzWOEwd3oG2Pb0PebEOdgced5Dh+CEQD6MHmQKB9o/k0Ie4WFWHhpqVSzgOm" crossorigin="anonymous">
<?php
}
include_once ($_SERVER['DOCUMENT_ROOT'] . "/php/header.php");
 ?>