mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#1005 Fix undefined vars notices
This commit is contained in:
parent
d93dcd3d70
commit
f502b52818
@ -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') {
|
||||
|
@ -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) {
|
||||
|
||||
|
@ -614,4 +614,4 @@ if ($ui->st('d', 'get') == 'ad' or $ui->st('d', 'get') == 'md') {
|
||||
configureDateTables('-1', '1, "asc"', 'ajax.php?w=datatable&d=webmasterserver');
|
||||
|
||||
$template_file = 'admin_web_master_list.tpl';
|
||||
}
|
||||
}
|
@ -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);
|
||||
|
@ -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>
|
||||
|
15
third_party/monstaftp/class_monstaftp.php
vendored
15
third_party/monstaftp/class_monstaftp.php
vendored
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user