]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-extensions.php
Updated copyright year.
[mailer.git] / inc / modules / guest / what-extensions.php
index 96ecf8a7260b0b8eb95597d85a66a5ba92c8be82..376319090aeaa92500c0d39673fe84eb01da0c2e 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Listet alle Beschreibungstexte aller Erw. auf    *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } // END - if
 
 // Add description as navigation point
 addYouAreHereLink('guest', __FILE__);
 
 // Get all extension files
-$extensions = getArrayFromDirectory(
-       'templates/' . getLanguage() . '/html/ext/',
-       'ext_',
-       false,
-       false,
-       array(),
-       '.tpl',
-       '@(\.|\.\.)$@',
-       false
-);
+$extensions = loadAllExtensionsByTemplate();
 
 // Now iterate through all and load that template file
 $OUT = '';
@@ -64,15 +50,15 @@ foreach ($extensions as $ext_file) {
        // Prepare data
        $content = array(
                'name'        => substr($template, 4),
-               'description' => loadTemplate($template, true),
+               'description' => loadTemplate($template, TRUE),
        );
 
        // Load the template in a special row template
-       $OUT .= loadTemplate('guest_extensions_row', true, $content);
+       $OUT .= loadTemplate('guest_extensions_row', TRUE, $content);
 } // END - foreach
 
 // Load main template
-loadTemplate('guest_extensions', false, $OUT);
+loadTemplate('guest_extensions', FALSE, $OUT);
 
 // [EOF]
 ?>