if ($relationship_sort->validate_request()) { $relationship_sort->run(); } } reason_include_once('classes/admin/admin_page.php'); /** * Reason 4 Beta 8 adds a setting DISABLE_REASON_ADMINISTRATIVE_INTERFACE, which is more specific than DISABLE_REASON_LOGIN, * and gets used if it is defined. */ if (defined('DISABLE_REASON_ADMINISTRATIVE_INTERFACE') ? DISABLE_REASON_ADMINISTRATIVE_INTERFACE : DISABLE_REASON_LOGIN) { header('Location: /errors/maintenance.php'); //?estimate='.$maintenance_estimate ); die; } $f = new AdminPage(); $authenticated = $f->authenticate(); if ($authenticated) { $f->init(); // init returns false if the user cannot be authentication if ($f->should_run_api()) { $f->run_api(); exit; } else { $f->run(); } } else { if (reason_unique_name_exists('unauthorized_reason_user')) { $e = new entity(id_of('unauthorized_reason_user')); echo $e->get_value('content'); } else { echo '<p>We\'re sorry, but we do not have any record of you being an authorized Reason user.</p>';