Example #1
0
echo $sitename;
?>
: Backend: <?php 
echo $pagetitle;
?>
</title>

<link rel="Shortcut Icon" href="<?php 
echo $globalhome;
?>
includes/images/favicon.ico" type="image/x-icon" />
   
<style type="text/css" media="screen">
@import url( <?php 
echo $globalhome, $backend;
?>
/includes/style.css );
</style>
</head>
<body>

<?php 
get_sassenach_function(backend_dashboard);
?>

<div id="page">

<div id="content">

<div id="wrap">
Example #2
0
" />
<link rel="alternate" type="application/rss+xml" title="<?php 
echo $sitename;
?>
" href="<?php 
echo $globalhome, $globalrss;
?>
" />
</head>



<body>

<?php 
get_sassenach_function('dashboard');
?>

<div id="page">
<div id="header">
<h1><a href="<?php 
echo $globalhome;
?>
"><?php 
echo $sitename;
?>
</a></h1>
</div>
<div id="links">

<ul>
Example #3
0
    // Quit the script.
}
function get_sassenach_function($function)
{
    $sassenach_function = 'functions/' . $function . '.php';
    include $sassenach_function;
}
include '../includes/variables.php';
include '../includes/connection.php';
$pagetitle = $sitename;
if (isset($_GET['page'])) {
    $page = rtrim($_GET['page'], "/");
    $parts = explode("/", $page);
    if (count($parts) == 1) {
        $pagetitle .= ": Backend";
        get_sassenach_function('backend_header');
        echo "<h1>" . $sitename . ": Dashboard</h1>\n        <p>Welcome back, " . $_SESSION['username'] . ".</p>\n";
    } elseif (count($parts) == 2) {
        $pagetitle .= ": Backend: " . ucwords($parts[1]);
        get_sassenach_function('backend_header');
        echo "<h1>" . $sitename . ": " . ucwords($parts[1]) . "</h1>\n";
        include $parts[1] . '/index.php';
    } elseif (count($parts) == 3) {
        $pagetitle .= ": Backend: " . ucwords($parts[1]) . ": " . ucwords($parts[2]);
        get_sassenach_function('backend_header');
        echo "<h1>" . $sitename . ": " . ucwords($parts[1]) . ": " . ucwords($parts[2]) . "</h1>\n";
        include $parts[1] . '/' . $parts[2] . '.php';
    }
}
get_sassenach_function('backend_footer');