| 123456789101112131415161718192021222324 |
- <?php
- if (core::ifPost("from") AND core::getPost("from") == "document") {
- if(core::getPost("id") == "add"){
- $add = document::add();
- if($add != FALSE) {
- $location = "/document-". $add .".html";
- } else {
-
- $location = "/add-document.html";
- }
- } else {
- document::update();
- $location = "/document-". core::getPost("id") .".html";
- }
- header("Location: " . $location);
- exit();
- } else {
- header('HTTP/1.0 401 Unauthorized');
- exit();
- }
|