ftp_ansicht repariert und neues msd

This commit is contained in:
aschwarz
2023-02-11 15:24:36 +01:00
parent f104df7f3b
commit 3dcc93a65d
681 changed files with 96753 additions and 24555 deletions

View File

@ -4,7 +4,7 @@
MyOOS [Dumper]
http://www.oos-shop.de/
Copyright (c) 2016 by the MyOOS Development Team.
Copyright (c) 2013 - 2022 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
@ -18,41 +18,101 @@
define('OOS_VALID_MOD', true);
if (!@ob_start("ob_gzhandler")) @ob_start();
include_once ('./inc/header.php');
include_once ('./inc/runtime.php');
include_once ('./language/'.$config['language'].'/lang_main.php');
include ('./inc/template.php');
error_reporting(E_ALL & ~E_STRICT);
$action=(isset($_GET['action'])) ? $_GET['action'] : 'status';
if ($action=='phpinfo')
{
// output phpinfo
echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
phpinfo();
echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
exit();
if (function_exists('ini_set')) {
ini_set('display_errors', true);
}
if (!@ob_start('ob_gzhandler')) {
@ob_start();
}
use VisualAppeal\AutoUpdate;
$autoloader = require_once './vendor/autoload.php';
include_once './inc/header.php';
include_once './inc/runtime.php';
include_once './language/'.$config['language'].'/lang_main.php';
include './inc/template.php';
$action = (isset($_GET['action'])) ? $_GET['action'] : 'status';
if ('phpinfo' == $action) {
// output phpinfo
echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
phpinfo();
echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
exit();
}
if (isset($_POST['htaccess']) || 'schutz' == $action) {
include './inc/home/protection_create.php';
}
if ('edithtaccess' == $action) {
include './inc/home/protection_edit.php';
}
if ('deletehtaccess' == $action) {
include './inc/home/protection_delete.php';
}
$check_update = false;
if (extension_loaded('zlib')) {
$update = new AutoUpdate($config['paths']['temp'], $config['paths']['root'], 60);
$update->setCurrentVersion(MOD_VERSION);
// Replace with your server update directory
$update->setUpdateUrl('https://oos-shop.de/modserver');
// Custom logger (optional)
$logger = new \Monolog\Logger("default");
$logger->pushHandler(new Monolog\Handler\StreamHandler($config['paths']['log'] . 'update.log'));
$update->setLogger($logger);
// Cache (optional but recommended)
$cache = new Desarrolla2\Cache\File($config['paths']['cache']);
$update->setCache($cache, 3600);
// Check for a new update
if ($update->checkUpdate() === false) {
// die('Could not check for updates! See log file for details.');
$check_update = false;
} else {
$check_update = true;
}
if ('update' == $action) {
echo MODHeader();
require_once './inc/home/update.php';
echo MODFooter();
exit;
}
}
if (isset($_POST['htaccess'])||$action=='schutz') include ('./inc/home/protection_create.php');
if ($action=='edithtaccess') include ('./inc/home/protection_edit.php');
if ($action=='deletehtaccess') include ('./inc/home/protection_delete.php');
// Output headnavi
$tpl=new MSDTemplate();
$tpl->set_filenames(array(
'show' => 'tpl/home/headnavi.tpl'));
$tpl->assign_vars(array(
'HEADER' => MSDHeader(),
'HEADLINE' => headline('Home')));
$tpl = new MODTemplate();
$tpl->set_filenames([
'show' => 'tpl/home/headnavi.tpl', ]);
$tpl->assign_vars([
'HEADER' => MODHeader(),
'HEADLINE' => headline($lang['L_HOME']), ]);
$tpl->pparse('show');
MSD_mysql_connect();
if ($action=='status') include ('./inc/home/home.php');
elseif ($action=='db') include ('./inc/home/databases.php');
elseif ($action=='sys') include ('./inc/home/system.php');
elseif ($action=='vars') include ('./inc/home/mysql_variables.php');
mod_mysqli_connect();
if ('status' == $action) {
include './inc/home/home.php';
} elseif ('db' == $action) {
include './inc/home/databases.php';
} elseif ('sys' == $action) {
include './inc/home/system.php';
} elseif ('vars' == $action) {
include './inc/home/mysql_variables.php';
}
echo MSDFooter();
echo MODFooter();
ob_end_flush();
exit();