summaryrefslogtreecommitdiff
path: root/security/mailzu/files/patch-lib_Template.class.php
blob: 94b341f35946a9cb0c2709a05b8048e5a66c3a3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
--- lib/Template.class.php.orig	2007-06-14 19:00:15 UTC
+++ lib/Template.class.php
@@ -30,7 +30,7 @@ class Template {
 	* @param string $title title of page
 	* @param int $depth depth of the current page relative to phpScheduleIt root
 	*/
-	function Template($title = '', $depth = 0) {
+	function __construct($title = '', $depth = 0) {
 		global $conf;
 		
 		$this->title = (!empty($title)) ? $title : $conf['ui']['welcome'];
@@ -57,21 +57,21 @@ class Template {
 	?>
 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$languages[$lang][2]?>" lang="<?=$languages[$lang][2]?>">
+	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo$languages[$lang][2]?>" lang="<?php echo$languages[$lang][2]?>">
 	<head>
 	<title>
-	<?=$this->title?>
+	<?php echo $this->title?>
 	</title>
-	<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
+	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset?>" />
 	<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
-	<script language="JavaScript" type="text/javascript" src="<?=$path?>functions.js"></script>
-	<!--<link href="<?=$path?>css.css" rel="stylesheet" type="text/css" />-->
+	<script language="JavaScript" type="text/javascript" src="<?php echo $path?>functions.js"></script>
+	<!--<link href="<?php echo $path?>css.css" rel="stylesheet" type="text/css" />-->
 	<style type="text/css">
-	@import url(<?=$path?>css.css);
+	@import url(<?php echo $path?>css.css);
 	</style>
 	</head>
 	<body>
-	<?
+	<?php
 	}
 	
 	
@@ -96,31 +96,31 @@ class Template {
 	  <tr>
 		<td class="mainBkgrdClr">
 		  <h4 class="welcomeBack">
-		    <?= 
+		    <?php echo 
 		      translate('Welcome Back', array($_SESSION['sessionName'], 1));
 		      // Notify if the person logged in is admin
 		      echo (Auth::isMailAdmin() ? ' (' . translate('Administrator') . ')' : '');
 		    ?>
 		  </h4>
 		  <!--<p>
-			<? $this->link->doLink($this->dir_path . 'index.php?logout=true', translate('Log Out')) ?>
+			<?php $this->link->doLink($this->dir_path . 'index.php?logout=true', translate('Log Out')) ?>
 			|
-			<? $this->link->doLink($this->dir_path . 'summary.php', translate('My Control Panel')) ?>
+			<?php $this->link->doLink($this->dir_path . 'summary.php', translate('My Control Panel')) ?>
 		  </p>-->
 		</td>
 		<td class="mainBkgrdClr" valign="top">
 		  <div align="right">
 		    <p>
-			<?= translate_date('header', mktime());?>
+			<?php echo translate_date('header', time());?>
 			</p>
 			<!--<p>
-			  <? $this->link->doLink('javascript: help();', translate('Help')) ?>
+			  <?php $this->link->doLink('javascript: help();', translate('Help')) ?>
 			</p>-->
 		  </div>
 		</td>
 	  </tr>
 	</table>
-	<?
+	<?php
 	}
 	
 	
@@ -134,7 +134,7 @@ class Template {
 	<table width="100%" border="0" cellspacing="0" cellpadding="10" style="border: solid #CCCCCC 1px;">
 	  <tr>
 		<td bgcolor="#FAFAFA">
-		  <?
+		  <?php
 	}
 	
 	
@@ -147,7 +147,7 @@ class Template {
 		</td>
 	  </tr>
 	</table>
-	<?
+	<?php
 	}
 	
 	
@@ -160,10 +160,10 @@ class Template {
 	function printHTMLFooter() {
 		global $conf;
 	?>
-	<p align="center"><a href="http://www.mailzu.net"><?=$conf['app']['title']?> v<?=$conf['app']['version']?></a></p>
+	<p align="center"><a href="http://www.mailzu.net"><?php echo $conf['app']['title']?> v<?php echo $conf['app']['version']?></a></p>
 	</body>
 	</html>
-	<?
+	<?php
 	}
 	
 	/**