Changeset 142 for minimanager/motd.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/motd.php
r23 r142 10 10 11 11 require_once("header.php"); 12 require_once("scripts /bbcode_lib.php");12 require_once("scripts\bbcode_lib.php"); 13 13 valid_login(1); 14 14 … … 47 47 //##################################################################################################### 48 48 function do_add_motd(){ 49 global $lang_global, $ mangos_db, $realm_id, $user_name;49 global $lang_global, $characters_db, $realm_id, $user_name; 50 50 51 51 if (empty($_POST['msg'])) redirect("motd.php?error=1"); 52 52 53 53 $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']); 55 55 56 56 $msg = $sql->quote_smart($_POST['msg']); … … 73 73 //##################################################################################################### 74 74 function 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']); 79 79 80 80 if(isset($_GET['id'])) $id = $sql->quote_smart($_GET['id']); … … 116 116 //##################################################################################################### 117 117 function do_edit_motd(){ 118 global $lang_global, $ mangos_db, $realm_id, $user_name;118 global $lang_global, $characters_db, $realm_id, $user_name; 119 119 120 120 if (empty($_POST['msg']) || empty($_POST['id'])) redirect("motd.php?error=1"); 121 121 122 122 $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']); 124 124 125 125 $msg = $sql->quote_smart($_POST['msg']); … … 147 147 //##################################################################################################### 148 148 function delete_motd(){ 149 global $lang_global, $ mangos_db, $realm_id;149 global $lang_global, $characters_db, $realm_id; 150 150 151 151 if (empty($_GET['id'])) redirect("index.php"); 152 152 153 153 $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']); 155 155 156 156 $id = $sql->quote_smart($_GET['id']);
Note:
See TracChangeset
for help on using the changeset viewer.