cvs: docweb /include lib_general.inc.php /templates/all/www/shared footer.tpl.php /www phpt_generator.php

[email protected] ("Etienne Kneuss")
Newsgroups php.doc.web
Message-ID <cvscolder1165146689@cvsserver>
colder		Sun Dec  3 11:51:29 2006 UTC

  Modified files:              
    /docweb/include	lib_general.inc.php 
    /docweb/templates/all/www/shared	footer.tpl.php 
    /docweb/www	phpt_generator.php 
  Log:
  Include the cvs Id: at the bottom of some pages to help tracking the last update
  
http://cvs.php.net/viewvc.cgi/docweb/include/lib_general.inc.php?r1=1.51&r2=1.52&diff_format=u
Index: docweb/include/lib_general.inc.php
diff -u docweb/include/lib_general.inc.php:1.51 docweb/include/lib_general.inc.php:1.52
--- docweb/include/lib_general.inc.php:1.51	Tue Oct  3 23:22:28 2006
+++ docweb/include/lib_general.inc.php	Sun Dec  3 11:51:29 2006
@@ -18,7 +18,7 @@
 |                   Gabor Hojtsy <[email protected]>                        |
 |                   Sean Coates <[email protected]>                         |
 +----------------------------------------------------------------------+
-$Id: lib_general.inc.php,v 1.51 2006/10/03 23:22:28 colder Exp $
+$Id: lib_general.inc.php,v 1.52 2006/12/03 11:51:29 colder Exp $
 */
 
 require_once dirname(__FILE__) . '/lib_auth.inc.php';
@@ -110,12 +110,13 @@
     );
 }
 
-function site_footer()
+function site_footer($cvs_version = NULL)
 {
     $master = get_insite_address(NULL, NULL, '');
     return DocWeb_Template::get(
         'shared/footer.tpl.php',
-        array('master' => $master)
+        array('master'      => $master,
+              'cvs_version' => $cvs_version)
     );
 }
 
http://cvs.php.net/viewvc.cgi/docweb/templates/all/www/shared/footer.tpl.php?r1=1.4&r2=1.5&diff_format=u
Index: docweb/templates/all/www/shared/footer.tpl.php
diff -u docweb/templates/all/www/shared/footer.tpl.php:1.4 docweb/templates/all/www/shared/footer.tpl.php:1.5
--- docweb/templates/all/www/shared/footer.tpl.php:1.4	Sat Dec 31 23:00:59 2005
+++ docweb/templates/all/www/shared/footer.tpl.php	Sun Dec  3 11:51:29 2006
@@ -3,7 +3,11 @@
   <p>
    <a href="<?php echo $master; ?>copyright.php">&docweb.common.footer.copyright;</a> 2004-2006 &docweb.common.footer.copyright-text;.
   </p>
-  <p>
+  <?php 
+    if(isset($cvs_version)) { 
+        echo "<p>\n    $cvs_version\n  </p>\n  "; 
+    } 
+  ?><p>
    <a href="<?php echo $master; ?>credits.php">&docweb.common.footer.credits;</a>
    |
    <a href="<?php echo $master; ?>contact.php">&docweb.common.footer.contact;</a>
http://cvs.php.net/viewvc.cgi/docweb/www/phpt_generator.php?r1=1.3&r2=1.4&diff_format=u
Index: docweb/www/phpt_generator.php
diff -u docweb/www/phpt_generator.php:1.3 docweb/www/phpt_generator.php:1.4
--- docweb/www/phpt_generator.php:1.3	Sun Dec  3 09:09:45 2006
+++ docweb/www/phpt_generator.php	Sun Dec  3 11:51:29 2006
@@ -15,7 +15,7 @@
 +----------------------------------------------------------------------+
 | Authors: Etienne Kneuss <[email protected]>                             |
 +----------------------------------------------------------------------+
-$Id: phpt_generator.php,v 1.3 2006/12/03 09:09:45 colder Exp $
+$Id: phpt_generator.php,v 1.4 2006/12/03 11:51:29 colder Exp $
 */
 
 require_once '../include/init.inc.php';
@@ -36,7 +36,7 @@
 if (!$sqlite = phpt_sqlite_open()) {
     echo site_header('docweb.common.header.phptgen'); 
     echo '<p>Unable to open examples database</p>';
-    echo site_footer();
+    echo site_footer('$Id: phpt_generator.php,v 1.4 2006/12/03 11:51:29 colder Exp $');
     exit();
 }
 
@@ -167,7 +167,7 @@
             'q'      => $q,
         )
     );
-    echo site_footer();
+    echo site_footer('$Id: phpt_generator.php,v 1.4 2006/12/03 11:51:29 colder Exp $');
     exit;
 
 }
@@ -231,7 +231,7 @@
     )
 );
     
-echo site_footer();
+echo site_footer('$Id: phpt_generator.php,v 1.4 2006/12/03 11:51:29 colder Exp $');
 
 
 ?>
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.