From 532ae591db5b5f020abf60609ded0d2d32b76d86 Mon Sep 17 00:00:00 2001
From: latham <latham@ispconfig3>
Date: Fri, 08 Apr 2011 15:50:11 -0400
Subject: [PATCH] Remove DOS line returns lathama

---
 interface/web/dashboard/dashlets/modules.php |  108 +++++++++++++++++++++++++++---------------------------
 1 files changed, 54 insertions(+), 54 deletions(-)

diff --git a/interface/web/dashboard/dashlets/modules.php b/interface/web/dashboard/dashlets/modules.php
index b958de6..cfb2e12 100644
--- a/interface/web/dashboard/dashlets/modules.php
+++ b/interface/web/dashboard/dashlets/modules.php
@@ -1,55 +1,55 @@
-<?php
-
-class dashlet_modules {
-	
-	function show() {
-		global $app, $conf;
-		
-		//* Loading Template
-		$app->uses('tpl');
-		
-		$tpl = new tpl;
-		$tpl->newTemplate("dashlets/templates/modules.htm");
-		
-		$wb = array();
-		$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_modules.lng';
-		if(is_file($lng_file)) include($lng_file);
-		$tpl->setVar($wb);
-		
-		/*
-		 * Show all modules, the user is allowed to use
-		*/
-		$modules = explode(',', $_SESSION['s']['user']['modules']);
-		$mod = array();
-		if(is_array($modules)) {
-			foreach($modules as $mt) {
-				if(is_file('../' . $mt . '/lib/module.conf.php')) {
-					if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.');
-					include_once('../' . $mt.'/lib/module.conf.php');
-					/* We don't want to show the dashboard */
-					if ($mt != 'dashboard') {
-						$module_title = $app->lng($module['title']);
-						if(strlen($module_title) > 8) $module_title = substr($module_title,0,7).'..';
-						$mod[] = array(	'modules_title' 	=> $module_title,
-								'modules_startpage'	=> $module['startpage'],
-								'modules_name'  	=> $module['name']);
-					}
-				}
-			}
-
-			$tpl->setloop('modules', $mod);
-		}
-		
-		return $tpl->grab();
-		
-	}
-}
-
-
-
-
-
-
-
-
+<?php
+
+class dashlet_modules {
+	
+	function show() {
+		global $app, $conf;
+		
+		//* Loading Template
+		$app->uses('tpl');
+		
+		$tpl = new tpl;
+		$tpl->newTemplate("dashlets/templates/modules.htm");
+		
+		$wb = array();
+		$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_modules.lng';
+		if(is_file($lng_file)) include($lng_file);
+		$tpl->setVar($wb);
+		
+		/*
+		 * Show all modules, the user is allowed to use
+		*/
+		$modules = explode(',', $_SESSION['s']['user']['modules']);
+		$mod = array();
+		if(is_array($modules)) {
+			foreach($modules as $mt) {
+				if(is_file('../' . $mt . '/lib/module.conf.php')) {
+					if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.');
+					include_once('../' . $mt.'/lib/module.conf.php');
+					/* We don't want to show the dashboard */
+					if ($mt != 'dashboard') {
+						$module_title = $app->lng($module['title']);
+						if(strlen($module_title) > 8) $module_title = substr($module_title,0,7).'..';
+						$mod[] = array(	'modules_title' 	=> $module_title,
+								'modules_startpage'	=> $module['startpage'],
+								'modules_name'  	=> $module['name']);
+					}
+				}
+			}
+
+			$tpl->setloop('modules', $mod);
+		}
+		
+		return $tpl->grab();
+		
+	}
+}
+
+
+
+
+
+
+
+
 ?>
\ No newline at end of file

--
Gitblit v1.9.1