PHP Classes

File: uploady/admin/languages/actions/changeStatus.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/admin/languages/actions/changeStatus.php   Download  
File: uploady/admin/languages/actions/changeStatus.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
update permission to 755
Date: 4 months ago
Size: 422 bytes
 

Contents

Class file image Download
<?php

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

$loclizer = new Uploady\Localization($db);

$lang = $_GET['lang'];
$staus = $_GET['status'];

if (
$staus == "active") {
   
$loclizer->activateLanguage($lang);
   
$utils->redirect(SITE_URL . "/admin/languages/view.php?msg=language_enabled");
} else {
   
$loclizer->deactivateLanguage($lang);
   
$utils->redirect(SITE_URL . "/admin/languages/view.php?msg=language_disabled");
}