-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
384 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4ab453a18498a089088ad6382b7eda6ab98151d0 | ||
aa820211702c148b95f2be18eb4643a029b653dc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.6.8 | ||
1.6.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.9.7 | ||
1.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
|
||
/* * ****************************************** | ||
* LiteSpeed Web Server Cache Manager | ||
* | ||
* @author LiteSpeed Technologies, Inc. (https://www.litespeedtech.com) | ||
* @copyright (c) 2020 | ||
* ******************************************* */ | ||
|
||
namespace Lsc\Wp\Panel; | ||
|
||
use \Lsc\Wp\WPInstall; | ||
|
||
class CustomPanel | ||
extends CustomPanelBase | ||
{ | ||
protected function __construct() | ||
{ | ||
/** | ||
* Panel name can be set to whatever you'd like. | ||
*/ | ||
$this->panelName = 'customPanel'; | ||
|
||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* Gets a list of found docroots and associated server names. | ||
* Only needed for lscmctl 'scan' command. | ||
*/ | ||
protected function prepareDocrootMap() | ||
{ | ||
/** | ||
* This function can be left as is if you do not intend to use | ||
* the lscmctl 'scan' command. In this case lscmctl command | ||
* 'addinstalls' can be used to add WordPress installations to the | ||
* custom data file instead. | ||
* | ||
* If you would like to add support for the lscmctl 'scan' command, | ||
* implement this function so that it searches for all document root, | ||
* server name, and server alias groups and uses this information to | ||
* populate $this->docRootMap as follows: | ||
* | ||
* array( | ||
* 'docroots' => array(index => docroot), | ||
* 'names' => array("server name/alias" => index) | ||
* ); | ||
* | ||
* Where the value of each discovered servername/alias in the 'names' | ||
* array matches the index of the related document root in the | ||
* 'docroots' array. | ||
*/ | ||
$this->docRootMap = array('docroots' => array(), 'names' => array()); | ||
} | ||
|
||
/** | ||
* This function returns the PHP binary to be used when performing | ||
* WordPress related actions for the WordPress installation associated with | ||
* the passed in WPInstall object. | ||
* | ||
* @param WPInstall $wpInstall | ||
* @return string | ||
*/ | ||
public function getPhpBinary( WPInstall $wpInstall ) | ||
{ | ||
/** | ||
* If PHP binary $phpBin can be more accurately detected for the given | ||
* installation, do so here. | ||
*/ | ||
$phpBin = 'php'; | ||
|
||
return "{$phpBin} {$this->phpOptions}"; | ||
} | ||
|
||
} |
Oops, something went wrong.