<?php
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
define('JPATH_BASE', dirname(dirname(dirname(dirname(__FILE__)))) . DS . 'administrator');
require_once dirname(dirname(__FILE__)) . DS . 'library' . DS . 'Artx.php';
require_once JPATH_BASE . DS . 'includes' . DS . 'defines.php';
require_once JPATH_BASE . DS . 'includes' . DS . 'framework.php';
require_once JPATH_BASE . DS . 'includes' . DS . 'helper.php';
require_once JPATH_BASE . DS . 'includes' . DS . 'toolbar.php';
$app = JFactory::getApplication('administrator');
$app->initialise(array('language' => $app->getUserState('application.lang', 'lang')));
// checking user privileges
$user = JFactory::getUser();
$groups = $user->get("groups");
if (!(isset($groups["Super Users"]) || isset($groups[8])) && !(isset($groups["Administrator"]) || isset($groups[7])))
exit('error:2:Installing content requires administrator privileges.');
Artx::load('Artx_Data_Loader');
$loader = new Artx_Data_Loader();
$loader->load('data.xml');
echo $loader->execute($_GET);
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| data.xml | 2014-08-08 15:12 | 2.89 KB | 76129f60960:kunden | -xw-x----- | |
| install.php | 2014-08-08 15:12 | 1.04 KB | 76129f60960:kunden | -xw-x----- | |
| loader.js | 2014-08-08 15:12 | 3.8 KB | 76129f60960:kunden | -xw-x----- | |
| success.html | 2014-08-08 15:12 | 842 B | 76129f60960:kunden | -xw-x----- | |
| warning.html | 2014-08-08 15:12 | 1.26 KB | 76129f60960:kunden | -xw-x----- | |