} $resultQuery = writeForm('ledger'); } else { if ($form_action == 'save_prpty') { $resultQuery = writeForm('properties'); $_SESSION['property'] = $resultQuery; $_SESSION['propertyID'] = $resultQuery; } else { if ($form_action == 'save_usr') { // PHP check for a unique username // secures the Javascript check if (isset($_POST['username'])) { $value = $_POST['username']; $sql_check = querySQL('check_username'); } $id = writeForm('plc_users'); if (mysql_num_rows($sql_check) < 1) { if ($_POST['active'] == 0) { include 'classes/confirmation.class.php'; } } } } } } } } } } } }
$msg = ''; } if (!(isset($_POST['local_login_wanted']) && $_POST['local_login_wanted'])) { $msg .= '<form action="' . $config->getValue('baseaddress') . 'Login/' . '" method="post">' . "\n"; $msg .= '<p class="first_p">' . "\n"; if ($config->getValue('login.modules.forceExternalLoginOnly')) { $msg .= $this->helper->return_self_closing_tag('input type="submit" name="local_login_wanted" value="Update old account from ' . $account_old_website . '"'); } else { $msg .= $this->helper->return_self_closing_tag('input type="submit" name="local_login_wanted" value="Local login"'); } $msg .= '</p>' . "\n"; $msg .= '</form>' . "\n"; } if (isset($_POST['local_login_wanted']) && $_POST['local_login_wanted']) { /* $msg .= '<div class="static_page_box">' . "\n"; */ $msg .= '<p class="first_p">'; if ($config->getValue('login.modules.local.convertUsersToExternalLogin')) { require_once dirname(dirname(__FILE__)) . '/login_module_list.php'; if (isset($module['bzbb']) && $module['bzbb']) { $msg .= '<strong><span class="unread_messages">Before you continue make absolutely sure your account here and the my.bzflag.org/bb/ (forum) account have exactly the same username or you will give someone else access to your account and that access can never be revoked.</span></strong></p>'; } } /* $msg .= '<p>'; */ $msg .= 'Enter login data from <strong>' . $account_old_website . '</strong> here!</p>'; $msg .= "\n"; // load form require_once 'form.php'; $msg .= writeForm($this->helper); $msg .= '<p>Note: Only global login has the ability to allow more than standard permissions at the moment.</p>' . "\n"; } $this->helper->addMsg($msg);