Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
asiafood.bdcloud.fr /
webservices /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
README.md
797
B
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_actioncomm.php-NORUN
4.31
KB
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_category.php-NORUN
2.74
KB
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_invoice.php-NORUN
3.92
KB
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_order.php-NORUN
3.92
KB
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_other.php-NORUN
2.91
KB
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_productorservice.php-NORUN
4.97
KB
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_project.php-NORUN
4.26
KB
-rwxr-xr-x
2021-01-30 18:03
demo_wsclient_thirdparty.php-NORUN
6.17
KB
-rwxr-xr-x
2021-01-30 18:03
index.php
1.79
KB
-rwxr-xr-x
2021-01-30 18:03
server_actioncomm.php
18.91
KB
-rwxr-xr-x
2021-01-30 18:03
server_category.php
8.15
KB
-rwxr-xr-x
2021-01-30 18:03
server_contact.php
24.29
KB
-rwxr-xr-x
2021-01-30 18:03
server_invoice.php
28.81
KB
-rwxr-xr-x
2021-01-30 18:03
server_order.php
30.97
KB
-rwxr-xr-x
2021-01-30 18:03
server_other.php
9.34
KB
-rwxr-xr-x
2021-01-30 18:03
server_payment.php
7.94
KB
-rwxr-xr-x
2023-04-13 09:16
server_productorservice.php
40.44
KB
-rwxr-xr-x
2021-01-30 18:03
server_project.php
15.32
KB
-rwxr-xr-x
2021-01-30 18:03
server_supplier_invoice.php
15.93
KB
-rwxr-xr-x
2021-01-30 18:03
server_thirdparty.php
29.51
KB
-rwxr-xr-x
2021-01-30 18:03
server_user.php
24.55
KB
-rwxr-xr-x
2021-01-30 18:03
Save
Rename
<?php /* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2012 Florian Henry <florian.henry@open-concept.pro> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * \file htdocs/webservices/demo_wsclient_actioncomm.php * \brief Demo page to make a client call to Dolibarr WebServices "server_other" */ // This is to make Dolibarr working with Plesk set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs'); require_once '../master.inc.php'; require_once NUSOAP_PATH.'/nusoap.php'; // Include SOAP $WS_DOL_URL = DOL_MAIN_URL_ROOT.'/webservices/server_actioncomm.php'; //$WS_DOL_URL = 'http://localhost:8080/'; // If not a page, should end with / $WS_METHOD_GET = 'getActionComm'; $WS_METHOD_CREATE = 'createActionComm'; $WS_METHOD_GET_C_LIST = 'getListActionCommType'; $ns='http://www.dolibarr.org/ns/'; //Chosse action to do //$action='get'; //$action='getlist'; $action='create'; // Set the WebService URL dol_syslog("Create nusoap_actioncomm for URL=".$WS_DOL_URL); $soapclient = new nusoap_client($WS_DOL_URL); if ($soapclient) { $soapclient->soap_defencoding='UTF-8'; $soapclient->decodeUTF8(false); } // Call the WebService method and store its result in $result. $authentication=array( 'dolibarrkey'=>$conf->global->WEBSERVICES_KEY, 'sourceapplication'=>'DEMO', 'login'=>'admin', 'password'=>'changeme', 'entity'=>'1'); // Test URL if ($action=='get') { $WS_METHOD=$WS_METHOD_GET; $parameters = array('authentication'=>$authentication,'id'=>1); dol_syslog("Call method ".$WS_METHOD_GET); $result = $soapclient->call($WS_METHOD_GET,$parameters,$ns,''); if (! $result) { print $soapclient->error_str; print "<br>\n\n"; print $soapclient->request; print "<br>\n\n"; print $soapclient->response; exit; } } // Test URL if ($action=='getlist') { $WS_METHOD=$WS_METHOD_GET_C_LIST; $parameters = array('authentication'=>$authentication); dol_syslog("Call method ".$WS_METHOD_GET_C_LIST); $result = $soapclient->call($WS_METHOD_GET_C_LIST,$parameters,$ns,''); if (! $result) { print $soapclient->error_str; print "<br>\n\n"; print $soapclient->request; print "<br>\n\n"; print $soapclient->response; exit; } } // Test URL if ($action=='create') { $WS_METHOD=$WS_METHOD_CREATE; $new=array( 'datep'=>dol_mktime(13, 30, 00, 12, 16, 2012), 'datef'=>dol_mktime(15, 30, 00, 12, 16, 2012), 'type_code'=>'AC_RDV', 'socid'=>'1', 'projectid'=>'', 'note'=>'This is note', 'contactid'=>'', 'userownerod'=>'1', 'label'=>'Ceci est les titre de l\'envenement', 'percentage'=>'100', 'location'=>'Location1' ); $parameters = array('authentication'=>$authentication,'actioncomm'=>$new); dol_syslog("Call method ".$WS_METHOD_CREATE); $result = $soapclient->call($WS_METHOD_CREATE,$parameters,$ns,''); if (! $result) { print $soapclient->error_str; print "<br>\n\n"; print $soapclient->request; print "<br>\n\n"; print $soapclient->response; exit; } } /* * View */ header("Content-type: text/html; charset=utf8"); print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'."\n"; echo '<html>'."\n"; echo '<head>'; echo '<title>WebService Test: '.$WS_METHOD.'</title>'; echo '</head>'."\n"; echo '<body>'."\n"; echo 'NUSOAP_PATH='.NUSOAP_PATH.'<br>'; echo "<h2>Request:</h2>"; echo '<h4>Function</h4>'; echo $WS_METHOD; echo '<h4>SOAP Message</h4>'; echo '<pre>' . htmlspecialchars($soapclient->request, ENT_QUOTES) . '</pre>'; echo '<hr>'; echo "<h2>Response:</h2>"; echo '<h4>Result</h4>'; echo '<pre>'; print_r($result); echo '</pre>'; echo '<h4>SOAP Message</h4>'; echo '<pre>' . htmlspecialchars($soapclient->response, ENT_QUOTES) . '</pre>'; echo '</body>'."\n"; echo '</html>'."\n"; ?>