-
Notifications
You must be signed in to change notification settings - Fork 196
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#! /bin/sh | ||
# Guess values for system-dependent variables and create Makefiles. | ||
# Generated by GNU Autoconf 2.69 for openlitespeed 1.6.8. | ||
# Generated by GNU Autoconf 2.69 for openlitespeed 1.6.9. | ||
# | ||
# Report bugs to <[email protected]>. | ||
# | ||
|
@@ -590,8 +590,8 @@ MAKEFLAGS= | |
# Identity of this package. | ||
PACKAGE_NAME='openlitespeed' | ||
PACKAGE_TARNAME='openlitespeed' | ||
PACKAGE_VERSION='1.6.8' | ||
PACKAGE_STRING='openlitespeed 1.6.8' | ||
PACKAGE_VERSION='1.6.9' | ||
PACKAGE_STRING='openlitespeed 1.6.9' | ||
PACKAGE_BUGREPORT='[email protected]' | ||
PACKAGE_URL='http://www.litespeedtech.com/' | ||
|
||
|
@@ -1395,7 +1395,7 @@ if test "$ac_init_help" = "long"; then | |
# Omit some internal or obsolete options to make the list less imposing. | ||
# This message is too long to be a string in the A/UX 3.1 sh. | ||
cat <<_ACEOF | ||
\`configure' configures openlitespeed 1.6.8 to adapt to many kinds of systems. | ||
\`configure' configures openlitespeed 1.6.9 to adapt to many kinds of systems. | ||
|
||
Usage: $0 [OPTION]... [VAR=VALUE]... | ||
|
||
|
@@ -1465,7 +1465,7 @@ fi | |
|
||
if test -n "$ac_init_help"; then | ||
case $ac_init_help in | ||
short | recursive ) echo "Configuration of openlitespeed 1.6.8:";; | ||
short | recursive ) echo "Configuration of openlitespeed 1.6.9:";; | ||
esac | ||
cat <<\_ACEOF | ||
|
||
|
@@ -1621,7 +1621,7 @@ fi | |
test -n "$ac_init_help" && exit $ac_status | ||
if $ac_init_version; then | ||
cat <<\_ACEOF | ||
openlitespeed configure 1.6.8 | ||
openlitespeed configure 1.6.9 | ||
generated by GNU Autoconf 2.69 | ||
|
||
Copyright (C) 2012 Free Software Foundation, Inc. | ||
|
@@ -2295,7 +2295,7 @@ cat >config.log <<_ACEOF | |
This file contains any messages produced by compilers while | ||
running configure, to aid debugging if configure makes a mistake. | ||
|
||
It was created by openlitespeed $as_me 1.6.8, which was | ||
It was created by openlitespeed $as_me 1.6.9, which was | ||
generated by GNU Autoconf 2.69. Invocation command line was | ||
|
||
$ $0 $@ | ||
|
@@ -3161,7 +3161,7 @@ fi | |
|
||
# Define the identity of the package. | ||
PACKAGE='openlitespeed' | ||
VERSION='1.6.8' | ||
VERSION='1.6.9' | ||
|
||
|
||
# Some tools Automake needs. | ||
|
@@ -18872,7 +18872,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
# report actual input values of CONFIG_FILES etc. instead of their | ||
# values after options handling. | ||
ac_log=" | ||
This file was extended by openlitespeed $as_me 1.6.8, which was | ||
This file was extended by openlitespeed $as_me 1.6.9, which was | ||
generated by GNU Autoconf 2.69. Invocation command line was | ||
|
||
CONFIG_FILES = $CONFIG_FILES | ||
|
@@ -18939,7 +18939,7 @@ _ACEOF | |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
ac_cs_version="\\ | ||
openlitespeed config.status 1.6.8 | ||
openlitespeed config.status 1.6.9 | ||
configured by $0, generated by GNU Autoconf 2.69, | ||
with options \\"\$ac_cs_config\\" | ||
|
||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ m4_include(ax_check_libudns.m4) | |
m4_include(ax_check_ip2location.m4) | ||
|
||
dnl Process this file with autoconf to produce a configure script. | ||
AC_INIT([openlitespeed],[1.6.8],[[email protected]],[openlitespeed],[http://www.litespeedtech.com/]) | ||
AC_INIT([openlitespeed],[1.6.9],[[email protected]],[openlitespeed],[http://www.litespeedtech.com/]) | ||
AM_INIT_AUTOMAKE([1.0 foreign no-define ]) | ||
|
||
AC_CONFIG_HEADERS(src/config.h:src/config.h.in) | ||
|
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.