From d8c86329baa792fb5b0925765c32d9e9a269acbb Mon Sep 17 00:00:00 2001 From: renz78 Date: Wed, 24 May 2023 14:40:37 +0300 Subject: [PATCH] test --- k2shop/k2shop/app/_chandges_readme.txt | 14 ++ k2shop/k2shop/app/help.txt | 61 ++++++++ k2shop/k2shop/app/help_web.txt | 0 k2shop/k2shop/app/index.html | 0 k2shop/k2shop/app/licenz.txt | 246 +++++++++++++++++++++++++++++++++ k2shop/k2shop/app/main_cmd.php | 111 +++++++++++++++ k2shop/k2shop/app/main_shop.php | 96 +++++++++++++ 7 files changed, 528 insertions(+) create mode 100644 k2shop/k2shop/app/_chandges_readme.txt create mode 100644 k2shop/k2shop/app/help.txt create mode 100644 k2shop/k2shop/app/help_web.txt create mode 100644 k2shop/k2shop/app/index.html create mode 100644 k2shop/k2shop/app/licenz.txt create mode 100644 k2shop/k2shop/app/main_cmd.php create mode 100644 k2shop/k2shop/app/main_shop.php diff --git a/k2shop/k2shop/app/_chandges_readme.txt b/k2shop/k2shop/app/_chandges_readme.txt new file mode 100644 index 0000000..95d6c43 --- /dev/null +++ b/k2shop/k2shop/app/_chandges_readme.txt @@ -0,0 +1,14 @@ + + + +07.08.2017 + * Ïåðåèìåíîâàí êàòàëîã /k2shop/comp íà /k2shop/app + * Íîâîå íàçíà÷åíèå êàòàëîãîâ â k2shop/app + app - âêëàäûâàþòñÿ ïðîãðàììíûå ðåøåíèÿ. + cmd - êîìïîíåíòû êîìàíäíîé ñòðîêè. + components - óíèâåðñàëüíûå êîìïîíåíòû, èñïîëüçóåìûå â RIA. + depricate - óñòàðåâøèå êîìïîíåíòû. + sys - ñèñòåìíûå êîìïîíåíòû. + + + diff --git a/k2shop/k2shop/app/help.txt b/k2shop/k2shop/app/help.txt new file mode 100644 index 0000000..1749305 --- /dev/null +++ b/k2shop/k2shop/app/help.txt @@ -0,0 +1,61 @@ +Команды: + --c - Вызов команды. + --c="h" или c=help или c=? - Help (Помощь). + +Импорты: + --c="import_iname" - Import from Iname (Импорт в Iname). + --c="import_abbyy" - Import from ABBYY (Импорт в ABBYY). + + --c="imoprt_docs" - import the file on the web SplRahunki.csv proplachennyh accounts (импорт в веб файла SplRahunki.csv о проплаченных счетах). + + --c="copy_shopscript" - Copy information from the database Shop Script to Shop Script (Копирование информации из базы данных ShopScript в ShopScript). + --c="updatek2" - Update CMS K2 (обновление CMS К2). + +Импорт Nutrend: + --c="get_nutrend" - Get csv file from Nutrend (Получение CSV файла из личного кабинета Nutrend.com.ua). + --c="import_nutrend" --discount=10 - Import in Nutrend whith 10% discount (Импорт в Nutrend со скидкой 10%). + +Импорт из Sofkey, импорт из xml: + --c="import_softkey" - Import from Softkey (Импорт из Softkey). + Extra Options (Дополнительные параметры): + --c="import_softkey" --g="image" - Import from Sodtkey grabbing images (Импорт из Softkey грабинг изображений). + --c="import_softkey" --g="content" - Imports from Softkey grabbing content (Импорт из Softkey граббинг контента). + --c="import_softkey" --g="image_upload" - Импорт из Softkey изображений по сохраненному ранее xml. + --c="import_softkey" --g="image_shopscript" - Расположение изображений, как нужно для ShopScript. + + +Управление хостингом + --c="nginx_config" - создание конфигурационных файлов для переадресации. + +Exports (Экспорты): + --c="export_prom" - Exports to the Prom (Экспорт в Prom). + --c="export_docs" - Export documents in 1C (Экспорт документов в 1C) + Extra Options (Дополнительные параметры): + --c="export_docs" --typedocid=2 - Export accounts for the past day (Экспорт счетов за прошедшие сутки). + --c="export_docs" --typedocid=2 --mydate="2016-08-15" - Export accounts for the specified date (Экспорт счетов за указанную дату). + --c="export_docs" --typedocid=2 --datefrom="2016-08-15" --dateto="2016-08-20" - Exports account for a specified period of time (Экспорт счетов за указанный промежуток времени). + --c="export_docs" --typedocid=3 - Export of outgoing invoices for the past day (Экспорт расходных накладных за прошедшие сутки). + --c="export_docs" --typedocid=3 --mydate="2016-08-15" - Export of outgoing invoices for the specified date (Экспорт расходных накладных за указанную дату). + --c="export_docs" --typedocid=3 --datefrom="2016-08-15" --dateto="2016-08-20" - Export of outgoing invoices for a specified period of time (Экспорт расходных накладных за указанный промежуток времени). + +Service functions (Сервисные функции): + --c="check_shopscript" - Correct errors in the online store Shop Script (Исправить ошибки в интернет-магазине ShopScript). + +Testing the system (Тестирование системы): + --c="test_proxy" - testing of obtaining content through a proxy mechanism (тестирование работы механизма получения контента через прокси). + --c="test_get_image" - testing of the mechanism for obtaining and scaling images (тестирование работы механизма получения и масштабирования изображений). + +Proxy Servers (Покси-сервера) + --c="get_proxy_list" - get a list of proxy servers (получение списка прокси-серверов) + --c="check_proxises" - check proxies (проверка прокси-серверов) + +RCC: + -c="rc_clear" - Routine cleaning of the tables in the draft RCC (регламентная очистка таблиц в проекте RCC) + +Rabota: + --c="work_send" - отправка email по подписке. + --c="work_subscribe" - Формирование подписки. + + +Application Example: + php index.php c=iname diff --git a/k2shop/k2shop/app/help_web.txt b/k2shop/k2shop/app/help_web.txt new file mode 100644 index 0000000..e69de29 diff --git a/k2shop/k2shop/app/index.html b/k2shop/k2shop/app/index.html new file mode 100644 index 0000000..e69de29 diff --git a/k2shop/k2shop/app/licenz.txt b/k2shop/k2shop/app/licenz.txt new file mode 100644 index 0000000..5be03ec --- /dev/null +++ b/k2shop/k2shop/app/licenz.txt @@ -0,0 +1,246 @@ +License Agreement Software Corporation 2 (K2®) +================================================== + +Important information +================== +Please carefully read this license agreement before you open the package with the software and / or use of its contents and / or before you download or install the software (hereinafter - Software). + +All the instructions for using the software provided by LTD "K2R" "or Rudyuk S.A. (or any of its subsidiary, each of them is referred to as the "Company"), are subject to and shall be subject to conditions, the stipulated in this agreement. + +Opening the package containing the software and / or downloading the software (as defined hereinafter) and / or installing the software on your PC and / or using the Software in any other way, you accept this agreement and agree to its terms. + +If you do not accept this agreement, do not open the package and / or download and / or install the software and promptly (no later than 7 days from the date of receipt of the package), return this product in TOV "K2P" or Rudyuk S.A., remove the software and all of its parts in your computer and do not use it in any way. + + +The text of the agreement +================= +This license agreement (hereinafter - the "Agreement") is a contract concluded between you (either an individual or a legal entity) - the end user (hereinafter - the "User The-tor") and TOV K2P or Rudyuk SA (Hereinafter - the "Company") regarding the transfer of non-exclusive right to use the software, which is the intellectual property of the Company. + + +1. Rights and Ownership +------------------------- +This agreement is not an agreement about the sale. This software, including all processing, corrections, modifications, additions, updates and / or improvements thereto (hereinafter in whole or any part thereof defined as "software" or ON), and the related technical / operational documentation is intended not for sale and it is and remains the exclusive property of the Company. + +All intellectual property rights (including, without limitation, copyrights, trade secrets, trademarks, etc.), confirmed or included in the accompanying / related / relevant to this Agreement, the information contained in it, as well as all rights to the software and technical / operational documentation are and shall be the exclusive property of the Company. + +This agreement does not transfer the rights to the software, but only a limited right of use that is subject to cancellation under the terms of this Agreement. Nothing in this Agreement does not confirm the Company's waiver of intellectual property rights on any whatsoever legislation. + + +2. License +------------ +The Company hereby grants you, and you get a personal, non-exclusive, revocable limited license to use the software only in the form of executable code, as described in the attached to the technical / operational documentation and the software only in accordance with the terms of this Agreement. + +You can install the software and use it on computers located within your business or for personal use, as described in the relevant technical / operator documentation software. + +You can add / attach software to program your computer for the sole purpose described in this Agreement. + + +3. Requirements for the use of +----------------------------- +Software should be used and operated strictly in accordance with the descriptions and instructions of the Company, is given in this and other documents of the Company, including technical / operational documentation software. + +By accepting this Agreement, you agree to: +• Do not use, modify, sublicense, and not on the software and any other software company, except for the explicit permission in this Agreement; +• sell, grant licenses or sublicenses, not rent, lease, transmit, translate into other languages, pledge, or share your rights under this Agreement to anyone, or anyone else; +• Do not modify, disassemble, decompile, reverse engineer, revise or enhance the Software or attempt to discover (or receive) the source code of the software; +• Do not put this software on a server with the ability to access it the third parties through a public network; +• Do not use any whatsoever backup or archival copies of the Software (or allow someone else to use such copies) for any purpose other than to replace it with the original copy if it is destroyed, or the presence of defects. + + +4. Maintenance and Support +---------------------------- +The Company assumes no obligation to provide support, maintenance, modifications or new releases of the software. + + +5. Limited Warranty +------------------------- +The company guarantees that the software since its acquisition by you in the twelve (12) months will operate in full compliance with its technical / operational documentation, provided that it will be used on the computer hardware and the operating system for which it was developed. + + +6. Warranty Disclaimer +--------------------- +The Company does not guarantee that the software will meet your requirements or that its operation will be uninterrupted or error-free. To the extent provided for by the legislation of Ukraine, the company opened disclaims all warranties, whether express not here from all other implied warranties. + +None of the dealers, distributors, retailers, agents or employees of the Company is not authorized to make the modification, extension or addition to this warranty. + +If you have made any modifications to the software or any of its parts during the warranty period, the software has undergone damage, negligence or mishandling if you have violated any of the terms of this Agreement, then the warranty referred to above in section 5, will be terminated immediately. + +The warranty is void if the software is used on or in conjunction with other hardware and / or software other than those specified in the technical / operational documentation, or used on a computer with any installed unlicensed software. + + +7. Limitation of Remedies +-------------------------- +In the case of breach of warranty, whether express above, the Company may, at its discretion: +• replace the software if it does not meet the foregoing limited warranty; +• reimburse the price paid by you for the software. + + +Warranty claims must be made in writing within the warranty period, but not later than seven (7) days from the date of discovery of the defect, and contain a confirmation that meet the Company. All software (all items available to you) must be returned to the distributor from whom they purchased (if not purchased directly by the Company), and shipped by the returning party with paid transportation cost and, if necessary, insurance. Copies of software should be sent with a copy of payment documents and invoices. + + +8. Exclusion of Consequential Damages +-------------------------------- +The parties acknowledge that the software can not be completely devoid of errors. The company is not responsible (as in contract, tort, including negligence, or in any other form) to you or to any third party for any loss or damage (including indirect, special, incidental, or potential losses), including, without limitation, , any loss of profit or loss of business, loss of profitability and reputation, lost or distorted information or documentation as a result of any use of the Software and / or any component of this software, even if the company is notified in writing of the possibility of such damages. + + +9. Limitation of Liability +------------------------------- +If, in spite of the terms of this agreement, the company is held responsible for damages on the basis of any defect or nonconformity to your expectations, the full responsibility for each copy of the defective software will not exceed the amount paid by You for the defective product. + + +10. Termination of the Agreement +------------------------------------ +In the case of this Agreement, failure of conditions you your license and this Agreement will be terminated. + +Upon termination of this License Agreement: +• the license granted to you in this Agreement shall cease to have effect, and after its termination, you will not be able to continue the further use of the software and other licensed products; +• You shall promptly return to the Company all copies of the software and all copies thereof, and / or erase / delete any information contained in the electronic form. Sections 1, 3, 6-11, will continue to operate even in the event of termination of this Agreement. + + +11. Applicable law +-------------------------------- +This Agreement shall be construed and governed in accordance with the legislation of Ukraine, and only Ukrainian court authorized to administer justice in any conflict or dispute arising out of this Agreement. The inability of either party to exercise any of the rights granted to it under this Agreement or to take action against the other party in the event of any breach of its obligations under the Agreement should not be construed as a waiver of that party from later forcing the recognition of their rights or the performance of follow-up in the case of further violations. + + +12. State regulation and export controls +-------------------------------------------------- ------ +You agree that the software will not be supplied by you, transferred or exported into any country, as well as be used in any way contrary to the law. Software is subject to additional export controls relating to you or your jurisdiction. You warrant that you will abide by imposed on the export and re-export the software restrictions. + + +13. Third Party Software +------------------------------------------- +If the software contains any software provided by a third party, such third party software is provided "as is" without warranty of any kind, and sections 2, 3, 6, 8, 9-12, this Agreement shall apply to all so software vendors and supplied them to the software as if it were a company and software, respectively. + + +14. Miscellaneous +----------- +This Agreement constitutes the entire agreement relating to this license, and may be amended only by a written agreement signed by both parties. If the performance of any provision of this Agreement is impossible, such provision will be adjusted only to the extent enabling the present conditions. + +I HAVE READ AND UNDERSTOOD THIS LICENSE AGREEMENT AND AGREE TO BE BOUND BY ALL OF ITS TERMS AND CONDITIONS. +I ACCEPT THIS LICENSE AGREEMENT IN WHOLE. +IF I DO NOT ACCEPT THIS LICENSE AGREEMENT OR AT LEAST ONE OF HIS POINTS, THAT THIS LICENSE AGREEMENT shall be inoperative, and I undertake not to place or use THIS SOFTWARE. + + + + +Лицензионное соглашение на программное обеспечение Корпорация 2 (К2®) +====================================================================== + +Важная информация +================== +Пожалуйста, внимательно прочитайте настоящее лицензионное соглашение, прежде чем открыть пакет с программным обеспечением и/или использовать его содержимое и/или прежде, чем загружать или устанавливать программное обеспечение (далее — ПО). + +Все указания по использованию ПО, предоставляемые ТОВ "К2Р"" или Рудюк С.А. (или любым его дочерним предприятием, каждое из них упоминаемое как «Компания»), подчиняются и будут подчиняться условиям, оговорённым в настоящем соглашении. + +Открывая пакет, содержащий ПО и/или загружая данное ПО (как определено далее по тексту) и/или устанавливая данное ПО на ваш компьютер и/или используя данное ПО иным способом, вы принимаете настоящее соглашение и соглашаетесь с его условиями. + +Если вы не согласны с данным соглашением, не открывайте этот пакет и/или не загружайте и/или не устанавливайте данное ПО и незамедлительно (не позднее 7 дней с даты получения этого пакета) верните этот продукт в ТОВ К2Р или Рудюк С.А., удалите данное ПО и все его части в своем компьютере и не используйте его никоим образом. + + +Текст соглашения +================= +Настоящее лицензионное соглашение (далее — «Соглашение») является договором, заключённым между вами (физическим или юридическим лицом) — конечным пользователем (далее — «Пользова-тель») и ТОВ К2Р или Рудюк С.А. (далее — «Компания») относительно передачи неисключительного права на использование программного обеспечения, являющегося интеллектуальной собственностью Компании. + + +1. Права и Собственность +------------------------- +Данное соглашение не является соглашением о продаже. Это программное обеспечение, включая все переработки, исправления, модификации, дополнения, обновления и/или усовершенствования к нему (далее по всему тексту и любой его части определяемое как «Программное обеспечение» или ПО), и связанная с ним техническая / эксплуатационная документация предназначается не для продажи и является и остаётся исключительной собственностью Компании. + +Все права на интеллектуальную собственность (включая, без ограничений, авторские права, коммерческую тайну, товарные знаки, и т.д.), подтверждённые или включённые в приложенные/ взаимосвязанные/ имеющие отношение к данному Соглашению, данные, содержащиеся в нём, а также все права на ПО и техническую / эксплуатационную документацию являются и будут являться собственностью исключительно Компании. + +Данное соглашение не передает вам права на ПО, а лишь предоставляет ограниченное право использования, которое подлежит отмене согласно условиям настоящего Соглашения. Ничто в настоящем Соглашении не подтверждает отказ Компании от прав на интеллектуальную собственность по какому бы то ни было законодательству. + + +2. Лицензия +------------ +Компания настоящим предоставляет Вам, а Вы получаете индивидуальное, неисключительное и отзываемое ограниченное право использования данного ПО только в форме исполняемого кода, как описано в прилагаемой к ПО технической / эксплуатационной документации и только в соответствии с условиями настоящего Соглашения. + +Вы можете установить ПО и использовать его на компьютерах, расположенных в пределах вашего предприятия или для личного пользования, как описано в соответствующей технической / эксплуа-тационной документации ПО. + +Вы можете добавить/присоединить ПО к программам вашего компьютера с единственной целью, описанной в настоящем Соглашении. + + +3. Требования к использованию +----------------------------- +ПО должно использоваться и обслуживаться строго в соответствии с описаниями и инструкциями Компании, приведёнными в настоящем и других документах Компании, в том числе в технической / эксплуатационной документации ПО. + +Принимая условия настоящего Соглашения, Вы соглашаетесь: +• не использовать, не модифицировать, и не выдавать сублицензии на данное ПО и любое другое ПО Компании, за исключением явных разрешений в настоящем Соглашении; +• не продавать, не выдавать лицензий или сублицензий, не сдавать в аренду, не передавать, не переводить на другие языки, не закладывать, не разделять ваши права в рамках настоящего Соглашения с кем-либо или кому-либо ещё; +• не модифицировать, не демонтировать, не декомпилировать, не реконструировать, не видоизменять и не расширять данное ПО и не пытаться раскрыть (получить) исходные коды данного ПО; +• не помещать данное ПО на сервер с возможностью доступа к нему третьих лиц через открытую сеть; +• не использовать какие бы то ни было резервные или архивные копии данного ПО (или позволять кому-либо ещё использовать такие копии) с любой иной целью, кроме замены его оригинального экземпляра в случае его разрушения или наличия дефектов. + + +4. Обслуживание и поддержка +---------------------------- +Компания не несёт обязательств по предоставлению поддержки, обслуживания, модификации или выходу новых релизов данного ПО. + + +5. Ограниченная гарантия +------------------------- +Компания гарантирует, что данное ПО с момента приобретения его вами в течение двенадцати (12) месяцев будет функционировать в полном соответствии с его технической / эксплуатационной документацией, при условии, что оно будет использоваться на компьютерном аппаратном обеспечении и с операционной системой, для которой оно было разработано. + + +6. Отказ от гарантии +--------------------- +Компания не гарантирует, что ПО будет соответствовать вашим требованиям, или что его работа будет бесперебойной или безошибочной. В объеме, предусмотренном законодательством Украины, компания открыто отказывается от всех гарантий, не оговорённых здесь, от всех иных подразумеваемых гарантий. + +Ни один из дилеров, дистрибьюторов, продавцов, агентов или сотрудников Компании не уполномочен производить модификации, расширения или дополнения к данной гарантии. + +Если вы произвели какие-либо модификации ПО или любой из его частей во время гарантийного периода, ПО подверглось повреждению, неосторожному или неправильному обращению, если вы нарушили любое из условий настоящего Соглашения, то гарантия, упомянутая выше в разделе 5, будет немедленно прекращена. + +Гарантия недействительна, если ПО используется на или в сочетании с иным аппаратным и/или программным обеспечением, отличным от описанных в технической / эксплуатационной документации, или используется на компьютере с любым установленным нелицензионным программным обеспечением. + + +7. Ограничение возмещения +-------------------------- +В случае нарушения гарантии, оговорённой выше, Компания может по собственному усмотрению: +• заменить ПО, если это не противоречит вышеупомянутому ограничению гарантии; +• возместить стоимость, выплаченную вами за ПО. + + +Гарантийные требования должны быть выставлены в письменном виде в течение гарантийного периода, но не позднее семи (7) дней с момента обнаружения дефекта, и содержать в себе подтверждения, удовлетворяющие Компанию. Всё ПО (все экземпляры, имеющиеся у вас) должно быть возвращено дистрибьютору, через которого была совершена покупка (если покупка состоялась не непосредственно в Компании), и отправлена возвращающей стороной с оплаченной стоимостью перевозки и, при необходимости, страховки. Экземпляры ПО должны быть отправлены с копией платёжных документов и накладных. + + +8. Исключение косвенных убытков +-------------------------------- +Стороны признают, что ПО не может быть полностью лишено ошибок. Компания не несёт ответственности (как в силу договора, гражданского правонарушения, включая халатность, так и в любой иной форме) перед вами или любой третьей стороной за любые потери или убытки (включая косвенные, фактические, побочные или потенциальные убытки), включая, без ограничений, любые потери или убытки прибыльности бизнеса, потерю доходности или репутации, утраченную или искаженную информацию или документацию вследствие какого-либо использования данного ПО и/или любой компоненты данного ПО, даже если компания письменно уведомлена о возможности подобных убытков. + + +9. Ограничение ответственности +------------------------------- +В случае если, несмотря на условия настоящего соглашения, компания признана ответственной за убытки на основании каких-либо дефектов или несоответствия ПО вашим ожиданиям, полная ответственность за каждый экземпляр дефектного ПО не будет превышать сумму, выплаченную вами компании за эти дефектные Продукты. + + +10. Прекращение действия Соглашения +------------------------------------ +В случае невыполнения вами условий настоящего Соглашения действие вашей лицензии и настоящего Соглашения будет прекращено. + +После прекращения действия настоящего Лицензионного Соглашения: +• лицензия, предоставленная вам настоящим Соглашением, прекращает своё действие, и вы после её прекращения не сможете продолжать дальнейшее использование данного ПО и других лицензионных Продуктов; +• вы незамедлительно вернёте в Компанию все экземпляры ПО и все копии такового и/или сотрёте/удалите любую информацию, содержащуюся в электронном виде. Разделы 1, 3, 6-11 будут продолжать действовать даже в случае прекращения действия настоящего Соглашения. + + +11. Применимое законодательство +-------------------------------- +Настоящее Соглашение должно быть истолковано и определено в соответствии с законодательством Украины, и только украинский суд уполномочен осуществлять правосудие в любых конфликтах и спорах, вытекающих из данного Соглашения. Невозможность для любой из сторон воспользоваться любым из прав, предоставленных ей по данному Соглашению, или принять меры против другой стороны в случае любого нарушения своих обязательств по Соглашению не должно рассматриваться как отказ этой стороны от последующего понуждения к признанию своих прав или совершению последующих действий в случае дальнейших нарушений. + + +12. Государственное регулирование и экспортный контроль +-------------------------------------------------------- +Вы соглашаетесь с тем, что ПО не будет вами поставляться, передаваться или экспортироваться в какую-либо страну, а также использоваться каким-либо противоречащим закону образом. ПО является предметом дополнительного экспортного контроля, относящегося к вам или вашей юрисдикции. Вы гарантируете, что будете соблюдать накладываемые на экспорт и реэкспорт ПО ограничения. + + +13. Программное обеспечение третьих сторон +------------------------------------------- +Если ПО содержит в себе любое программное обеспечение, предоставленное какой-либо третьей стороной, такое программное обеспечение третьей стороны предоставляется «как есть» без какой-либо гарантии, и разделы 2, 3, 6, 8, 9-12 настоящего Соглашения применяются ко всем таким поставщикам программного обеспечения и к поставляемому ими программному обеспечению, как если бы это были Компания и ПО соответственно. + + +14. Разное +----------- +Настоящее Соглашение представляет собой полное соглашение, относящееся к данной лицензии, и может быть изменено только посредством письменного соглашения, подписанного обеими сторонами. Если выполнение какого-либо условия настоящего Соглашения представляется невозможным, такое условие будет скорректировано только в пределах, обеспечивающих возможность выполнения данного условия. + +Я ПРОЧИТАЛ И ПОНЯЛ НАСТОЯЩЕЕ ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ И СОГЛАСЕН ВЫПОЛНЯТЬ ВСЕ ЕГО УСЛОВИЯ. +Я ПРИНИМАЮ ДАННОЕ ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ ЦЕЛИКОМ. +ЕСЛИ Я НЕ ПРИНИМАЮ ЭТО ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ ИЛИ ХОТЯ БЫ ОДИН ИЗ ЕГО ПУНКТОВ, ТО ДАННОЕ ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ НЕ ВСТУПАЕТ В СИЛУ, И Я ОБЯЗУЮСЬ НЕ УСТАНАВЛИВАТЬ И НЕ ИСПОЛЬЗОВАТЬ ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ. diff --git a/k2shop/k2shop/app/main_cmd.php b/k2shop/k2shop/app/main_cmd.php new file mode 100644 index 0000000..3edfcfd --- /dev/null +++ b/k2shop/k2shop/app/main_cmd.php @@ -0,0 +1,111 @@ +ins_comp('k2wget'); + $wget->show(); + } + + + // Gets a list of proxy servers (Получает список прокси-серверов) + function get_proxy_list(){ + global $k2; + + $proxy=$k2->ins_comp('k2proxies'); + $proxy->get_proxy_inet(); + + echo "The end of a list of proxy servers\n"; + } + + // Checks proxy (Проверяет прокси-сервера) + function check_proxises(){ + global $k2; + + $proxy=$k2->ins_comp('k2proxies'); + $proxy->check_proxy_list(); + + echo "The end check proxies\n"; + } + + + function copy_shopscript(){ + global $k2; + $scr=$k2->ins_comp('k2copy_shopscript'); + echo "End of database backup.\n"; + } + + + function show(){ + global $k2; + + // Initialization settings (Инициализация настроек) + require_once(k2sys('k2cfg.php')); + inik2cfg_cmd(); + + // Processing commands from the command line (Обработка команд из командной строки) + $options = getopt("", array("c:")); + + foreach ($options as $key) { + + if ((trim($key)=='?')or(trim($key)=='help')or(trim($key)=='h')){ // Help (Помощь) + $this->help(); + } + + elseif(trim($key)=='test_proxy'){ + $this->test_proxy(); + } + + elseif(trim($key)=='get_proxy_list'){ + $this->get_proxy_list(); + } + + elseif(trim($key)=='check_proxises'){ + $this->check_proxises(); + } + + elseif(trim($key)=='copy_shopscript'){ + $this->copy_shopscript(); + }elseif(trim($key)<>''){ + $comp=$k2->ins_comp2($key); + if ($comp<>'') + echo $comp->content(); + } + + } + + } + +} diff --git a/k2shop/k2shop/app/main_shop.php b/k2shop/k2shop/app/main_shop.php new file mode 100644 index 0000000..b62b692 --- /dev/null +++ b/k2shop/k2shop/app/main_shop.php @@ -0,0 +1,96 @@ +rootdir.'/k2shop/k2shop/app/help_web.txt'); + echo $help; + + } + + + // Causes anticaptcha (Вызывает антикапчу) + function anticapcha(){ + /*require_once('captcha.php'); + $k2_anticaptcha=new k2_anticaptcha(); + $k2_anticaptcha->show();*/ + } + + + // The command line parameters c = Your kompnda (Параметры в командной строке c=Ваша компнда) + function show(){ + + global $k2, $not_show; + + // Initialization settings (Инициализация настроек) + require_once(k2sys('k2cfg.php')); + inik2cfg(); + + $c=$k2->get('c'); + $content=$k2->get('content'); + + + if($content<>''){ + + $k2->iniPage(); + $k2->component=$k2->ins_comp($content); + + if (!$not_show){ + $k2->component->show(); + + if ($k2->cur_tpl()<>'ajax'){ + $k2->timer->show(); + } + } + + + } + + else{ + + $k2->iniPage(); + + if (!$not_show){ + $k2->site->show(); + + if ($k2->cur_tpl()<>'ajax'){ + $k2->timer->show(); + } + } + + } + + + $k2->log->mess('Завершение работы системы.',false); + + } + +} + + -- 1.9.1