示例#1
0
<?php

include_once 'classes/storage.class.php';
include_once 'classes/index.class.php';
include_once 'classes/indexer.class.php';
include_once 'connect.php';
if (isset($_POST["remove"]) && $_POST["remove"] == "remove") {
    if (isset($_POST["docs"])) {
        $storage = new storage();
        $index = new index();
        $indexer = new indexer($index, $storage);
        $storage->remove_docs($_POST["docs"]);
    }
}
function get_documents()
{
    global $conn;
    $sql = "SELECT * FROM `se_documents` WHERE `exist` = 1";
    return $conn->query($sql);
}
?>



<!DOCTYPE html>
<html>
    <head>
        <title>admin</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>