本文整理汇总了PHP中IEM::sessionset方法的典型用法代码示例。如果您正苦于以下问题:PHP IEM::sessionset方法的具体用法?PHP IEM::sessionset怎么用?PHP IEM::sessionset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IEM
的用法示例。
在下文中一共展示了IEM::sessionset方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Process
//.........这里部分代码省略.........
$subaction = strtolower($_POST['ChangeType']);
$subscriberlist = $_POST['subscribers'];
if (!$subscribersapi->CheckPermission($user->userid, $subscriberlist)) {
$this->DenyAccess();
return;
}
switch ($subaction) {
case 'delete':
$access = $user->HasAccess('Subscribers', 'Delete');
if ($access) {
$this->DeleteSubscribers($subscriberlist);
} else {
$this->DenyAccess();
}
break;
case 'changeformat_text':
$this->ChangeFormat('Text', $subscriberlist);
break;
case 'changeformat_html':
$this->ChangeFormat('HTML', $subscriberlist);
break;
case 'changestatus_confirm':
$this->ChangeConfirm('Confirm', $subscriberlist);
break;
case 'changestatus_unconfirm':
$this->ChangeConfirm('Unconfirm', $subscriberlist);
break;
}
$this->ManageSubscribers_Step3(true);
break;
case 'delete':
$access = $user->HasAccess('Subscribers', 'Delete');
if ($access) {
$subscriberids = array();
if (isset($_GET['id'])) {
$subscriberids[] = $_GET['id'];
}
$adminAccess = false;
// If this user is an admin/list admin/list admintype == a then give permission
if ($user->Admin() || $user->ListAdminType() == 'a' || $user->ListAdmin()) {
$adminAccess = true;
}
if (!$subscribersapi->CheckPermission($user->userid, $subscriberids)) {
$this->DenyAccess();
return;
}
$this->DeleteSubscribers($subscriberids);
$this->ManageSubscribers_Step3(true);
} else {
$this->DenyAccess();
}
break;
case 'step3':
if (isset($_POST['ShowFilteringOptions'])) {
$show_filtering_options = $_POST['ShowFilteringOptions'];
$user->SetSettings('ShowFilteringOptions', $show_filtering_options);
}
$this->ManageSubscribers_Step3();
break;
case 'step2':
IEM::sessionset('visiblefields','');
$listid = 0;
if (isset($_POST['lists'])) {
$listid = $_POST['lists'];
} elseif (isset($_GET['lists'])) {
$listid = $_GET['lists'];
} elseif (isset($_POST['list'])) {
$listid = $_POST['list'];
} elseif (isset($_GET['list'])) {
$listid = $_GET['list'];
}
$this->ManageSubscribers_Step2($listid);
break;
case 'advancedsearch':
IEM::sessionset('visiblefields','');
$this->ChooseList('Manage', 'Step2');
break;
case 'simplesearch':
default:
IEM::sessionset('visiblefields','');
$this->ManageSubscribers_Step3();
break;
}
}