cinemapress.sh

This commit is contained in:
Zelda Root 2021-06-18 22:32:15 +03:00 committed by GitHub
commit 9de2cb9022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 2025 additions and 0 deletions

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# CinemaPress web-terminal/web-console
![CinemaPress web-terminal/web-console](https://raw.githubusercontent.com/CinemaPress/CinemaPress/master/themes/default/public/admin/images/min/web.png)
## How to install CinemaPress web-terminal/web-console?
> #### Create PHP website `example.sh`
- `cinemapress cms example.sh php-mysql`
> #### Clone repo and copy to website dir
- `git clone https://github.com/CinemaPress/CinemaPressSH.git temp`
- `cp -R temp/* /home/example.sh/`

BIN
android-chrome-192x192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
android-chrome-512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

9
browserconfig.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#ffc40d</TileColor>
</tile>
</msapplication>
</browserconfig>

BIN
favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

1844
index.html Normal file

File diff suppressed because it is too large Load Diff

BIN
mstile-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

74
safari-pinned-tab.svg Normal file
View File

@ -0,0 +1,74 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.11, written by Peter Selinger 2001-2013
</metadata>
<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M2517 4984 c-1 -1 -76 -5 -167 -8 -91 -4 -178 -9 -195 -10 -62 -7
-161 -18 -185 -21 -14 -2 -45 -7 -70 -10 -64 -9 -212 -34 -230 -40 -8 -2 -31
-7 -50 -10 -58 -10 -249 -62 -340 -93 -309 -106 -507 -219 -665 -378 -166
-167 -219 -345 -156 -526 126 -362 749 -672 1536 -764 33 -3 68 -8 78 -10 139
-25 822 -25 977 0 14 3 50 7 80 10 49 6 151 21 205 30 11 2 38 7 60 11 96 17
292 67 394 100 481 155 788 377 877 632 38 112 22 253 -44 373 -44 79 -179
216 -277 281 -100 66 -244 141 -360 187 -96 38 -267 96 -316 106 -13 3 -60 14
-105 25 -94 23 -105 26 -249 51 -99 17 -249 37 -345 45 -19 2 -109 7 -200 10
-91 4 -184 8 -208 9 -24 1 -44 1 -45 0z m348 -258 c166 -17 233 -27 375 -57
94 -20 237 -60 288 -81 15 -6 29 -12 32 -12 20 -4 138 -57 200 -89 160 -84
283 -193 331 -295 44 -94 44 -216 2 -302 -44 -87 -106 -152 -217 -228 -174
-118 -448 -222 -705 -267 -47 -8 -97 -17 -111 -20 -28 -5 -96 -12 -220 -22
-163 -14 -585 -7 -702 12 -13 2 -57 8 -98 15 -41 6 -127 23 -190 37 -63 15
-117 27 -120 28 -43 8 -221 75 -308 116 -281 131 -427 297 -424 484 2 143 81
263 246 373 64 42 235 132 251 132 4 0 21 6 38 14 32 14 68 28 77 31 3 0 34
11 70 22 63 21 134 41 175 49 121 24 239 44 280 48 28 3 82 8 120 12 39 3 71
7 72 8 4 4 496 -3 538 -8z"/>
<path d="M2425 4649 c-145 -24 -237 -61 -296 -120 -44 -44 -51 -80 -28 -130
75 -155 492 -214 774 -108 77 28 155 102 155 146 0 120 -184 211 -440 217 -63
2 -137 -1 -165 -5z"/>
<path d="M1565 4360 c-154 -22 -283 -85 -318 -158 -47 -96 69 -197 272 -238
113 -22 335 -15 433 14 320 96 288 302 -57 374 -61 12 -261 17 -330 8z"/>
<path d="M3205 4346 c-176 -43 -274 -123 -258 -210 8 -40 67 -94 138 -127 173
-78 480 -80 653 -3 221 98 196 241 -59 327 -66 23 -118 29 -259 32 -101 2
-142 -2 -215 -19z"/>
<path d="M2525 4130 c-82 -7 -144 -34 -165 -72 -13 -25 -13 -29 9 -52 71 -75
300 -77 378 -4 29 27 29 49 1 76 -45 41 -124 60 -223 52z"/>
<path d="M1888 3909 c-264 -45 -384 -171 -272 -283 134 -134 529 -166 763 -61
62 28 130 91 132 123 8 87 -46 144 -183 192 -115 40 -304 52 -440 29z"/>
<path d="M3020 3919 c-344 -25 -511 -201 -312 -328 215 -136 684 -112 820 44
18 20 33 42 33 50 1 8 2 21 3 28 4 23 -38 87 -74 112 -101 70 -287 107 -470
94z"/>
<path d="M434 3335 c1 -203 5 -380 8 -392 65 -228 319 -447 688 -593 200 -79
470 -154 647 -180 37 -5 79 -12 93 -14 50 -9 104 -16 159 -22 31 -3 67 -7 81
-9 54 -10 284 -19 455 -19 172 1 443 12 455 19 3 1 34 6 70 9 36 4 75 8 85 10
11 2 40 7 65 10 25 3 54 8 65 10 11 2 40 7 65 11 174 29 434 101 595 165 340
135 557 296 663 490 57 104 61 139 61 524 l1 351 -23 -65 c-76 -213 -292 -398
-645 -553 -153 -67 -517 -169 -682 -192 -25 -3 -52 -8 -60 -10 -8 -2 -31 -6
-50 -9 -19 -2 -55 -7 -80 -11 -266 -37 -835 -42 -1085 -11 -16 2 -55 7 -86 10
-31 4 -67 9 -80 12 -13 2 -40 6 -59 8 -19 3 -82 14 -140 26 -58 12 -116 24
-130 26 -14 3 -39 9 -56 15 -17 5 -42 12 -54 14 -42 8 -223 66 -295 95 -402
160 -642 361 -720 602 -12 38 -13 -1 -11 -327z"/>
<path d="M431 2380 c-1 -282 2 -368 14 -418 28 -119 133 -264 258 -357 34 -25
69 -52 77 -58 61 -49 229 -134 385 -194 81 -32 313 -106 368 -117 252 -54 345
-70 457 -82 25 -2 56 -6 70 -9 66 -13 230 -19 485 -20 321 0 423 6 660 40 772
110 1326 399 1462 762 16 42 18 92 20 428 2 353 1 376 -13 325 -32 -119 -120
-239 -258 -352 -12 -10 -26 -22 -33 -27 -19 -17 -121 -81 -176 -111 -101 -55
-382 -169 -457 -185 -8 -2 -58 -15 -110 -29 -95 -26 -250 -59 -325 -70 -23 -4
-50 -8 -60 -10 -63 -12 -274 -35 -385 -43 -194 -12 -733 -4 -759 12 -3 1 -35
6 -71 9 -68 6 -198 23 -234 31 -12 3 -33 7 -48 9 -205 33 -461 107 -661 190
-356 147 -592 357 -651 576 -14 51 -15 32 -15 -300z"/>
<path d="M4682 1730 c-3 -41 -40 -128 -79 -189 -122 -192 -448 -397 -798 -502
-38 -11 -87 -27 -107 -35 -21 -8 -38 -12 -38 -9 0 2 -12 0 -26 -5 -62 -24
-376 -83 -504 -95 -36 -4 -76 -9 -90 -11 -147 -26 -809 -26 -960 0 -14 3 -56
7 -95 11 -38 3 -88 10 -110 15 -22 5 -60 11 -85 14 -57 7 -242 47 -340 74
-518 142 -884 382 -989 649 -10 27 -21 60 -24 73 -2 14 -5 -135 -6 -330 -1
-393 3 -426 61 -530 140 -252 482 -459 973 -590 124 -33 113 -31 290 -64 126
-24 154 -28 280 -42 177 -20 312 -27 520 -27 172 0 391 8 455 18 14 2 54 7 90
10 36 4 72 9 80 10 8 2 37 6 64 9 27 4 52 9 55 10 3 2 33 7 66 11 32 3 62 8
65 10 4 2 48 13 98 24 415 91 788 266 974 458 71 72 85 90 122 157 63 113 67
143 63 543 -1 197 -3 347 -5 333z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

19
site.webmanifest Normal file
View File

@ -0,0 +1,19 @@
{
"name": "CinemaPress",
"short_name": "CinemaPress",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

65
ssh.php Normal file
View File

@ -0,0 +1,65 @@
<?php
if (!$_POST["ip"] || !$_POST["root"] || !$_POST["option"] || !$_POST["cp_domain"]) {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
exit();
}
$params = "";
if ((string)$_POST["option"] == "1") {
if (!$_POST["cp_lang"] || !$_POST["cp_theme"] || !$_POST["cp_passwd"]) {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
exit();
}
$params = "\"". escapeshellarg(trim($_POST["option"])) ."\" \"". escapeshellarg(trim($_POST["cp_domain"])) ."\" \"". escapeshellarg(trim($_POST["cp_lang"])) ."\" \"". escapeshellarg(trim($_POST["cp_theme"])) ."\" \"". escapeshellarg(trim($_POST["cp_passwd"])) ."\"";
}
else if ((string)$_POST["option"] == "2") {
if (!$_POST["mega_email"] || !$_POST["mega_password"]) {
$_POST["mega_email"] = "";
$_POST["mega_password"] = "";
}
$params = "\"". escapeshellarg(trim($_POST["option"])) ."\" \"". escapeshellarg(trim($_POST["cp_domain"])) ."\" \"". escapeshellarg(trim($_POST["mega_email"])) ."\" \"". escapeshellarg(trim($_POST["mega_password"])) ."\"";
}
else if ((string)$_POST["option"] == "3") {
if (!$_POST["mega_email"] || !$_POST["mega_password"] || !$_POST["cp_backup"]) {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
exit();
}
$params = "\"". escapeshellarg(trim($_POST["option"])) ."\" \"". escapeshellarg(trim($_POST["cp_domain"])) ."\" \"config\" \"". escapeshellarg(trim($_POST["mega_email"])) ."\" \"". escapeshellarg(trim($_POST["mega_password"])) ."\" \"". escapeshellarg(trim($_POST["cp_backup"])) ."\"";
}
else if ((string)$_POST["option"] == "4") {
if (!$_POST["cp_theme"]) {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
exit();
}
$params = "\"". escapeshellarg(trim($_POST["option"])) ."\" \"". escapeshellarg(trim($_POST["cp_domain"])) ."\" \"". escapeshellarg(trim($_POST["cp_theme"])) ."\" \"yes\"";
}
else if ((string)$_POST["option"] == "6") {
if (!$_POST["cloudflare_email"] || !$_POST["cloudflare_api_key"]) {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
exit();
}
$params = "\"". escapeshellarg(trim($_POST["option"])) ."\" \"". escapeshellarg(trim($_POST["cp_domain"])) ."\" \"". escapeshellarg(trim($_POST["cloudflare_email"])) ."\" \"". escapeshellarg(trim($_POST["cloudflare_api_key"])) ."\"";
}
else {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
exit();
}
$check_connect = "sshpass -p " . escapeshellarg(trim($_POST["root"])) . " ssh -oStrictHostKeyChecking=no -q -o ConnectTimeout=10 root@" . escapeshellarg(trim($_POST["ip"])) . " 'echo success'";
$command = "sshpass -p " . escapeshellarg(urldecode(trim($_POST["root"]))) . " ssh -oStrictHostKeyChecking=no root@" . escapeshellarg(trim($_POST["ip"])) . " 'apt-get -y -qq update; apt-get -y -qq install bash wget ca-certificates; yum install -y bash wget ca-certificates; dnf -y install bash wget ca-certificates; wget -T 10 --no-check-certificate -qO /usr/bin/cprs https://raw.githubusercontent.com/CinemaPress/CinemaPress/master/cinemapress.sh && chmod +x /usr/bin/cprs && echo " . $params . " >> /var/log/cinemapress.sh.log && /usr/bin/cprs " . $params . " >> /var/log/cinemapress.sh.log 2>&1' >/dev/null &";
$fp = @fsockopen($_POST["ip"], 22, $errno, $errstr, 2);
if ($fp) {
$out_connect = shell_exec($check_connect);
if (trim($out_connect) == "success") {
exec($command);
echo "OK";
} else {
echo "CONNECT";
}
} else {
echo "OFFLINE";
}