Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Webuzo SDK Problems



Normal Mode | Print  

 Webuzo SDK Problems (5 Replies, Read 6101 times)
astakos
Group: Member
Post Group: Newbie
Posts: 8
Status:
Inside the webuzo sdk there is the part of code below:
PHP Code

 /**
     * Restart services
     *
     * @category     Advanced Settings
     * @param        string $service_name Specify the service to restart
                      E.g exim, dovecot, tomcat, httpd, named, pure-ftpd, mysqld
     * @return         string $resp Response of Action. Default: Serialize
     */
    
function restart_service($service_name){
        
$act 'act=services';
        
        
$data['restart_service'] = $service_name;

        
$resp $this->curl_call($act$data);    
        
$this->chk_error();
        return 
$resp;
    }
    
    
/**
     * Start/Stop FTP
     *
     * @category     Advanced Settings
     * @param        string $action Specify start/stop to START/STOP FTP service respectively
     * @return         string $resp Response of Action. Default: Serialize
     */
    
function start_stop_ftp($action){
        
$act 'act=services';
        
        if(
$action != 'stop'){
            
$data['status'] = 'stop';
        }else{
            
$data['status'] = 'running';
        }
        
        
$resp $this->curl_call($act$data);        
        
$this->chk_error();
        return 
$resp;
    } 




As for the restart_service, I cannot make it work. I am calling it through my website and while the rest of the functions are working, it always returns false.  I am calling it using the service_name, not name.

The same applies to start_stop_ftp. Basicly I cannot understand how it works exactly. If I call it using stop as action, it will change it to running and if I call it using any other action (for example run), it will change it to stop.

Could you please let me know if any of you has managed to work with the above functions?


-----------------------
TopWebHost.gr
IP: --   


Threads
 astakos   Webuzo SDK Problems (5 Replies, Read 6101 times)
    |--  peopleinside   If no reply...   on June 6, 2016, 11:40 am
    |--  nikhil89   Hi, We have...   on June 6, 2016, 12:00 pm
    |--  peopleinside   Thank you for...   on June 6, 2016, 12:08 pm
    |--  astakos   Now everything is...   on June 6, 2016, 9:31 pm
    |--  peopleinside   Thank you for...   on June 6, 2016, 9:33 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 29, 2024, 4:23 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.038