示例#1
0
 /**
  * Deletes an item
  *
  * @uses 'wp_ajax_frmwks_create_formworks' action
  *
  * @since 0.0.1
  */
 public function delete_formworks()
 {
     $can = options::can();
     if (!$can) {
         status_header(500);
         wp_die(__('Access denied', 'formworks'));
     }
     $deleted = options::delete(strip_tags($_POST['block']));
     if ($deleted) {
         wp_send_json_success($_POST);
     } else {
         wp_send_json_error($_POST);
     }
 }
示例#2
0
文件: delete.php 项目: emaxv/DataBase
<?php

require_once '../connect.php';
require_once '../Classes/option.class.php';
options::delete();
header('Location: ../db.php');