Joywork/ajax/editInnerDoc.php

7 lines
237 B
PHP
Raw Permalink Normal View History

2026-05-22 20:21:54 +02:00
<?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));
}