#1005 Fix undefined vars notices

This commit is contained in:
Ulrich Block 2017-06-06 14:35:51 +02:00
parent d93dcd3d70
commit f502b52818
6 changed files with 17 additions and 9 deletions

View File

@ -103,7 +103,7 @@ if ($ui->st('w', 'get') == 'lo') {
} else {
session_unset();
session_destroy();
redirect($pageurl . '/' . $ewInstallPath);
redirect((isset($pageurl)) ? $pageurl . '/' . $ewInstallPath : $ewInstallPath);
}
} else if ($ui->st('w', 'get') == 'ba') {

View File

@ -63,6 +63,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
if (!$ui->smallletters('action',2, 'post')) {
$foundlanguages = array();
$options = array();
foreach (getlanguages($template_to_use) as $row) {

View File

@ -44,7 +44,7 @@ class EasyWiFTP {
function __construct($ip, $port, $user, $pwd, $ssl = 'N') {
$this->ftpConnection = ($ssl == 'N') ? @ftp_connect($ip, $port, 5) : @ftp_ssl_connect($ip, $port, 5);
$this->ftpConnection = ($ssl == 'N') ? @ftp_connect($ip, $port, 10) : @ftp_ssl_connect($ip, $port, 5);
if ($this->ftpConnection) {
@ -69,7 +69,7 @@ class EasyWiFTP {
public function createSecondFTPConnect ($ip, $port, $user, $pwd, $ssl = 'N') {
$this->ftpSecondConnection = ($ssl == 'N') ? @ftp_connect($ip, $port, 5) : @ftp_ssl_connect($ip, $port, 5);
$this->ftpSecondConnection = ($ssl == 'N') ? @ftp_connect($ip, $port, 10) : @ftp_ssl_connect($ip, $port, 5);
if ($this->ftpSecondConnection) {
$ftpLogin = @ftp_login($this->ftpSecondConnection, $user, $pwd);

View File

@ -1,7 +1,7 @@
<section class="content-header">
<h1><?php echo $gsprache->imprint;?></h1>
<ol class="breadcrumb">
<li><a href="<?php echo $targetFile;?>"><i class="fa fa-home"></i> Home</a></li>
<li><a href="<?php echo (isset($targetFile) ? $targetFile : '../';?>"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-legal"></i> <?php echo $gsprache->imprint;?></li>
</ol>
</section>

View File

@ -511,9 +511,14 @@ class Monsta {
$year="";
// Split up array into values
$ff = preg_split("/[\s]+/",$ff,9);
$ff = preg_split("/[\s]+/", $ff, 9);
$perms = $ff[0];
if (!isset($ff[2])) {
continue;
}
$user = $ff[2];
$group = $ff[3];
$size = $ff[4];
@ -522,9 +527,11 @@ class Monsta {
$file = $ff[8];
// Check if file starts with a dot
$dot_prefix=0;
if (preg_match("/^\.+/",$file) && $_SESSION["monstaftp"][$this->serverID]["interface"] == "bas")
$dot_prefix=1;
$dot_prefix = 0;
if (preg_match("/^\.+/",$file) && $_SESSION["monstaftp"][$this->serverID]["interface"] == "bas") {
$dot_prefix = 1;
}
if ($file != "." && $file != ".." && $dot_prefix == 0) {