pedro_morgan
2007-08-17 36b605af9327e1d149350f8ac99a62034c781cd9
Creating sandbox cos with svn we can, wanna come and play ?
2 files added
41 ■■■■■ changed files
interface/web/sandbox-remote_client/README.txt 6 ●●●●● patch | view | raw | blame | history
interface/web/sandbox-remote_client/class.ispconfig.remote.client.php 35 ●●●●● patch | view | raw | blame | history
interface/web/sandbox-remote_client/README.txt
New file
@@ -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 ;-)
interface/web/sandbox-remote_client/class.ispconfig.remote.client.php
New file
@@ -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"));
            }
    }
}
?>