installCheck(); //Find 1 article to use as a sample for now to show the db is working... $this->set('sample', $this->Content->find("id=15")); } function administrator_index() { } private function installCheck() { //Check for a valid install and redirect if one does not exist if (@!file_exists(CONFIGS.'database.php') || filesize(CONFIGS.'database.php')===0 || @!file_exists(CONFIGS.'configuration.xml') || filesize(CONFIGS.'configuration.xml')===0) { $this->redirect('/installation/index'); exit; } else if (@file_exists(VENDORS.'mambo')) { $this->redirect('/main/offline'); exit; } } function offline() { $this->set('install_dir', VENDORS.'mambo'); } } ?>