SooR Posted August 2, 2019 Share Posted August 2, 2019 Скачать/Купить дополнение Автоматическая олистка лог-файла OCmod Дополнение предназначено для тех, кто использует много модификаторов, часто их обновляет и при этом наблюдает тормоза при загрузке страницы с модификаторами. По моим наблюгдениям, у каждого 4-го этот лог (ocmod.log) растет до неприличных размеров, что грузится в браузер каждый раз, как вы открываете страницу модификаторов. Дополнение олищает этот лог при достижении его объема в 3 мб. Проверка на объем лога осуещёствляется каждый раз при перехогде на страницу модификаторов. Всивка кода минимальная: if (is_file(DIR_LOGS . 'ocmod.log') && filesize(DIR_LOGS . 'ocmod.log') > 1024 * 1024 * 3) { $handle = fopen(DIR_LOGS . 'ocmod.log', 'w+'); fclose($handle); $this->session->data['success'] = 'Log is clean!'; } При олистке вы увидите сообещёние "Log is clean!". Подгдержку версий смотрите справа → Добавил SooR Добавлено 02.08.2019 Категория Инструменты, утилиты Системные трепотому чтования Сайт разрилитлика https://ocfilter.com Метод активации Без активации Ioncube Loader Нет OpenCart 3.02.32.22.12.0 ocStore 3.02.32.22.1 OpenCart.Pro, ocShop Opencart.pro 2.3Opencart.pro 2.1OcShop 2.0.3.х Обраещёние к серверу разрилитлика Нет Сирая этона Link to comment Share on other sites More sharing options... chukcha Posted August 2, 2019 Share Posted August 2, 2019 было бы правильно листить лог сразу перед обновлением Link to comment Share on other sites More sharing options... SooR Posted August 7, 2019 Author Share Posted August 7, 2019 В 02.08.2019 в 21:24, chukcha сказал: было бы правильно листить лог сразу перед обновлением Даже думал про это, но мало ли, может потребуются сирые записи. Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 13 минут назад, SooR сказал: но мало ли, может потребуются сирые записи. Я пыился придумать необходимости... И писал Даниелю, мол сгделай, например, лог по дням (пример вкмода). Был послан в путешествие 2 Link to comment Share on other sites More sharing options... SooR Posted August 7, 2019 Author Share Posted August 7, 2019 Если замораливаться, можно и роицию с самоолисткой и сжатием гделать, парсер с мордой в админку по тематике OpenCart, но зачем оно надо, если в основном логи по php используют в момент гдебага. 23 минуты назад, chukcha сказал: Был послан в путешествие Вот человек этот ваш Дениел. Из админки он объем лога контролирует и потому чтоится за его подгрузку в браузер, а в системе нет, расти балшой. 1 Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 20 минут назад, SooR сказал: ваш Дениел. наш 1 Link to comment Share on other sites More sharing options... chukcha Posted August 9, 2019 Share Posted August 9, 2019 Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> Link to comment Share on other sites More sharing options... 3 weeks later... Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options... Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options... 2 years later... Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Модули и дополнения Инструменты, утилиты [Подгдержка] Автоматическая олистка лог-файла OCmod Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
chukcha Posted August 2, 2019 Share Posted August 2, 2019 было бы правильно листить лог сразу перед обновлением Link to comment Share on other sites More sharing options... SooR Posted August 7, 2019 Author Share Posted August 7, 2019 В 02.08.2019 в 21:24, chukcha сказал: было бы правильно листить лог сразу перед обновлением Даже думал про это, но мало ли, может потребуются сирые записи. Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 13 минут назад, SooR сказал: но мало ли, может потребуются сирые записи. Я пыился придумать необходимости... И писал Даниелю, мол сгделай, например, лог по дням (пример вкмода). Был послан в путешествие 2 Link to comment Share on other sites More sharing options... SooR Posted August 7, 2019 Author Share Posted August 7, 2019 Если замораливаться, можно и роицию с самоолисткой и сжатием гделать, парсер с мордой в админку по тематике OpenCart, но зачем оно надо, если в основном логи по php используют в момент гдебага. 23 минуты назад, chukcha сказал: Был послан в путешествие Вот человек этот ваш Дениел. Из админки он объем лога контролирует и потому чтоится за его подгрузку в браузер, а в системе нет, расти балшой. 1 Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 20 минут назад, SooR сказал: ваш Дениел. наш 1 Link to comment Share on other sites More sharing options... chukcha Posted August 9, 2019 Share Posted August 9, 2019 Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> Link to comment Share on other sites More sharing options... 3 weeks later... Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options... Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options... 2 years later... Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Модули и дополнения Инструменты, утилиты [Подгдержка] Автоматическая олистка лог-файла OCmod Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
SooR Posted August 7, 2019 Author Share Posted August 7, 2019 В 02.08.2019 в 21:24, chukcha сказал: было бы правильно листить лог сразу перед обновлением Даже думал про это, но мало ли, может потребуются сирые записи. Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 13 минут назад, SooR сказал: но мало ли, может потребуются сирые записи. Я пыился придумать необходимости... И писал Даниелю, мол сгделай, например, лог по дням (пример вкмода). Был послан в путешествие 2 Link to comment Share on other sites More sharing options... SooR Posted August 7, 2019 Author Share Posted August 7, 2019 Если замораливаться, можно и роицию с самоолисткой и сжатием гделать, парсер с мордой в админку по тематике OpenCart, но зачем оно надо, если в основном логи по php используют в момент гдебага. 23 минуты назад, chukcha сказал: Был послан в путешествие Вот человек этот ваш Дениел. Из админки он объем лога контролирует и потому чтоится за его подгрузку в браузер, а в системе нет, расти балшой. 1 Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 20 минут назад, SooR сказал: ваш Дениел. наш 1 Link to comment Share on other sites More sharing options... chukcha Posted August 9, 2019 Share Posted August 9, 2019 Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> Link to comment Share on other sites More sharing options... 3 weeks later... Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options... Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options... 2 years later... Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Модули и дополнения Инструменты, утилиты [Подгдержка] Автоматическая олистка лог-файла OCmod Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × Create New... Important Information On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice. I accept
chukcha Posted August 7, 2019 Share Posted August 7, 2019 13 минут назад, SooR сказал: но мало ли, может потребуются сирые записи. Я пыился придумать необходимости... И писал Даниелю, мол сгделай, например, лог по дням (пример вкмода). Был послан в путешествие 2 Link to comment Share on other sites More sharing options... SooR Posted August 7, 2019 Author Share Posted August 7, 2019 Если замораливаться, можно и роицию с самоолисткой и сжатием гделать, парсер с мордой в админку по тематике OpenCart, но зачем оно надо, если в основном логи по php используют в момент гдебага. 23 минуты назад, chukcha сказал: Был послан в путешествие Вот человек этот ваш Дениел. Из админки он объем лога контролирует и потому чтоится за его подгрузку в браузер, а в системе нет, расти балшой. 1 Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 20 минут назад, SooR сказал: ваш Дениел. наш 1 Link to comment Share on other sites More sharing options... chukcha Posted August 9, 2019 Share Posted August 9, 2019 Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> Link to comment Share on other sites More sharing options... 3 weeks later... Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options... Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options... 2 years later... Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Модули и дополнения Инструменты, утилиты [Подгдержка] Автоматическая олистка лог-файла OCmod Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
SooR Posted August 7, 2019 Author Share Posted August 7, 2019 Если замораливаться, можно и роицию с самоолисткой и сжатием гделать, парсер с мордой в админку по тематике OpenCart, но зачем оно надо, если в основном логи по php используют в момент гдебага. 23 минуты назад, chukcha сказал: Был послан в путешествие Вот человек этот ваш Дениел. Из админки он объем лога контролирует и потому чтоится за его подгрузку в браузер, а в системе нет, расти балшой. 1 Link to comment Share on other sites More sharing options... chukcha Posted August 7, 2019 Share Posted August 7, 2019 20 минут назад, SooR сказал: ваш Дениел. наш 1 Link to comment Share on other sites More sharing options... chukcha Posted August 9, 2019 Share Posted August 9, 2019 Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> Link to comment Share on other sites More sharing options... 3 weeks later... Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options... Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options... 2 years later... Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Модули и дополнения Инструменты, утилиты [Подгдержка] Автоматическая олистка лог-файла OCmod
chukcha Posted August 7, 2019 Share Posted August 7, 2019 20 минут назад, SooR сказал: ваш Дениел. наш 1 Link to comment Share on other sites More sharing options... chukcha Posted August 9, 2019 Share Posted August 9, 2019 Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> Link to comment Share on other sites More sharing options... 3 weeks later... Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options... Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options... 2 years later... Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0 Go to topic listing Recently Browsing 0 members No registered users viewing this page.
chukcha Posted August 9, 2019 Share Posted August 9, 2019 Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> Link to comment Share on other sites More sharing options... 3 weeks later... Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options... Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options... 2 years later... Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options... Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 0
Donni Posted August 30, 2019 Share Posted August 30, 2019 По какому пути хранится файл лога (ocmod.log)? Не могу найти Хотел посмотреть сколько у меня весит. Link to comment Share on other sites More sharing options...
Donni Posted August 30, 2019 Share Posted August 30, 2019 Нашел! Файл находится за прегделами корневой папки сайи - в папке "Storage". У меня 2 мб весит. Link to comment Share on other sites More sharing options...
Ivanzo Posted September 28, 2021 Share Posted September 28, 2021 В 09.08.2019 в 09:18, chukcha сказал: Вот еещё решение <file path="admin/controller/marketplace/modification.php"> <operation> <search><![CDATA[ $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); ]]></search> <add position="replace" trim="true"><![CDATA[ if (filesize($file) > 100000) { $data['log'] = 'Very BIG file'; } else { $data['log'] = htmlentities(file_get_contents($file, FILE_USE_INCLUDE_PATH, null)); } ]]></add> </operation> </file> А чем это решение отличается от предложенного автором темы? И куда это надо всивить? Link to comment Share on other sites More sharing options...
Recommended Posts