示例#1
0
<?php

error_reporting(0);
require_once '../../../models/HotKeys.php';
require_once '../../../models/Response.php';
$re = new Response();
$hotkey = $_POST['key'];
if (isset($hotkey)) {
    $a = new HotKeys();
    if ($a->hotkeyAdd($hotkey)) {
        header('Location:' . $_SERVER['HTTP_REFERER']);
    } else {
        echo $re->show(400);
    }
} else {
    echo $re->show(400);
}
示例#2
0
<?php

error_reporting(0);
require_once '../../../models/HotKeys.php';
$id = $_GET['id'];
if (!isset($id)) {
    header('Location:' . $_SERVER['HTTP_REFERER']);
}
$re = new HotKeys();
$re->hotkeyDel($id);
header('Location:' . $_SERVER['HTTP_REFERER']);
示例#3
0
<?php

//搜索热词接口
require_once '../../models/Response.php';
require_once '../..//models/HotKeys.php';
$re = new HotKeys();
$data = $re->showKey();
$style = new Response();
echo $style->show(200, $data);