www
/
wwwroot
/
magazinmiorita.be
/
admin
➕ New
📤 Upload
✎ Editing:
edit_page.php
← Back
<?php include('../includes/inc.config.php'); include('check_session.php'); if(isset($_POST['edit'])){ $title = htmlentities($_POST['title'], ENT_QUOTES); $content = htmlentities($_POST['text'], ENT_QUOTES); $status = $_POST['status']; $add_page = $database->execute("UPDATE `pages` SET `title` = '$title', `content` = '$content', `status` = '$status' WHERE `id` = '".$_GET['id']."'"); if($add_page){ $smarty->assign("type", 'succ'); $smarty->assign("message", 'Page edited successfully!'); }else{ $smarty->assign("type", 'err'); $smarty->assign("message", 'Page can not be edited! Please check and try again.'); } } $smarty->display(END_PATH.'edit_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