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

toggle_fold_domain.php

<?php
// File           toggle_fold_domain.php / ibWebAdmin
// Purpose        set s_domains[$name] 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/11/03 15:04:21 lb>
//
// $Id: toggle_fold_domain.php,v 1.6 2003/01/28 22:37:20 lbrueckner Exp $

// GET-Parameters:   $n  domain name

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

session_start();
localize_session_vars();

$name = $HTTP_GET_VARS['n'];

$s_domains[$name]['status'] = ($s_domains[$name]['status'] == 'close') ? 'open' : 'close';

globalize_session_vars();

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

?>

Generated by  Doxygen 1.6.0   Back to index