[ Index ]
 

Code source de XOOPS 2.0.17.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/htdocs/install/class/ -> cachemanager.php (source)

   1  <?php
   2  //  ------------------------------------------------------------------------ //

   3  //                XOOPS - PHP Content Management System                      //

   4  //                    Copyright (c) 2000 XOOPS.org                           //

   5  //                       <http://www.xoops.org/>                             //

   6  //  ------------------------------------------------------------------------ //

   7  //  This program is free software; you can redistribute it and/or modify     //

   8  //  it under the terms of the GNU General Public License as published by     //

   9  //  the Free Software Foundation; either version 2 of the License, or        //

  10  //  (at your option) any later version.                                      //

  11  //                                                                           //

  12  //  You may not change or alter any portion of this comment or credits       //

  13  //  of supporting developers from this source code or any supporting         //

  14  //  source code which is considered copyrighted (c) material of the          //

  15  //  original comment or credit authors.                                      //

  16  //                                                                           //

  17  //  This program is distributed in the hope that it will be useful,          //

  18  //  but WITHOUT ANY WARRANTY; without even the implied warranty of           //

  19  //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //

  20  //  GNU General Public License for more details.                             //

  21  //                                                                           //

  22  //  You should have received a copy of the GNU General Public License        //

  23  //  along with this program; if not, write to the Free Software              //

  24  //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //

  25  //  ------------------------------------------------------------------------ //

  26  
  27  /**

  28  * cache_manager for XOOPS installer

  29  *

  30  * @author Haruki Setoyama  <haruki@planewave.org>

  31  * @version $Id: cachemanager.php 2 2005-11-02 18:23:29Z skalpa $

  32  * @access public

  33  **/
  34  class cache_manager {
  35  
  36      var $s_files = array();
  37      var $f_files = array();
  38  
  39      function write($file, $source){
  40          if (false != $fp = fopen(XOOPS_CACHE_PATH.'/'.$file, 'w')) {
  41              fwrite($fp, $source);
  42              fclose($fp);
  43              $this->s_files[] = $file;
  44          }else{
  45              $this->f_files[] = $file;
  46          }
  47      }
  48  
  49      function report(){
  50          $content = "<table align='center'><tr><td align='left'>\n";
  51          foreach($this->s_files as $val){
  52              $content .= _OKIMG.sprintf(_INSTALL_L123, "<b>$val</b>")."<br />\n";
  53          }
  54          foreach($this->f_files as $val){
  55              $content .= _NGIMG.sprintf(_INSTALL_L124, "<b>$val</b>")."<br />\n";
  56          }
  57          $content .= "</td></tr></table>\n";
  58          return $content;
  59      }
  60  
  61  }
  62  
  63  
  64  ?>


Généré le : Sun Nov 25 11:44:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics