mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 12:38:01 +00:00
added license and readme
This commit is contained in:
38
backend.php
Normal file → Executable file
38
backend.php
Normal file → Executable file
@@ -1,19 +1,19 @@
|
||||
<?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'));
|
||||
<?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'));
|
||||
|
||||
Reference in New Issue
Block a user