Page 1 of 1

Having a problem...

Posted: Wed 28. Jun 2006, 15:43
by crenshawdesignz
I loaded the V2.01

I made the replacement in the Index.php file

Replace in index.php

(search for "visible_mode")

// define VISIBLE_MODE
// 0 = frontend (all) mode
// 1 = article user mode
// 2 = admin user mode
if(empty($_SESSION["wcs_user_id"])) {
define('VISIBLE_MODE', 0);
} else {
define('VISIBLE_MODE', $_SESSION["wcs_user_admin"] != 1 ? 0 : 2);
}

WITH

// define VISIBLE_MODE
// 0 = frontend (all) mode
// 1 = article user mode
// 2 = admin user mode
if(empty($_SESSION["wcs_user_id"])) {
define('VISIBLE_MODE', 0);
} else if($_SESSION["wcs_user_fe"] == 0) {
define('VISIBLE_MODE', 2);
} else {
define('VISIBLE_MODE', $_SESSION["wcs_user_admin"] != 1 ? 0 : 2);
}


I could not find a place to replace in phpwcms.php



//ENYM.com login-logout-panel
case "logout": //Logout
mysql_query("UPDATE ".DB_PREPEND."phpwcms_userlog SET logged_change=".time().", logged_in=0 WHERE logged_user='".$_SESSION["wcs_user"]."' AND logged_in=1;");
session_destroy();
header("Location: ".PHPWCMS_URL."login.php");
exit();
break;
//ENYM.com login-logout-panel

with that:

//ENYM.com login-logout-panel: changed logout target
case "logout": //Logout
mysql_query("UPDATE ".DB_PREPEND."phpwcms_userlog SET logged_change=".time().", logged_in=0 WHERE logged_user='".$_SESSION["wcs_user"]."' AND logged_in=1;");
session_destroy();
header("Location: ".PHPWCMS_URL."index.php"); //Target Site you want to be shown after logout
exit();
break;
//ENYM.com login-logout-panel: changed logout target


Also did not know where to put... call_content.php

I imagine the last two are the cause for me not being able to get this to work. Is there any help you can provide to me in this forum?

stop

Posted: Fri 30. Jun 2006, 02:29
by typoid
Please stay in the appropriate topic. Try not to open a new thread for a new question, otherwise this forum would just blew up...

You will get help there:

http://www.phpwcms.de/forum/viewtopic.p ... &start=240