Skip to content

Commit

Permalink
Merge pull request #207 from peviitor-ro/nou-5
Browse files Browse the repository at this point in the history
v0/logo
  • Loading branch information
ale23yfm committed Jul 6, 2024
2 parents ccdeea7 + f7b28c5 commit 51ce35d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions v0/logo/add/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/add/",
Expand Down Expand Up @@ -30,7 +31,15 @@
$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;

Expand All @@ -43,9 +52,10 @@
'content' => $data
)
);

$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);

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

0 comments on commit 51ce35d

Please sign in to comment.