Bearsampp
2026.5.5
Loading...
Searching...
No Matches
class.action.checkPort.php
Go to the documentation of this file.
1
<?php
2
/*
3
* Copyright (c) 2021-2024 Bearsampp
4
* License: GNU General Public License version 3 or later; see LICENSE.txt
5
* Author: Bear
6
* Website: https://bearsampp.com
7
* Github: https://github.com/Bearsampp
8
*/
9
16
class
ActionCheckPort
17
{
28
public
function
__construct
($args)
29
{
30
global
$bearsamppBins
;
31
32
// Check if the required arguments are provided and not empty
33
if
( isset( $args[0] ) && !empty( $args[0] ) && isset( $args[1] ) && !empty( $args[1] ) ) {
34
// Determine if SSL is to be used
35
$ssl = isset( $args[2] ) && !empty( $args[2] );
36
37
$bin =
$bearsamppBins
->getBinByName($args[0]);
38
if
($bin !==
null
) {
39
// Apache accepts an extra $ssl parameter; all other bins do not
40
if
($args[0] ==
$bearsamppBins
->getApache()->getName()) {
41
$bin->checkPort($args[1], $ssl,
true
);
42
}
else
{
43
$bin->checkPort($args[1],
true
);
44
}
45
}
46
}
47
}
48
}
$bearsamppBins
global $bearsamppBins
Definition
ajax.apache.php:16
ActionCheckPort
Definition
class.action.checkPort.php:17
ActionCheckPort\__construct
__construct($args)
Definition
class.action.checkPort.php:28
Bearsampp-development
sandbox
core
classes
actions
class.action.checkPort.php
Generated by
1.16.1