function smarty_function_msgPool($params, &$smarty) { if (class_available("msgPool") && isset($params['type'])) { $parameter = array(); foreach ($params as $para => $value) { if (!preg_match("/^type\$/i", $para)) { $parameter[$para] = $value; } } if (is_callable("msgPool::" . $params['type'])) { echo call_user_func_array(array("msgPool", $params['type']), $parameter); } else { trigger_error("Unknown msgPool function " . $params['type']); } } else { trigger_error("Unknown class msgPool."); } }
$focus .= '</script>'; $smarty->assign("focus", $focus); /* Set channel if needed */ //TODO: * move all global session calls to global_ // * create a new channel where needed (mostly management dialogues) // * remove regulary created channels when not needed anymore // * take a look at external php calls (i.e. get fax, ldif, etc.) // * handle aborted sessions (by pressing anachors i.e. Main, Menu, etc.) // * check lock removals, is "dn" global or not in this case? // * last page request -> global or not? // * check that filters are still global // * maxC global? if (isset($_POST['_channel_'])) { echo "DEBUG - current channel: " . $_POST['_channel_']; $smarty->assign("channel", $_POST['_channel_']); } else { $smarty->assign("channel", ""); } $smarty->assign("title", "FusionDirectory"); if (class_available('Game')) { $smarty->assign('game_screen', Game::run()); } else { $smarty->assign('game_screen', ''); } $display = $smarty->fetch(get_template_path('headers.tpl')) . $smarty->fetch(get_template_path('framework.tpl')); /* Show page... */ echo $display; /* Save plist and config */ session::global_set('plist', $plist); session::global_set('config', $config); session::set('errorsAlreadyPosted', array());