Server IP : 68.65.122.142  /  Your IP : 13.59.67.238
Web Server : LiteSpeed
System : Linux server167.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : glenirhm ( 1318)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/softaculous/toaster/../joomla30/../prototype/../etano/../yourls/../advpoll/../bagisto/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/softaculous/toaster/../joomla30/../prototype/../etano/../yourls/../advpoll/../bagisto/bagistofilefn.php
<?php
	//Copying Directory
	@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/', '[[softpath]]/resources/views/errors/');
	@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Notifications/resources/views/', '[[softpath]]/resources/views/vendor/notifications/');
	@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Pagination/resources/views/', '[[softpath]]/resources/views/vendor/pagination/');
	@copydir('[[softpath]]/vendor/laravel/sanctum/database/migrations/', '[[softpath]]/database/migrations/');
	@copydir('[[softpath]]/vendor/spatie/laravel-sitemap/resources/views/', '[[softpath]]/resources/views/vendor/sitemap/');
	@copydir('[[softpath]]/vendor/diglactic/laravel-breadcrumbs/resources/views/', '[[softpath]]/resources/views/vendor/breadcrumbs/');
	@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Mail/resources/views/', '[[softpath]]/resources/views/vendor/mail/');
	
	//Copying files
	@copy('[[softpath]]/vendor/astrotomic/laravel-translatable/src/config/translatable.php', '[[softpath]]/config/translatable.php');
	@copy('[[softpath]]/vendor/barryvdh/laravel-debugbar/config/debugbar.php', '[[softpath]]/config/debugbar.php');
	@copy('[[softpath]]/vendor/barryvdh/laravel-dompdf/config/dompdf.php', '[[softpath]]/config/dompdf.php');
	@copy('[[softpath]]/vendor/intervention/image/src/config/config.php', '[[softpath]]/config/image.php');
	@copy('[[softpath]]/vendor/intervention/imagecache/src/config/config.php', '[[softpath]]/config/imagecache.php');
	@copy('[[softpath]]/vendor/konekt/concord/config/config.php', '[[softpath]]/config/concord.php');
	@copy('[[softpath]]/vendor/laravel/octane/config/octane.php', '[[softpath]]/config/octane.php');
	@copy('[[softpath]]/vendor/laravel/sanctum/config/sanctum.php', '[[softpath]]/config/sanctum.php');
	@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.model.stub', '[[softpath]]/stubs/export.model.stub');
	@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.plain.stub', '[[softpath]]/stubs/export.plain.stub');
	@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.query.stub', '[[softpath]]/stubs/export.query.stub');
	@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.query-model.stub', '[[softpath]]/stubs/export.query-model.stub');
	@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/import.collection.stub', '[[softpath]]/stubs/import.collection.stub');
	@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/import.model.stub', '[[softpath]]/stubs/import.model.stub');
	@copy('[[softpath]]/vendor/maatwebsite/excel/config/excel.php', '[[softpath]]/config/excel.php');
	@copy('[[softpath]]/vendor/prettus/l5-repository/src/resources/config/repository.php', '[[softpath]]/config/repository.php');
	@copy('[[softpath]]/vendor/spatie/laravel-ignition/config/ignition.php', '[[softpath]]/config/ignition.php');
	@copy('[[softpath]]/vendor/spatie/laravel-ignition/config/flare.php', '[[softpath]]/config/flare.php');
	@copy('[[softpath]]/vendor/spatie/laravel-responsecache/config/responsecache.php', '[[softpath]]/config/responsecache.php');
	@copy('[[softpath]]/vendor/spatie/laravel-sitemap/config/sitemap.php', '[[softpath]]/config/sitemap.php');
	@copy('[[softpath]]/packages/Webkul/Core/src/Config/concord.php', '[[softpath]]/config/concord.php');
	@copy('[[softpath]]/packages/Webkul/Core/src/Config/repository.php', '[[softpath]]/config/repository.php');
	@copy('[[softpath]]/packages/Webkul/Core/src/Config/visitor.php', '[[softpath]]/config/visitor.php');
	@copy('[[softpath]]/packages/Webkul/Core/src/Config/elasticsearch.php', '[[softpath]]/config/elasticsearch.php');
	@copy('[[softpath]]/packages/Webkul/Shop/src/Config/imagecache.php', '[[softpath]]/config/imagecache.php');
	@copy('[[softpath]]/vendor/diglactic/laravel-breadcrumbs/config/breadcrumbs.php', '[[softpath]]/config/breadcrumbs.php');
	@copy('[[softpath]]/vendor/laravel/tinker/config/tinker.php', '[[softpath]]/config/tinker.php');
	@copy('[[softpath]]/vendor/openai-php/laravel/config/openai.php', '[[softpath]]/config/openai.php');
	
	function resetfilelist(){
	global $directorylist;
		$directorylist = array();
	}

	function filelist($startdir="./", $searchSubdirs=1, $directoriesonly=0, $maxlevel="all", $level=1, $reset = 1){
		global $globals;
		//list the directory/file names that you want to ignore
	   $ignoredDirectory = array();
	   $ignoredDirectory[] = ".";
	   $ignoredDirectory[] = "..";
	   $ignoredDirectory[] = "_vti_cnf";
	   global $directorylist;    //initialize global array
	   
	   if(substr($startdir, -1) != '/'){
			$startdir = $startdir.'/';
		}
	   
	   if (is_dir($startdir)) {
		   if ($dh = opendir($startdir)) {
			   while (($file = readdir($dh)) !== false) {
				   if (!(array_search($file,$ignoredDirectory) > -1)) {
					 if (@filetype($startdir . $file) == "dir") {
						 
						   //build your directory array however you choose;
						   //add other file details that you want.
						   
						   $directorylist[$startdir . $file]['level'] = $level;
						   $directorylist[$startdir . $file]['dir'] = 1;
						   $directorylist[$startdir . $file]['name'] = $file;
						   $directorylist[$startdir . $file]['path'] = $startdir;
						   if ($searchSubdirs) {
							   if ((($maxlevel) == "all") or ($maxlevel > $level)) {
								   filelist($startdir . $file . "/", $searchSubdirs, $directoriesonly, $maxlevel, ($level + 1), 0);
							   }
						   }
						  
						   
					   } else {
						   if (!$directoriesonly) {
							 
						  //  echo substr(strrchr($file, "."), 1);
							   //if you want to include files; build your file array 
							   //however you choose; add other file details that you want.
							 $directorylist[$startdir . $file]['level'] = $level;
							 $directorylist[$startdir . $file]['dir'] = 0;
							 $directorylist[$startdir . $file]['name'] = $file;
							 $directorylist[$startdir . $file]['path'] = $startdir;
							  
						 
						}}}}
			   closedir($dh);
		}}

		if(!empty($reset)){
			$r = $directorylist;
			$directorylist = array();
			return($r);
		}
	}

	// Copy from source to destination
	function copydir($source, $destination){
		
		$source = (substr($source, -1) == '/' || substr($source, -1) == '\\' ? $source : $source.'/');
		$destination = (substr($destination, -1) == '/' || substr($destination, -1) == '\\' ? $destination : $destination.'/');
		$source_ = substr($source, 0, -1);
		$destination_ = substr($destination, 0, -1);
		
		if(!is_dir($destination)){
			mkdir($destination);
		}
		
		resetfilelist();	
		$files = filelist($source, 1, 1, 'all');
		$files = (!is_array($files) ? array() : $files);
		
		// Make the folders
		foreach($files as $k => $v){
			mkdir_recursive(str_replace($source_, $destination_, $k), $globals['dirchmod']);
			@chmod(str_replace($source_, $destination_, $k), fileperms($k));
		}
		
		@clearstatcache();	
		resetfilelist();
		
		$files = filelist($source, 1, 0, 'all');
		$files = (!is_array($files) ? array() : $files);
		
		// Copy the files
		foreach($files as $k => $v){
			if(file_exists($k) && is_file($k) && @filetype($k) == "file"){
				copy($k, str_replace($source_, $destination_, $k));
				@chmod(str_replace($source_, $destination_, $k), fileperms($k));
			}
		}
		
		@clearstatcache();	
		resetfilelist();
		
		return true;

	}

	function mkdir_recursive($pathname, $mode){
		is_dir(dirname($pathname)) || mkdir_recursive(dirname($pathname), $mode);
		return is_dir($pathname) || @mkdir($pathname, $mode);
	}