Skip to content

Commit

Permalink
Merge pull request #208 from peviitor-ro/nou-5
Browse files Browse the repository at this point in the history
v0/logo/delete look
  • Loading branch information
ale23yfm committed Jul 6, 2024
2 parents 51ce35d + 3359053 commit 4af8cbe
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions v0/logo/delete/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
header("Access-Control-Allow-Origin: *");

/**
* @OA\Post(
* path="/v0/logo/delete/",
Expand Down Expand Up @@ -34,9 +35,17 @@
$server = '172.18.0.10:8983';
$core = 'auth';
$command ='/update';
$qs = '?_=1617366504771&commitWithin=1000&overwrite=true&wt=json';

$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."'}}";
Expand All @@ -48,10 +57,12 @@
'content' => $data
)
);
$context = stream_context_create($options);

$url = 'http://' . $server . $core . $command . $qs;
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { echo $result; }

if ($result === FALSE) {
echo $result;
}

?>

0 comments on commit 4af8cbe

Please sign in to comment.