diff --git a/interface/web/sandbox-remote_client/README.txt b/interface/web/sandbox-remote_client/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..8a4865e8d4fb9cd67d5149c3815da28b5c775688 --- /dev/null +++ b/interface/web/sandbox-remote_client/README.txt @@ -0,0 +1,6 @@ +This a play zone with pedro. + +Ideas are to create a class that can be easily consumed. + +Also make it so it works with smarty on html and JSON for the lugin ;-) + diff --git a/interface/web/sandbox-remote_client/class.ispconfig.remote.client.php b/interface/web/sandbox-remote_client/class.ispconfig.remote.client.php new file mode 100644 index 0000000000000000000000000000000000000000..42a4681a184aaf446aa744873c9b9d027a79781b --- /dev/null +++ b/interface/web/sandbox-remote_client/class.ispconfig.remote.client.php @@ -0,0 +1,35 @@ +<?php + +/* This is a conceptual stlye code for feedback and work in progress + Please hack +*/ + +class ISPConfigClient +{ + + public function __construct($db_connection = null){ + + } + + //* Get Reseller List + public function reseller_get_list(){ + + $params = array ( 'sid' => $session_id, + 'module' => 'reseller', + 'function' => 'reseller_list', + 'params' => '' + ); + } + + public function reseller($ID){ + // Get Reseller + $params = array ( 'sid' => $session_id, + 'module' => 'reseller', + 'function' => 'reseller_get', + 'params' => array ( reseller_title => "Reseller1")); + } + } + +} + +?> \ No newline at end of file