[zi-cvs] packages/com.zzoss.plugin.lib Plugin.php,1.13,1.14

Sandro Zic <[email protected]> Mon, 05 Apr 2004 16:41:00 +0000
Newsgroups gmane.comp.php.zzoss.installer.cvs
Message-ID <[email protected]>
Update of /cvsroot/zzossinstaller/packages/com.zzoss.plugin.lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27600/com.zzoss.plugin.lib

Modified Files:
	Plugin.php 
Log Message:
make config plugin remember input

Index: Plugin.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.plugin.lib/Plugin.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Plugin.php	26 Mar 2004 11:07:46 -0000	1.13
--- Plugin.php	5 Apr 2004 16:40:33 -0000	1.14
***************
*** 460,488 ****
      {
          $status = NULL;
!         $GLOBALS['ZI']['plugin_log'] = '';/*
!         foreach($this->sources as $source){
!             $this->log .= "* Checking source directory '".$source."'\n";*/
!             $include = ZZOSS_InstallerUtils::fixPath(/*$source.DIRECTORY_SEPARATOR.$name.DIRECTORY_SEPARATOR.*/$include);
!             $this->log .= "* Trying to include '".$include."'\n";
!             if(/*!*/file_exists($include)){
!                 /*
!                 // Check for development plugin (has no version in its unique name).
!                 $include = ZZOSS_InstallerUtils::fixPath($source.DIRECTORY_SEPARATOR.$params['name'].DIRECTORY_SEPARATOR.$include);
!                 $this->log .= "* Trying to include '".$include."'\n";
!                 if(file_exists($include)){
!                     $this->initGlobalVariables();
!                     $status = ZZOSS_PLUGIN_STATUS_INCLUDED;
!                     include($include);
!                     break;
!                 }
!             } else {*/
!                 $this->initGlobalVariables();
!                 include($include);
!                 $status = ZZOSS_PLUGIN_STATUS_INCLUDED;
!                 //break;
!             }
!         //}
          if($status == ZZOSS_PLUGIN_STATUS_UNDEFINED){
!             $this->log .= "* Plugin '$name': Could not find '".$include./*"' nor '".$params['name'].DIRECTORY_SEPARATOR.$include.*/"' in specified sources.\n";
          } elseif($status == ZZOSS_PLUGIN_STATUS_INCLUDED) {
              $this->log .= "* Including $include\n";
--- 460,504 ----
      {
          $status = NULL;
!         $GLOBALS['ZI']['plugin_log'] = '';
!         $include = ZZOSS_InstallerUtils::fixPath($include);
!         $this->log .= "* Trying to include '".$include."'\n";
!         if(file_exists($include)){
!             
!             
!             // START Plugins Runtime Environment
!             
!             
!             // remember include path
!             //$inc_path_old = ini_get('include_path');
!             // set include path to allow only relative includes,
!             // which will immediately throw an error if a plugin
!             // relies on a class external to the plugins runtime
!             // environment (e.g. a class provided by the installer).
!             //ini_set('include_path', '.');
!             
!             // set global vars ($GLOBALS['ZI'])
!             $this->initGlobalVariables();
!             
!             
!             //echo $include.'<br/>';
!             
!             // include plugin
!             include($include);
!             //phpinfo();
!             /*$plugin_res = popen('/usr/bin/php '.$include, 'r');
!             $contents = fread($plugin_res, 12000);
!             pclose($plugin_res);
!             echo 'Inhalt: '.$contents;*/
!             // reset include path
!             //ini_set('include_path', $inc_path_old);
!             
!             
!             // END Plugins Runtime Environment
!             
!             
!             $status = ZZOSS_PLUGIN_STATUS_INCLUDED;
!         }
          if($status == ZZOSS_PLUGIN_STATUS_UNDEFINED){
!             $this->log .= "* Plugin '$name': Could not find '".$include."' in specified sources.\n";
          } elseif($status == ZZOSS_PLUGIN_STATUS_INCLUDED) {
              $this->log .= "* Including $include\n";
***************
*** 644,647 ****
--- 660,665 ----
          $GLOBALS['ZI']['plugin_data_dir'] = $this->data_dir.DIRECTORY_SEPARATOR;
          
+         $GLOBALS['ZI']['plugins_re'] = $this->dest_dir;
+         
          // GUI
          $GLOBALS['ZI']['gui_submitted'] = (isset($_REQUEST['ZI_BUTTON_NEXT']) || isset($_REQUEST['ZI_BUTTON_NEXT_x']));



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click