-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
89 lines (82 loc) · 4.13 KB
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
error_reporting(0);
//color
$Yellow = "\e[33m";
$Green = "\e[92m";
$White = "\e[0m";
$blue = "\e[33m";
//choose tools
echo "
{$Yellow}◉{$White} Update Version 2.0 | Iddant ID | WhatsApp: 0895375136311
{$Yellow}◉{$White} Installer Libs HMSC Windows
╔═[{$Yellow}Menu{$White}]════════════════════════════
║ {$Yellow}◉{$White} 01. {$Yellow}Windows HMSC PHP 7.3{$White}
║ {$Yellow}◉{$White} 02. {$Yellow}Windows HMSC PHP 7.4{$White}
║ {$Yellow}◉{$White} 03. {$Yellow}Windows HMSC PHP 8.0{$White}
║ {$Yellow}◉{$White} 04. {$Yellow}Check SystemInfo PC{$White}
║ {$Yellow}◉{$White} 05. {$Yellow}Check PHP Version{$White}
╚═══════════════════════════════════
\n";
echo " {$Green}➤{$White} Choose: ";
$pil = trim(fgets(STDIN));
if ($pil == "1") {
echo "
╔═[{$Yellow}Menu{$White}]════════════════════════════
║ {$Yellow}◉{$White} 01. {$Yellow}PHP 7.3 NTS{$White}
║ {$Yellow}◉{$White} 02. {$Yellow}PHP 7.3 ZTS{$White}
╚═══════════════════════════════════
\n";
echo " {$Green}➤{$White} Choose: ";
$pil = trim(fgets(STDIN));
if ($pil == "1") {
$hmsc = shell_exec('copy Windows\php7.3\nts\php_hmsc.dll C:\xampp\php\ext');
$copy = shell_exec('copy phpini\php.ini C:\xampp\php');
echo " {$Green}➤{$White} Installed lib php hmsc Windows php7.3 nts\n";
} else if ($pil == "2") {
$hmsc = shell_exec('copy Windows\php7.3\zts\php_hmsc.dll C:\xampp\php\ext');
$copy = shell_exec('copy phpini\php.ini C:\xampp\php');
echo " {$Green}➤{$White} Installed lib php hmsc Windows php7.3 nts\n";
}
} else if ($pil == "2") {
echo "
╔═[{$Yellow}Menu{$White}]════════════════════════════
║ {$Yellow}◉{$White} 01. {$Yellow}PHP 7.4 NTS{$White}
║ {$Yellow}◉{$White} 02. {$Yellow}PHP 7.4 ZTS{$White}
╚═══════════════════════════════════
\n";
echo " {$Green}➤{$White} Choose: ";
$pil = trim(fgets(STDIN));
if ($pil == "1") {
$hmsc = shell_exec('copy Windows\php7.4\nts\php_hmsc.dll C:\xampp\php\ext');
$copy = shell_exec('copy phpini\php.ini C:\xampp\php');
echo " {$Green}➤{$White} Installed lib php hmsc Windows php7.4 zts\n";
} else if ($pil == "2") {
$hmsc = shell_exec('copy Windows\php7.4\zts\php_hmsc.dll C:\xampp\php\ext');
$copy = shell_exec('copy phpini\php.ini C:\xampp\php');
echo " {$Green}➤{$White} Installed lib php hmsc Windows php7.4 zts\n";
}
} else if ($pil == "3") {
echo "
╔═[{$Yellow}Menu{$White}]════════════════════════════
║ {$Yellow}◉{$White} 01. {$Yellow}PHP 8.0 NTS{$White}
║ {$Yellow}◉{$White} 02. {$Yellow}PHP 8.0 ZTS{$White}
╚═══════════════════════════════════
\n";
echo " {$Green}➤{$White} Choose: ";
$pil = trim(fgets(STDIN));
if ($pil == "1") {
$hmsc = shell_exec('copy Windows\php8.0\nts\php_hmsc.dll C:\xampp\php\ext');
$copy = shell_exec('copy phpini\php.ini C:\xampp\php');
echo " {$Green}➤{$White} Installed lib php hmsc Windows php8.0 zts\n";
} else if ($pil == "2") {
$hmsc = shell_exec('copy Windows\php8.0\zts\php_hmsc.dll C:\xampp\php\ext');
$copy = shell_exec('copy phpini\php.ini C:\xampp\php');
echo " {$Green}➤{$White} Installed lib php hmsc Windows php8.0 zts\n";
}
} else if ($pil == "4") {
$sysinfo = shell_exec('systeminfo');
echo "{$Green}" . $sysinfo . "{$White}\n";
} else if ($pil == "5") {
$phpv = shell_exec('php -v');
echo "{$Green}" . $phpv . "{$White}\n";
}