/** * Verifies if AppID and Secret are set * * @return boolean */ protected function checkTokens() { if (!\defined('FACEBOOK_APP_ID') || !\defined('FACEBOOK_APP_SECRET')) { $configPage = new ConfigAction(); $configPage->run(); return false; } return true; }
public function config_edit() { if ($this->accessAdminPage(21)) { require dirname(__FILE__) . '/resources/config.action.php'; $config = new ConfigAction($this->parent); return $config->save(); } else { return new ActionResult($this, '/admin/core/config_view', 0, 'You are not allowed to do that', B_T_FAIL); } }