Changeset 178 for minimanager/scripts/del_lib.php
- Timestamp:
- Dec 23, 2007, 2:55:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/del_lib.php
r142 r178 8 8 * License: GNU General Public License v2(GPL) 9 9 */ 10 10 11 11 require_once("backup_tab.php"); 12 12 … … 24 24 $owner_gmlvl = $sql_01->result($query1, 0, 'gmlevel'); 25 25 unset($query1); 26 26 27 27 if (($user_lvl > $owner_gmlvl)||($owner_acc_id == $user_id)) { 28 28 $sql_01->connect($characters_db[$realm]['addr'], $characters_db[$realm]['user'], $characters_db[$realm]['pass'], $characters_db[$realm]['name']); … … 92 92 function del_guild($guid,$realm){ 93 93 global $characters_db, $realm_db; 94 94 95 95 require_once("scripts/defines.php"); 96 96 97 97 $sql_01 = new SQL; 98 98 $sql_01->connect($characters_db[$realm]['addr'], $characters_db[$realm]['user'], $characters_db[$realm]['pass'], $characters_db[$realm]['name']); 99 99 $query = $sql_01->query("DELETE FROM guild WHERE guildid = '$guid'"); 100 100 $query = $sql_01->query("DELETE FROM guild_rank WHERE guildid = '$guid'"); 101 101 102 102 //clean data inside character.data field 103 103 $temp = $sql_01->query("SELECT guid FROM guild_member WHERE guildid = '$guid'");
Note:
See TracChangeset
for help on using the changeset viewer.