Created
February 17, 2015 08:19
-
-
Save cjsewell/647473cbc9aee493ebd0 to your computer and use it in GitHub Desktop.
ispconfig-soap-client Larval test
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers; | |
class WelcomeController extends Controller { | |
/* | |
|-------------------------------------------------------------------------- | |
| Welcome Controller | |
|-------------------------------------------------------------------------- | |
| | |
| This controller renders the "marketing page" for the application and | |
| is configured to only allow guests. Like most of the other sample | |
| controllers, you are free to modify or remove it as you desire. | |
| | |
*/ | |
/** | |
* Create a new controller instance. | |
* | |
* @return void | |
*/ | |
public function __construct() { | |
$this->middleware('guest'); | |
} | |
/** | |
* Show the application welcome screen to the user. | |
* | |
* @return Response | |
*/ | |
public function index() { | |
$cp = new \GDM\ISPConfig\SoapClient('https://127.0.0.1:8080/remote/index.php', 'admin', 'mysecurepassword'); | |
return view('welcome', ['ispconfig' => $cp]); | |
} | |
} |
This file contains hidden or 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
<html> | |
<head> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="content"> | |
<?php | |
foreach ($ispconfig->getAllClients() as $client) { | |
echo $client['contact_name']."<br/>"; | |
} | |
?> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment