Changeset 142 for minimanager/motd.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/motd.php

    r23 r142  
    1010 
    1111require_once("header.php");
    12 require_once("scripts/bbcode_lib.php");
     12require_once("scripts\bbcode_lib.php");
    1313valid_login(1);
    1414
     
    4747//#####################################################################################################
    4848function do_add_motd(){
    49  global  $lang_global, $mangos_db, $realm_id, $user_name;
     49 global  $lang_global, $characters_db, $realm_id, $user_name;
    5050 
    5151if (empty($_POST['msg'])) redirect("motd.php?error=1");
    5252
    5353 $sql = new SQL;
    54  $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);
     54 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    5555 
    5656 $msg = $sql->quote_smart($_POST['msg']);
     
    7373//#####################################################################################################
    7474function edit_motd(){
    75  global $lang_motd,$lang_global, $output, $mangos_db, $realm_id;
    76  
    77  $sql = new SQL;
    78  $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);
     75 global $lang_motd,$lang_global, $output, $characters_db, $realm_id;
     76 
     77 $sql = new SQL;
     78 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    7979 
    8080 if(isset($_GET['id'])) $id = $sql->quote_smart($_GET['id']);
     
    116116//#####################################################################################################
    117117function do_edit_motd(){
    118  global  $lang_global, $mangos_db, $realm_id, $user_name;
     118 global  $lang_global, $characters_db, $realm_id, $user_name;
    119119 
    120120 if (empty($_POST['msg']) || empty($_POST['id'])) redirect("motd.php?error=1");
    121121
    122122 $sql = new SQL;
    123  $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);
     123 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    124124 
    125125 $msg = $sql->quote_smart($_POST['msg']);
     
    147147//#####################################################################################################
    148148function delete_motd(){
    149  global  $lang_global, $mangos_db, $realm_id;
     149 global  $lang_global, $characters_db, $realm_id;
    150150
    151151 if (empty($_GET['id'])) redirect("index.php");
    152152
    153153 $sql = new SQL;
    154  $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);
     154 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    155155 
    156156 $id = $sql->quote_smart($_GET['id']);
Note: See TracChangeset for help on using the changeset viewer.