File: closed_panel_request.php

package info (click to toggle)
ibwebadmin 0.98-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,892 kB
  • ctags: 1,965
  • sloc: php: 12,454; makefile: 7
file content (56 lines) | stat: -rw-r--r-- 1,759 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
// File           jsrs/closed_panel_request.php / ibWebAdmin
// Purpose        mark a panel as closed in the session and deliver the html for
//                the closed panel
// 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        <03/02/10 22:21:44 lb>
//
// $IdK$: fk_request.php,v 1.3 2003/02/02 20:16:41 lbrueckner Exp $

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

session_start();
localize_session_vars();

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

if (DEBUG === TRUE) {
    include('../inc/debug_funcs.inc.php');
}

// answer to the request with the result of get_fk_values()
jsrsDispatch('closed_panel');


// build the answer for the jsrs request
function closed_panel($idx, $active){

    //calculate the panel name
    $pvar = 's_'.strtolower($active).'_panels';

    $GLOBALS[$pvar][$idx][2] = 'close';

    $icon = DATAPATH . (BG_TRANSPARENT == TRUE ? 'transparent/' : 'opaque/') . strtolower(ICON_SIZE) . '/' . 'open.png';
    $html = get_closed_panel($GLOBALS[$pvar][$idx][1], $active, $idx, $icon);

    // work around for a Mozilla bug 
    if ($GLOBALS['s_useragent']['ns6up'] == TRUE) {
        $html = str_replace('&amp;', '&', $html);
    }

    set_customize_cookie($GLOBALS['s_cust']);

    globalize_session_vars();

    return jsrsArrayToString(array($idx, $html), $delim='~');
}

?>