comparison index.php @ 45:e11491f625b0

add info action, one 7.3 -> 8.4 nit
author Charlie Root
date Thu, 28 Aug 2025 10:40:29 -0400
parents ee07fb3afb1b
children 91f005a4f7e9
comparison
equal deleted inserted replaced
44:10091cdd9844 45:e11491f625b0
38 38
39 // include environment 39 // include environment
40 require_once 'program/include/iniset.php'; 40 require_once 'program/include/iniset.php';
41 41
42 // init application, start session, init output class, etc. 42 // init application, start session, init output class, etc.
43 $RCMAIL = rcmail::get_instance(0, $GLOBALS['env']); 43 $RCMAIL = rcmail::get_instance(0, isset($GLOBALS['env']) ? $GLOBALS['env'] : null);
44 44
45 // Make the whole PHP output non-cacheable (#1487797) 45 // Make the whole PHP output non-cacheable (#1487797)
46 $RCMAIL->output->nocacheing_headers(); 46 $RCMAIL->output->nocacheing_headers();
47 $RCMAIL->output->common_headers(); 47 $RCMAIL->output->common_headers();
48 48
272 $OUTPUT->send(); 272 $OUTPUT->send();
273 } 273 }
274 else if ($RCMAIL->action == 'save-pref') { 274 else if ($RCMAIL->action == 'save-pref') {
275 include INSTALL_PATH . 'program/steps/utils/save_pref.inc'; 275 include INSTALL_PATH . 'program/steps/utils/save_pref.inc';
276 } 276 }
277 else if ($RCMAIL->action == 'info') {
278 phpinfo();
279 #xdebug_info();
280 exit();
281 }
277 282
278 283
279 // include task specific functions 284 // include task specific functions
280 if (is_file($incfile = INSTALL_PATH . 'program/steps/'.$RCMAIL->task.'/func.inc')) { 285 if (is_file($incfile = INSTALL_PATH . 'program/steps/'.$RCMAIL->task.'/func.inc')) {
281 include_once $incfile; 286 include_once $incfile;