session_start();
include('src/usr_conn.inc.php');
require('src/config.php');
require('src/functions.php');
if (! $_SESSION['pgNr'] ) {
$pg = 1;
} else {
$pg = $_SESSION['pgNr'];
}
if (isset($_GET['a'])) {
$a = $_GET['a'];
($a == 'next')? $pg++ : $pg--;
}
?>
Pottenbakkerij Aarde(g)werk
$p = $_GET['p'];
$cl[$p] = "amb";
include($tmpl['menu']);
?>
|
|
if ( $p != "admLogin" ) {
//echo "p: $p ";
include($tmpl['cnt']['head']);
$file = $tmpl['cnt'][$p]; // $p will be the page (template)
//echo "file: $file ";
if (file_exists($file)) {
$show = file_get_contents($file);
$_SESSION['contPage'] = $p;
$_SESSION['ci'] = 0; // at this moment we don't have a ci (content img) anymore
echo nl2br($show);
} else {
$t = "Probleem met openen pagina! ";
echo $t;
}
} else
if ( $p == "admLogin" ) {
if ($_SESSION['admLogin'] == 1) {
// logged in earlier allready
echo "";
} else {
include($tmpl['cnt']['head']);
include($tmpl['admLogin']);
}
}
?>
|
|
$thmbList = buildThmbList($pg);
echo $thmbList;
?>
|
|
if ($debug) {
echo "".print_r_str($_SESSION)." |
";
}
?>