mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +03:00
Perlism
This commit is contained in:
parent
a87e23947e
commit
5009bf8993
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ header("Content-Type: application/json");
|
|||
function _do_curl($method, $opts = null, $type = 'post') {
|
||||
global $apisid, $apiuser, $apipass, $apiip, $apiport;
|
||||
$method = preg_replace('/:serverid:/', $apisid, $method);
|
||||
$method = preg_replace('/^\/+//', '', $method);
|
||||
$method = preg_replace('/^\/+/', '', $method);
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_USERPWD, "$apiuser:$apipass");
|
||||
|
|
Loading…
Add table
Reference in a new issue