source: branches/2.2/phpgwapi/inc/functions.inc.php @ 3052

Revision 3052, 20.7 KB checked in by amuller, 14 years ago (diff)

Ticket #1044 - Aplica o compactador do css no branches 2.2

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2         /**************************************************************************\
3         * eGroupWare API - phpgwapi loader                                         *
4         * This file written by Dan Kuykendall <seek3r@phpgroupware.org>            *
5         * and Joseph Engo <jengo@phpgroupware.org>                                 *
6         * Has a few functions, but primary role is to load the phpgwapi            *
7         * Copyright (C) 2000, 2001 Dan Kuykendall                                  *
8         * -------------------------------------------------------------------------*
9         * This library is part of the eGroupWare API                               *
10         * http://www.egroupware.org/api                                            *
11         * ------------------------------------------------------------------------ *
12         * This library is free software; you can redistribute it and/or modify it  *
13         * under the terms of the GNU Lesser General Public License as published by *
14         * the Free Software Foundation; either version 2.1 of the License,         *
15         * or any later version.                                                    *
16         * This library is distributed in the hope that it will be useful, but      *
17         * WITHOUT ANY WARRANTY; without even the implied warranty of               *
18         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
19         * See the GNU Lesser General Public License for more details.              *
20         * You should have received a copy of the GNU Lesser General Public License *
21         * along with this library; if not, write to the Free Software Foundation,  *
22         * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            *
23         \**************************************************************************/
24       
25       
26        /***************************************************************************\
27        * If running in PHP3, then force admin to upgrade                           *
28        \***************************************************************************/
29
30        error_reporting(error_reporting() & ~E_NOTICE);
31       
32        include(PHPGW_API_INC.'/common_functions.inc.php');
33       
34        /*!
35         @function lang
36         @abstract function to handle multilanguage support
37        */
38        function lang($key,$m1='',$m2='',$m3='',$m4='',$m5='',$m6='',$m7='',$m8='',$m9='',$m10='')
39        {
40                if(is_array($m1))
41                {
42                        $vars = $m1;
43                }
44                else
45                {
46                        $vars = array($m1,$m2,$m3,$m4,$m5,$m6,$m7,$m8,$m9,$m10);
47                }
48                // Get the translation from Lang File, if the database is down.
49                if(!$GLOBALS['phpgw']->translation){
50                        $fn = PHPGW_SERVER_ROOT.'/phpgwapi/setup/phpgw_'.$GLOBALS['_SERVER']['HTTP_ACCEPT_LANGUAGE'].'.lang';
51                        if (file_exists($fn)){
52                                $fp = fopen($fn,'r');
53                                while ($data = fgets($fp,16000)){
54                                        list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1));
55                                        $GLOBALS['phpgw_info']['phpgwapi']['lang'][$message_id] =  $content;
56                                }
57                                fclose($fp);
58                        }
59                        $return = str_replace('%1',$vars[0],$GLOBALS['phpgw_info']['phpgwapi']['lang'][$key]);                 
60                        return $return; 
61                }
62                $value = $GLOBALS['phpgw']->translation->translate("$key",$vars);
63                return $value;
64        }
65
66        /* Make sure the header.inc.php is current. */
67        if ($GLOBALS['phpgw_info']['server']['versions']['header'] < $GLOBALS['phpgw_info']['server']['versions']['current_header'])
68        {
69                header("location:setup/manageheader.php");
70        }
71
72        /* Make sure the developer is following the rules. */
73        if (!isset($GLOBALS['phpgw_info']['flags']['currentapp']))
74        {
75                /* This object does not exist yet. */
76        /*      $GLOBALS['phpgw']->log->write(array('text'=>'W-MissingFlags, currentapp flag not set'));*/
77
78                echo '<b>!!! YOU DO NOT HAVE YOUR $GLOBALS[\'phpgw_info\'][\'flags\'][\'currentapp\'] SET !!!';
79                echo '<br>!!! PLEASE CORRECT THIS SITUATION !!!</b>';
80        }
81
82        magic_quotes_runtime(false);
83        print_debug('sane environment','messageonly','api');
84
85        /****************************************************************************\
86        * Multi-Domain support                                                       *
87        \****************************************************************************/
88       
89        /* make them fix their header */
90        if (!isset($GLOBALS['phpgw_domain']))
91        {
92                echo '<center><b>The administrator must upgrade the header.inc.php file before you can continue.</b></center>';
93                exit;
94        }
95        if (!isset($GLOBALS['phpgw_info']['server']['default_domain']) ||       // allow to overwrite the default domain
96                !isset($GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]))
97        {
98                reset($GLOBALS['phpgw_domain']);
99                list($GLOBALS['phpgw_info']['server']['default_domain']) = each($GLOBALS['phpgw_domain']);
100        }
101        if (isset($_POST['login']))     // on login
102        {
103                $GLOBALS['login'] = $_POST['login'];
104                if (strstr($GLOBALS['login'],'@') === False || count($GLOBALS['phpgw_domain']) == 1)
105                {
106                        $GLOBALS['login'] .= '@' . get_var('logindomain',array('POST'),$GLOBALS['phpgw_info']['server']['default_domain']);
107                }
108                $parts = explode('@',$GLOBALS['login']);
109                $GLOBALS['phpgw_info']['user']['domain'] = array_pop($parts);
110        }
111        else    // on "normal" pageview
112        {
113                $GLOBALS['phpgw_info']['user']['domain'] = get_var('domain', array('GET', 'COOKIE'), FALSE);
114        }
115
116        if (@isset($GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['user']['domain']]))
117        {
118                $GLOBALS['phpgw_info']['server']['db_host'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['user']['domain']]['db_host'];
119                $GLOBALS['phpgw_info']['server']['db_port'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['user']['domain']]['db_port'];
120                $GLOBALS['phpgw_info']['server']['db_name'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['user']['domain']]['db_name'];
121                $GLOBALS['phpgw_info']['server']['db_user'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['user']['domain']]['db_user'];
122                $GLOBALS['phpgw_info']['server']['db_pass'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['user']['domain']]['db_pass'];
123                $GLOBALS['phpgw_info']['server']['db_type'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['user']['domain']]['db_type'];
124        }
125        else
126        {
127                $GLOBALS['phpgw_info']['server']['db_host'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]['db_host'];
128                $GLOBALS['phpgw_info']['server']['db_port'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]['db_port'];
129                $GLOBALS['phpgw_info']['server']['db_name'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]['db_name'];
130                $GLOBALS['phpgw_info']['server']['db_user'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]['db_user'];
131                $GLOBALS['phpgw_info']['server']['db_pass'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]['db_pass'];
132                $GLOBALS['phpgw_info']['server']['db_type'] = $GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]['db_type'];
133        }
134
135        if ($GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' && ! $GLOBALS['phpgw_info']['server']['show_domain_selectbox'])
136        {
137                unset ($GLOBALS['phpgw_domain']); // we kill this for security reasons
138        }
139
140        print_debug('domain',@$GLOBALS['phpgw_info']['user']['domain'],'api');
141
142         /****************************************************************************\
143         * These lines load up the API, fill up the $phpgw_info array, etc            *
144         \****************************************************************************/
145         /* Load main class */
146        $GLOBALS['phpgw'] = CreateObject('phpgwapi.phpgw');
147         /************************************************************************\
148         * Load up the main instance of the db class.                             *
149         \************************************************************************/
150        $GLOBALS['phpgw']->db           = CreateObject('phpgwapi.db');
151        if ($GLOBALS['phpgw']->debug)
152        {
153                $GLOBALS['phpgw']->db->Debug = 1;
154        }
155        $GLOBALS['phpgw']->db->Halt_On_Error = 'no';
156        /* jakjr: ExpressoLivre: We do not count the config table. */
157        if (!
158        $GLOBALS['phpgw']->db->connect(
159                $GLOBALS['phpgw_info']['server']['db_name'],
160                $GLOBALS['phpgw_info']['server']['db_host'],
161                $GLOBALS['phpgw_info']['server']['db_port'],
162                $GLOBALS['phpgw_info']['server']['db_user'],
163                $GLOBALS['phpgw_info']['server']['db_pass'],
164                $GLOBALS['phpgw_info']['server']['db_type']
165        ) )
166        //@$GLOBALS['phpgw']->db->query("SELECT COUNT(config_name) FROM phpgw_config");
167        //if(!@$GLOBALS['phpgw']->db->next_record())
168        {
169               
170                /* BEGIN - CELEPAR - jakjr - 05/06/2006 */
171                /* $setup_dir = str_replace($_SERVER['PHP_SELF'],'index.php','setup/'); */
172                /*echo '<center><b>Fatal Error:</b> It appears that you have not created the database tables for '
173                        .'eGroupWare.  Click <a href="' . $setup_dir . '">here</a> to run setup.</center>';*/
174                echo '<center><b>'.lang("ExpressoLivre is unavailable at this moment. Code %1<br>Please, try later.","001").'</b></center>';
175                /* END - CELEPAR - jakjr - 05/06/2006 */
176                exit;
177        }
178        $GLOBALS['phpgw']->db->Halt_On_Error = 'yes';
179
180        /* Fill phpgw_info["server"] array */
181        // An Attempt to speed things up using cache premise
182        /* jakjr: ExpressoLivre does not use cache. */
183        /*
184        $GLOBALS['phpgw']->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__);
185        if ($GLOBALS['phpgw']->db->num_rows())
186        {
187                $GLOBALS['phpgw']->db->next_record();
188                $GLOBALS['phpgw_info']['server']['cache_phpgw_info'] = stripslashes($GLOBALS['phpgw']->db->f('config_value'));
189        }*/
190
191        /* jakjr: ExpressoLivre does not use cache. */
192        /*     
193        $cache_query = "select content from phpgw_app_sessions where"
194                ." sessionid = '0' and loginid = '0' and app = 'phpgwapi' and location = 'config'";
195
196        $GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__);
197        $server_info_cache = $GLOBALS['phpgw']->db->num_rows();
198        */
199        /*
200        if(@$GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $server_info_cache)
201        {
202                $GLOBALS['phpgw']->db->next_record();
203                $GLOBALS['phpgw_info']['server'] = unserialize(stripslashes($GLOBALS['phpgw']->db->f('content')));
204        }
205        else
206        {*/
207                $GLOBALS['phpgw']->db->query("SELECT * from phpgw_config WHERE config_app='phpgwapi'",__LINE__,__FILE__);
208                while ($GLOBALS['phpgw']->db->next_record())
209                {
210                        $GLOBALS['phpgw_info']['server'][$GLOBALS['phpgw']->db->f('config_name')] = stripslashes($GLOBALS['phpgw']->db->f('config_value'));
211                }
212
213                /*
214                if(@isset($GLOBALS['phpgw_info']['server']['cache_phpgw_info']))
215                {
216                        if($server_info_cache)
217                        {
218                                $cache_query = "DELETE FROM phpgw_app_sessions WHERE sessionid='0' and loginid='0' and app='phpgwapi' and location='config'";
219                                $GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__);
220                        }
221                        $cache_query = 'INSERT INTO phpgw_app_sessions(sessionid,loginid,app,location,content) VALUES('
222                                . "'0','0','phpgwapi','config','".addslashes(serialize($GLOBALS['phpgw_info']['server']))."')";
223                        $GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__);
224                }*/
225        //}
226        unset($cache_query);
227        unset($server_info_cache);
228        if(@isset($GLOBALS['phpgw_info']['server']['enforce_ssl']) && !$_SERVER['HTTPS'])
229        {
230                Header('Location: https://' . $GLOBALS['phpgw_info']['server']['hostname'] . $GLOBALS['phpgw_info']['server']['webserver_url'] . $_SERVER['REQUEST_URI']);
231                exit;
232        }
233
234        /****************************************************************************\
235        * This is a global constant that should be used                              *
236        * instead of / or \ in file paths                                            *
237        \****************************************************************************/
238        define('SEP',filesystem_separator());
239
240        /************************************************************************\
241        * Required classes                                                       *
242        \************************************************************************/
243        $GLOBALS['phpgw']->log          = CreateObject('phpgwapi.errorlog');
244        $GLOBALS['phpgw']->translation  = CreateObject('phpgwapi.translation');
245        $GLOBALS['phpgw']->common       = CreateObject('phpgwapi.common');
246        $GLOBALS['phpgw']->hooks        = CreateObject('phpgwapi.hooks');
247        $GLOBALS['phpgw']->auth         = CreateObject('phpgwapi.auth');
248        $GLOBALS['phpgw']->accounts     = CreateObject('phpgwapi.accounts');
249        $GLOBALS['phpgw']->acl          = CreateObject('phpgwapi.acl');
250        $GLOBALS['phpgw']->session      = CreateObject('phpgwapi.sessions');
251        $GLOBALS['phpgw']->preferences  = CreateObject('phpgwapi.preferences');
252        $GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications');
253        $GLOBALS['phpgw']->css          = CreateObject('phpgwapi.css');
254        print_debug('main class loaded', 'messageonly','api');
255        if (! isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) ||
256                ! $GLOBALS['phpgw_info']['flags']['included_classes']['error'])
257        {
258                include_once(PHPGW_INCLUDE_ROOT.'/phpgwapi/inc/class.error.inc.php');
259                $GLOBALS['phpgw_info']['flags']['included_classes']['error'] = True;
260        }
261
262        /*****************************************************************************\
263        * ACL defines - moved here to work for xml-rpc/soap, also                     *
264        \*****************************************************************************/
265        define('PHPGW_ACL_READ',1);
266        define('PHPGW_ACL_ADD',2);
267        define('PHPGW_ACL_EDIT',4);
268        define('PHPGW_ACL_DELETE',8);
269        define('PHPGW_ACL_PRIVATE',16);
270        define('PHPGW_ACL_GROUP_MANAGERS',32);
271        define('PHPGW_ACL_CUSTOM_1',64);
272        define('PHPGW_ACL_CUSTOM_2',128);
273        define('PHPGW_ACL_CUSTOM_3',256);
274
275        /****************************************************************************\
276        * Forcing the footer to run when the rest of the script is done.             *
277        \****************************************************************************/
278        register_shutdown_function(array($GLOBALS['phpgw']->common, 'phpgw_final'));
279
280        /****************************************************************************\
281        * Stuff to use if logging in or logging out                                  *
282        \****************************************************************************/
283        if ($GLOBALS['phpgw_info']['flags']['currentapp'] == 'login' || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'logout')
284        {
285                if ($GLOBALS['phpgw_info']['flags']['currentapp'] == 'login')
286                {
287                        if (@$_POST['login'] != '')
288                        {
289                                if (count($GLOBALS['phpgw_domain']) > 1)
290                                {
291                                        list($login) = explode('@',$_POST['login']);
292                                }
293                                else
294                                {
295                                        $login = $_POST['login'];
296                                }
297                                print_debug('LID',$login,'app');
298                                $login_id = $GLOBALS['phpgw']->accounts->name2id($login);
299                                print_debug('User ID',$login_id,'app');
300                                $GLOBALS['phpgw']->accounts->accounts($login_id);
301                                $GLOBALS['phpgw']->preferences->preferences($login_id);
302                                $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.date_time');
303                        }
304                }
305        /**************************************************************************\
306        * Everything from this point on will ONLY happen if                        *
307        * the currentapp is not login or logout                                    *
308        \**************************************************************************/
309        }
310        else
311        {
312                if (! $GLOBALS['phpgw']->session->verify())
313                {
314                        // we forward to the same place after the re-login
315                        if ($GLOBALS['phpgw_info']['server']['webserver_url'] && $GLOBALS['phpgw_info']['server']['webserver_url'] != '/')
316                        {
317                                list(,$relpath) = explode($GLOBALS['phpgw_info']['server']['webserver_url'],$_SERVER['PHP_SELF'],2);
318                        }
319                        else    // the webserver-url is empty or just a slash '/' (eGW is installed in the docroot and no domain given)
320                        {
321                                if (preg_match('/^https?:\/\/[^\/]*\/(.*)$/',$relpath=$_SERVER['PHP_SELF'],$matches))
322                                {
323                                        $relpath = $matches[1];
324                                }
325                        }
326                        // this removes the sessiondata if its saved in the URL
327                        $query = preg_replace('/[&]?sessionid(=|%3D)[^&]+&kp3(=|%3D)[^&]+&domain=.*$/','',$_SERVER['QUERY_STRING']);
328                        Header('Location: '.$GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=10&phpgw_forward='.urlencode($relpath.(!empty($query) ? '?'.$query : '')));
329                        exit;
330                }
331
332                $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.date_time');
333
334                /* A few hacker resistant constants that will be used throught the program */
335                define('PHPGW_TEMPLATE_DIR', ExecMethod('phpgwapi.phpgw.common.get_tpl_dir', 'phpgwapi'));
336                define('PHPGW_IMAGES_DIR', ExecMethod('phpgwapi.phpgw.common.get_image_path', 'phpgwapi'));
337                define('PHPGW_IMAGES_FILEDIR', ExecMethod('phpgwapi.phpgw.common.get_image_dir', 'phpgwapi'));
338                define('PHPGW_APP_ROOT', ExecMethod('phpgwapi.phpgw.common.get_app_dir'));
339                define('PHPGW_APP_INC', ExecMethod('phpgwapi.phpgw.common.get_inc_dir'));
340                define('PHPGW_APP_TPL', ExecMethod('phpgwapi.phpgw.common.get_tpl_dir'));
341                define('PHPGW_IMAGES', ExecMethod('phpgwapi.phpgw.common.get_image_path'));
342                define('PHPGW_APP_IMAGES_DIR', ExecMethod('phpgwapi.phpgw.common.get_image_dir'));
343
344                /*      define('PHPGW_APP_IMAGES_DIR', $GLOBALS['phpgw']->common->get_image_dir()); */
345
346                /* Moved outside of this logic
347                define('PHPGW_ACL_READ',1);
348                define('PHPGW_ACL_ADD',2);
349                define('PHPGW_ACL_EDIT',4);
350                define('PHPGW_ACL_DELETE',8);
351                define('PHPGW_ACL_PRIVATE',16);
352                */
353
354                /********* This sets the user variables *********/
355                $GLOBALS['phpgw_info']['user']['private_dir'] = $GLOBALS['phpgw_info']['server']['files_dir']
356                        . '/users/'.$GLOBALS['phpgw_info']['user']['userid'];
357
358                /* This will make sure that a user has the basic default prefs. If not it will add them */
359                $GLOBALS['phpgw']->preferences->verify_basic_settings();
360
361                /********* Optional classes, which can be disabled for performance increases *********/
362                while ($phpgw_class_name = each($GLOBALS['phpgw_info']['flags']))
363                {
364                        if (ereg('enable_',$phpgw_class_name[0]))
365                        {
366                                $enable_class = str_replace('enable_','',$phpgw_class_name[0]);
367                                $enable_class = str_replace('_class','',$enable_class);
368                                eval('$GLOBALS["phpgw"]->' . $enable_class . ' = createobject(\'phpgwapi.' . $enable_class . '\');');
369                        }
370                }
371                unset($enable_class);
372                reset($GLOBALS['phpgw_info']['flags']);
373
374
375                if(!include(PHPGW_SERVER_ROOT . '/phpgwapi/themes/default.theme')) 
376                { 
377                        /* Hope we don't get to this point.  Better then the user seeing a */ 
378                        /* complety back screen and not know whats going on                */ 
379                        echo '<body bgcolor="FFFFFF">'; 
380                        $GLOBALS['phpgw']->log->write(array('text'=>'F-Abort, No themes found')); 
381
382                        exit; 
383                } 
384
385                /*************************************************************************\
386                * These lines load up the templates class                                 *
387                \*************************************************************************/
388                if(!@$GLOBALS['phpgw_info']['flags']['disable_Template_class'])
389                {
390                        $GLOBALS['phpgw']->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
391                        preg_match('/(.*)\/(.*)/', PHPGW_APP_TPL, $matches);
392
393                        if ( $GLOBALS['phpgw_info']['flags']['currentapp'] != "jabberit_messenger" )
394                                $_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user']['preferences']['common']['template_set'] = $matches[2];
395                }
396
397
398                /*************************************************************************\
399                * If they are using frames, we need to set some variables                 *
400                \*************************************************************************/
401                if (((isset($GLOBALS['phpgw_info']['user']['preferences']['common']['useframes']) &&
402                        $GLOBALS['phpgw_info']['user']['preferences']['common']['useframes']) &&
403                        $GLOBALS['phpgw_info']['server']['useframes'] == 'allowed') ||
404                        ($GLOBALS['phpgw_info']['server']['useframes'] == 'always'))
405                {
406                        $GLOBALS['phpgw_info']['flags']['navbar_target'] = 'phpgw_body';
407                }
408
409                /*************************************************************************\
410                * Verify that the users session is still active otherwise kick them out   *
411                \*************************************************************************/
412                if ($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
413                        $GLOBALS['phpgw_info']['flags']['currentapp'] != 'about' &&
414                        $GLOBALS['phpgw_info']['flags']['currentapp'] != 'mobile')
415                {
416                        // This will need to use ACL in the future
417                        if (! $GLOBALS['phpgw_info']['user']['apps'][$GLOBALS['phpgw_info']['flags']['currentapp']] ||
418                                (@$GLOBALS['phpgw_info']['flags']['admin_only'] &&
419                                ! $GLOBALS['phpgw_info']['user']['apps']['admin']))
420                        {
421                                $GLOBALS['phpgw']->common->phpgw_header();
422                                if ($GLOBALS['phpgw_info']['flags']['noheader'])
423                                {
424                                        echo parse_navbar();
425                                }
426
427                                $GLOBALS['phpgw']->log->write(array('text'=>'W-Permissions, Attempted to access %1','p1'=>$GLOBALS['phpgw_info']['flags']['currentapp']));
428
429                                echo '<p><center><b>'.lang('Access not permitted').'</b></center>';
430                                $GLOBALS['phpgw']->common->phpgw_exit(True);
431                        }
432                }
433
434                if(!is_object($GLOBALS['phpgw']->datetime))
435                {
436                        $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.date_time');
437                }
438                $GLOBALS['phpgw']->applications->read_installed_apps(); // to get translated app-titles
439               
440                /*************************************************************************\
441                * Load the header unless the developer turns it off                       *
442                \*************************************************************************/
443                if (!@$GLOBALS['phpgw_info']['flags']['noheader'])
444                {
445                        $GLOBALS['phpgw']->common->phpgw_header();
446                }
447
448        }
Note: See TracBrowser for help on using the repository browser.