Changeset 142 for minimanager/ticket.php


Ignore:
Timestamp:
Nov 23, 2007, 11:29:33 PM (17 years ago)
Author:
george
Message:

Minimanager 0.1.5b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/ticket.php

    r19 r142  
    3030//########################################################################################################################
    3131function 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']);
    3636 
    3737 $start = (isset($_GET['start'])) ? $sql->quote_smart($_GET['start']) : 0;
     
    102102//########################################################################################################################
    103103function 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']);
     104global $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']);
    108108
    109109 if(isset($_GET['check'])) $check = $sql->quote_smart($_GET['check']);
     
    130130//########################################################################################################################
    131131function 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']);
    136136 
    137137 if(isset($_GET['id'])) $id = $sql->quote_smart($_GET['id']);
     
    197197//########################################################################################################################
    198198function do_edit_ticket() {
    199  global $mangos_db, $realm_id;
     199 global $characters_db, $realm_id;
    200200
    201201 if((!isset($_POST['new_category'])) ||($_POST['new_category'] === '')|| empty($_POST['new_text']) || empty($_POST['id']) ) {
     
    204204
    205205 $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']);
    207207 
    208208 $new_category = $sql->quote_smart($_POST['new_category']);
Note: See TracChangeset for help on using the changeset viewer.