-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from pmill/dev
Merged issues 9, 10, 12, 13, 14
- Loading branch information
Showing
51 changed files
with
1,781 additions
and
0 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 |
---|---|---|
|
@@ -20,6 +20,7 @@ The following features are currently supported: | |
* List database servers | ||
* List/add/delete databases | ||
* Add database users | ||
* Further functionality can be seen in the examples folder | ||
* Email [email protected] with requests for exposing further functionality | ||
|
||
Requirements | ||
|
@@ -82,6 +83,13 @@ Unversioned (13 Apr 2013) | |
* Updated error handling to expose Plesk error code | ||
* Added html entity escaping | ||
|
||
0.5.1 (05/04/2016) | ||
|
||
* Added mail preferences functionality | ||
* Added wordpress functionality | ||
* Added APS functionality | ||
* Added ssl certificate functionality | ||
|
||
Copyright and License | ||
--------------------- | ||
|
||
|
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,17 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
$params = [ | ||
'domain-name' => 'example.org', | ||
'package-id' => 1, | ||
]; | ||
|
||
$request = new \pmill\Plesk\APS\InstallApplication($config, $params); | ||
$info = $request->process(); | ||
|
||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,12 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
$params = [ | ||
|
||
]; | ||
|
||
$request = new \pmill\Plesk\APS\ListAvailablePackages($config, $params); | ||
$info = $request->process(); | ||
|
||
var_dump($info); |
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,24 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'site-id' => 1, | ||
'nonexistent-user' => \pmill\Plesk\Helper\MailPreferences::NONEXISTENT_USER_BOUNCE, | ||
'mailservice' => false, | ||
'webmail' => true, | ||
'spam-protect-sign' => true, | ||
'greylisting' => false, | ||
]; | ||
|
||
$request = new \pmill\Plesk\MailService\UpdatePreferences($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,21 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
$params = [ | ||
'name' => 'test-ssl', | ||
'admin' => true, | ||
'csr' => '', | ||
'cert' => '', | ||
'pvt' => '', | ||
'ip-address' => '127.0.0.1', | ||
]; | ||
|
||
$request = new \pmill\Plesk\SSL\InstallCertificate($config, $params); | ||
$info = $request->process(); | ||
|
||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,20 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
'plugin_id' => 'wp-super-cache_1.4.8', | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\ActivatePlugin($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,20 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
'theme_id' => 'emmet-lite_1.4.0', | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\ActivateTheme($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\ClearCache($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,20 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
'plugin_id' => 'wp-super-cache_1.4.8', | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\DeactivatePlugin($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\DisableAutoUpdates($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\EnableAutoUpdates($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\GetPluginList($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\GetSecurityStatus($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\GetThemeList($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,20 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
'plugin_id' => 'wp-super-cache', | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\InstallPlugin($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,20 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 1, | ||
'theme_id' => 'emmet-lite', | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\InstallTheme($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,11 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Lists all sites, or if subscription_id is supplied lists only that subscriptions sites | ||
*/ | ||
$request = new \pmill\Plesk\Wordpress\ListInstances($config); | ||
$info = $request->process(); | ||
|
||
var_dump($info); |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'id' => 2, | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\RemoveInstance($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'query' => 'Responsify', | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\SearchPlugins($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
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,19 @@ | ||
<?php | ||
|
||
require_once("../config.php"); | ||
|
||
/* | ||
* Enables | ||
*/ | ||
$params = [ | ||
'query' => 'Lite', | ||
]; | ||
|
||
$request = new \pmill\Plesk\Wordpress\SearchThemes($config, $params); | ||
|
||
$info = $request->process(); | ||
var_dump($info); | ||
|
||
if ($info === false) { | ||
var_dump($request->error->getMessage()); | ||
} |
Oops, something went wrong.