Changeset 142 for minimanager/ticket.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/ticket.php
r19 r142 30 30 //######################################################################################################################## 31 31 function browse_tickets() { 32 global $lang_global, $lang_ticket, $output, $ mangos_db, $realm_id, $itemperpage, $ticket_type;33 34 $sql = new SQL; 35 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);32 global $lang_global, $lang_ticket, $output, $characters_db, $realm_id, $itemperpage, $ticket_type; 33 34 $sql = new SQL; 35 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 36 36 37 37 $start = (isset($_GET['start'])) ? $sql->quote_smart($_GET['start']) : 0; … … 102 102 //######################################################################################################################## 103 103 function delete_tickets() { 104 global $lang_global, $ mangos_db, $realm_id;105 106 $sql = new SQL; 107 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);104 global $lang_global, $characters_db, $realm_id; 105 106 $sql = new SQL; 107 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 108 108 109 109 if(isset($_GET['check'])) $check = $sql->quote_smart($_GET['check']); … … 130 130 //######################################################################################################################## 131 131 function edit_ticket() { 132 global $lang_global, $lang_ticket, $output, $ mangos_db, $realm_id, $ticket_type;133 134 $sql = new SQL; 135 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);132 global $lang_global, $lang_ticket, $output, $characters_db, $realm_id, $ticket_type; 133 134 $sql = new SQL; 135 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 136 136 137 137 if(isset($_GET['id'])) $id = $sql->quote_smart($_GET['id']); … … 197 197 //######################################################################################################################## 198 198 function do_edit_ticket() { 199 global $ mangos_db, $realm_id;199 global $characters_db, $realm_id; 200 200 201 201 if((!isset($_POST['new_category'])) ||($_POST['new_category'] === '')|| empty($_POST['new_text']) || empty($_POST['id']) ) { … … 204 204 205 205 $sql = new SQL; 206 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);206 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 207 207 208 208 $new_category = $sql->quote_smart($_POST['new_category']);
Note:
See TracChangeset
for help on using the changeset viewer.