本文整理汇总了PHP中Cron::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Cron::delete方法的具体用法?PHP Cron::delete怎么用?PHP Cron::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cron
的用法示例。
在下文中一共展示了Cron::delete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
/*
/admin/modules
This page is used to manage site modules, such as hashtag trends, advertisements, or friend suggestions.
*/
// Run Permissions
require SYS_PATH . "/controller/includes/admin_perm.php";
// Make sure that only management or higher is allowed
if (Me::$clearance < 8) {
header("Location: /admin");
exit;
}
// Delete a Cron Task
if (isset($_POST['delete'])) {
if (Cron::delete($_POST['delete'])) {
Alert::success("Deleted Cron Task", "You have deleted a cron task.");
}
}
// Prepare Values
$timestamp = time();
// Get Cron List
$cronList = Cron::getList();
// Run Header
require SYS_PATH . "/controller/includes/admin_header.php";
// Get the Navigation List
echo '
<h2 style="margin-top:20px;">Navigation: Menu</h2>
<table class="mod-table">
<tr>
<td>Options</td>