LinkModul: Icons, Intern/Extern, Beschreibung, Größe, Target

Gesperrt
derSteffen
Beiträge: 847
Registriert: Mi 14. Dez 2005, 16:15
Wohnort: Königs Wusterhausen bei Berlin
Kontaktdaten:

LinkModul: Icons, Intern/Extern, Beschreibung, Größe, Target

Beitrag von derSteffen » Do 8. Nov 2012, 21:33

Hallo Community,

ich habe hier mal vor längerer Zeit ein Link-Modul gefunden und das heute angepasst und erweitert (für eine 4.8.18 mit AMR).

Ideal um unterhalb von Texten auf weitere Infos zu verweisen, entweder interne Seiten, externe Seite, Dateien

Zur Zeit kann man drei Links erstellen.

Bei jedem Link wird
- das passenden Datei-Icon angezeigt (Icons müssen selbst besorgt werden)
- bei internen Dateien wird die Dateigröße angezeigt (Bytes, KB, MB, GB)
- letzte Änderung der Datei in der Datenbank
- bei externen Dateien und externen Verlinkungen wird im Titel Tag "Externer Link (neues Fenster)" angezeigt und es wird in einem neuen Fenster geöffnet
- bei internen Dateien wird im Titel Tag "Interner Link (neues Fenster)" angezeigt und es wird in einem neuen Fenster geöffnet
- bei internen Webseitenverlinkungen wird im Titel Tag "Interner Link" angezeigt und es wird im selben Fenster geöffnet
- sobald ein Link eine Beschreibung hat, wird auf der Webseite "Mehr Informationen" mit einer <HR />-Linie angezeigt und dann folgen die Links
- wird auf eine interne Datei verlinkt und diese aus der Dateiverwaltung gelöscht, bleibt der Link bestehen, dafür erscheint aber ein Hinweis auf der Webseite, dass die Datei dort nicht mehr existiert -> Achtung, in diesem Fall gibt es auch eine PHP-Warnung das filesize nicht funktioniert in diesem Fall. Diese PHP-Fehlereldung habe ich askommentier

WICHTIG: Das Modul und die LINKS funktioneren nur wenn etwas in der Beschreibung steht!

UPDATE 11.01.2013 Jetzt wird auch das Änderungsdatum der Datei angezeigt
UPDATE 21.01.2013 Änderungsdatum / Erstellungsadatum zur Datei mit absoluten Pfad hinterlegt (auf einigen Servern gab es Probleme)

OUTPUT:

