CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/local/rvglobalsoft/rvsitebuilder7/auto/
Upload File :
Current File : //proc/2/root/usr/local/rvglobalsoft/rvsitebuilder7/auto/uninstallrvadmintools.pl

#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
if 0;

#!/usr/bin/perl 

# WebSite:  http://www.rvglobalsoft.com
# Unauthorized copying is strictly forbidden and may result in severe legal action.
# Copyright (c) 2013 RV Global Soft Co.,Ltd. All rights reserved.
#
# =====YOU MUST KEEP THIS COPYRIGHTS NOTICE INTACT AND CAN NOT BE REMOVE =======
# Copyright (c) 2013 RV Global Soft Co.,Ltd. All rights reserved.
# This Agreement is a legal contract, which specifies the terms of the license
# and warranty limitation between you and RV Global Soft Co.,Ltd. and RV2Factor Product for RV Global Soft.
# You should carefully read the following terms and conditions before
# installing or using this software.  Unless you have a different license
# agreement obtained from RV Global Soft Co.,Ltd., installation or use of this software
# indicates your acceptance of the license and warranty limitation terms
# contained in this Agreement. If you do not agree to the terms of this
# Agreement, promptly delete and destroy all copies of the Software.
#
# =====  Grant of License =======
# The Software may only be installed and used on a single host machine.
#
# =====  Disclaimer of Warranty =======
# THIS SOFTWARE AND ACCOMPANYING DOCUMENTATION ARE PROVIDED "AS IS" AND
# WITHOUT WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER
# WARRANTIES WHETHER EXPRESSED OR IMPLIED.   BECAUSE OF THE VARIOUS HARDWARE
# AND SOFTWARE ENVIRONMENTS INTO WHICH RV SITE BUILDER MAY BE USED, NO WARRANTY OF
# FITNESS FOR A PARTICULAR PURPOSE IS OFFERED.  THE USER MUST ASSUME THE
# ENTIRE RISK OF USING THIS PROGRAM.  ANY LIABILITY OF RV GLOBAL SOFT CO.,LTD. WILL BE
# LIMITED EXCLUSIVELY TO PRODUCT REPLACEMENT OR REFUND OF PURCHASE PRICE.
# IN NO CASE SHALL RV GLOBAL SOFT CO.,LTD. BE LIABLE FOR ANY INCIDENTAL, SPECIAL OR
# CONSEQUENTIAL DAMAGES OR LOSS, INCLUDING, WITHOUT LIMITATION, LOST PROFITS
# OR THE INABILITY TO USE EQUIPMENT OR ACCESS DATA, WHETHER SUCH DAMAGES ARE
# BASED UPON A BREACH OF EXPRESS OR IMPLIED WARRANTIES, BREACH OF CONTRACT,
# NEGLIGENCE, STRICT TORT, OR ANY OTHER LEGAL THEORY. THIS IS TRUE EVEN IF
# RV GLOBAL SOFT CO.,LTD. IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO CASE WILL
# RV GLOBAL SOFT CO.,LTD.'S LIABILITY EXCEED THE AMOUNT OF THE LICENSE FEE ACTUALLY PAID
# BY LICENSEE TO RV GLOBAL SOFT CO.,LTD.
# ===============================


use strict;
use warnings;
use File::Basename;
use Data::Dumper;
use IPC::Open3;


	
	
	
	#unregis app
	if (-x '/usr/local/cpanel/bin/unregister_appconfig') {
		system('/usr/local/cpanel/bin/unregister_appconfig','/usr/local/rvglobalsoft/rvadmintools/auto/appconfig/rvadmintools.conf');
	}
	
	
	#delete app on cgi path
	if (-l '/usr/local/cpanel/whostmgr/docroot/cgi/rvadmintools') {
		system('rm','-f','/usr/local/cpanel/whostmgr/docroot/cgi/rvadmintools');
	}
	
	
	#delete rvadmintools on cpanel module path
	if (-e '/usr/local/cpanel/Cpanel/Rvadmintools.pm') {
		system('rm','-f','/usr/local/cpanel/Cpanel/Rvadmintools.pm');
	}	
	
	
	#delete rvadmintools custom js and ui on /var/cpanel/customizations/includes/ path
	opendir my $mydir, "/usr/local/rvglobalsoft/rvadmintools/data/admintoolsIncludeUI" or die "Cannot open admintoolsIncludeUI directory: $!";
	my @myfiles = readdir $mydir;
	closedir $mydir;
	opendir my $cpaneldir, "/var/cpanel/customizations/includes" or die "Cannot open cpanel include directory: $!";
	my @cpanelfiles = readdir $cpaneldir;
	closedir $cpaneldir;
	foreach my $file (@myfiles) {
		if ( grep( /^$file$/, @cpanelfiles ) ) {
			next if ($file eq '.' || $file eq '..');
		  	system('rm','-f',"/var/cpanel/customizations/includes/$file");
		}
	}
	
	
	#delete program path
	if (-d '/usr/local/rvglobalsoft/rvadmintools') {
		system('rm','-rf','/usr/local/rvglobalsoft/rvadmintools');
	}
	


	
	
	


1;

Copyright 2K16 - 2K18 Indonesian Hacker Rulez