$_COOKIE['pp_auth'])); $dossiers = $POD->getContents(array(type=>'dossier','stub'=>$_GET['d'])); if ($dossiers->count()) { $dossier = $dossiers->getNext(); $POD->currentDocumentId = $dossier->id; if ($_GET['mode']!='raw') { $POD->header($dossier->headline); $dossier->output('dossier.view'); $POD->footer(); } else { $dossier->output('dossier.raw'); } } else { header("HTTP/1.0 404 Not Found"); header("Location: /404"); }