]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-extensions.php
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / modules / guest / what-extensions.php
index e3bdb8d0f3ccfd7ae4eb89733ce0a9a4081d79a8..f912e26e734bf625e6affc17ec1b50872a745b1a 100644 (file)
@@ -4,22 +4,15 @@
  * ===================                          Last change: 01/09/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
- * File              : what-beg.php                                     *
+ * File              : what-extensions.php                              *
  * -------------------------------------------------------------------- *
- * Short description : Beg points with us!                              *
+ * Short description : Lists all extension's description texts          *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Mit uns Punkte erbetteln!                        *
- * -------------------------------------------------------------------- *
- * $Revision:: 1690                                                   $ *
- * $Date:: 2010-01-01 17:04:52 +0100 (Fri, 01 Jan 2010)               $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: quix0r                                                   $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
+ * Kurzbeschreibung  : Listet alle Beschreibungstexte aller Erw. auf    *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('guest', __FILE__);
+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 = ''; $SW = 2;
+$OUT = '';
 foreach ($extensions as $ext_file) {
-       // We only need the filename!
+       // We only need the filename
        $template = substr(basename($ext_file), 0, -4);
 
        // Prepare data
        $content = array(
                'name'        => substr($template, 4),
-               'description' => loadTemplate($template, true),
-               'sw'          => $SW
+               'description' => loadTemplate($template, TRUE),
        );
 
        // Load the template in a special row template
-       $OUT .= loadTemplate('guest_extensions_row', true, $content);
-
-       // Switch color
-       $SW = 3 - $SW;
+       $OUT .= loadTemplate('guest_extensions_row', TRUE, $content);
 } // END - foreach
 
 // Load main template
-loadTemplate('guest_extensions', false, $OUT);
+loadTemplate('guest_extensions', FALSE, $OUT);
 
 // [EOF]
 ?>