Switching Categories v0.9
Status: Beta
Brought to you by:
stuartc1
Say you start off with the PHP library shown. When
you go to switch to say ASP library, it shows the ASP
library fine. The problem is at this point, if you try to
switch to another library after that, It stays on ASP
library and you have to close the browser to start over
again to change to a diffrent library.
Logged In: YES
user_id=1048514
I got same problem.
I tried to solve it. Could not make it.
So I removed 'change directory' from menu.
I use only one: PHP library.
Logged In: YES
user_id=1412373
the following solved it for me:
in file config.php, comment out line 60, change line 61:
//session_register("libs_session");
$_SESSION['libs_session'] = $_POST['libs_session'];
in file lib_session.php (this is more a u.i. thing, so that
it shows the currently selected library), change lines 28,29:
if(isset($_SESSION['libs_session'])) {
if($_SESSION['libs_session'] == $lib) {
Logged In: NO
Simple Fix in config.php lines 60-64 change from
if(isset($_POST['libs_session'])) {
session_register("libs_session");
$libs_session = $_POST['libs_session'];
header("Location: $site_url");
}
To:
if(isset($_POST['libs_session'])) {
$_SESSION['libs_session'] = $_POST['libs_session'];
header("Location: $site_url");
exit;
}
No error checking or anything but hopefully your only using
this internally.
Logged In: YES
user_id=562286
I found an easier way
Just log out and log back in as admin and it will display
the default library again
Logged In: NO
The problem is the register globals flag off.
Put an .htaccess in the root of diretory whith this code:
php_flag register_globals On
That is.
Normando
Logged In: YES
user_id=1666107
Originator: NO
I actually solved this by changing the switch in middle.php to use lib_change.php for the session get rather than lib_session.php. This is my first crack at PHP, so if that's a n00b error lemme know.