本文整理匯總了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);
}