Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
  1.  
    Hello everybody,

    I have included Plogger in one of my php webpages .
    I have an array that contains the pages that can be displayed.
    Off course, when I click on a picture of my plogger alubm, the url looks like http://amisphereclub.be/Home.php?level=collection&id=x.
    But in my array, it is the var page that calls my pages.

    Here is my page containing the array :

    <?php

    $pageOK = array(


    '001' => 'Zones_Home/quisommesnous.php',
    '002' => 'Zones_Home/nosactivites.php',
    '003' => 'Zones_Home/nosphotos.php',
    '004' => 'Zones_Home/comite.php',
    '005' => 'Zones_Home/liens.php',
    '006' => 'Zones_Home/devenirmembre.php',


    '555' => 'Sessions/verifconnexion.php',
    '777' => 'Sessions/connexion.php',



    );


    // On teste que le paramètre d'url existe et qu'il est bien autoris&eacute;s
    // -----------------------------------------------------------------

    if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])) ) //si l'url existe dans le tableau
    {
    include($pageOK[$_GET['page']]); // Nous appelons cette url
    }
    else //sinon
    {
    include('Zones_Home/quisommesnous.php'); // Page par d&eacute;sfaut quant elle n'existe pas dans le tableau
    }


    ?>



    So, when I click on a picture, the url is something like that :http://amisphereclub.be/Home.php?level=collection&id=x.
    Then, how can I solve the problem.

    Thanks.

    John