Menu

#16 Switching Categories v0.9

open
nobody
5
2005-06-16
2005-06-16
Anonymous
No

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.

Discussion

  • mattafort

    mattafort - 2005-06-23

    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.

     
  • mathew

    mathew - 2005-12-24

    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) {

     
  • Nobody/Anonymous

    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.

     
  • Dennis Kaplan

    Dennis Kaplan - 2006-07-20

    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

     
  • Nobody/Anonymous

    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

     
  • thecaffiend

    thecaffiend - 2006-12-11

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.