| isCacheEnabled(); // Attempt to display cached page, if cache is enabled $zkCtlr->displayFromCache($CacheEnabled); // Authorize the user for this page $tokenString = array(); $tokenString[] = $ClientID; $tokenString[] = $ClientID . '_issue_' . $IssueID; $tokenString[] = $ClientID . '_story_' . $StoryID; $tokenString = implode(',', $tokenString); $zkCtlr->authorize($tokenString); // Setup the Advertising for this page $zkCtlr->Adserver->setPubCode(zkBase::SITE_CLIENT_ID); if($zkCtlr->Authenticated) { $zkCtlr->Adserver->setPoolName('known_general'); } else { $zkCtlr->Adserver->setPoolName('unknown_general'); } // Setup the Title of this page $zkCtlr->setTitle($title); // Load the data for this page $zkCtlr->loadData(); // Display this page if($CacheEnabled) { ob_start(); $zkCtlr->display(); $zkCtlr->savePageToCache(ob_get_contents()); ob_flush(); } else { $zkCtlr->display(); }