mirror of
https://codeberg.org/Sonoj/osamc.de
synced 2025-12-27 00:55:32 +01:00
Update protokolle.php for new host
This commit is contained in:
parent
8102a1eb7a
commit
b654e5eb68
@ -6,11 +6,11 @@
|
||||
<pre> <!-- Keep pure text line breaks -->
|
||||
<?php
|
||||
|
||||
$autoloadPath = '/home/meeehgru/vendor/autoload.php';
|
||||
$autoloadPath = '/home/mvsoyrjv/vendor/autoload.php';
|
||||
|
||||
// Check if autoload.php file exists
|
||||
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
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ require $autoloadPath;
|
||||
|
||||
// Check if UrlHighlight class exists using its fully qualified name
|
||||
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
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ use VStelmakh\UrlHighlight\UrlHighlight;
|
||||
// Main logic of the script starts here
|
||||
$urlHighlight = new UrlHighlight();
|
||||
|
||||
$files = glob("./protokolle/osamc_*.txt");
|
||||
$files = glob("./protokolle/*.txt");
|
||||
foreach(array_reverse($files) as $file){
|
||||
$path_parts = pathinfo($file);
|
||||
echo "<h2>" . $path_parts['filename'] . "</h2>";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user