plugins/SpecialPageFuncs.php
changeset 228 b0a4d179be85
parent 221 e5302cb1945c
child 304 e2cb5f1432c8
equal deleted inserted replaced
197:90b7a52bea45 228:b0a4d179be85
   356 }
   356 }
   357 
   357 
   358 function page_Special_About_Enano()
   358 function page_Special_About_Enano()
   359 {
   359 {
   360   global $db, $session, $paths, $template, $plugins; // Common objects
   360   global $db, $session, $paths, $template, $plugins; // Common objects
       
   361   global $lang;
       
   362   
   361   $platform = 'Unknown';
   363   $platform = 'Unknown';
   362   $uname = @file_get_contents('/proc/sys/kernel/ostype');
   364   $uname = @file_get_contents('/proc/sys/kernel/ostype');
   363   if($uname == "Linux\n")
   365   if($uname == "Linux\n")
   364     $platform = 'Linux';
   366     $platform = 'Linux';
   365   else if(file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
   367   else if(file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
   376   ?>
   378   ?>
   377   <br />
   379   <br />
   378   <div class="tblholder">
   380   <div class="tblholder">
   379     <table border="0" cellspacing="1" cellpadding="4">
   381     <table border="0" cellspacing="1" cellpadding="4">
   380       <tr><th colspan="2" style="text-align: left;">About the Enano Content Management System</th></tr>
   382       <tr><th colspan="2" style="text-align: left;">About the Enano Content Management System</th></tr>
   381       <tr><td colspan="2" class="row3"><p>This website is powered by <a href="http://enanocms.org/">Enano</a>, the lightweight and open source
   383       <tr><td colspan="2" class="row3">
   382       CMS that everyone can use. Enano is copyright &copy; 2006-2007 Dan Fuhry. For legal information, along with a list of libraries that Enano
   384         <?php
   383       uses, please see <a href="http://enanocms.org/Legal_information">Legal Information</a>.</p>
   385         echo $lang->get('meta_enano_about_poweredby');
   384       <p>The developers and maintainers of Enano strongly believe that software should not only be free to use, but free to be modified,
   386         $subst = array(
   385          distributed, and used to create derivative works. For more information about Free Software, check out the
   387             'gpl_link' => makeUrlNS('Special', 'GNU_General_Public_License')
   386          <a href="http://en.wikipedia.org/wiki/Free_Software" onclick="window.open(this.href); return false;">Wikipedia page</a> or
   388           );
   387          the <a href="http://www.fsf.org/" onclick="window.open(this.href); return false;">Free Software Foundation's</a> homepage.</p>
   389         echo $lang->get('meta_enano_about_gpl', $subst);
   388       <p>This program is Free Software; you can redistribute it and/or modify it under the terms of the GNU General Public License
   390         if ( $lang->lang_code != 'eng' ):
   389       as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</p>
   391         // Do not remove this block of code. Doing so is a violation of the GPL. (A copy of the GPL in other languages
   390       <p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
   392         // must be accompanied by a copy of the English GPL.)
   391       warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.</p>
   393         ?>
   392       <p>You should have received <a href="<?php echo makeUrlNS('Special', 'GNU_General_Public_License'); ?>">a copy of
   394         <h3>(English)</h3>
   393          the GNU General Public License</a> along with this program; if not, write to:</p>
   395         <p>
   394       <p style="margin-left 2em;">Free Software Foundation, Inc.,<br />
   396           This website is powered by <a href="http://enanocms.org/">Enano</a>, the lightweight and open source CMS that everyone can use.
   395          51 Franklin Street, Fifth Floor<br />
   397           Enano is copyright &copy; 2006-2007 Dan Fuhry. For legal information, along with a list of libraries that Enano uses, please
   396          Boston, MA 02110-1301, USA</p>
   398           see <a href="http://enanocms.org/Legal_information">Legal Information</a>.
   397       <p>Alternatively, you can <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">read it online</a>.</p>
   399         </p>
       
   400         <p>
       
   401           The developers and maintainers of Enano strongly believe that software should not only be free to use, but free to be modified,
       
   402           distributed, and used to create derivative works. For more information about Free Software, check out the
       
   403           <a href="http://en.wikipedia.org/wiki/Free_Software" onclick="window.open(this.href); return false;">Wikipedia page</a> or
       
   404           the <a href="http://www.fsf.org/" onclick="window.open(this.href); return false;">Free Software Foundation's</a> homepage.
       
   405         </p>
       
   406         <p>
       
   407           This program is Free Software; you can redistribute it and/or modify it under the terms of the GNU General Public License
       
   408           as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
       
   409         </p>
       
   410         <p>
       
   411           This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
       
   412           warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
       
   413         </p>
       
   414         <p>
       
   415           You should have received <a href="<?php echo makeUrlNS('Special', 'GNU_General_Public_License'); ?>">a copy of
       
   416           the GNU General Public License</a> along with this program; if not, write to:
       
   417         </p>
       
   418         <p style="margin-left 2em;">
       
   419           Free Software Foundation, Inc.,<br />
       
   420           51 Franklin Street, Fifth Floor<br />
       
   421           Boston, MA 02110-1301, USA
       
   422         </p>
       
   423         <p>
       
   424           Alternatively, you can <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">read it online</a>.
       
   425         </p>
       
   426         <?php
       
   427         endif;
       
   428         ?>
   398       </td></tr>
   429       </td></tr>
   399       <tr>
   430       <tr>
   400         <td class="row2" colspan="2">
   431         <td class="row2" colspan="2">
   401           <table border="0" style="margin: 0 auto; background: none; width: 100%;" cellpadding="5">
   432           <table border="0" style="margin: 0 auto; background: none; width: 100%;" cellpadding="5">
   402             <tr>
   433             <tr>
   415               </td>
   446               </td>
   416             </tr>
   447             </tr>
   417           </table>
   448           </table>
   418         </td>
   449         </td>
   419       </tr>
   450       </tr>
   420       <tr><td style="width: 100px;" class="row1"><a href="http://enanocms.org">Enano</a> version:</td><td class="row1"><?php echo enano_version(true) . ' (' . enano_codename() . ')'; ?></td></tr>
   451       <tr><td style="width: 100px;" class="row1"><?php echo $lang->get('meta_enano_about_lbl_enanoversion'); ?></td><td class="row1"><?php echo enano_version(true) . ' (' . enano_codename() . ')'; ?></td></tr>
   421       <tr><td style="width: 100px;" class="row2">Web server:</td><td class="row2"><?php if(isset($_SERVER['SERVER_SOFTWARE'])) echo $_SERVER['SERVER_SOFTWARE']; else echo 'Unable to determine web server software.'; ?></td></tr>
   452       <tr><td style="width: 100px;" class="row2"><?php echo $lang->get('meta_enano_about_lbl_webserver'); ?></td><td class="row2"><?php if(isset($_SERVER['SERVER_SOFTWARE'])) echo $_SERVER['SERVER_SOFTWARE']; else echo 'Unable to determine web server software.'; ?></td></tr>
   422       <tr><td style="width: 100px;" class="row1">Server platform:</td><td class="row1"><?php echo $platform; ?></td></tr>
   453       <tr><td style="width: 100px;" class="row1"><?php echo $lang->get('meta_enano_about_lbl_serverplatform'); ?></td><td class="row1"><?php echo $platform; ?></td></tr>
   423       <tr><td style="width: 100px;" class="row2"><a href="http://www.php.net/">PHP</a> version:</td><td class="row2"><?php echo PHP_VERSION; ?></td></tr>
   454       <tr><td style="width: 100px;" class="row2"><?php echo $lang->get('meta_enano_about_lbl_phpversion'); ?></td><td class="row2"><?php echo PHP_VERSION; ?></td></tr>
   424       <tr><td style="width: 100px;" class="row1"><a href="http://www.mysql.com/">MySQL</a> version:</td><td class="row1"><?php echo mysql_get_server_info($db->_conn); ?></td></tr>
   455       <tr><td style="width: 100px;" class="row1"><?php echo $lang->get('meta_enano_about_lbl_mysqlversion'); ?></td><td class="row1"><?php echo mysql_get_server_info($db->_conn); ?></td></tr>
   425     </table>
   456     </table>
   426   </div>
   457   </div>
   427   <?php
   458   <?php
   428   $template->footer();
   459   $template->footer();
   429 }
   460 }