ispman/ispman-web/cgi-bin/tmpl/modules editModule.tmpl,1.9,1.9.4.1 selectConfModule.tmpl,1.10,1.10.10.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/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29520/ispman-web/cgi-bin/tmpl/modules

Modified Files:
      Tag: dev_1_3-bigcleanup
	editModule.tmpl selectConfModule.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: editModule.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/modules/editModule.tmpl,v
retrieving revision 1.9
retrieving revision 1.9.4.1
diff -u -d -r1.9 -r1.9.4.1
--- editModule.tmpl	19 Jun 2004 21:20:27 -0000	1.9
+++ editModule.tmpl	10 Aug 2004 20:54:36 -0000	1.9.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">
    
 
    
@@ -10,7 +10,7 @@
 
         <perl>
         my $text="";
-		my $vars=$ispman->getConfVars($r->param('module'));
+		my $vars=ISPMan::Config->getVars($r->param('module'));
 
 		for (keys %$vars){
 			$ispmanVars->{$vars->{$_}{'ispmanVar'}}{'ispmanQuestion'}=$vars->{$_}{'ispmanQuestion'};

Index: selectConfModule.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/modules/selectConfModule.tmpl,v
retrieving revision 1.10
retrieving revision 1.10.10.1
diff -u -d -r1.10 -r1.10.10.1
--- selectConfModule.tmpl	28 Apr 2003 14:47:25 -0000	1.10
+++ selectConfModule.tmpl	10 Aug 2004 20:54:36 -0000	1.10.10.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">
 
    
 
@@ -21,7 +21,7 @@
         
         <perl>
         my $text="";
-        my $modules=$ispman->getConfModules();
+        my $modules=ISPMan::Config->getModules();
         my $c=3;
         for (keys %$modules){
              $class="line". $c%2;



-------------------------------------------------------
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.