Code: Alles auswählen

    <?php

    // Sobald eine Linkdescription hinterlegt worden ist, erscheint diese Überschrift und Linie
    if (("CMS_LINKDESCR[12]" != "") || ("CMS_LINKDESCR[13]" != "") || ("CMS_LINKDESCR[14]" != "")) {
    echo "<br /><span class=\"moreinformation\">".mi18n("More Information:")."</span>";
	if ($edit) {
echo "<br /><span class=\"beinfo\">Hinweis: eine Beschreibung pro Verlinkung muss immer angegeben werden!</span>";
}
	echo "<hr class=\"moreinformation\" />";
    }

    if ("CMS_LINK[12]" != "")

    $filebesc = "CMS_LINKDESCR[12]";
    $fileende = 'CMS_LINK[12]';
    $filestart = 'CMS_LINK[12]';
    $filepfad = 'CMS_LINK[12]';
    // Icons vor den jeweiligen Links (Ordner für die Icons sollte sich unter cms/images/ befinden und filetypes heißen)
    $desjpg = "<img src=\"images/filetypes/jpg.gif\" width=\"16\" height=\"16\" alt=\"JPEG\" title=\"JPEG\" class=\"icon\" />";
    $desgif = "<img src=\"images/filetypes/gif.gif\" width=\"16\" height=\"16\" alt=\"GIF\" title=\"GIF\" class=\"icon\" />";
    $despng = "<img src=\"images/filetypes/png.gif\" width=\"16\" height=\"16\" alt=\"PNG\" title=\"PNG\" class=\"icon\" />";
    $desppt = "<img src=\"images/filetypes/ppt.gif\" width=\"16\" height=\"16\" alt=\"PowerPoint\" title=\"PowerPoint\" class=\"icon\" />";
    $desxls = "<img src=\"images/filetypes/exel.gif\" width=\"16\" height=\"16\" alt=\"EXCEL\" title=\"EXCEL\" class=\"icon\"/>";
    $desdoc = "<img src=\"images/filetypes/word.gif\" width=\"16\" height=\"16\" alt=\"WORD\" title=\"WORD\" class=\"icon\"/>";
    $despdf = "<img src=\"images/filetypes/pdf.gif\" width=\"16\" height=\"16\" alt=\"PDF\" title=\"PDF\" class=\"icon\" />";
    $destxt = "<img src=\"images/filetypes/txt.gif\" width=\"16\" height=\"16\" alt=\"Text\" title=\"Text\" class=\"icon\" />";
    $deszip = "<img src=\"images/filetypes/zip.gif\" width=\"16\" height=\"16\" alt=\"ZIP\" title=\"ZIP\" class=\"icon\" />";
    $deshtml = "<img src=\"images/filetypes/html.gif\" width=\"16\" height=\"16\" alt=\"Externe Webseite\" title=\"Externe Webseite\" class=\"icon\" />";
    $desexternspecial= "<img src=\"images/filetypes/mobile_de.gif\" width=\"16\" height=\"16\" alt=\"externe Spezial-Seite\" title=\"externe Spezial-Seite\" class=\"icon\" />";
    $desunknown = "<img src=\"images/filetypes/unknown.gif\" width=\"16\" height=\"16\" alt=\"Unbekannte externe Verlinkung\" title=\"Unbekannte externe Verlinkung\" class=\"icon\" />";
    $desunknownintern = "<img src=\"images/filetypes/unknown.gif\" width=\"16\" height=\"16\" alt=\"Unbekannte interne Verlinkung\" title=\"Unbekannte interne Verlinkung\" class=\"icon\" />";
    $deshtmlintern = "<img src=\"images/filetypes/htmlintern.gif\" width=\"16\" height=\"16\" alt=\"Interne Webseite\" title=\"Interne Webseite\" class=\"icon\" />";
    // Für Ausnahmeregelungen gedacht
    $externspecialsite = "http://eine-spezielle-externe-webseite";

    // JAVASCRPT-Anpassung
    $anpassendl = "title=\"".mi18n("Extern Link, will be open in an new window:")." ";
    $anpassendlin = "title=\"".mi18n("Intern Link:")." ";
    $opennewwindow = "\" onclick=\"window.open(this.href); return false;\"";
    $selfwindow = "\"";

    $label = substr("$fileende", -4, 4);
    $labelshort = substr("$fileende", -3, 3);
    $labellong = substr("$fileende", -5, 5);
    $labelextralong = substr("$fileende", -6, 6);
    $start = substr("$filestart", 0, 4);
    $startintern = substr("$filestart", 0, 17);
    $startfile = substr("$filestart", 0, 7);
    $startextra = substr("$filestart", 0, 7);

    if (($label == ".jpg") OR ($label == ".gif") OR ($label == ".png") OR ($label == ".ppt") OR ($label == ".xls") OR ($label == ".dot") OR ($label == ".doc") OR ($label == ".pdf") OR ($label == ".txt") OR ($label == ".zip"))
    {
    // Dateilink umwandeln in absoluten Pfad, damit filesize greifen kann
    $datei = 'CMS_LINK[12]';
    $datei = str_replace($_SERVER["HTTP_HOST"], $_SERVER["DOCUMENT_ROOT"], $datei);
    $datei = str_replace('http://', '', $datei);
    $datei = str_replace('//', '/', $datei);

	// Datum Datei
	// Geandert
	$file_modified = date("d.m.Y", filemtime($datei));
	// Erstellt
    $file_created  = date("d.m.Y", filectime($datei));

    // Dateigroesse - Hinweis: Wenn auf eine interne Datei verlinkt wurde und dies geloescht wurde under Link noch besteht gibt es eine Fehlermeldung bzgl. filesize. Mit dem @ in der naechsten Zeile wird die PHP Warnung unterdrueckt. Dafuer erscheint auf der Webseite ein Hinweis, dass die Datei geloescht wurde.
    $dateigroesse = @filesize($datei);

    if ($dateigroesse >= 1) {

    $measure = " Byte";
    if ($dateigroesse >= 1024)
    {
      $measure = " KB";
      $dateigroesse = $dateigroesse / 1024;
    }
    if ($dateigroesse >= 1024)
    {
      $measure = " MB";
      $dateigroesse = $dateigroesse / 1024;
    }
    if ($dateigroesse >= 1024)
    {
      $measure = " GB";
      $dateigroesse = $dateigroesse / 1024;
    }
    $dateigroesse = sprintf("%01.1f", $dateigroesse);
    }
    else {
    $dateigroesse = "".mi18n("<span class=\"red\"><strong>Achtung:</strong> Dieser Link ist leider fehlerhaft. Die Datei wurde gel&ouml;scht oder befindet sich an anderer Stelle.</span>")."";
    $measure = "";
    }
    }

    if ("CMS_LINKDESCR[12]" != "") {		

    if (($label == ".jpg") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desjpg"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".jpg") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desjpg"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".gif") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desgif"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".gif") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desgif"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".png") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$despng"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".png") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$despng"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".ppt") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desppt"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".ppt") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desppt"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".xls") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desxls"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".xls") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desxls"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".doc") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".doc") AND ($startfile != "upload/") AND ($start != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".dot") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".dot") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".pdf") AND ($startfile == "upload/") AND ($startextra != $externspecialsite)) 
      {
        echo "$despdf"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".pdf") AND ($start != "upload/") AND ($startextra != $externspecialsite)) 
      {
        echo "$despdf"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".txt") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$destxt"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".txt") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$destxt"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($label == ".zip") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$deszip"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".zip") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$deszip"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
      // INTERNE SEITEN
    if ($startintern == 'front_content.php') 
      {
        echo "$deshtmlintern"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] $selfwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if ((($label == ".htm") OR ($labellong == ".html") OR ($label == ".php") OR ($label == ".com") OR ($labellong == ".com/") OR ($label == ".net") OR ($labellong == ".net/") OR ($label == ".biz")  OR ($labellong == ".biz/") OR ($label == ".org")  OR ($labellong == ".org/") OR ($labelshort == ".de") OR ($label == ".de/") OR ($labelshort == ".eu") OR ($label == ".eu/") OR ($labelshort == ".at") OR ($label == ".at/") OR ($labelshort == ".pl") OR ($label == ".pl/") OR ($labelshort == ".ch") OR ($label == ".ch/") OR ($labelshort == ".dk") OR ($label == ".dk/") OR ($labelshort == ".it") OR ($label == ".it/") OR ($labellong == ".info") OR ($labelextralong == ".info/") OR ($labellong == ".mobil") OR ($labelextralong == ".mobil/")  OR ($labellong == ".name") OR ($labelextralong == ".name/")) AND ($startintern != 'front_content.php') AND ($startextra != $externspecialsite))
      {
        echo "$deshtml"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if ($startextra == "http://eine-spezielle-externe-webseitee")
      {
        echo "$desmobil"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
      else
      {
    if (($startintern != 'front_content.php') AND ($startextra != $externspecialsite)) 
      {
        echo "$desunknown"; echo " <a href=\"CMS_LINK[12]\" $anpassendl CMS_LINKTITLE[12] - Datei-Format: $label $opennewwindow>CMS_LINKDESCR[12]</a>";
      }
    else
    if (($startintern == 'front_content.php') AND ($startextra != $externspecialsite)) 
      { 
        echo "$desunknownintern"; echo " <a href=\"CMS_LINK[12]\" $anpassendlin CMS_LINKTITLE[12] - Datei-Format: $label $selfwindow>CMS_LINKDESCR[12]</a>";
    }
    }
    }
    }
    } 
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    ?>
    <?php

    if (("CMS_LINKDESCR[12]" != "") AND ("CMS_LINKDESCR[13]" != "")) {echo "<br />";}

    if ("CMS_LINKDESCR[13]" != "")

    $filebesc = "CMS_LINKDESCR[13]";
    $fileende = 'CMS_LINK[13]';
    $filestart = 'CMS_LINK[13]';
    $filepfad = 'CMS_LINK[13]';
    $desjpg = "<img src=\"images/filetypes/jpg.gif\" width=\"16\" height=\"16\" alt=\"JPEG\" title=\"JPEG\" class=\"icon\" />";
    $desgif = "<img src=\"images/filetypes/gif.gif\" width=\"16\" height=\"16\" alt=\"GIF\" title=\"GIF\" class=\"icon\" />";
    $despng = "<img src=\"images/filetypes/png.gif\" width=\"16\" height=\"16\" alt=\"PNG\" title=\"PNG\" class=\"icon\" />";
    $desppt = "<img src=\"images/filetypes/ppt.gif\" width=\"16\" height=\"16\" alt=\"PowerPoint\" title=\"PowerPoint\" class=\"icon\" />";
    $desxls = "<img src=\"images/filetypes/exel.gif\" width=\"16\" height=\"16\" alt=\"EXCEL\" title=\"EXCEL\" class=\"icon\"/>";
    $desdoc = "<img src=\"images/filetypes/word.gif\" width=\"16\" height=\"16\" alt=\"WORD\" title=\"WORD\" class=\"icon\"/>";
    $despdf = "<img src=\"images/filetypes/pdf.gif\" width=\"16\" height=\"16\" alt=\"PDF\" title=\"PDF\" class=\"icon\" />";
    $destxt = "<img src=\"images/filetypes/txt.gif\" width=\"16\" height=\"16\" alt=\"Text\" title=\"Text\" class=\"icon\" />";
    $deszip = "<img src=\"images/filetypes/zip.gif\" width=\"16\" height=\"16\" alt=\"ZIP\" title=\"ZIP\" class=\"icon\" />";
    $deshtml = "<img src=\"images/filetypes/html.gif\" width=\"16\" height=\"16\" alt=\"Externe Webseite\" title=\"Externe Webseite\" class=\"icon\" />";
    $desexternspecial= "<img src=\"images/filetypes/mobile_de.gif\" width=\"16\" height=\"16\" alt=\"externe Spezial-Seite\" title=\"externe Spezial-Seite\" class=\"icon\" />";
    $desunknown = "<img src=\"images/filetypes/unknown.gif\" width=\"16\" height=\"16\" alt=\"Unbekannte externe Verlinkung\" title=\"Unbekannte externe Verlinkung\" class=\"icon\" />";
    $desunknownintern = "<img src=\"images/filetypes/unknown.gif\" width=\"16\" height=\"16\" alt=\"Unbekannte interne Verlinkung\" title=\"Unbekannte interne Verlinkung\" class=\"icon\" />";
    $deshtmlintern = "<img src=\"images/filetypes/htmlintern.gif\" width=\"16\" height=\"16\" alt=\"Interne Webseite\" title=\"Interne Webseite\" class=\"icon\" />";

    $externspecialsite = "http://eine-spezielle-externe-webseite";

    // JAVASCRPT-Anpassung
    $anpassendl = "title=\"".mi18n("Extern Link, will be open in an new window:")." ";
    $anpassendlin = "title=\"".mi18n("Intern Link:")." ";
    $opennewwindow = "\" onclick=\"window.open(this.href); return false;\"";
    $selfwindow = "\"";

    $label = substr("$fileende", -4, 4);
    $labelshort = substr("$fileende", -3, 3);
    $labellong = substr("$fileende", -5, 5);
    $labelextralong = substr("$fileende", -6, 6);
    $start = substr("$filestart", 0, 4);
    $startintern = substr("$filestart", 0, 17);
    $startfile = substr("$filestart", 0, 7);
    $startextra = substr("$filestart", 0, 7);

    if (($label == ".jpg") OR ($label == ".gif") OR ($label == ".png") OR ($label == ".ppt") OR ($label == ".xls") OR ($label == ".dot") OR ($label == ".doc") OR ($label == ".pdf") OR ($label == ".txt") OR ($label == ".zip"))
    {
    // Dateilink umwandeln in absoluten Pfad
    $datei = 'CMS_LINK[13]';
    $datei = str_replace($_SERVER["HTTP_HOST"], $_SERVER["DOCUMENT_ROOT"], $datei);
    $datei = str_replace('http://', '', $datei);
    $datei = str_replace('//', '/', $datei);

	// Datum Datei
	// Geandert
	$file_modified = date("d.m.Y", filemtime($datei));
	// Erstellt
    $file_created  = date("d.m.Y", filectime($datei));

    // Dateigroesse
    $dateigroesse = @filesize($datei);

    if ($dateigroesse >= 1) {

    $measure = " Byte";
    if ($dateigroesse >= 1024)
    {
      $measure = " KB";
      $dateigroesse = $dateigroesse / 1024;
    }
    if ($dateigroesse >= 1024)
    {
      $measure = " MB";
      $dateigroesse = $dateigroesse / 1024;
    }
    if ($dateigroesse >= 1024)
    {
      $measure = " GB";
      $dateigroesse = $dateigroesse / 1024;
    }
    $dateigroesse = sprintf("%01.1f", $dateigroesse);
    }
    else {
    $dateigroesse = "".mi18n("<span class=\"red\"><strong>Achtung:</strong> Dieser Link ist leider fehlerhaft. Die Datei wurde gel&ouml;scht oder befindet sich an anderer Stelle.</span>")."";
    $measure = "";
    }
    }

    if ("CMS_LINKDESCR[13]" != "") {

    if (($label == ".jpg") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desjpg"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".jpg") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desjpg"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".gif") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desgif"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".gif") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desgif"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".png") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$despng"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".png") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$despng"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".ppt") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desppt"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".ppt") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desppt"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".xls") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desxls"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".xls") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desxls"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".doc") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".doc") AND ($startfile != "upload/") AND ($start != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".dot") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".dot") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".pdf") AND ($startfile == "upload/") AND ($startextra != $externspecialsite)) 
      {
        echo "$despdf"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".pdf") AND ($start != "upload/") AND ($startextra != $externspecialsite)) 
      {
        echo "$despdf"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".txt") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$destxt"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".txt") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$destxt"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($label == ".zip") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$deszip"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".zip") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$deszip"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
      // INTERNE SEITEN
    if ($startintern == 'front_content.php') 
      {
        echo "$deshtmlintern"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] $selfwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if ((($label == ".htm") OR ($labellong == ".html") OR ($label == ".php") OR ($label == ".com") OR ($labellong == ".com/") OR ($label == ".net") OR ($labellong == ".net/") OR ($label == ".biz")  OR ($labellong == ".biz/") OR ($label == ".org")  OR ($labellong == ".org/") OR ($labelshort == ".de") OR ($label == ".de/") OR ($labelshort == ".eu") OR ($label == ".eu/") OR ($labelshort == ".at") OR ($label == ".at/") OR ($labelshort == ".pl") OR ($label == ".pl/") OR ($labelshort == ".ch") OR ($label == ".ch/") OR ($labelshort == ".dk") OR ($label == ".dk/") OR ($labelshort == ".it") OR ($label == ".it/") OR ($labellong == ".info") OR ($labelextralong == ".info/") OR ($labellong == ".mobil") OR ($labelextralong == ".mobil/")  OR ($labellong == ".name") OR ($labelextralong == ".name/")) AND ($startintern != 'front_content.php') AND ($startextra != $externspecialsite))
      {
        echo "$deshtml"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if ($startextra == "http://eine-spezielle-externe-webseitee")
      {
        echo "$desmobil"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
      else
      {
    if (($startintern != 'front_content.php') AND ($startextra != $externspecialsite)) 
      {
        echo "$desunknown"; echo " <a href=\"CMS_LINK[13]\" $anpassendl CMS_LINKTITLE[13] - Datei-Format: $label $opennewwindow>CMS_LINKDESCR[13]</a>";
      }
    else
    if (($startintern == 'front_content.php') AND ($startextra != $externspecialsite)) 
      { 
        echo "$desunknownintern"; echo " <a href=\"CMS_LINK[13]\" $anpassendlin CMS_LINKTITLE[13] - Datei-Format: $label $selfwindow>CMS_LINKDESCR[13]</a>";
    }
    }
    }
    }
    } 
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    ?>
    <?php

    if (("CMS_LINKDESCR[14]" != "") && (("CMS_LINKDESCR[12]" != "") || ("CMS_LINKDESCR[13]" != ""))) {echo "<br />";}

    if ("CMS_LINKDESCR[14]" != "")

    $filebesc = "CMS_LINKDESCR[14]";
    $fileende = 'CMS_LINK[14]';
    $filestart = 'CMS_LINK[14]';
    $filepfad = 'CMS_LINK[14]';
    $desjpg = "<img src=\"images/filetypes/jpg.gif\" width=\"16\" height=\"16\" alt=\"JPEG\" title=\"JPEG\" class=\"icon\" />";
    $desgif = "<img src=\"images/filetypes/gif.gif\" width=\"16\" height=\"16\" alt=\"GIF\" title=\"GIF\" class=\"icon\" />";
    $despng = "<img src=\"images/filetypes/png.gif\" width=\"16\" height=\"16\" alt=\"PNG\" title=\"PNG\" class=\"icon\" />";
    $desppt = "<img src=\"images/filetypes/ppt.gif\" width=\"16\" height=\"16\" alt=\"PowerPoint\" title=\"PowerPoint\" class=\"icon\" />";
    $desxls = "<img src=\"images/filetypes/exel.gif\" width=\"16\" height=\"16\" alt=\"EXCEL\" title=\"EXCEL\" class=\"icon\"/>";
    $desdoc = "<img src=\"images/filetypes/word.gif\" width=\"16\" height=\"16\" alt=\"WORD\" title=\"WORD\" class=\"icon\"/>";
    $despdf = "<img src=\"images/filetypes/pdf.gif\" width=\"16\" height=\"16\" alt=\"PDF\" title=\"PDF\" class=\"icon\" />";
    $destxt = "<img src=\"images/filetypes/txt.gif\" width=\"16\" height=\"16\" alt=\"Text\" title=\"Text\" class=\"icon\" />";
    $deszip = "<img src=\"images/filetypes/zip.gif\" width=\"16\" height=\"16\" alt=\"ZIP\" title=\"ZIP\" class=\"icon\" />";
    $deshtml = "<img src=\"images/filetypes/html.gif\" width=\"16\" height=\"16\" alt=\"Externe Webseite\" title=\"Externe Webseite\" class=\"icon\" />";
    $desexternspecial= "<img src=\"images/filetypes/mobile_de.gif\" width=\"16\" height=\"16\" alt=\"externe Spezial-Seite\" title=\"externe Spezial-Seite\" class=\"icon\" />";
    $desunknown = "<img src=\"images/filetypes/unknown.gif\" width=\"16\" height=\"16\" alt=\"Unbekannte externe Verlinkung\" title=\"Unbekannte externe Verlinkung\" class=\"icon\" />";
    $desunknownintern = "<img src=\"images/filetypes/unknown.gif\" width=\"16\" height=\"16\" alt=\"Unbekannte interne Verlinkung\" title=\"Unbekannte interne Verlinkung\" class=\"icon\" />";
    $deshtmlintern = "<img src=\"images/filetypes/htmlintern.gif\" width=\"16\" height=\"16\" alt=\"Interne Webseite\" title=\"Interne Webseite\" class=\"icon\" />";

    $externspecialsite = "http://eine-spezielle-externe-webseite";

    // JAVASCRPT-Anpassung
    $anpassendl = "title=\"".mi18n("Extern Link, will be open in an new window:")." ";
    $anpassendlin = "title=\"".mi18n("Intern Link:")." ";
    $opennewwindow = "\" onclick=\"window.open(this.href); return false;\"";
    $selfwindow = "\"";

    $label = substr("$fileende", -4, 4);
    $labelshort = substr("$fileende", -3, 3);
    $labellong = substr("$fileende", -5, 5);
    $labelextralong = substr("$fileende", -6, 6);
    $start = substr("$filestart", 0, 4);
    $startintern = substr("$filestart", 0, 17);
    $startfile = substr("$filestart", 0, 7);
    $startextra = substr("$filestart", 0, 7);

    if (($label == ".jpg") OR ($label == ".gif") OR ($label == ".png") OR ($label == ".ppt") OR ($label == ".xls") OR ($label == ".dot") OR ($label == ".doc") OR ($label == ".pdf") OR ($label == ".txt") OR ($label == ".zip"))
    {
    // Dateilink umwandeln in absoluten Pfad
    $datei = 'CMS_LINK[14]';
    $datei = str_replace($_SERVER["HTTP_HOST"], $_SERVER["DOCUMENT_ROOT"], $datei);
    $datei = str_replace('http://', '', $datei);
    $datei = str_replace('//', '/', $datei);

	// Datum Datei
	// Geandert
	$file_modified = date("d.m.Y", filemtime($datei));
	// Erstellt
    $file_created  = date("d.m.Y", filectime($datei);

    // Dateigroesse
    $dateigroesse = @filesize($datei);

    if ($dateigroesse >= 1) {

    $measure = " Byte";
    if ($dateigroesse >= 1024)
    {
      $measure = " KB";
      $dateigroesse = $dateigroesse / 1024;
    }
    if ($dateigroesse >= 1024)
    {
      $measure = " MB";
      $dateigroesse = $dateigroesse / 1024;
    }
    if ($dateigroesse >= 1024)
    {
      $measure = " GB";
      $dateigroesse = $dateigroesse / 1024;
    }
    $dateigroesse = sprintf("%01.1f", $dateigroesse);
    }
    else {
    $dateigroesse = "".mi18n("<span class=\"red\"><strong>Achtung:</strong> Dieser Link ist leider fehlerhaft. Die Datei wurde gel&ouml;scht oder befindet sich an anderer Stelle.</span>")."";
    $measure = "";
    }
    }

    if ("CMS_LINKDESCR[14]" != "") {

    if (($label == ".jpg") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desjpg"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".jpg") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desjpg"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".gif") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desgif"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".gif") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desgif"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".png") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$despng"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".png") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$despng"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".ppt") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desppt"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".ppt") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desppt"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".xls") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desxls"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".xls") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desxls"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".doc") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".doc") AND ($startfile != "upload/") AND ($start != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".dot") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".dot") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$desdoc"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".pdf") AND ($startfile == "upload/") AND ($startextra != $externspecialsite)) 
      {
        echo "$despdf"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".pdf") AND ($start != "upload/") AND ($startextra != $externspecialsite)) 
      {
        echo "$despdf"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".txt") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$destxt"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".txt") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$destxt"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($label == ".zip") AND ($startfile == "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$deszip"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a> ("; echo $dateigroesse; echo $measure; echo ")"; echo " Stand: "; echo $file_modified;
      }
      else
      {
    if (($label == ".zip") AND ($startfile != "upload/") AND ($startextra != $externspecialsite))
      {
        echo "$deszip"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
      // INTERNE SEITEN
    if ($startintern == 'front_content.php') 
      {
        echo "$deshtmlintern"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] $selfwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if ((($label == ".htm") OR ($labellong == ".html") OR ($label == ".php") OR ($label == ".com") OR ($labellong == ".com/") OR ($label == ".net") OR ($labellong == ".net/") OR ($label == ".biz")  OR ($labellong == ".biz/") OR ($label == ".org")  OR ($labellong == ".org/") OR ($labelshort == ".de") OR ($label == ".de/") OR ($labelshort == ".eu") OR ($label == ".eu/") OR ($labelshort == ".at") OR ($label == ".at/") OR ($labelshort == ".pl") OR ($label == ".pl/") OR ($labelshort == ".ch") OR ($label == ".ch/") OR ($labelshort == ".dk") OR ($label == ".dk/") OR ($labelshort == ".it") OR ($label == ".it/") OR ($labellong == ".info") OR ($labelextralong == ".info/") OR ($labellong == ".mobil") OR ($labelextralong == ".mobil/")  OR ($labellong == ".name") OR ($labelextralong == ".name/")) AND ($startintern != 'front_content.php') AND ($startextra != $externspecialsite))
      {
        echo "$deshtml"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if ($startextra == "http://eine-spezielle-externe-webseitee")
      {
        echo "$desmobil"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
      else
      {
    if (($startintern != 'front_content.php') AND ($startextra != $externspecialsite)) 
      {
        echo "$desunknown"; echo " <a href=\"CMS_LINK[14]\" $anpassendl CMS_LINKTITLE[14] - Datei-Format: $label $opennewwindow>CMS_LINKDESCR[14]</a>";
      }
    else
    if (($startintern == 'front_content.php') AND ($startextra != $externspecialsite)) 
      { 
        echo "$desunknownintern"; echo " <a href=\"CMS_LINK[14]\" $anpassendlin CMS_LINKTITLE[14] - Datei-Format: $label $selfwindow>CMS_LINKDESCR[14]</a>";
    }
    }
    }
    }
    } 
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }

// Sobald eine Linkdescription hinterlegt worden ist:
    if (("CMS_LINKDESCR[12]" != "") || ("CMS_LINKDESCR[13]" != "") || ("CMS_LINKDESCR[14]" != "")) {
    echo "<br />";
    }
    ?>
Wie man sieht ist das Modul leicht um weitere Links erweiterbar und wie man sieht, kann man bei der PHP-Umsetzung auch noch eine Menge verbessern :-)

MfG Steffen
Zuletzt geändert von derSteffen am Mo 21. Jan 2013, 11:37, insgesamt 6-mal geändert.

derSteffen
Beiträge: 847
Registriert: Mi 14. Dez 2005, 16:15
Wohnort: Königs Wusterhausen bei Berlin
Kontaktdaten:

Re: LinkModul: Icons, Intern/Extern, Beschreibung, Größe, Ta

Beitrag von derSteffen » Do 8. Nov 2012, 22:18

ToDO:

Schön wäre natürlich, wenn bei der Verlinkung auf interne Daten auch die Beschreibug und der Medienname aus der Dateiverwaltung angezeit wird, anstatt die Beschreibung im Link-Modul ;-)

MfG

Gesperrt