uawdijnntqw1x1x1
IP : 216.73.217.93
Hostname : webd004.cluster102.gra.hosting.ovh.net
Kernel : Linux webd004.cluster102.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
sunflowe
/
www
/
modules
/
mod_custom
/
tmpl
/
..
/
..
/
mod_rokweather
/
tmpl
/
..
/
install.script.php
/
/
<?php /** * Document Description * * Document Long Description * * PHP4/5 * * Created on Jul 21, 2008 * * @package package_name * @author Your Name <author@toowoombarc.qld.gov.au> * @author Toowoomba Regional Council Information Management Branch * @license GNU/GPL http://www.gnu.org/licenses/gpl.html * @copyright 2008 Toowoomba Regional Council/Developer Name * @version SVN: $Id: install.script.php 6807 2013-01-27 21:56:04Z btowles $ * @see http://joomlacode.org/gf/project/ JoomlaCode Project: */ class Mod_RokWeatherInstallerScript { public function install($parent) { if ($this->checkForExtender()) $this->registerExtenderPlugin($parent); return true; } public function update($parent) { $old_lang_file = JPATH_SITE.'/language/en-GB/en-GB.mod_rokweather.ini'; if (@file_exists($old_lang_file) && is_writable($old_lang_file)) { @unlink($old_lang_file); } if ($this->checkForExtender()) $this->registerExtenderPlugin($parent); return true; } public function uninstall($parent) { if ($this->checkForExtender()) $this->unregisterExtenderPlugin($parent); } public function preflight($type, $parent) { } /** * @return bool */ protected function checkForExtender() { // if the class exists and is loaded just return if (class_exists('plgSystemRokExtender')) return true; $plugin_path = JPATH_ROOT . '/plugins/system/rokextender/rokextender.php'; // if the plugin isnt installed if (!file_exists($plugin_path) || !is_file($plugin_path)) return false; require_once($plugin_path); if (!class_exists('plgSystemRokExtender')) { //TODO: add error message output return false; } return true; } protected function registerExtenderPlugin($parent) { $manifest = $parent->getParent()->getManifest(); $basepath = str_replace(JPATH_ROOT, '', $parent->getParent()->getPath('extension_root')); foreach ($manifest->plugins->plugin as $plugin) { plgSystemRokExtender::registerExtenderPlugin($basepath . (string)$plugin); } } protected function unregisterExtenderPlugin($parent) { $manifest = $parent->getParent()->getManifest(); $basepath = str_replace(JPATH_ROOT, '', $parent->getParent()->getPath('extension_root')); foreach ($manifest->plugins->plugin as $plugin) { plgSystemRokExtender::registerExtenderPlugin($basepath . (string)$plugin); } } }
/home/sunflowe/www/modules/mod_custom/tmpl/../../mod_rokweather/tmpl/../install.script.php