$f = get_http_var('f'); if (!preg_match('#^\\d\\d\\d\\d-\\d\\d-\\d\\d$#', $f)) { $f = ''; } $p = (int) get_http_var('p'); $d = get_http_var('d'); if (!preg_match('#^\\d\\d\\d\\d-\\d\\d-\\d\\d$#', $d)) { $d = ''; } $link = '<p align="center"><a href="./"><strong>List all MPs and Register editions</strong></a></p>'; if ($f) { register_history($f); } elseif ($p) { person_history($p); } elseif ($d) { show_register($d); } else { $this_page = 'regmem'; $PAGE->stripe_start(); front_page(); } $PAGE->stripe_end(); $PAGE->page_end(); function person_history($p) { global $files, $dir, $DATA, $PAGE, $this_page, $link, $cats; $this_page = 'regmem_mp'; $name = ''; $nil = array(); $earliest = $files[0]; foreach ($files as $_) {
$mainContentView = 'view/main_page.html'; if (isset($_GET['mode'])) { $mode = $_GET['mode']; switch ($mode) { case 'main_page': show_main_page(); break; case 'gallery': show_gallery(); break; case 'img_upload': show_img_upload(); break; case 'login': show_login(); break; case 'register': show_register(); break; case 'image': show_image(); break; default: show_error('404'); } } else { show_main_page(); } //include 'view/head.html'; //include $mainContentView; //include 'view/foot.html';