forked from wildan-pratama/vidio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstaller.php
92 lines (80 loc) · 5.08 KB
/
installer.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
90
91
92
<?php
error_reporting(0);
//color
$Yellow = "\e[33m";
$Green = "\e[92m";
$White = "\e[0m";
$blue = "\e[33m";
//choose tools
echo "\n{$Green}
██╗ ██╗███╗ ███╗███████╗ ██████╗
██║ ██║████╗ ████║██╔════╝██╔════╝
███████║██╔████╔██║███████╗██║
██╔══██║██║╚██╔╝██║╚════██║██║
██║ ██║██║ ╚═╝ ██║███████║╚██████╗
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝
{$White}Installer Libs HMSC Termux linux
Author: Iddant ID
\n";
echo "
{$Green}➤{$White} 1. {$Yellow}HMSC arm PHP 7.4{$White}
{$Green}➤{$White} 2. {$Yellow}HMSC aarch64 PHP 7.4 {$White}
{$Green}➤{$White} 3. {$Yellow}HMSC arm PHP 8.1{$White}
{$Green}➤{$White} 4. {$Yellow}HMSC aarch64 PHP 8.1{$White}
{$Green}➤{$White} 5. {$Yellow}HMSC aarch64 PHP8.2{$White}
{$Green}➤{$White} 6. {$Yellow}HMSC arm PHP 8.2{$White}
{$Green}➤{$White} 7. {$Yellow}Checking PHP Version{$White}
{$Green}➤{$White} 8. {$Yellow}Checking Karnel Termux{$White}
\n";
echo " {$Green}➤{$White} Choose: ";
$pil = trim(fgets(STDIN));
if ($pil == "1") {
$hmsc = shell_exec('curl https://raw.githubusercontent.com/EddieKidiw/HMSC/main/Linux/Termux/arm/php7.4/nts/hmsc.so --output hmsc.so');
$cp_hmsc = shell_exec('cp hmsc.so /data/data/com.termux/files/usr/lib/php/hmsc.so');
$getIni = shell_exec('curl https://raw.githubusercontent.com/ipkzone/axisnet/main/php.ini --output php.ini');
$cpini = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/php');
echo " {$Green}➤{$White} Installed lib hmsc.so arm PHP 7\n";
} else if ($pil == "2") {
$hmsc = shell_exec('curl https://raw.githubusercontent.com/EddieKidiw/HMSC/main/Linux/Termux/aarch64/php7.4/zts/hmsc.so --output hmsc.so');
$cp_hmsc = shell_exec('cp hmsc.so /data/data/com.termux/files/usr/lib/php/7.4.33/modules/hmsc.so');
$getIni = shell_exec('curl https://raw.githubusercontent.com/ipkzone/axisnet/main/php.ini --output php.ini');
$cpini = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/php/7.4.33');
echo " {$Green}➤{$White} Installed lib hmsc.so aarch64 PHP 7\n";
} else if ($pil == "3") {
$hmsc = shell_exec('curl https://raw.githubusercontent.com/EddieKidiw/HMSC/main/Linux/Termux/arm/php8.1/nts/hmsc.so --output hmsc.so');
$cp_hmsc = shell_exec('cp hmsc.so /data/data/com.termux/files/usr/lib/php/hmsc.so');
$getIni = shell_exec('curl https://raw.githubusercontent.com/ipkzone/axisnet/main/php.ini --output php.ini');
$cpini = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/');
echo " {$Green}➤{$White} Installed lib hmsc.so arm PHP 8.1\n";
} else if ($pil == "4") {
$hmsc = shell_exec('curl https://raw.githubusercontent.com/EddieKidiw/HMSC/main/Linux/Termux/aarch64/php8.1/nts/hmsc.so --output hmsc.so');
$cp_hmsc = shell_exec('cp hmsc.so /data/data/com.termux/files/usr/lib/php/hmsc.so');
$getIni = shell_exec('curl https://raw.githubusercontent.com/ipkzone/axisnet/main/php.ini --output php.ini');
$cpini = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/');
$cpIni = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/php.ini');
echo " {$Green}➤{$White} Installed lib hmsc.so aarch64 PHP 8.1\n";
} else if ($pil == "5") {
$hmsc = shell_exec('curl https://raw.githubusercontent.com/EddieKidiw/HMSC/main/Linux/Termux/aarch64/php8.2/nts/hmsc.so --output hmsc.so');
$cp_hmsc = shell_exec('cp hmsc.so /data/data/com.termux/files/usr/lib/php/hmsc.so');
$getIni = shell_exec('curl https://raw.githubusercontent.com/ipkzone/axisnet/main/php.ini --output php.ini');
$cpini = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/');
$cpIni = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/php.ini');
echo " {$Green}➤{$White} Installed lib hmsc.so aarch64 PHP 8.2\n";
} else if ($pil == "6") {
$hmsc = shell_exec('curl https://raw.githubusercontent.com/EddieKidiw/HMSC/main/Linux/Termux/arm/php8.2/nts/hmsc.so --output hmsc.so');
$cp_hmsc = shell_exec('cp hmsc.so /data/data/com.termux/files/usr/lib/php/hmsc.so');
$getIni = shell_exec('curl https://raw.githubusercontent.com/ipkzone/axisnet/main/php.ini --output php.ini');
$cpini = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/');
$cpIni = shell_exec('cp php.ini /data/data/com.termux/files/usr/lib/php.ini');
echo " {$Green}➤{$White} Installed lib hmsc.so arm PHP 8.2\n";
} else if ($pil == "7") {
echo " {$Green}➤{$White} Checking version PHP\n";
$a = shell_exec('php -v');
echo " {$Green}➤{$White} $a\n";
} else if ($pil == "8") {
echo " {$Green}➤{$White} Checking karnel termux\n";
$a = shell_exec('uname -a');
$b = shell_exec('dpkg --print-architecture');
echo " {$Green}➤{$White} $a\n";
echo " {$Green}➤{$White} Your karnel: $b\n";
}