本文整理匯總了PHP中sotf_Utils::collectPathinfoParams方法的典型用法代碼示例。如果您正苦於以下問題:PHP sotf_Utils::collectPathinfoParams方法的具體用法?PHP sotf_Utils::collectPathinfoParams怎麽用?PHP sotf_Utils::collectPathinfoParams使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sotf_Utils
的用法示例。
在下文中一共展示了sotf_Utils::collectPathinfoParams方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
///////////////////////////////////////////////////
if ($_GET['uilang']) {
$page->setUILanguage($_GET['uilang']);
$url = $_GET['okURL'];
if (!$url) {
$url = $config['localPrefix'];
}
$page->redirect($url);
exit;
}
// we need trick for making pages indexed by Google
// therefore we pass some parameters in pathinfo
// after this call getParameter can be used to get these parameters as well
$pathinfoParamExceptions = array('getIcon', 'getJingle', 'getUserFile');
if (!in_array($page->action, $pathinfoParamExceptions)) {
sotf_Utils::collectPathinfoParams();
}
// permissions object is for managing and asking for permissions
$permissions = new sotf_Permission();
//$permissions->debug = true;
// the repository of radio stations
$repository = new sotf_Repository($config['repositoryDir'], $db);
// all controlled vocabularies
$vocabularies = new sotf_Vocabularies($db);
// now you have the following global objects: $config, $db, $userdb, $smarty, $page, $repository, $user, $permission
// is that too many?
// forwarding all $config to smarty is a security risk
// $smarty->assign("CONFIG", $config);
// add basic variables to Smarty
$smarty->assign("NODEID", $config['nodeId']);
$smarty->assign("NODE_NAME", $config['nodeName']);