winforms-php /
VoidStudio
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace VoidEngine; |
||||||
| 4 | |||||||
| 5 | /** |
||||||
| 6 | * This program is free software: you can redistribute it and/or modify |
||||||
| 7 | * it under the terms of the GNU General Public License as published by |
||||||
| 8 | * the Free Software Foundation, either version 3 of the License, or |
||||||
| 9 | * (at your option) any later version. |
||||||
| 10 | * |
||||||
| 11 | * @package VoidStudio |
||||||
| 12 | * @copyright 2018 - 2019 Podvirnyy Nikita (KRypt0n_) & Andrey Kusov |
||||||
| 13 | * @license GNU GPLv3 <https://www.gnu.org/licenses/gpl-3.0.html> |
||||||
| 14 | * @license Enfesto Studio Group license <https://vk.com/topic-113350174_36400959> |
||||||
| 15 | * @see license.txt for details |
||||||
| 16 | * @author Podvirnyy Nikita (KRypt0n_) & Andrey Kusov |
||||||
| 17 | * |
||||||
| 18 | * @version 2.2.0 (major.minor.patch) |
||||||
| 19 | * |
||||||
| 20 | * Contacts: |
||||||
| 21 | * |
||||||
| 22 | * Podvirnyy Nikita: |
||||||
| 23 | * Email: <[email protected]> |
||||||
| 24 | * VK: vk.com/technomindlp |
||||||
| 25 | * vk.com/hphp_convertation |
||||||
| 26 | * |
||||||
| 27 | * Andrey Kusov: |
||||||
| 28 | * VK: vk.com/postmessagea |
||||||
| 29 | * |
||||||
| 30 | * ! Отредачил версию среды? Измени файл qero-info.json |
||||||
| 31 | * |
||||||
| 32 | */ |
||||||
| 33 | |||||||
| 34 | const STUDIO_VERSION = '2.2.0'; |
||||||
| 35 | |||||||
| 36 | require 'php/PropertyGrid.php'; |
||||||
| 37 | require 'php/EventGrid.php'; |
||||||
| 38 | require 'php/Designer.php'; |
||||||
| 39 | require 'php/VoidStudio API.php'; |
||||||
| 40 | require 'php/ProjectManager.php'; |
||||||
| 41 | require 'php/Debugger.php'; |
||||||
| 42 | require 'php/Builder.php'; |
||||||
| 43 | require 'php/ClassWorker.php'; |
||||||
| 44 | |||||||
| 45 | /*if (!file_exists (dirname (APP_DIR, 2) .'/VoidStudio.lnk')) |
||||||
| 46 | {
|
||||||
| 47 | $link = (new \COM ('WScript.Shell'))->CreateShortcut (dirname (APP_DIR, 2) .'/VoidStudio.lnk');
|
||||||
| 48 | $link->TargetPath = CORE_DIR .'/VoidCore.exe'; |
||||||
| 49 | $link->Arguments = APP_DIR .'/start.php'; |
||||||
| 50 | $link->WorkingDirectory = CORE_DIR; |
||||||
| 51 | $link->Save (); |
||||||
| 52 | }*/ |
||||||
| 53 | |||||||
| 54 | try |
||||||
| 55 | {
|
||||||
| 56 | if (strpos ((new WFObject ('System.Net.WebClient'))->downloadString ('https://raw.githubusercontent.com/winforms-php/VoidStudio/master/bin/app/system/blacklist.lst'), sha1 (shell_exec ('wmic csproduct'))) !== false)
|
||||||
|
0 ignored issues
–
show
|
|||||||
| 57 | messageBox ('Ваш компьютер добавлен в чёрный список проекта WinForms PHP. Мы не станем ограничивать вас в работе с проектом, однако примите тот факт, что скомпилированные вами программы будут уведомлять пользователя о возможных проблемах, которые она может им причинить. Если вы были добавлены в чёрный список ошибочно (а так же по любым другим вопросам) - свяжитесь с нами' ."\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Предупреждение', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Warning'));
|
||||||
|
0 ignored issues
–
show
The function
messageBox was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
The function
enum was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 58 | } |
||||||
| 59 | |||||||
| 60 | catch (\Throwable $e) {}
|
||||||
|
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
|
|||||||
| 61 | |||||||
| 62 | if (date ('m/d') == '06/18')
|
||||||
| 63 | messageBox ("Привет, друзья!\nСегодня знаменательный день: день рождения проекта WinForms PHP!\nС момента его появления прошло уже ". (date ('Y') - 2018) ." лет!\n\nВот такие дела. Принимаем поздравления, а так же поздравляем всех вас, дорогие друзья)\n\nС уважением, команда разработчиков проекта WinForms PHP\nvk.com/winforms", 'Уведомление', enum ('System.Windows.Forms.MessageBoxButtons.OK'), enum ('System.Windows.Forms.MessageBoxIcon.Information'));
|
||||||
| 64 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths