process($_COOKIE['mostlyce']['startup_key'])); //The MOStlyCE rebuild key should match this $usertype = strtolower(str_replace(' ', '', trim($iFilter->process($_COOKIE['mostlyce']['usertype'])))); } else { return false; } $env = md5($_SERVER['HTTP_USER_AGENT']); $rebuildKey=md5($secret.$env.$_SERVER['REMOTE_ADDR']); if ($rebuildKey!==$startupKey) { return false; } //Valid user types $vUsers=array('author', 'editor', 'publisher', 'manager', 'administrator', 'superadministrator'); if (!in_array($usertype, $vUsers)) { return false; } return true; } ?>