/*************************************************************************** * Dolphin Smart Community Builder * ----------------- * begin : Mon Mar 23 2006 * copyright : (C) 2006 BoonEx Group * website : http://www.boonex.com/ * This file is part of Dolphin - Smart Community Builder * * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. * http://creativecommons.org/licenses/by/3.0/ * * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the Creative Commons Attribution 3.0 License for more details. * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, * see license.txt file; if not, write to marketing@boonex.com ***************************************************************************/ require_once( '../inc/header.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'params.inc.php' ); $logged['admin'] = member_auth( 1, true, true ); $ADMIN = $logged[admin]; // =================================================================== // =================================================================== if ( $_POST['confirm'] ) { $query = ''; foreach ( $_POST as $key => $value ) { if ( 'mem' == $value ) $query .= " IDMember = '$key' OR "; } $query = "UPDATE ProfilesSettings SET `Status` = 'Active' WHERE " . $query . " '1'='0' "; db_res( $query ); } elseif ( $_POST['delete'] ) { $query = ''; foreach ( $_POST as $key => $value ) { if ( 'mem' == $value ) $query .= " IDMember = '$key' OR "; } $query1 = "SELECT `BackgroundFilename` FROM ProfilesSettings WHERE " . $query . " '1'='0' "; $res = db_res( $query1 ); while( $arr = mysql_fetch_array( $res ) ) { if( file_exists($dir['profileBackground'] . $arr['BackgroundFilename']) ) unlink($dir['profileBackground'] . $arr['BackgroundFilename']); } $query2 = "UPDATE ProfilesSettings SET `BackgroundFilename` = '' WHERE " . $query . " '1'='0' "; db_res( $query2 ); } // =================================================================== // - GET variables -------------- // =================================================================== $page = (int)$_GET[page]; $p_per_page = (int)$_GET[p_per_page]; //$real_first_p = (int)($page - 1) * $p_per_page; //$page_first_p = $real_first_p + 1; $max_photo_height = $max_photo_height + 2; $max_photo_width = $max_photo_width + 2; if ( !$page ) $page = 1; if ( !$p_per_page ) $p_per_page = 10; // ------------------------------ if ( isset($_GET['iUser']) ) { $iUser = (int)$_GET['iUser']; $sqlUser = " AND `IDMember` = '$iUser'"; } if (isset($_GET['status']) && $_GET['status'] == 'active') { $sqlMain = "`Status` = 'Active'"; $sConf = ''; } else { $sqlMain = "( `Status` != 'Active' OR `Status` IS NULL )"; $sConf = '