%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/administrator/components/com_phocamaps/install/ |
Upload File : |
<?php /* * @package Joomla.Framework * @copyright Copyright (C) Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @component Phoca Component * @copyright Copyright (C) Jan Pavelka www.phoca.cz * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later; */ defined( '_JEXEC' ) or die( 'Restricted access' ); if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); jimport( 'joomla.filesystem.folder' ); class com_phocamapsInstallerScript { function install($parent) { //echo '<p>' . JText::_('COM_PHOCAMAPS_INSTALL_TEXT') . '</p>'; $folder[0][0] = 'phocamapskml' . DS ; $folder[0][1] = JPATH_ROOT . DS . $folder[0][0]; $message = ''; $error = array(); foreach ($folder as $key => $value) { if (!JFolder::exists( $value[1])) { if (JFolder::create( $value[1], 0755 )) { $data = "<html>\n<body bgcolor=\"#FFFFFF\">\n</body>\n</html>"; JFile::write($value[1].DS."index.html", $data); $message .= '<div><b><span style="color:#009933">Folder</span> ' . $value[0] .' <span style="color:#009933">created!</span></b></div>'; $error[] = 0; } else { $message .= '<div><b><span style="color:#CC0033">Folder</span> ' . $value[0] .' <span style="color:#CC0033">creation failed!</span></b> Please create it manually.</div>'; $error[] = 1; } } else//Folder exist { $message .= '<div><b><span style="color:#009933">Folder</span> ' . $value[0] .' <span style="color:#009933">exists!</span></b></div>'; $error[] = 0; } } $app = JFactory::getApplication(); $app->enqueueMessage($message, 'message'); $parent->getParent()->setRedirectURL('index.php?option=com_phocamaps'); } function uninstall($parent) { //echo '<p>' . JText::_('COM_PHOCAMAPS_UNINSTALL_TEXT') . '</p>'; } function update($parent) { //echo '<p>' . JText::sprintf('COM_PHOCAMAPS_UPDATE_TEXT', $parent->get('manifest')->version) . '</p>'; $folder[0][0] = 'phocamapskml' . DS ; $folder[0][1] = JPATH_ROOT . DS . $folder[0][0]; $message = ''; $error = array(); foreach ($folder as $key => $value) { if (!JFolder::exists( $value[1])) { if (JFolder::create( $value[1], 0755 )) { $data = "<html>\n<body bgcolor=\"#FFFFFF\">\n</body>\n</html>"; JFile::write($value[1].DS."index.html", $data); $message .= '<div><b><span style="color:#009933">Folder</span> ' . $value[0] .' <span style="color:#009933">created!</span></b></div>'; $error[] = 0; } else { $message .= '<div><b><span style="color:#CC0033">Folder</span> ' . $value[0] .' <span style="color:#CC0033">creation failed!</span></b> Please create it manually.</div>'; $error[] = 1; } } else//Folder exist { $message .= '<div><b><span style="color:#009933">Folder</span> ' . $value[0] .' <span style="color:#009933">exists!</span></b></div>'; $error[] = 0; } } $msg = JText::_('COM_PHOCAMAPS_UPDATE_TEXT'); $msg .= ' (' . JText::_('COM_PHOCAMAPS_VERSION'). ': ' . $parent->get('manifest')->version . ')'; //$parent->getParent()->setRedirectURL('index.php?option=com_phocamaps'); $app = JFactory::getApplication(); $app->enqueueMessage($msg, 'message'); $app->redirect(JRoute::_('index.php?option=com_phocamaps')); } function preflight($type, $parent) { //echo '<p>' . JText::_('COM_PHOCAMAPS_PREFLIGHT_' . $type . '_TEXT') . '</p>'; } function postflight($type, $parent) { //echo '<p>' . JText::_('COM_PHOCAMAPS_POSTFLIGHT_' . $type . '_TEXT') . '</p>'; } }