www
/
wwwroot
/
magazinmiorita.be
/
admin
➕ New
📤 Upload
✎ Editing:
add_page.php
← Back
<?php include('../includes/inc.config.php'); include('check_session.php'); if(isset($_POST['add'])){ $type = 'page'; $title = htmlentities($_POST['title'], ENT_QUOTES); $content = htmlentities($_POST['text'], ENT_QUOTES); $status = $_POST['status']; $add_page = $database->execute("INSERT INTO `pages` (`type`, `title`, `content`, `indate`, `status`) VALUES ('$type', '$title', '$content', '".time()."', '$status')"); if($add_page){ header('Location: pages.php?m=ok'); exit; }else{ $smarty->assign("type", 'err'); $smarty->assign("message", 'Page can not be created! Please check and try again.'); } } $smarty->display(END_PATH.'add_page.tpl'); ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel