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

    r19 r142  
    8888// Send the actual mail(s)
    8989function 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;
    9191               
    9292 if ( empty($_POST['body']) || empty($_POST['subject']) || empty($_POST['type']) || empty($_POST['group_sign']) || empty($_POST['group_send']) ) {
     
    206206
    207207case "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']);
    209209 
    210210 require_once("scripts/gen_lib.php");
     
    231231                                $sql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']);
    232232                                $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']);
    234234                                while($acc = $sql->fetch_row($result)){
    235235                                        $result_2 = $sql->query("SELECT guid FROM `character` WHERE account = '$acc[0]'");
     
    239239 
    240240                        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']);
    242242                                $result = $sql->query("SELECT guid FROM `character` WHERE online $group_sign '$group_value'");
    243243                                while($user = $sql->fetch_row($result)) array_push($char_array, $user[0]);
     
    245245
    246246                        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']);
    248248                                $result = $sql->query("SELECT guid FROM `character` WHERE SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) $group_sign '$group_value'");
    249249                                while($user = $sql->fetch_row($result)) array_push($char_array, $user[0]);
Note: See TracChangeset for help on using the changeset viewer.