🐘 alive.php (Php) 4.5 KB 2024-08-08
PHP module for alive
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 | <?php
require_once("sms.inc.php");
# PhexRemoteControl Server
$SecurityToken = "%6ASdgdfAERGHA7845338w4eFW44325fwer";
$PhexRemoteControlServer = array("87.106.63.182","85.214.39.76","81.169.141.129","85.214.77.110");
$PhexRemoteControlPort = 9977;
$PhexProxyPort = 3383;
$Version = "PhexRemoteControl Service Alive Test - 9.1.2007 - Version 0.1.b";
# Html Header Ausgeben
echo writeHtmlHeaders();
foreach ( $PhexRemoteControlServer as $Server ) {
# 1. Ping Test
$count = 3;
$ergebnis = shell_exec("ping -q -c $count $Server");
list(,$tmp) = explode("received, ", $ergebnis);
list($ProcentLoss,) = explode("% packet loss, ", $tmp);
echo "[$Server] <b id=\"red\">$ProcentLoss Lost</b> Ping Packets<br>";
if ( $ProcentLoss == 100 ){ # 100% packet loss
SendSMS( "Server $Server failed PING Test" );
}; # if ( $ProcentLoss == 100 ){
# 2. PhexServerThread Port Alive Test
$fp = fsockopen($Server, $PhexProxyPort, $errno, $errstr, 3);
if (!$fp) {
echo "[$Server] PhexServerThread Port Alive Test - <b id=\"red\">Failed</b> <br>";
SendSMS( "Server \n $Server \n failed ServerThread Port Test" );
} else {
echo "[$Server] PhexServerThread Port Alive Test - <b id=\"blue\">Success</b> <br>";
}; # if (!$fp) {
$fp = "";
# 3. PhexRemoteControlPort Alive Test
$fp = fsockopen($Server, $PhexRemoteControlPort, $errno, $errstr, 3);
if (!$fp) {
echo "[$Server] PhexRemoteControlPort Alive Test - <b id=\"red\">Failed</b> <br>";
SendSMS( "Server \n $Server \n failed RemoteControl Port Test" );
} else {
echo "[$Server] PhexRemoteControlPort Alive Test - <b id=\"blue\">Success</b> <br>";
}; # if (!$fp) {
... [truncated, 89 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "alive.php",
"description": "PHP module for alive",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "4.5 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/alive.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/"
}
🐘 index.php (Php) 13.6 KB 2024-08-08
Main entry point for web interface
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 | <?php
require_once("sms.inc.php");
####
#### Voreinstellungen
####
# Version
$Version = "PhexRemoteControl - 26.1.2007 @ 17.50 Uhr - Version 0.3.a";
# PhexRemoteControl Server
$PhexRemoteControlServer = array("87.106.63.182","85.214.39.76","81.169.141.129","85.214.77.110");
$PhexRemoteControlPort = 9977;
# Sicherheitsspezifische Voreinstellungen
$SecurityToken = "%6ASdgdfAERGHA7845338w4eFW44325fwer";
####
#### Parameter annehmen
####
$ParameterAction = deleteSpecialChars(stripcslashes(trim($_REQUEST["a"])));
$ParameterActionServer = deleteSpecialChars(stripcslashes(trim($_REQUEST["ip"])));
if ( isset($ParameterAction) && strlen($ParameterAction) >= 1 && strlen($ParameterAction) <= 11 && isset($ParameterActionServer) && strlen($ParameterActionServer) >= 8 && strlen($ParameterActionServer) <= 16 ) {
writeStatusFieldHtmlPage($ParameterActionServer, $ParameterAction);
exit(0);
} elseif ( isset($ParameterActionServer) && strlen($ParameterActionServer) == 3 ){
if (strcasecmp($ParameterActionServer, "all") == 0) {
writeStatusFieldHtmlPageAllServers($ParameterAction);
exit(0);
}; # if (strcasecmp($ParameterActionServer, "all") == 0) {
} else {
writeStartHtmlPage();
echo "</body></html>";
exit(0);
}; # if ( isset($ParameterAction) && strlen($ParameterAction) >= 1 && strlen($ParameterAction) =< 11 ) {
exit(0);
... [truncated, 350 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "index.php",
"description": "Main entry point for web interface",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "13.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/index.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/"
}
🐘 index_org.php (Php) 15.2 KB 2024-08-08
PHP module for index org
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 | <?php
require_once("sms.inc.php");
####
#### Voreinstellungen
####
# Version
$Version = "PhexRemoteControl - 9.1.2007 - Version 0.2.a + gzip";
# PhexRemoteControl Server
$PhexRemoteControlServer = array("87.106.63.182","85.214.39.76","81.169.141.129");
$PhexRemoteControlPort = 9977;
# Sicherheitsspezifische Voreinstellungen
$SecurityToken = "%6ASdgdfAERGHA7845338w4eFW44325fwer";
####
#### Parameter annehmen
####
$ParameterAction = deleteSpecialChars(stripcslashes(trim($_REQUEST["a"])));
$ParameterActionServer = deleteSpecialChars(stripcslashes(trim($_REQUEST["ip"])));
if ( isset($ParameterAction) && strlen($ParameterAction) >= 1 && strlen($ParameterAction) <= 11 && isset($ParameterActionServer) && strlen($ParameterActionServer) >= 8 && strlen($ParameterActionServer) <= 16 ) {
writeStatusFieldHtmlPage($ParameterActionServer, $ParameterAction);
exit(0);
} elseif ( isset($ParameterActionServer) && strlen($ParameterActionServer) == 3 ){
if (strcasecmp($ParameterActionServer, "all") == 0) {
writeStatusFieldHtmlPageAllServers($ParameterAction);
exit(0);
}; # if (strcasecmp($ParameterActionServer, "all") == 0) {
} else {
writeStartHtmlPage();
echo "</body></html>";
exit(0);
}; # if ( isset($ParameterAction) && strlen($ParameterAction) >= 1 && strlen($ParameterAction) =< 11 ) {
exit(0);
... [truncated, 398 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "index_org.php",
"description": "PHP module for index org",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "15.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/index_org.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/"
}
🐘 sms.inc.php (Php) 606 bytes 2024-08-08
PHP module for sms.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | <?php
function SendSMS( $SmsMessage ){
$Admins = array("01607979247");
foreach ( $Admins as $PhoneNumber ) {
$Absender = "BitJoe Paris";
$HiddenGateWayKey = "0efe39e0c019fd11f32044749dbb1ab2";
$SmsMessage = urlencode($SmsMessage);
$QueryUri = "http://gateway.mobilant.net/?key=" . $HiddenGateWayKey . "&handynr=" . $PhoneNumber . "&text=" . $SmsMessage . "&kennung=". $Absender;
$request = fopen($QueryUri,"r");
$StatusCode = trim(fread($request,10));
fclose($request);
}; # foreach ( $Admins as $PhoneNumber ) {
return 1;
}; # function SendSMS( $DisplayText ){
?>
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "sms.inc.php",
"description": "PHP module for sms.inc",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "606 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/sms.inc.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/"
}
🎨 styles.css (Css) 1.6 KB 2024-08-08
CSS styles for styles
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 | .announcement {
BORDER-RIGHT: #9dadbc 4px solid; PADDING-RIGHT: 0px; BORDER-TOP: #9dadbc 4px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; MARGIN: 8px 0px 10px; BORDER-LEFT: #9dadbc 4px solid; WIDTH: 100%; PADDING-TOP: 10px; BORDER-BOTTOM: #9dadbc 4px solid
}
BODY {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma,Arial,Helvetica
}
A:link {
COLOR: #0000c6; TEXT-DECORATION: underline
}
A:visited {
COLOR: #0000c6; TEXT-DECORATION: underline
}
A:hover {
COLOR: #c60000; TEXT-DECORATION: underline
}
IMG {
BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none
}
#table3 {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma,Arial,Helvetica; BORDER-COLLAPSE: collapse
}
#table2 {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma,Arial,Helvetica; BORDER-COLLAPSE: collapse
}
#table1 {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma,Arial,Helvetica; BORDER-COLLAPSE: collapse
}
#nav1 {
TEXT-DECORATION: none
}
#msg {
FONT-SIZE: 10pt; COLOR: #ff0000; TEXT-ALIGN: center; TEXT-DECORATION: bold
}
#blue {
FONT-SIZE: 10pt; COLOR: green; TEXT-ALIGN: center; TEXT-DECORATION: bold
}
#red {
FONT-SIZE: 12pt; COLOR: red; TEXT-ALIGN: center; TEXT-DECORATION: none
}
#gratismsg {
FONT-SIZE: 8pt; TEXT-ALIGN: center; TEXT-DECORATION: none
}
STRONG.norm {
FONT-WEIGHT: normal
}
H2 {
FONT-WEIGHT: bold; FONT-SIZE: 1.2em; MARGIN: 0px; COLOR: #333333; FONT-FAMILY: Tahoma,Arial,Helvetica; LETTER-SPACING: 0px
... [truncated, 8 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "styles.css",
"description": "CSS styles for styles",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "1.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/styles.css",
"encodingFormat": "text/css",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Css"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/PhexRemoteControl/wwwroot/RemoteControlTool/"
}