PHP Classes

File: uploady/admin/translations/actions/delete.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/admin/translations/actions/delete.php   Download  
File: uploady/admin/translations/actions/delete.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Uploady PHP Upload File to MySQL
Store file upload details in a MySQL database
Author: By
Last change: refactor
Code refactor
update permission to 755
Date: 4 months ago
Size: 608 bytes


Class file image Download

include_once '../../session.php';

$PageTranslation = new Uploady\PageTranslation($db);

if (

    if (!
$auth->checkToken($_POST['csrf'], $_SESSION['csrf'])) {
$utils->redirect(SITE_URL . "/admin/translations/view.php?msg=csrf");

    foreach (
$_POST['translations'] as $translation) {
        if (!
$PageTranslation->deleteTranslation($translation)) {
$utils->redirect(SITE_URL . "/admin/translations/view.php?msg=forbidden");

$utils->redirect(SITE_URL . "/admin/translations/view.php?msg=translation_deleted");