Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../bagisto
File: bagistofilefn.php
<?php
[0] Fix | Delete
//Coping Directory
[1] Fix | Delete
@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/', '[[softpath]]/resources/views/errors/');
[2] Fix | Delete
@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Notifications/resources/views/', '[[softpath]]/resources/views/vendor/notifications/');
[3] Fix | Delete
@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Pagination/resources/views/', '[[softpath]]/resources/views/vendor/pagination/');
[4] Fix | Delete
@copydir('[[softpath]]/vendor/laravel/sanctum/database/migrations/', '[[softpath]]/database/migrations/');
[5] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Admin/publishable/assets/', '[[softpath]]/public/vendor/webkul/admin/assets/');
[6] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Ui/publishable/assets/', '[[softpath]]/public/vendor/webkul/ui/assets/');
[7] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Shop/publishable/assets/', '[[softpath]]/public/themes/default/assets/');
[8] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Shop/src/Resources/views/', '[[softpath]]/resources/themes/default/views/');
[9] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Velocity/publishable/assets/', '[[softpath]]/public/themes/velocity/assets/');
[10] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Velocity/src/Resources/views/shop/', '[[softpath]]/resources/themes/velocity/views/');
[11] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/BookingProduct/publishable/assets/', '[[softpath]]/public/themes/default/assets/');
[12] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/SocialLogin/publishable/assets/', '[[softpath]]/public/themes/default/assets/');
[13] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Notification/src/Database/Migrations/', '[[softpath]]/database/migrations/');
[14] Fix | Delete
@copydir('[[softpath]]/vendor/laravel/framework/src/Illuminate/Mail/resources/views/', '[[softpath]]/resources/views/vendor/mail/');
[15] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Admin/src/Resources/lang/', '[[softpath]]/lang/vendor/admin/');
[16] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Shop/src/Resources/lang/', '[[softpath]]/lang/vendor/shop/');
[17] Fix | Delete
@copydir('[[softpath]]/packages/Webkul/Velocity/src/Resources/lang/', '[[softpath]]/lang/vendor/velocity/');
[18] Fix | Delete
@copydir('[[softpath]]/vendor/spatie/laravel-sitemap/resources/views/', '[[softpath]]/resources/views/vendor/sitemap/');
[19] Fix | Delete
@copydir('[[softpath]]/vendor/diglactic/laravel-breadcrumbs/resources/views/', '[[softpath]]/resources/views/vendor/breadcrumbs/');
[20] Fix | Delete
[21] Fix | Delete
@copy('[[softpath]]/vendor/astrotomic/laravel-translatable/src/config/translatable.php', '[[softpath]]/config/translatable.php');
[22] Fix | Delete
@copy('[[softpath]]/vendor/barryvdh/laravel-debugbar/config/debugbar.php', '[[softpath]]/config/debugbar.php');
[23] Fix | Delete
@copy('[[softpath]]/vendor/barryvdh/laravel-dompdf/config/dompdf.php', '[[softpath]]/config/dompdf.php');
[24] Fix | Delete
@copy('[[softpath]]/vendor/flynsarmy/db-blade-compiler/config/db-blade-compiler.php', '[[softpath]]/config/db-blade-compiler.php');
[25] Fix | Delete
@copy('[[softpath]]/vendor/flynsarmy/db-blade-compiler/config/.gitkeep', '[[softpath]]/storage/app/db-blade-compiler/views/.gitkeep');
[26] Fix | Delete
@copy('[[softpath]]/vendor/intervention/image/src/config/config.php', '[[softpath]]/config/image.php');
[27] Fix | Delete
@copy('[[softpath]]/vendor/intervention/imagecache/src/config/config.php', '[[softpath]]/config/imagecache.php');
[28] Fix | Delete
@copy('[[softpath]]/vendor/konekt/concord/config/config.php', '[[softpath]]/config/concord.php');
[29] Fix | Delete
@copy('[[softpath]]/vendor/laravel/sanctum/config/sanctum.php', '[[softpath]]/config/sanctum.php');
[30] Fix | Delete
@copy('[[softpath]]/vendor/laravel/scout/config/scout.php', '[[softpath]]/config/scout.php');
[31] Fix | Delete
@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.model.stub', '[[softpath]]/stubs/export.model.stub');
[32] Fix | Delete
@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.plain.stub', '[[softpath]]/stubs/export.plain.stub');
[33] Fix | Delete
@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.query.stub', '[[softpath]]/stubs/export.query.stub');
[34] Fix | Delete
@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/export.query-model.stub', '[[softpath]]/stubs/export.query-model.stub');
[35] Fix | Delete
@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/import.collection.stub', '[[softpath]]/stubs/import.collection.stub');
[36] Fix | Delete
@copy('[[softpath]]/vendor/maatwebsite/excel/src/Console/stubs/import.model.stub', '[[softpath]]/stubs/import.model.stub');
[37] Fix | Delete
@copy('[[softpath]]/vendor/maatwebsite/excel/config/excel.php', '[[softpath]]/config/excel.php');
[38] Fix | Delete
@copy('[[softpath]]/vendor/php-open-source-saver/jwt-auth/config/config.php', '[[softpath]]/config/jwt.php');
[39] Fix | Delete
@copy('[[softpath]]/vendor/prettus/l5-repository/src/resources/config/repository.php', '[[softpath]]/config/repository.php');
[40] Fix | Delete
@copy('[[softpath]]/packages/Webkul/Core/src/Config/concord.php', '[[softpath]]/config/concord.php');
[41] Fix | Delete
@copy('[[softpath]]/packages/Webkul/Core/src/Config/sanctum.php', '[[softpath]]/config/sanctum.php');
[42] Fix | Delete
@copy('[[softpath]]/packages/Webkul/Core/src/Config/scout.php', '[[softpath]]/config/scout.php');
[43] Fix | Delete
@copy('[[softpath]]/packages/Webkul/Product/src/Config/imagecache.php', '[[softpath]]/config/imagecache.php');
[44] Fix | Delete
@copy('[[softpath]]/vendor/diglactic/laravel-breadcrumbs/config/breadcrumbs.php', '[[softpath]]/config/breadcrumbs.php');
[45] Fix | Delete
@copy('[[softpath]]/vendor/laravel/tinker/config/tinker.php', '[[softpath]]/config/tinker.php');
[46] Fix | Delete
@copy('[[softpath]]/vendor/spatie/laravel-ignition/config/flare.php', '[[softpath]]/config/flare.php');
[47] Fix | Delete
@copy('[[softpath]]/vendor/spatie/laravel-ignition/config/ignition.php', '[[softpath]]/config/ignition.php');
[48] Fix | Delete
@copy('[[softpath]]/vendor/spatie/laravel-sitemap/config/sitemap.php', '[[softpath]]/config/sitemap.php');
[49] Fix | Delete
[50] Fix | Delete
function resetfilelist(){
[51] Fix | Delete
global $directorylist;
[52] Fix | Delete
$directorylist = array();
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
function filelist($startdir="./", $searchSubdirs=1, $directoriesonly=0, $maxlevel="all", $level=1, $reset = 1){
[56] Fix | Delete
global $globals;
[57] Fix | Delete
//list the directory/file names that you want to ignore
[58] Fix | Delete
$ignoredDirectory = array();
[59] Fix | Delete
$ignoredDirectory[] = ".";
[60] Fix | Delete
$ignoredDirectory[] = "..";
[61] Fix | Delete
$ignoredDirectory[] = "_vti_cnf";
[62] Fix | Delete
global $directorylist; //initialize global array
[63] Fix | Delete
[64] Fix | Delete
if(substr($startdir, -1) != '/'){
[65] Fix | Delete
$startdir = $startdir.'/';
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
if (is_dir($startdir)) {
[69] Fix | Delete
if ($dh = opendir($startdir)) {
[70] Fix | Delete
while (($file = readdir($dh)) !== false) {
[71] Fix | Delete
if (!(array_search($file,$ignoredDirectory) > -1)) {
[72] Fix | Delete
if (@filetype($startdir . $file) == "dir") {
[73] Fix | Delete
[74] Fix | Delete
//build your directory array however you choose;
[75] Fix | Delete
//add other file details that you want.
[76] Fix | Delete
[77] Fix | Delete
$directorylist[$startdir . $file]['level'] = $level;
[78] Fix | Delete
$directorylist[$startdir . $file]['dir'] = 1;
[79] Fix | Delete
$directorylist[$startdir . $file]['name'] = $file;
[80] Fix | Delete
$directorylist[$startdir . $file]['path'] = $startdir;
[81] Fix | Delete
if ($searchSubdirs) {
[82] Fix | Delete
if ((($maxlevel) == "all") or ($maxlevel > $level)) {
[83] Fix | Delete
filelist($startdir . $file . "/", $searchSubdirs, $directoriesonly, $maxlevel, ($level + 1), 0);
[84] Fix | Delete
}
[85] Fix | Delete
}
[86] Fix | Delete
[87] Fix | Delete
[88] Fix | Delete
} else {
[89] Fix | Delete
if (!$directoriesonly) {
[90] Fix | Delete
[91] Fix | Delete
// echo substr(strrchr($file, "."), 1);
[92] Fix | Delete
//if you want to include files; build your file array
[93] Fix | Delete
//however you choose; add other file details that you want.
[94] Fix | Delete
$directorylist[$startdir . $file]['level'] = $level;
[95] Fix | Delete
$directorylist[$startdir . $file]['dir'] = 0;
[96] Fix | Delete
$directorylist[$startdir . $file]['name'] = $file;
[97] Fix | Delete
$directorylist[$startdir . $file]['path'] = $startdir;
[98] Fix | Delete
[99] Fix | Delete
[100] Fix | Delete
}}}}
[101] Fix | Delete
closedir($dh);
[102] Fix | Delete
}}
[103] Fix | Delete
[104] Fix | Delete
if(!empty($reset)){
[105] Fix | Delete
$r = $directorylist;
[106] Fix | Delete
$directorylist = array();
[107] Fix | Delete
return($r);
[108] Fix | Delete
}
[109] Fix | Delete
}
[110] Fix | Delete
[111] Fix | Delete
// Copy from source to destination
[112] Fix | Delete
function copydir($source, $destination){
[113] Fix | Delete
[114] Fix | Delete
$source = (substr($source, -1) == '/' || substr($source, -1) == '\\' ? $source : $source.'/');
[115] Fix | Delete
$destination = (substr($destination, -1) == '/' || substr($destination, -1) == '\\' ? $destination : $destination.'/');
[116] Fix | Delete
$source_ = substr($source, 0, -1);
[117] Fix | Delete
$destination_ = substr($destination, 0, -1);
[118] Fix | Delete
[119] Fix | Delete
if(!is_dir($destination)){
[120] Fix | Delete
mkdir($destination);
[121] Fix | Delete
}
[122] Fix | Delete
[123] Fix | Delete
resetfilelist();
[124] Fix | Delete
$files = filelist($source, 1, 1, 'all');
[125] Fix | Delete
$files = (!is_array($files) ? array() : $files);
[126] Fix | Delete
[127] Fix | Delete
// Make the folders
[128] Fix | Delete
foreach($files as $k => $v){
[129] Fix | Delete
mkdir_recursive(str_replace($source_, $destination_, $k), $globals['dirchmod']);
[130] Fix | Delete
@chmod(str_replace($source_, $destination_, $k), fileperms($k));
[131] Fix | Delete
}
[132] Fix | Delete
[133] Fix | Delete
@clearstatcache();
[134] Fix | Delete
resetfilelist();
[135] Fix | Delete
[136] Fix | Delete
$files = filelist($source, 1, 0, 'all');
[137] Fix | Delete
$files = (!is_array($files) ? array() : $files);
[138] Fix | Delete
[139] Fix | Delete
// Copy the files
[140] Fix | Delete
foreach($files as $k => $v){
[141] Fix | Delete
if(file_exists($k) && is_file($k) && @filetype($k) == "file"){
[142] Fix | Delete
copy($k, str_replace($source_, $destination_, $k));
[143] Fix | Delete
@chmod(str_replace($source_, $destination_, $k), fileperms($k));
[144] Fix | Delete
}
[145] Fix | Delete
}
[146] Fix | Delete
[147] Fix | Delete
@clearstatcache();
[148] Fix | Delete
resetfilelist();
[149] Fix | Delete
[150] Fix | Delete
return true;
[151] Fix | Delete
[152] Fix | Delete
}
[153] Fix | Delete
[154] Fix | Delete
function mkdir_recursive($pathname, $mode){
[155] Fix | Delete
is_dir(dirname($pathname)) || mkdir_recursive(dirname($pathname), $mode);
[156] Fix | Delete
return is_dir($pathname) || @mkdir($pathname, $mode);
[157] Fix | Delete
}
[158] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function