@ Jerry,
I think I've found out what the problem is, it looks as if your code is creating an infinite redirect loop. publicity.php is forwarding to the cmsAdmin area, then CMS Builder is detecting the redirectUrl variable in the URL, and redirecting back to publicity.php, which then redirects back to the CMS Admin area, etc. I would remove the redirectUrl variable from the publicity.php redirect:
//Get the current CMS users details
$CMS_USER = getCurrentUserFromCMS();
//redirect the browser if no user is currently logged into the back end
if (!@$CMS_USER['num']){
redirectBrowserToUrl("http://elleschorrphotography.com/cmsAdmin/admin.php");
exit;
}
@Djulia,
I've done some quick testing in version 2.53. Have you got the WSM_SEPARATE_LOGIN global set to true in your website membership plugin? If not you can change it on line 33 of websiteMembership.php:
$GLOBALS['WSM_SEPARATE_LOGIN'] = true; // set this to allow you to login to the website and CMS simultaneously as different users
The test code below should output the front end and CMS user array details:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
/* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('C:/wamp/www/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
$CMS_USER = getCurrentUserFromCMS();
showme($CMS_USER);
showme($CURRENT_USER);
Thanks!
Greg
Greg Thomas
PHP Programmer - interactivetools.com