<td><div align="left"> <input type="password" TABINDEX=1 class="inputbox" id="pass2" name="pass2" value="" /> </div><div id="user.msg" style="color:#CC0000;"></div></td> </tr> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("STEAM", "Type your STEAM id"); ?> Steam ID</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="steam" name="steam" value="" /> </div><div id="user.msg" style="color:#CC0000;"></div></td> </tr> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Email", "Type your email"); ?> Email</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="email" name="email" value="" /> </div><div id="user.msg" style="color:#CC0000;"></div></td> </tr> </table> <div align="center"> <input type="button" onclick="CheckInput();" TABINDEX=2 onclick="" name="button" class="btn ok" id="button" value="Ok" /></div> <input type="hidden" name="postd" value="1"> <input type="hidden" name="username" value="<?php echo $_POST['username']; ?> ">
$srv_group = $GLOBALS['db']->GetRow("SELECT flags, name, immunity FROM " . DB_PREFIX . "_srvgroups WHERE id = {$_GET['id']}"); $web_flags = intval($web_group[0]); $srv_flags = isset($srv_group[0]) ? $srv_group[0] : ''; $name = $userbank->GetProperty("user", $_GET['id']); ?> <div id="admin-page-content"> <div id="add-group"> <h3> Edit Group</h3><br /> <input type="hidden" id="group_id" value=<?php echo $_GET['id']; ?> > <table width="90%" style="border-collapse:collapse;" id="group.details" cellpadding="3"> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Group Name", "Type the name of the new group you want to create."); ?> Group Name </div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="groupname" name="groupname" /> </div><div id="groupname.msg" style="color:#CC0000;"></div></td> </tr> </table> <?php if ($_GET['type'] == "web") { ?> <h3>Web Admin Permissions</h3> <?php echo str_replace("{title}", $name, @file_get_contents(TEMPLATES_PATH . "/groups.web.perm.php")); ?> <br /><?php
function AddServerGroupName() { $objResponse = new xajaxResponse(); global $userbank, $username; if (!$userbank->HasAccess(ADMIN_OWNER | ADMIN_EDIT_GROUPS)) { $objResponse->redirect("index.php?p=login&m=no_access", 0); $log = new CSystemLog("w", "Hacking Attempt", $username . " tried to edit group name, but doesnt have access."); return $objResponse; } $inject = '<td valign="top"><div class="rowdesc">' . HelpIcon("Server Group Name", "Please type the name of the new group you wish to create.") . 'Group Name </div></td>'; $inject .= '<td><div align="left"> <input type="text" style="border: 1px solid #000000; width: 105px; font-size: 14px; background-color: rgb(215, 215, 215);width: 200px;" id="sgroup" name="sgroup" /> </div> <div id="group_name.msg" style="color:#CC0000;width:195px;display:none;"></div></td> '; $objResponse->addAssign("nsgroup", "innerHTML", $inject); $objResponse->addAssign("group.msg", "innerHTML", ""); return $objResponse; }
function AddServerGroupName() { $objResponse = new xajaxResponse(); global $userbank, $username; if (!$userbank->HasAccess(ADMIN_OWNER | ADMIN_EDIT_GROUPS)) { $objResponse->redirect("index.php?p=login&m=no_access", 0); $log = new CSystemLog("w", "Ошибка доступа", $username . " пытался изменить имя группы, не имея на это прав."); return $objResponse; } $inject = '<td valign="top"><div class="rowdesc">' . HelpIcon("Имя группы серверов", "Введите имя новой группы.") . 'Имя группы </div></td>'; $inject .= '<td><div align="left"> <input type="text" style="border: 1px solid #000000; width: 105px; font-size: 14px; background-color: rgb(215, 215, 215);width: 200px;" id="sgroup" name="sgroup" /> </div> <div id="group_name.msg" style="color:#CC0000;width:195px;display:none;"></div></td> '; $objResponse->addAssign("nsgroup", "innerHTML", $inject); $objResponse->addAssign("group.msg", "innerHTML", ""); return $objResponse; }
<tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Prefix", "Type a prefix you want to use for the tables"); ?> Table Prefix</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="prefix" name="prefix" value="<?php echo isset($_POST['prefix']) ? $_POST['prefix'] : 'sb'; ?> " /> </div><div id="database.msg" style="color:#CC0000;"></div></td> </tr> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Steam API Key", "Copy & Paste Your Steam API Key Here"); ?> Steam API Key</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="apikey" name="apikey" value="<?php echo isset($_POST['apikey']) ? $_POST['apikey'] : ''; ?> " /> </div><div id="database.msg" style="color:#CC0000;"></div></td> </tr> </table> <div align="center"> <input type="submit" TABINDEX=2 onclick="" name="button" class="btn ok" id="button" value="Ok" /></div> <input type="hidden" name="postd" value="1">
$srv_group = $GLOBALS['db']->GetRow("SELECT flags, name, immunity FROM " . DB_PREFIX . "_srvgroups WHERE id = {$_GET['id']}"); $web_flags = intval($web_group[0]); $srv_flags = isset($srv_group[0]) ? $srv_group[0] : ''; $name = $userbank->GetProperty("user", $_GET['id']); ?> <div id="admin-page-content"> <div id="add-group"> <h3> Редактировать группу</h3><br /> <input type="hidden" id="group_id" value=<?php echo $_GET['id']; ?> > <table width="90%" style="border-collapse:collapse;" id="group.details" cellpadding="3"> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Имя группы", "введите имя для новой группы."); ?> Имя группы </div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="groupname" name="groupname" /> </div><div id="groupname.msg" style="color:#CC0000;"></div></td> </tr> </table> <?php if ($_GET['type'] == "web") { ?> <h3>ВЕБ разрешения админов</h3> <?php echo str_replace("{title}", $name, @file_get_contents(TEMPLATES_PATH . "/groups.web.perm.php")); ?> <br /><?php
</div><div id="password.msg" style="color:#CC0000;"></div></td> </tr> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Database", "Type name of the database you want to use for SourceBans"); ?> Database</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="amx_database" name="amx_database" value="" /> </div><div id="database.msg" style="color:#CC0000;"></div></td> </tr> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Prefix", "Type a prefix you want to use for the tables"); ?> Table Prefix</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="amx_prefix" name="amx_prefix" value="" /> </div><div id="database.msg" style="color:#CC0000;"></div></td> </tr> </table> <div align="center"> <input type="submit" TABINDEX=2 onclick="" name="button" class="btn ok" id="button" value="Ok" /></div> <input type="hidden" name="postd" value="1"> <input type="hidden" name="username" value="<?php echo $_POST['username']; ?> ">
<tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("Steam API Key", "Copy & Paste Your Steam API Key Here"); ?> Steam API Key</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="apikey" name="apikey" value="<?php echo isset($_POST['apikey']) ? $_POST['apikey'] : ''; ?> " /> </div><div id="database.msg" style="color:#CC0000;"></div></td> </tr> <tr> <td valign="top" width="35%"><div class="rowdesc"><?php echo HelpIcon("SourceBans URL", "Whats the URL of your SourceBans install (eg. http://bans.mysite.com or http://mysite.com/bans)"); ?> SourceBans URL</div></td> <td><div align="left"> <input type="text" TABINDEX=1 class="inputbox" id="sb-wp-url" name="sb-wp-url" value="<?php echo isset($_POST['sb-wp-url']) ? $_POST['sb-wp-url'] : ''; ?> " /> </div><div id="database.msg" style="color:#CC0000;"></div></td> </tr> </table> <div align="center"> <input type="submit" TABINDEX=2 onclick="" name="button" class="btn ok" id="button" value="Ok" /></div> <input type="hidden" name="postd" value="1">