Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 1430537

Browse files
committed
Fixed PHP 8.0 compatibility when using SMTP
Fixed a fatal error when using the setup
1 parent 5bc5717 commit 1430537

File tree

9 files changed

+6
-5
lines changed

9 files changed

+6
-5
lines changed

dokumente/backup/index.html

100644100755
File mode changed.

dokumente/index.html

100644100755
File mode changed.

dokumente/logs/index.html

100644100755
File mode changed.

dokumente/upload/index.html

100644100755
File mode changed.

images/index.html

100644100755
File mode changed.

images/thumbs/index.html

100644100755
File mode changed.

lib/classes/class.smtp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public function Data($msg_data) {
385385

386386
$max_line_length = 998; // used below; set here for ease in change
387387

388-
while(list(,$line) = @each($lines)) {
388+
foreach (array_keys($lines) as $line) {
389389
$lines_out = null;
390390
if($line == "" && $in_headers) {
391391
$in_headers = false;
@@ -414,7 +414,7 @@ public function Data($msg_data) {
414414
$lines_out[] = $line;
415415

416416
// send the lines to the server
417-
while(list(,$line_out) = @each($lines_out)) {
417+
foreach (array_keys($lines_out) as $line_out) {
418418
if(strlen($line_out) > 0)
419419
{
420420
if(substr($line_out, 0, 1) == ".") {

lib/classes/intern_user_class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function make_inhalt()
216216
$sql = "SELECT username FROM " . $this->cms->papoo_user . " WHERE username='" . $this->db->escape($this->checked->neuusername) . "' LIMIT 1 ";
217217
$resultname = $this->db->get_results($sql);
218218
// wenn ja, dann Fehler auswerfen
219-
if (@count($resultname) > 0) {
219+
if (is_array($resultname) && count($resultname) > 0) {
220220
$this->content->template['text_error'] = $this->content->template['message_51'];
221221
} // wenn nicht dann eintragen
222222
else {

setup/lang_file_de.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
//require_once __DIR__ . "/../lib/version.php";
3+
require_once __DIR__ . "/../lib/version.php";
44

55
$message1="";
66
//Willkommen zum Setup Ihres Papoo CMS Version 1.1
@@ -788,7 +788,8 @@ interface could display a &quot;Source&quot; link that leads users to an archive
788788
if (empty($_SERVER['HTTP_REFERER']))$_SERVER['HTTP_REFERER']="";
789789
if (empty($_SESSION['isinstall'])){$serverdat = $_SERVER['HTTP_REFERER']."\n Memory limit:".ini_get("memory_limit")."\n PHP Version".phpversion()."\n MySQL Version".$mysql;
790790
if(!empty($serverdat)){$serverdat=str_replace('setup/index.html',"",$serverdat);}
791-
@mail('info@papoo.de','Installation Versuch - ' . PAPOO_EDITION, $serverdat );$_SESSION['isinstall'] = "ok";}
791+
@mail('info@papoo.de','Installation Versuch - ' . PAPOO_EDITION, $serverdat );$_SESSION['isinstall'] = "ok";
792+
}
792793
$message21='
793794
<h1 class="weiter" style="background-color:red; font-size:200%;color:black;">
794795
Schritt 4: -- ACHTUNG -- Diese Datenbank-Tabellen existieren bereits.</h1>

0 commit comments

Comments
 (0)