mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 12:38:01 +00:00
20 lines
445 B
PHP
Executable File
20 lines
445 B
PHP
Executable File
<?php
|
|
session_start();
|
|
define('DS', DIRECTORY_SEPARATOR);
|
|
define('ROOT', dirname(__FILE__));
|
|
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
|
|
|
require_once (ROOT . DS . 'inc' . DS . 'core.php');
|
|
|
|
|
|
$pm = new PictshareModel();
|
|
|
|
if($_GET['getimage'])
|
|
{
|
|
$url = $_GET['getimage'];
|
|
|
|
echo json_encode($pm->uploadImageFromURL($url));
|
|
}
|
|
else
|
|
echo json_encode(array('status'=>'ERR'));
|