/*************************************************************************** * 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( 'header.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'modules.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'sharing.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' ); require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolBlogs.php' ); require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolClassifieds.php' ); require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolEvents.php' ); require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMedia.php' ); $menu_color_0 = "#dddddd"; function login_form( $text = "", $member = 0, $bbAjaxMode = false ) { global $site; global $_page_cont; global $_page; global $admin_dir; global $logged; global $tmpl; global $l,$d; switch( $member ) { case 0: $mem = _t("_Member"); $table = "Profiles"; $login_page = "{$site['url']}member.php"; $join_page = "{$site['url']}join.php"; $forgot_page = "{$site['url']}forgot.php"; $template = BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/login_form.html"; break; case 1: $mem = 'Admin'; $table = 'Admins'; $login_page = "{$site['url_admin']}index.php"; $join_page = ''; $forgot_page = ''; $template = BX_DIRECTORY_PATH_ROOT . "{$admin_dir}/login_form.html"; break; case 2: $mem = "Affiliate"; $table = 'aff'; $login_page = "{$site['url_aff']}index.php"; $join_page = ''; $forgot_page = ''; $template = BX_DIRECTORY_PATH_ROOT . "{$admin_dir}/login_form.html"; break; case 3: $mem = "Moderator"; $table = 'moderators'; $login_page = "{$site['url']}moderators/index.php"; $join_page = ''; $forgot_page = ''; $template = BX_DIRECTORY_PATH_ROOT . "{$admin_dir}/login_form.html"; break; } $_page['header'] = "{$site['title']} "._t("_Member Login"); $_page['header_text'] = _t("_Member Login"); if ($bbAjaxMode && $member==0) $template = BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/login_form_ajax.html"; elseif ($bbAjaxMode && $member==1) $template = BX_DIRECTORY_PATH_ROOT . "templates/base/login_form_ajax_a.html"; $_page_cont[0]['page_main_code'] = PageCompLoginForm($text,$member,$mem,$table,$login_page,$join_page,$forgot_page,$template); if( $bbAjaxMode ) { if( $member == 1 ) { TopCodeAdmin(); echo ''; echo '