Skip to content

Commit

Permalink
Merge pull request #209 from peviitor-ro/nou-2
Browse files Browse the repository at this point in the history
add v3/logo/add
  • Loading branch information
sebiboga committed Jul 9, 2024
2 parents 64276c2 + cd1bb8a commit 4bf6082
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions v3/logo/add/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;

$data = file_get_contents('php://input');

$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 4bf6082

Please sign in to comment.