1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 5388

Show
Ignore:
Timestamp:
09/13/11 13:32:17 (21 months ago)
Author:
naudefj
Message:

Fix error: fud_smtp.inc missing when approving users and SMTP server is configured.

Location:
trunk/install
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/install/forum_data/include/core.inc

    r5376 r5388  
    8585/** Auto load a class. */ 
    8686function __autoload( $className ) { 
    87         require_once($GLOBALS['INCLUDE'] . $className .'.inc'); 
     87        $inc = $GLOBALS['INCLUDE'] . $className .'.inc'; 
     88        if (file_exists($inc)) { 
     89                require_once($inc); 
     90        } 
    8891} 
    8992 
  • trunk/install/www_root/adm/admuserapr.php

    r5316 r5388  
    11<?php 
    22/** 
    3 * copyright            : (C) 2001-2010 Advanced Internet Designs Inc. 
     3* copyright            : (C) 2001-2011 Advanced Internet Designs Inc. 
    44* email                : forum@prohost.org 
    55* $Id$ 
     
    1010**/ 
    1111 
     12/** Print a user property if it has a value. */ 
     13function print_if_avail($descr, $value, $no_html=1) 
     14{ 
     15        if (!empty($value)) { 
     16                if ($no_html) { 
     17                        $value = htmlspecialchars($value); 
     18                } 
     19                return '<tr><td>'. $descr .':</td><td>'. $value .'</td></tr>'; 
     20        } 
     21} 
     22 
     23/* main */ 
    1224        require('./GLOBALS.php'); 
    1325        fud_use('adm.inc', true); 
    1426        fud_use('users_adm.inc', true); 
     27 
     28        require($WWW_ROOT_DISK .'adm/header.php'); 
    1529 
    1630        if (isset($_GET['apr'])) { 
     
    1832                        fud_use('adm_acc.inc'); 
    1933                        fud_use('iemail.inc'); 
    20                         q('UPDATE '. $DBHOST_TBL_PREFIX .'users SET users_opt='. q_bitand(users_opt, ~2097152) .' WHERE id='. (int)$_GET['apr']); 
     34                        q('UPDATE '. $DBHOST_TBL_PREFIX .'users SET users_opt='. q_bitand('users_opt', ~2097152) .' WHERE id='. (int)$_GET['apr']); 
    2135                        send_email($NOTIFY_FROM, $r->email, $account_accepted_s, $account_accepted); 
    2236                } 
     
    2943                } 
    3044        } 
    31  
    32 function print_if_avail($descr, $value, $no_html=1) 
    33 { 
    34         if (!empty($value)) { 
    35                 if ($no_html) { 
    36                         $value = htmlspecialchars($value); 
    37                 } 
    38                 return '<tr><td>'. $descr .':</td><td>'. $value .'</td></tr>'; 
    39         } 
    40 } 
    41  
    42         require($WWW_ROOT_DISK .'adm/header.php'); 
    4345?> 
    4446<h2>Account Approval</h2>