Seite 1 von 1

Funktionstest: Bookmarks 2.94

Verfasst: Di 8. Jul 2014, 11:41
von shadowcat
Name des Moduls:
Bookmarks

Quelle:
http://www.websitebakers.com/media/amas ... _v2.94.zip

Getestete Version:
2.94

Getestet mit BlackCat Version:
1.0.3

Ergebnis Installation:
OK

Ergebnis Seite hinzufügen (bei Seitenmodul):
OK

Darstellung im Frontend:
OK

Darstellung im Backend:
Soweit okay, es fehlen einige Icons (Korrektur in freshcat erforderlich)

Sonstige Beobachtungen:

Backend -> Hilfe -> Umlaute werden falsch dargestellt

Backend -> Link hinzufügen

Bei der Bildauswahl findet sich statt eines Dropdowns folgender Text:
query("SELECT pic_loc FROM ".TABLE_PREFIX."mod_bookmarks_settings WHERE section_id = '$section_id'"); if($query_content->numRows() > 0) { $fetch_settings = $query_content->fetchRow(); $pic_loc = $fetch_settings['pic_loc']; } if ($pic_loc == "") { $file_dir = ""; } else { $file_dir= WB_PATH . $pic_loc; } $check_pic_dir=is_dir("$file_dir"); if ($check_pic_dir=='1') { $pic_dir=opendir($file_dir); echo "\n"; echo "\n"; while ($file=readdir($pic_dir)) { if ($file != "." && $file != "..") { if (ereg(".gif|.GIF|.jpg|.JPG|.png|.PNG|.jpeg|.JPEG",$file)) { echo "\n"; } } } echo "\n"; } else { Echo $BMTEXT['DIRECTORY'].$pic_loc.$BMTEXT['NOT_EXIST']; } ?>
Ursache: short_open_tag (<? statt <?php); wenn die Option in der php.ini auf Off gesetzt ist, wird der Code nicht als Code interpretiert, sondern als Text ausgegeben.
Abhilfe: Datei modify_link.php Zeile 74 <? ersetzen durch <?php
Hierzu noch ein Hinweistext aus der php.ini (XAMPP): "It's been recommended for several years that you not use the short tag "short cut" and instead to use the full <?php and ?> tag combination. With the wide spread use of XML and use of these tags by other languages, the server can become easily confused and end up parsing the wrong code in the wrong context."

In modify_settings.php gibt es ebenfalls ein paar Stellen, die entsprechend korrigiert werden müssen.

Re: Funktionstest: Bookmarks 2.94

Verfasst: Di 8. Jul 2014, 11:53
von shadowcat
Hier eine gefixte Version 2.95.