Server IP : 180.180.241.3 / Your IP : 216.73.216.127 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/app/webroot/news/administrator/components/com_phocamaps/ |
Upload File : |
<?php /* * @package Joomla 1.5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * * @component Phoca Component * @copyright Copyright (C) Jan Pavelka www.phoca.cz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.filesystem.folder' ); function com_install() { $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 )) { @JFile::write($value[1].DS."index.html", "<html>\n<body bgcolor=\"#FFFFFF\">\n</body>\n</html>"); // @JFile::write($value[1].DS.".htaccess", "deny from all"); $message .= '<p><b><span style="color:#009933">Folder</span> ' . $value[0] .' <span style="color:#009933">created!</span></b></p>'; $error[] = 0; } else { $message .= '<p><b><span style="color:#CC0033">Folder</span> ' . $value[0] .' <span style="color:#CC0033">creation failed!</span></b> Please create it manually.</p>'; $error[] = 1; } } else//Folder exist { $message .= '<p><b><span style="color:#009933">Folder</span> ' . $value[0] .' <span style="color:#009933">exists!</span></b></p>'; $error[] = 0; } } $message .= '<p>Please select if you want to Install or Upgrade Phoca Maps component. Click Install for new Phoca Maps installation. If you click on Install and some previous Phoca Maps version is installed on your system, all Phoca Maps data stored in database will be lost. If you click on Uprade, previous Phoca Maps data stored in database will be not removed.</p>'; $message .='<p>Maps are created by Google Maps™<br />You need not to sign up for the Google Maps API key because maps are created by API version 3.</p>'; ?> <div style="padding:20px;border:1px solid #b36b00;background:#fff"> <a style="text-decoration:underline" href="http://www.phoca.cz/" target="_blank"><?php echo JHTML::_('image.site', 'logo.png', 'components/com_phocamaps/assets/images/', NULL, NULL, 'Phoca.cz'); ?></a> <div style="position:relative;float:right;"> <?php echo JHTML::_('image.site', 'logo-phoca.png', 'components/com_phocamaps/assets/images/', NULL, NULL, 'Phoca.cz');?> </div> <p> </p> <?php echo $message; ?> <div style="clear:both"> </div> <div style="text-align:center"><center><table border="0" cellpadding="20" cellspacing="20"> <tr> <td align="center" valign="middle"> <a href="index.php?option=com_phocamaps&controller=phocamapsinstall&task=install"><?php echo JHTML::_('image.site', 'install.png', '/components/com_phocamaps/assets/images/', NULL, NULL, 'Install' ); ?></a> </td> <td align="center" valign="middle"> <a href="index.php?option=com_phocamaps&controller=phocamapsinstall&task=upgrade"><?php echo JHTML::_('image.site', 'upgrade.png', '/components/com_phocamaps/assets/images/', NULL, NULL, 'Upgrade' ); ?></a> </td> </tr> </table></center></div> <p> </p> <p> </p> <p> <a href="http://www.phoca.cz/phocamaps/" target="_blank">Phoca Maps Main Site</a><br /> <a href="http://www.phoca.cz/documentation/" target="_blank">Phoca Maps User Manual</a><br /> <a href="http://www.phoca.cz/forum/" target="_blank">Phoca Maps Forum</a><br /> </p> <p>Google™ is a trademark of <a href="http://www.google.com" target="_blank">Google Inc.</a><br />Google Maps™ is a trademark of <a href="http://www.google.com" target="_blank">Google Inc.</a></p> <p> </p> <p><center><a style="text-decoration:underline" href="http://www.phoca.cz/" target="_blank">www.phoca.cz</a></center></p> <?php } ?>