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

toggle_fold_table.php

<?php
// File           toggle_fold_table.php / ibWebAdmin
// Purpose        toggles s_tables[]["status" ] and redirect to $HTTP_REFERER
// Author         Lutz Brueckner <irie@gmx.de>
// Copyright      (c) 2000, 2001, 2002, 2003 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
// Created        <00/09/09 00:18:05 lb>
//
// $Id: toggle_fold_table.php,v 1.9 2003/04/18 14:04:10 lbrueckner Exp $

// GET-Parameter:  $t   viewname, array-index in $s_tables


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

session_start();
localize_session_vars();

$tablename = $HTTP_GET_VARS['t'];
$s_tables[$tablename]['status'] = ($s_tables[$tablename]['status'] == 'close') ? 'open' : 'close';

if ($s_tables[$tablename]['is_view'] == TRUE  &&  $s_tables[$tablename]['status'] == 'open') {

    if (!($dbhandle = db_connect())) {
        ib_error(__FILE__, __LINE__, 'connect');
    }

    include('inc/views.inc.php');

    $s_tables[$tablename]['viewsrc'] = get_view_source($tablename);
}

globalize_session_vars();

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

?>

Generated by  Doxygen 1.6.0   Back to index