<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><div style="margin: 0px; font-stretch: normal; line-height: normal;"><span style="font-variant-ligatures: no-common-ligatures; font-size: 11px;"><font face="Arial">Hallo Daniel et alii</font></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;"><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal;"><span style="font-variant-ligatures: no-common-ligatures; font-size: 11px;"><font face="Arial">die </font></span><span style="font-family: Menlo; font-size: 11px;">/var/www/volkszaehler.org/htdocs//middleware.php</span><span style="font-family: Arial; font-size: 11px;"> hat folgenden Inhalt:    </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;"><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal;"><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures; color: rgb(46, 174, 187);"><b>namespace</b></span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> Volkszaehler;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>use</b></span><span style="font-variant-ligatures: no-common-ligatures"> Symfony\Component\HttpFoundation\Request;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(192, 192, 192);"><span style="font-variant-ligatures: no-common-ligatures">define(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'VZ_DIR'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">, </span><span style="font-variant-ligatures: no-common-ligatures">realpath(</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">__DIR__ . </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'/..'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">));</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// default response if things go wrong</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(192, 192, 192);"><span style="font-variant-ligatures: no-common-ligatures">http_response_code(</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">500);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>require</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> VZ_DIR . </span><span style="font-variant-ligatures: no-common-ligatures"><b>'/lib/bootstrap.php'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(46, 174, 187);"><span style="font-variant-ligatures: no-common-ligatures">$router</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> = </span><span style="font-variant-ligatures: no-common-ligatures"><b>new</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">Router(</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// create Request from PHP global variables</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(192, 192, 192);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">$request</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> = Request::</span><span style="font-variant-ligatures: no-common-ligatures">createFromGlobals(</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// handle request</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(46, 174, 187);"><span style="font-variant-ligatures: no-common-ligatures">$response</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> = </span><span style="font-variant-ligatures: no-common-ligatures">$router</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">-></span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">handle(</span><span style="font-variant-ligatures: no-common-ligatures">$request</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(46, 174, 187);"><span style="font-variant-ligatures: no-common-ligatures">$response</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">-></span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">send(</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div><span style="font-variant-ligatures: no-common-ligatures; color: #000000"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures; color: #000000">für die </span><b style="caret-color: rgb(159, 160, 28); color: rgb(159, 160, 28); font-family: Menlo; font-size: 11px;">/lib/bootstrap.php</b> gibt es eine ganze Reihe von Kopien:</div><div><span style="font-family: Menlo; font-size: 11px;"><br></span></div><div><span style="font-family: Menlo; font-size: 11px;"># find / -name bootstrap.php -type f</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/lib/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-php81/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-mbstring/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-intl-grapheme/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-php73/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-intl-normalizer/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-ctype/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-php80/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/symfony/polyfill-php72/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/cboden/ratchet/tests/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/phpstan/phpstan/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/ringcentral/psr7/tests/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/ratchet/rfc6455/tests/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/home/pi/volkszaehler.org/vendor/webpatser/laravel-uuid/tests/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">/usr/share/php/phpseclib/bootstrap.php</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures; color: #000000"><div>Ich denke jedoch die tatsächlich verwendetet liegt unter:</div><div><span style="font-family: Menlo; font-size: 11px;"><br></span></div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">/home/pi/volkszaehler.org/lib/bootstrap.php</div></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;">Drin steht folgendes:</span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>use</b></span><span style="font-variant-ligatures: no-common-ligatures"> Volkszaehler\Util;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(46, 174, 187);"><span style="font-variant-ligatures: no-common-ligatures"><b>function</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">fail(</span><span style="font-variant-ligatures: no-common-ligatures">$msg</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">) {</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>        // JSON request?</b></span></div></span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(47, 180, 29);"><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000">       </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>if</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">preg_match(</span><span style="font-variant-ligatures: no-common-ligatures"><b>'/\.json/'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">, @</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">$_SERVER</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">[</span><span style="font-variant-ligatures: no-common-ligatures"><b>'REQUEST_URI'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">])) {</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000">                </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">header(</span><span style="font-variant-ligatures: no-common-ligatures"><b>'Content-type: application/json'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>echo</b></span><span style="font-variant-ligatures: no-common-ligatures"> </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">json_encode(</span><span style="font-variant-ligatures: no-common-ligatures">[</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                        </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'version'</b></span><span style="font-variant-ligatures: no-common-ligatures"> => VZ_VERSION,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                        </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'exception'</b></span><span style="font-variant-ligatures: no-common-ligatures"> => </span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d">array</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">(</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                                </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'message'</b></span><span style="font-variant-ligatures: no-common-ligatures"> => </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">$msg</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                        )</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                ]);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">die(</span><span style="font-variant-ligatures: no-common-ligatures">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">        }</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>        // normal request or command line</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">        </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>throw</b></span><span style="font-variant-ligatures: no-common-ligatures"> </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>new</b></span><span style="font-variant-ligatures: no-common-ligatures"> \</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">Exception(</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">$msg</span><span style="font-variant-ligatures: no-common-ligatures">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">}</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// enable strict error reporting</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">error_reporting(</span><span style="font-variant-ligatures: no-common-ligatures">E_ALL | E_STRICT);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// api version</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">define(</span><span style="font-variant-ligatures: no-common-ligatures"><b>'VZ_VERSION'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">, </span><span style="font-variant-ligatures: no-common-ligatures"><b>'0.3'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// Note: users of bootstrap.php can set VZ_DIR before calling bootstrap</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(192, 192, 192);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>if</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> (!</span><span style="font-variant-ligatures: no-common-ligatures">defined(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'VZ_DIR'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">)) {</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">        </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">define(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'VZ_DIR'</b></span><span style="font-variant-ligatures: no-common-ligatures">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">realpath(</span><span style="font-variant-ligatures: no-common-ligatures">__DIR__ . </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'/..'</b></span><span style="font-variant-ligatures: no-common-ligatures">));</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">}</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>if</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> (!</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">file_exists(</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">VZ_DIR . </span><span style="font-variant-ligatures: no-common-ligatures"><b>'/vendor/autoload.php'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">)) {</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000">        </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">fail(</span><span style="font-variant-ligatures: no-common-ligatures"><b>'Could not find autoloader. Check that dependencies have been installed via `composer install`.'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">}</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>if</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> (!</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">file_exists(</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">VZ_DIR . </span><span style="font-variant-ligatures: no-common-ligatures"><b>'/etc/config.yaml'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">)) {</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #000000">        </span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">fail(</span><span style="font-variant-ligatures: no-common-ligatures"><b>'Could not find config file. Check that etc/config.yaml exists.'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">}</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(159, 160, 28);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>require_once</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000"> VZ_DIR . </span><span style="font-variant-ligatures: no-common-ligatures"><b>'/vendor/autoload.php'</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// load configuration</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">Util\Configuration::</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">load(</span><span style="font-variant-ligatures: no-common-ligatures">VZ_DIR . </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'/etc/config.yaml'</b></span><span style="font-variant-ligatures: no-common-ligatures">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// set timezone</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">$tz</span><span style="font-variant-ligatures: no-common-ligatures"> = (Util\Configuration::</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">read(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'timezone'</b></span><span style="font-variant-ligatures: no-common-ligatures">)) ? Util\Configuration::</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">read(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'timezone'</b></span><span style="font-variant-ligatures: no-common-ligatures">) : @</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">date_default_timezone_get(</span><span style="font-variant-ligatures: no-common-ligatures">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(192, 192, 192);"><span style="font-variant-ligatures: no-common-ligatures">date_default_timezone_set(</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">$tz</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// set locale</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">setlocale(</span><span style="font-variant-ligatures: no-common-ligatures">LC_ALL, Util\Configuration::</span><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">read(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'locale'</b></span><span style="font-variant-ligatures: no-common-ligatures">));</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(64, 11, 217);"><span style="font-variant-ligatures: no-common-ligatures"><b>// force numeric output to C convention (issue #121)</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: #c0c0c0">setlocale(</span><span style="font-variant-ligatures: no-common-ligatures">LC_NUMERIC, </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c"><b>'C'</b></span><span style="font-variant-ligatures: no-common-ligatures">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div><div style="margin: 0px; font-stretch: normal; line-height: normal;"><span style="font-variant-ligatures: no-common-ligatures"><b>?></b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></div></div></span></div><div>Und nicht zuletzt ist ein Link wie folgt gesetzt:</div><div><br></div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">lrwxrwxrwx 1 root root 25 16. Apr 2022  </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb"><b>/var/www/volkszaehler.org</b></span><span style="font-variant-ligatures: no-common-ligatures"> -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #400bd9"><b>/home/pi/volkszaehler.org</b></span></div></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;">Das sieht erst mal unauffällig aus - was siehst Du darin ggf?</span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;">Der einzige Abweichung konnte ich in ~/volkszaehler.org/htdocs/js/options.js finden - da war url:’’ auskommentiert. Das hab ich jetzt geändert.</span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">        middleware: [</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                {</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        title: </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9"><b>'Local (default)'</b></span><span style="font-variant-ligatures: no-common-ligatures">,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        url: </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9"><b>''</b></span><span style="font-variant-ligatures: no-common-ligatures">,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        url: </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9"><b>'api'</b></span><span style="font-variant-ligatures: no-common-ligatures">,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        live: </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">8082</span><span style="font-variant-ligatures: no-common-ligatures">  </span></div></span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;">Das hat nicht geholfen.</span></div><div><span style="font-variant-ligatures: no-common-ligatures;">Freue mich über Tipps…</span></div><div><span style="font-variant-ligatures: no-common-ligatures;"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures;">Viele Grüße</span></div><div><span style="font-variant-ligatures: no-common-ligatures;">Armin</span></div></span></div><div class="AppleOriginalContents" style="direction: ltr;"><br><blockquote type="cite"><div>Am 04.09.2023 um 15:09 schrieb Daniel Lauckner <vz@jahp.de>:</div><br class="Apple-interchange-newline"><div><div>Hallo,<br class=""><br class=""><br class="">am Sonntag, 3. September 2023 um 12:28 hat applicationMGR ecoCuyo geschrieben:<br class=""><blockquote type="cite" class="">habe nach einem Datenbank Crash die Volkszähler DB mit purge entfernt und wieder neu installiert. Sowie die Middleware mit install.sh neu installiert.<br class=""></blockquote><br class="">Wie ist bei dir der Middleware bzw. der Webserver konfiguriert?<br class="">Letzte Empfehlung war PHP-PM und Apache als Proxy.<br class=""><br class=""><blockquote type="cite" class="">Im Safari-Debugger kommt der Fehler im Betreff oben und verweist auf http://<ip-des servers>/api/channel.json<br class="">Im code hängt das ganze dann hier fest:<br class=""></blockquote><br class="">Die Fehlermeldung sagt mir nix konkretes. Das spricht meist für einen Fehler beim Composer.<br class="">Mal bitte wieder holen und schauen was an möglichen Störungen auftritt:<br class=""><br class="">cd /var/www/volkszaehler.org/<br class="">composer update<br class=""><br class=""><blockquote type="cite" class="">Die User Rechte sollten so stimmen, nehm ich an?<br class=""></blockquote><br class="">Ja, das passt.<br class="">Wenn du es zusätzlich ausschließen möchtest kannst du mal in ./ect/config.yaml bei 'user:' und 'password:' die Zugangsdaten vom vz_admin eintragen.<br class=""><br class=""><br class="">mfg Daniel<br class=""><br class=""></div></div></blockquote></div><br></div></body></html>