Changeset 142 for minimanager/mail.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/mail.php
r19 r142 88 88 // Send the actual mail(s) 89 89 function send_mail(){ 90 global $lang_global, $output, $realm_db, $ mangos_db, $realm_id, $user_name, $from_mail, $mailer_type, $smtp_cfg;90 global $lang_global, $output, $realm_db, $characters_db, $realm_id, $user_name, $from_mail, $mailer_type, $smtp_cfg; 91 91 92 92 if ( empty($_POST['body']) || empty($_POST['subject']) || empty($_POST['type']) || empty($_POST['group_sign']) || empty($_POST['group_send']) ) { … … 206 206 207 207 case "ingame_mail": 208 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);208 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 209 209 210 210 require_once("scripts/gen_lib.php"); … … 231 231 $sql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']); 232 232 $result = $sql->query("SELECT id FROM account WHERE gmlevel $group_sign '$group_value'"); 233 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);233 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 234 234 while($acc = $sql->fetch_row($result)){ 235 235 $result_2 = $sql->query("SELECT guid FROM `character` WHERE account = '$acc[0]'"); … … 239 239 240 240 case "online": 241 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);241 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 242 242 $result = $sql->query("SELECT guid FROM `character` WHERE online $group_sign '$group_value'"); 243 243 while($user = $sql->fetch_row($result)) array_push($char_array, $user[0]); … … 245 245 246 246 case "char_level": 247 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);247 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 248 248 $result = $sql->query("SELECT guid FROM `character` WHERE SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) $group_sign '$group_value'"); 249 249 while($user = $sql->fetch_row($result)) array_push($char_array, $user[0]);
Note:
See TracChangeset
for help on using the changeset viewer.