Logo Search packages:      
Sourcecode: ibwebadmin version File versions  Download package

toggle_fold_panel.php

<?php
// File           toggle_fold_panel.php / ibWebAdmin
// Purpose        set s_xyz_panels[][2]["open"|"close"] and redirect to $HTTP_REFERER
// Author         Lutz Brueckner <irie@gmx.de>
// Copyright      (c) 2000, 2001, 2002, 2003, 2004 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
// Created        <00/09/07 23:33:47 lb>
//
// $Id: toggle_fold_panel.php,v 1.10 2004/02/07 15:21:34 lbrueckner Exp $

// GET-Parameter:   $a       active menu item
//                  $p       index of panel to open/close
//                  $d       the string "open" or "close"


include('./inc/configuration.inc.php');
include('./inc/session.inc.php');

session_start();
localize_session_vars();

include('./lang/' . (isset($s_cust) ? $s_cust['language'] : LANGUAGE) . '.inc.php');
include('./inc/array_functions.inc.php');
include('./inc/functions.inc.php');

// some browsers may fail with the dynamically inserted html
if (!isset($HTTP_GET_VARS['p'])) {
    redirect(url_session($HTTP_SERVER_VARS['HTTP_REFERER']));
}

$p = $HTTP_GET_VARS['p'];
$d = $HTTP_GET_VARS['d'];

//calculate the panel name
$pvar = 's_'.strtolower($HTTP_GET_VARS['a']).'_panels';

if ($d == 'open' || $d == 'close') {
    ${$pvar}[$p][2] = $d;
}

set_customize_cookie($s_cust);

globalize_session_vars();

redirect(url_session($HTTP_SERVER_VARS['HTTP_REFERER']));

?>

Generated by  Doxygen 1.6.0   Back to index