<?php /* $Id$ $URL$ */ if (!defined('W2P_BASE_DIR')) { die('You should not access this file directly.'); } global $AppUI, $cal_sdf; $AppUI->loadCalendarJS(); if (isset($_REQUEST['clash_action'])) { $do_include = false; switch ($_REQUEST['clash_action']) { case 'suggest': clash_suggest($AppUI, $cal_sdf); break; case 'process': clash_process($AppUI); break; case 'cancel': clash_cancel($AppUI); break; case 'mail': clash_mail($AppUI); break; case 'accept': clash_accept($AppUI); break; default: $AppUI->setMsg('Invalid action, event cancelled', UI_MSG_ALERT); break; } // Why do it here? Because it is in the global scope and requires
<?php if (!defined('DP_BASE_DIR')) { die('You should not access this file directly.'); } if (isset($_REQUEST['clash_action'])) { $do_include = false; switch ($_REQUEST['clash_action']) { case 'suggest': clash_suggest(); break; case 'process': clash_process(); break; case 'cancel': clash_cancel(); break; case 'mail': clash_mail(); break; case 'accept': clash_accept(); break; default: $AppUI->setMsg('Invalid action, event cancelled', UI_MSG_ALERT); break; } // Why do it here? Because it is in the global scope and requires // less hacking of the included file. if ($do_include) { include $do_include;