这是一个joomla系统的插件, 这是一个joomla系统的插件

源代码在线查看: easygallery.class.php

软件大小: 126 K
上传用户: flp123456
关键词: joomla 插件
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**				* @package EasyGallery				* @copyright (C) 2006 Joomla-addons.org				* @author  Adam van Dongen				* @version $Id: easygallery.class.php 14 2007-06-22 14:39:57Z websmurf $				* 				* --------------------------------------------------------------------------------				* All rights reserved. Easy Gallery Component for Joomla!				*				* This program is free software; you can redistribute it and/or				* modify it under the terms of the Joomla-addons Free Software License 				* See LICENSE.php for more information.				*				* This program is distributed in the hope that it will be useful,				* but WITHOUT ANY WARRANTY; without even the implied warranty of				* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  				* --------------------------------------------------------------------------------				**/								defined( '_VALID_MOS' ) or die( 'Restricted access' );								define("PATH_EASYGALLERY", dirname(__FILE__));								$easygallery_version = '1.0 beta 5';								if(!class_exists('xajax')){				  require_once(PATH_EASYGALLERY . '/xajax/xajax.inc.php');				}								$xajax = new xajax('index3.php?option=' . $option . '&act=xajaxServer&no_html=1');								if(file_exists($mainframe->getCfg('absolute_path') . '/components/com_easygallery/language/'. $mainframe->getCfg('lang') . '.php')){				  require_once($mainframe->getCfg('absolute_path') . '/components/com_easygallery/language/'. $mainframe->getCfg('lang') . '.php');				} else {				  require_once($mainframe->getCfg('absolute_path') . '/components/com_easygallery/language/english.php');				}								require_once(PATH_EASYGALLERY . '/classes/categories.php');				require_once(PATH_EASYGALLERY . '/classes/photos.php');				require_once(PATH_EASYGALLERY . '/classes/ftp.php');				require_once(PATH_EASYGALLERY . '/classes/update.php');								require(PATH_EASYGALLERY . '/configuration.php');								function saveConfiguration(){				  global $option, $mainframe, $task;				    				    				  $config = mosGetParam($_REQUEST, 'eg_config');				  ksort($config);				    				    $content = '				/**				* @package EasyGallery				* @copyright (C) 2006 Joomla-addons.org				* @author  Adam van Dongen				* @version $Id: easygallery.class.php 14 2007-06-22 14:39:57Z websmurf $				* 				* --------------------------------------------------------------------------------				* All rights reserved. Easy Gallery Component for Joomla!				*				* This program is free software; you can redistribute it and/or				* modify it under the terms of the Joomla-addons Free Software License 				* See LICENSE.php for more information.				*				* This program is distributed in the hope that it will be useful,				* but WITHOUT ANY WARRANTY; without even the implied warranty of				* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  				* --------------------------------------------------------------------------------				**/								defined( \'_VALID_MOS\' ) or die( \'Restricted access\' );								';				  $keys = array_keys($config);				  for($i=0,$n=count($keys);$i				    if (!ini_get('magic_quotes_gpc')){				      $config[$keys[$i]] = addslashes($config[$keys[$i]]);				    }				    $content .= '$eg_' . $keys[$i] . ' = \'' . $config[$keys[$i]] . "';\n";				  }				  $content .= "\n?>";				  				  if(!is_writable(PATH_EASYGALLERY . '/configuration.php')){				    mosRedirect('index2.php?option=' . $option . '&act=configuration', 'Configuration file is not writable');				    return;				  }				  				  $fp = fopen(PATH_EASYGALLERY . '/configuration.php', 'w');				  fwrite($fp, $content);				  fclose($fp);				  				  switch ($task){					  case 'save':					    mosRedirect('index2.php?option=' . $option . '', 'Configuration saved');					    break;					  case 'apply':					    mosRedirect('index2.php?option=' . $option . '&act=configuration', 'Configuration saved');					    break;					}				}								class dbPhoto extends mosDBTable {				  /** @var int ID **/				  var $id = null;				  /** @var int category id **/				  var $cid = null;				  /** @var string name **/				  var $name = null;				  /** @var text description **/				  var $description = null;				  /** @var string path **/				  var $path = null;				  /** @var boolean default **/				  var $default = null;				  /** @var int ordering **/				  var $ordering = null;				  /** @var tinyint state **/				  var $state = null;				  				  function dbPhoto(&$db){				    $this->mosDBTable('#__easygallery', 'id', $db);				  }				}								?>			

相关资源