本文整理汇总了PHP中Lock::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP Lock::remove方法的具体用法?PHP Lock::remove怎么用?PHP Lock::remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lock
的用法示例。
在下文中一共展示了Lock::remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$f->verify_csrf = false;
if ($f->submit()) {
$wp->id = $_POST['id'];
$wp->title = $_POST['title'];
$wp->menu_title = $_POST['menu_title'];
$wp->window_title = $_POST['window_title'];
$wp->access = $_POST['access'];
$wp->layout = $_POST['layout'];
$wp->description = $_POST['description'];
$wp->keywords = $_POST['keywords'];
$wp->body = $_POST['body'];
$wp->put();
if (!$wp->error) {
Versions::add($wp);
$memcache->delete('_admin_page_' . $_GET['page']);
$this->add_notification(i18n_get('Page saved.'));
$_POST['page'] = $_GET['page'];
$lock->remove();
$this->hook('admin/edit', $_POST);
$this->redirect('/' . $_POST['id']);
}
$page->title = i18n_get('An Error Occurred');
echo i18n_get('Error Message') . ': ' . $wp->error;
} else {
$wp->layouts = admin_get_layouts();
$wp->failed = $f->failed;
$wp = $f->merge_values($wp);
$page->title = i18n_get('Edit Page') . ': ' . $wp->title;
$page->head = $tpl->render('admin/edit/head', $wp) . $tpl->render('admin/wysiwyg');
echo $tpl->render('admin/edit', $wp);
}