YaWK  24.1
Yet another WebKit
update-generateLocalFilebase.php
Go to the documentation of this file.
1 <?php
2 use YAWK\db;
3 use YAWK\update;
4 include '../../system/classes/db.php';
5 include '../../system/classes/alert.php';
6 include '../../system/classes/language.php';
7 include '../../system/classes/settings.php';
8 include '../../system/classes/update.php';
9 /* set database object */
10 if (!isset($db))
11 { // create new db object
12  $db = new db();
13 }
14 if (!isset($lang))
15 { // create new language object
16  $language = new YAWK\language();
17  // init language
18  $language->init($db, "backend");
19  // convert object param to array !important
20  $lang = (array) $language->lang;
21 }
22 // prepare vars
23 $update = new update();
24 $update->generateLocalFilebase($db, (array)$lang);
print $lang['FILEMAN_UPLOAD']
Mysqli database class; returns db connection object.
Definition: db.php:16
The language class - support multilingual backend.
Definition: language.php:17
The update class - handles yawk's system update functions.
Definition: update.php:21
if(!isset($db)) if(!isset($lang)) $update