www
/
wwwroot
/
magazinmiorita.be
/
admin
➕ New
📤 Upload
✎ Editing:
edit_news.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']; $pub = $_POST['pub']; $add_news = $database->execute("UPDATE `news` SET `title` = '$title', `description` = '$content', `status` = '$status', `pub` = '$pub' WHERE `id` = '".$_GET['id']."'"); if($add_news){ $smarty->assign("type", 'succ'); $smarty->assign("message", 'news edited successfully!'); }else{ $smarty->assign("type", 'err'); $smarty->assign("message", 'news can not be edited! Please check and try again.'); } } $smarty->display(END_PATH.'edit_news.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