Update protokolle.php for new host

This commit is contained in:
Nils 2025-12-13 22:49:42 +01:00
parent 8102a1eb7a
commit b654e5eb68

View File

@ -6,11 +6,11 @@
<pre> <!-- Keep pure text line breaks --> <pre> <!-- Keep pure text line breaks -->
<?php <?php
$autoloadPath = '/home/meeehgru/vendor/autoload.php'; $autoloadPath = '/home/mvsoyrjv/vendor/autoload.php';
// Check if autoload.php file exists // Check if autoload.php file exists
if (!file_exists($autoloadPath)) { if (!file_exists($autoloadPath)) {
echo "<p>PHP Configuration changed. The autoload.php file is missing. Please run <code>composer install</code> or <code>composer require vstelmakh/url-highlight</code>. Please inform the osamc.de staff about this problem.</p>"; echo "<p>PHP Configuration changed. The autoload.php file is missing. Please run <code>composer install</code> or <code>composer require vstelmakh/url-highlight</code>. Please inform the köln.sonoj.org staff about this problem.</p>";
exit; // Stop script execution exit; // Stop script execution
} }
@ -18,7 +18,7 @@ require $autoloadPath;
// Check if UrlHighlight class exists using its fully qualified name // Check if UrlHighlight class exists using its fully qualified name
if (!class_exists('VStelmakh\UrlHighlight\UrlHighlight')) { if (!class_exists('VStelmakh\UrlHighlight\UrlHighlight')) {
echo "<p>PHP Configuration changed. Run <code>composer require vstelmakh/url-highlight</code>. Please inform the osamc.de staff about this problem.</p>"; echo "<p>PHP Configuration changed. Run <code>composer require vstelmakh/url-highlight</code>. Please inform the köln.sonoj.org staff about this problem.</p>";
exit; // Stop script execution exit; // Stop script execution
} }
@ -29,7 +29,7 @@ use VStelmakh\UrlHighlight\UrlHighlight;
// Main logic of the script starts here // Main logic of the script starts here
$urlHighlight = new UrlHighlight(); $urlHighlight = new UrlHighlight();
$files = glob("./protokolle/osamc_*.txt"); $files = glob("./protokolle/*.txt");
foreach(array_reverse($files) as $file){ foreach(array_reverse($files) as $file){
$path_parts = pathinfo($file); $path_parts = pathinfo($file);
echo "<h2>" . $path_parts['filename'] . "</h2>"; echo "<h2>" . $path_parts['filename'] . "</h2>";