* as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ if ($auth->userdata["acclevel"] < 80) { die("Access denied!"); } $edlist = new EditList("awardId", DB_PREFIX . "_Awards", "award"); $edlist->columns[] = new EditListColumn("game", "Game", 0, true, "hidden", $gamecode); $edlist->columns[] = new EditListColumn("awardType", "Type", 0, true, "hidden", "O"); $edlist->columns[] = new EditListColumn("code", "Action", 0, true, "select", "" . DB_PREFIX . "_Actions.code/code/game='{$gamecode}' AND for_PlayerActions='1'", 0, false); $edlist->columns[] = new EditListColumn("name", "Award Name", 20, true, "text", "", 128); $edlist->columns[] = new EditListColumn("verb", "Verb Plural", 20, true, "text", "", 64); if ($_POST) { if ($edlist->update()) { message("success", l("Operation successful")); } else { message("warning", $edlist->error()); } } $query = mysql_query("\n\t\tSELECT\n\t\t\tawardId,\n\t\t\tcode,\n\t\t\tname,\n\t\t\tverb\n\t\tFROM\n\t\t\t" . DB_PREFIX . "_Awards\n\t\tWHERE\n\t\t\tgame='{$gamecode}'\n\t\t\tAND awardType='O'\n\t\tORDER BY\n\t\t\tcode ASC\n\t"); $edlist->draw($query); ?>
* as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ if ($auth->userdata["acclevel"] < 80) { die("Access denied!"); } $edlist = new EditList("id", DB_PREFIX . "_Actions", "game"); $edlist->columns[] = new EditListColumn("game", "Game", 0, true, "hidden", $gamecode); $edlist->columns[] = new EditListColumn("code", "Action Code", 15, true, "text", "", 64); $edlist->columns[] = new EditListColumn("for_PlayerActions", "Player Action", 0, false, "checkbox"); $edlist->columns[] = new EditListColumn("for_PlayerPlayerActions", "PlyrPlyr Action", 0, false, "checkbox"); $edlist->columns[] = new EditListColumn("for_TeamActions", "Team Action", 0, false, "checkbox"); $edlist->columns[] = new EditListColumn("for_WorldActions", "World Action", 0, false, "checkbox"); $edlist->columns[] = new EditListColumn("reward_player", "Player Points Reward", 4, false, "text", "0"); $edlist->columns[] = new EditListColumn("reward_team", "Team Points Reward", 4, false, "text", "0"); $edlist->columns[] = new EditListColumn("team", "Team", 0, false, "select", DB_PREFIX . "_Teams.name/code/game='{$gamecode}'", 0, false); $edlist->columns[] = new EditListColumn("description", "Action Description", 23, true, "text", "", 128); if ($_POST) { if ($edlist->update()) { message("success", "Operation successful."); } else { message("warning", $edlist->error());
">reload</a> or restart the HLX:CE daemon. </td> </tr> </table></td> </tr> </table> <br> <?php // get available help texts $db->query("SELECT parameter,description FROM hlstats_Servers_Config_Default"); $helptexts = array(); while ($r = $db->fetch_array()) { $helptexts[strtolower($r['parameter'])] = $r['description']; } $edlist = new EditList('serverConfigId', 'hlstats_Servers_Config', '', false); $footerscript = $edlist->setHelp('helpdiv', 'parameter', $helptexts); $edlist->columns[] = new EditListColumn('serverId', 'Server ID', 0, true, 'hidden', $key); $edlist->columns[] = new EditListColumn('parameter', 'Server parameter name', 30, true, 'readonly', '', 50); $edlist->columns[] = new EditListColumn('value', 'Parameter value', 60, false, 'text', '', 128); if ($_POST) { if ($_POST['setdefaults'] == 'defaults') { setdefaults($key); } else { if ($_POST['sourceId'] != '0') { // copy server settings from another server $db->query("DELETE FROM hlstats_Servers_Config WHERE serverId={$key}"); $db->query("INSERT INTO hlstats_Servers_Config (serverId, parameter, value) SELECT {$key},parameter,value FROM hlstats_Servers_Config WHERE serverId={$sourceId}"); // get server ip and port $db->query("SELECT CONCAT(address, ':', port) AS addr FROM hlstats_Servers WHERE serverId={$key};"); $r = $db->fetch_array();