Changeset 5388
- Timestamp:
- 09/13/11 13:32:17 (21 months ago)
- Location:
- trunk/install
- Files:
-
- 2 modified
-
forum_data/include/core.inc (modified) (1 diff)
-
www_root/adm/admuserapr.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/forum_data/include/core.inc
r5376 r5388 85 85 /** Auto load a class. */ 86 86 function __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 } 88 91 } 89 92 -
trunk/install/www_root/adm/admuserapr.php
r5316 r5388 1 1 <?php 2 2 /** 3 * copyright : (C) 2001-201 0Advanced Internet Designs Inc.3 * copyright : (C) 2001-2011 Advanced Internet Designs Inc. 4 4 * email : forum@prohost.org 5 5 * $Id$ … … 10 10 **/ 11 11 12 /** Print a user property if it has a value. */ 13 function 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 */ 12 24 require('./GLOBALS.php'); 13 25 fud_use('adm.inc', true); 14 26 fud_use('users_adm.inc', true); 27 28 require($WWW_ROOT_DISK .'adm/header.php'); 15 29 16 30 if (isset($_GET['apr'])) { … … 18 32 fud_use('adm_acc.inc'); 19 33 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']); 21 35 send_email($NOTIFY_FROM, $r->email, $account_accepted_s, $account_accepted); 22 36 } … … 29 43 } 30 44 } 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');43 45 ?> 44 46 <h2>Account Approval</h2>