mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-14 04:04:01 +00:00
added support for upload and image change codes so you can control who can upload or use options on pictures
This commit is contained in:
@@ -20,6 +20,9 @@ include_once(ROOT.DS.'inc'.DS.'core.php');
|
||||
|
||||
$pm = new PictshareModel();
|
||||
|
||||
if(UPLOAD_CODE!=false && !$pm->uploadCodeExists($_REQUEST['upload_code']))
|
||||
exit(json_encode(array('status'=>'ERR','reason'=>'Wrong upload code provided')));
|
||||
|
||||
if($_REQUEST['getimage'])
|
||||
{
|
||||
$url = $_REQUEST['getimage'];
|
||||
|
||||
Reference in New Issue
Block a user