7 lines
237 B
PHP
7 lines
237 B
PHP
|
|
<?php
|
|||
|
|
require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
|
|||
|
|
if (isset($_SESSION['id'])) {
|
|||
|
|
$post = clearInputData($_POST);
|
|||
|
|
$post['content'] = $_POST['content'];
|
|||
|
|
return json_encode(Docs::editDocument($post['id'], $post));
|
|||
|
|
}
|