Warning. Dolphin cannot work in safe mode'; exit; } //check mbstring if( !extension_loaded( 'mbstring' ) ) { echo 'Warning! Dolphin cannot work without mbstring extension. Please go to the Dolphin Troubleshooter and solve the problem.'; exit; } //check correct hostname $aUrl = parse_url( $site['url'] ); if( isset($_SERVER['HTTP_HOST']) and $_SERVER['HTTP_HOST'] != $aUrl['host'] and $_SERVER['HTTP_HOST'] != $aUrl['host'] . ':80' ) { header( "Location:http://{$aUrl['host']}{$_SERVER['REQUEST_URI']}" ); exit; } // check if install folder exists if ( file_exists( $dir['root'] . 'install' ) ) { $ret = << Dolphin Smart Community Builder Installed
Dolphin Installed
Please, remove INSTALL directory from your server and reload this page to activate your community site.
EOJ; echo $ret; exit(); } //var_dump($dir);exit; // set error reporting level error_reporting(E_ALL & ~E_NOTICE); //ini_set ( "display_errors", 1); //set_magic_quotes_runtime(0); ini_set('set_magic_quotes_runtime', 0); ini_set('magic_quotes_sybase', 0); ini_set("memory_limit","1024M"); // set default encoding for multibyte functions mb_internal_encoding('UTF-8'); // Framework initial bootstrapping require_once($dir['root'] . "inc/bootstrap.inc.php"); __bootstrap_framework(); //__bootstrap_framework_db(); //__bootstrap_framework_db2(); __bootstrap_smarty(); if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' || $_REQUEST['my_ajax_mode'] == 1) { } else { if (preg_match("/places/i",$_SERVER['SCRIPT_NAME']) || preg_match("/join/i",$_SERVER['REQUEST_URI']) || preg_match("/logout/i",$_SERVER['REQUEST_URI']) || preg_match("/slider/i",$_SERVER['REQUEST_URI']) || preg_match("/places/i",$_SERVER['REQUEST_URI']) || preg_match("/ray/i",$_SERVER['REQUEST_URI']) || preg_match("/countRegion/i",$_SERVER['REQUEST_URI']) || preg_match("/admin/i",$_SERVER['REQUEST_URI']) || preg_match("/moderators/i",$_SERVER['REQUEST_URI'])) { } else { if ( !$_COOKIE[ "moderatorID" ] && !$_COOKIE[ "adminID" ] ) { require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); if ($memberID = (int)$_COOKIE['memberID']) { $memArr = getProfileInfo($memberID ); if (getProfileInfo($memberID)) { $oSession = PaSession::getInstance(); if ($oSession->pathExists('withSchool')) { $iWithSchool = $oSession->get('withSchool'); } else { if ($memArr["ProfileType"] == 4) { $odb = PaDbConnection::getInstance(); $sqlGroup = "SELECT COUNT(*) FROM GroupsMembers WHERE memberID = '$memberID'"; $group = $odb -> fetchField($sqlGroup); if ($group > 0) { $iWithSchool = 1; } else { $sqlSchool = "SELECT COUNT(*) FROM places_members WHERE memberID = '$memberID'"; $school = $odb -> fetchField($sqlSchool); $iWithSchool = ($school > 0)?1:0; } $oSession->put('withSchool', $iWithSchool); } elseif ($memArr["ProfileType"] == 2) { $odb = PaDbConnection::getInstance(); $sqlGroup = "SELECT COUNT(*) FROM Groups WHERE creatorID = '$memberID'"; $group = $odb -> fetchField($sqlGroup); if ($group > 0) { $iWithSchool = 1; } else { $sqlSchool = "SELECT COUNT(*) FROM places_members_t WHERE memberID = '$memberID'"; $school = $odb -> fetchField($sqlSchool); $iWithSchool = ($school > 0)?1:0; } $oSession->put('withSchool', $iWithSchool); } } if ($iWithSchool === 0 && !preg_match("/places/i",$_SERVER['REQUEST_URI']) && !preg_match("/unregister/i",$_SERVER['REQUEST_URI']) && !preg_match("/logout/i",$_SERVER['REQUEST_URI']) && !preg_match("/loadRegion\.php/i",$_SERVER['REQUEST_URI']) && $memArr["Status"] != "Unconfirmed"){ //PADebug::dump($_SERVER);exit; $url = $site['url']."places/search/?step2"; if( (trim($memArr["NickName"]) == "" && $memArr["ProfileType"] == 4) || (trim($memArr["Nom"]) == "" && $memArr["ProfileType"] == 2) ) { $sConfCode = base64_encode( base64_encode( crypt( $memArr['Email'], 'se' ) ) ); $url = $site['url']."./join.php?type=".$memArr['ProfileType']."&smode=1&ConfID=".$_COOKIE['memberID']."&ConfCode=".$sConfCode; } //PaClient::redirect($url); } if ($memArr["Status"] == "Unconfirmed") { $url = $site['url']."./join.php?type=".$memArr['ProfileType']."&smode=999&idmember=".$memberID; //setcookie( 'memberID', $_COOKIE['memberID'], time() - 48 * 3600, '/' ); //PaSession::getInstance()->destroy(); //PaClient::redirect($url); //exit; } } } } } } //--- Ray Integration ---// require_once($dir['root'] . "ray/modules/global/inc/header.inc.php"); require_once($dir['root'] . "ray/modules/global/inc/content.inc.php"); //--- Ray Integration ---// ?>