#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 { } else {
session_unset(); session_unset();
session_destroy(); session_destroy();
redirect($pageurl . '/' . $ewInstallPath); redirect((isset($pageurl)) ? $pageurl . '/' . $ewInstallPath : $ewInstallPath);
} }
} else if ($ui->st('w', 'get') == 'ba') { } 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')) { if (!$ui->smallletters('action',2, 'post')) {
$foundlanguages = array(); $foundlanguages = array();
$options = array();
foreach (getlanguages($template_to_use) as $row) { foreach (getlanguages($template_to_use) as $row) {

View File

@ -44,7 +44,7 @@ class EasyWiFTP {
function __construct($ip, $port, $user, $pwd, $ssl = 'N') { 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) { if ($this->ftpConnection) {
@ -69,7 +69,7 @@ class EasyWiFTP {
public function createSecondFTPConnect ($ip, $port, $user, $pwd, $ssl = 'N') { 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) { if ($this->ftpSecondConnection) {
$ftpLogin = @ftp_login($this->ftpSecondConnection, $user, $pwd); $ftpLogin = @ftp_login($this->ftpSecondConnection, $user, $pwd);

View File

@ -1,7 +1,7 @@
<section class="content-header"> <section class="content-header">
<h1><?php echo $gsprache->imprint;?></h1> <h1><?php echo $gsprache->imprint;?></h1>
<ol class="breadcrumb"> <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> <li class="active"><i class="fa fa-legal"></i> <?php echo $gsprache->imprint;?></li>
</ol> </ol>
</section> </section>

View File

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