PHP Classes

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

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/admin/translations/actions/edit.php   Download  
File: uploady/admin/translations/actions/edit.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: 11 days ago
Size: 426 bytes
 

Contents

Class file image Download
<?php

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

if (
$_SERVER['REQUEST_METHOD'] == "POST") {

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

   
$translation = new Uploady\PageTranslation($db);
   
$translation->updateTranslation($_POST);
   
$utils->redirect(SITE_URL . '/admin/translations/view.php?msg=translation_updated');
}