ispman/ispman-web/cgi-bin/tmpl headers.tmpl,1.9,1.9.10.1 ispman.tmpl,1.15,1.15.10.1 menu.tmpl,1.48,1.48.2.1 overview.tmpl,1.5,1.5.10.1 ro.tmpl,1.7,1.7.4.1 status.tmpl,1.10,1.10.2.1 topmenu.tmpl,1.12,1.12.4.1

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29520/ispman-web/cgi-bin/tmpl

Modified Files:
      Tag: dev_1_3-bigcleanup
	headers.tmpl ispman.tmpl menu.tmpl overview.tmpl ro.tmpl 
	status.tmpl topmenu.tmpl 
Log Message:
first cleanup changes
aims:
- have nice, clean, independant Config.pm to manage *all* ISPMan configs
- remove "name space pollution" (with using objects more strictly there is no need to export everything, code is better readable/understandable)
- separating libs for backend and UI

Index: status.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/status.tmpl,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- status.tmpl	21 Jun 2004 20:07:30 -0000	1.10
+++ status.tmpl	10 Aug 2004 20:54:30 -0000	1.10.2.1
@@ -8,7 +8,7 @@
     $text;
 </perl>
 
-<LINK HREF="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css"> 
+<LINK HREF="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css"> 
 <SCRIPT>
     function Refresh(seconds){
         url="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=status";

Index: topmenu.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/topmenu.tmpl,v
retrieving revision 1.12
retrieving revision 1.12.4.1
diff -u -d -r1.12 -r1.12.4.1
--- topmenu.tmpl	20 Jun 2004 11:47:54 -0000	1.12
+++ topmenu.tmpl	10 Aug 2004 20:54:30 -0000	1.12.4.1
@@ -1,6 +1,6 @@
 <html>
 <head>
-<LINK HREF="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
+<LINK HREF="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
 <script>
 function addDomain(){      
       top.content.location="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=selectDomainType";
@@ -92,7 +92,7 @@
 </perl>
 
 <TD  valign=right align=right><a class=<perl>$class</perl>   target="_top" href="<perl>$ENV{'SCRIPT_NAME'}</perl>?logout=1"><perl>_("Logout")</perl></a></td>
-<TD  valign=right align=right><a class=<perl>$class</perl>   target="content" href="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/help.html"><perl>_("Help")</perl></a></td>
+<TD  valign=right align=right><a class=<perl>$class</perl>   target="content" href="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/help.html"><perl>_("Help")</perl></a></td>
 </tr>
 </table>
 

Index: ispman.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/ispman.tmpl,v
retrieving revision 1.15
retrieving revision 1.15.10.1
diff -u -d -r1.15 -r1.15.10.1
--- ispman.tmpl	26 Apr 2003 15:39:50 -0000	1.15
+++ ispman.tmpl	10 Aug 2004 20:54:30 -0000	1.15.10.1
@@ -1,11 +1,11 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-<link REL="shortcut icon" HREF="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/favicon.ico" TYPE="image/x-icon">
+<link REL="shortcut icon" HREF="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/favicon.ico" TYPE="image/x-icon">
 <title>ISPMan@<perl>$ENV{'SERVER_NAME'}</perl></title>
 
 
 <head>
-    <script src="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/js/ispman.js"></script>
+    <script src="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/js/ispman.js"></script>
 
     <frameset rows="30,50,*" border="0" frameborder="0">
         <frame name="title" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=topmenu" marginwidth="0" marginheight="0" scrolling="no">

Index: overview.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/overview.tmpl,v
retrieving revision 1.5
retrieving revision 1.5.10.1
diff -u -d -r1.5 -r1.5.10.1
--- overview.tmpl	28 Apr 2003 14:47:00 -0000	1.5
+++ overview.tmpl	10 Aug 2004 20:54:30 -0000	1.5.10.1
@@ -2,7 +2,7 @@
 <HTML>
 <HEAD>
 <TITLE>ISPMan summary</TITLE>
-<LINK HREF="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
+<LINK HREF="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
 
 
 </HEAD>

Index: ro.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/ro.tmpl,v
retrieving revision 1.7
retrieving revision 1.7.4.1
diff -u -d -r1.7 -r1.7.4.1
--- ro.tmpl	5 Jun 2004 12:45:21 -0000	1.7
+++ ro.tmpl	10 Aug 2004 20:54:30 -0000	1.7.4.1
@@ -1,4 +1,4 @@
-<LINK HREF="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
+<LINK HREF="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
 <perl>_("Sorry you don't have write access to this domain.")</perl>
  
 

Index: headers.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/headers.tmpl,v
retrieving revision 1.9
retrieving revision 1.9.10.1
diff -u -d -r1.9 -r1.9.10.1
--- headers.tmpl	28 Apr 2003 14:46:58 -0000	1.9
+++ headers.tmpl	10 Aug 2004 20:54:30 -0000	1.9.10.1
@@ -1,8 +1,8 @@
 <!-- headers.tmpl HEAD -->
 <html>
 <head>
-<title>ISP Manager@<perl>$ENV{'SERVER_NAME'}</perl> Version: <perl>$ispman->getConfig("VERSION")</perl></title>
-<LINK HREF="<perl>$ispman->getConfig("ispmanUrlPrefix")</perl>/ispman.css" REL="stylesheet" TYPE="text/css"> 
+<title>ISP Manager@<perl>$ENV{'SERVER_NAME'}</perl> Version: <perl>ISPMan::Config->get("VERSION")</perl></title>
+<LINK HREF="<perl>ISPMan::Config->get("ispmanUrlPrefix")</perl>/ispman.css" REL="stylesheet" TYPE="text/css"> 
 </head>
 <body>
 

Index: menu.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/menu.tmpl,v
retrieving revision 1.48
retrieving revision 1.48.2.1
diff -u -d -r1.48 -r1.48.2.1
--- menu.tmpl	15 Jul 2004 08:24:12 -0000	1.48
+++ menu.tmpl	10 Aug 2004 20:54:30 -0000	1.48.2.1
@@ -2,7 +2,7 @@
 <HTML>
 <HEAD>
 <TITLE>ISPMan menu</TITLE>
-<LINK HREF="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
+<LINK HREF="<perl>ISPMan::Config->get('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css">
 
 <SCRIPT LANGUAGE="JavaScript">
 <!--
@@ -229,7 +229,7 @@
 
             $text.=qq|</select></td></tr>|;
             
-            if ($ispman->getConf("messaging_service")){
+            if (ISPMan::Config->get("messaging_service")){
                 $text.=qq|<tr class="light" onclick="doThis('notifyUsers')"
                     onmouseover="this.className='lightOver'; window.status='Send e-mail to all users of $thisDomain'"
                     onmouseout="this.className='light'; windows.status=''">



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.