Skip to content

Commit

Permalink
Merge pull request #212 from peviitor-ro/bou-4
Browse files Browse the repository at this point in the history
added v3/logo/delete
  • Loading branch information
sebiboga committed Jul 9, 2024
2 parents 4bf6082 + 0f71031 commit 12e4fa4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions v3/logo/delete/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
header("Access-Control-Allow-Origin: *");

$method = 'POST';
$server = 'zimbor.go.ro';
$core = 'auth';
$command ='/update';

$qs = '?';
$qs = $qs . '_=1617366504771';
$qs = $qs . '&';
$qs = $qs . 'commitWithin=1000';
$qs = $qs . '&';
$qs = $qs . 'overwrite=true';
$qs = $qs . '&';
$qs = $qs . 'wt=json';

$url = 'http://' . $server . $core . $command . $qs;

$company = $_POST['company'];
$data = "{'delete': {'query': 'id:".$company."'}}";

$options = array(
'http' => array(
'header' => "Content-type: application/json\r\n",
'method' => 'POST',
'content' => $data
)
);
$context = stream_context_create($options);

$result = file_get_contents($url, false, $context);
if ($result === FALSE) { echo $result; }

?>

0 comments on commit 12e4fa4

Please sign in to comment.