本文整理匯總了PHP中CUserOptions::DeleteCommonOptions方法的典型用法代碼示例。如果您正苦於以下問題:PHP CUserOptions::DeleteCommonOptions方法的具體用法?PHP CUserOptions::DeleteCommonOptions怎麽用?PHP CUserOptions::DeleteCommonOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CUserOptions
的用法示例。
在下文中一共展示了CUserOptions::DeleteCommonOptions方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetMessage
if($_REQUEST["action"] <> "" && $editable && check_freetrix_sessid())
{
if($_REQUEST["action"] == "clear")
{
CUserOptions::DeleteUsersOptions($USER->GetID());
$sSuccessMsg .= GetMessage("user_sett_mess_del")."<br>";
}
if($_REQUEST["action"] == "clear_links")
{
CUserOptions::DeleteOption("start_menu", "recent");
$sSuccessMsg .= GetMessage("user_sett_mess_links")."<br>";
}
if($_REQUEST["action"] == "clear_all" && $USER->CanDoOperation('edit_other_settings'))
{
CUserOptions::DeleteCommonOptions();
$sSuccessMsg .= GetMessage("user_sett_mess_del_common")."<br>";
}
if($_REQUEST["action"] == "clear_all_user" && $USER->CanDoOperation('edit_other_settings'))
{
CUserOptions::DeleteUsersOptions();
$sSuccessMsg .= GetMessage("user_sett_mess_del_user")."<br>";
}
if($sSuccessMsg <> "")
{
$_SESSION["ADMIN"]["USER_SETTINGS_MSG"] = $sSuccessMsg;
LocalRedirect($APPLICATION->GetCurPage()."?lang=".LANGUAGE_ID."&".$tabControl->ActiveTabParam());
}
}
if($_SERVER["REQUEST_METHOD"]=="POST" && $_REQUEST["Update"]=="Y" && $editable && check_freetrix_sessid())