remote upload update.
This commit is contained in:
parent
3e4843b287
commit
d67fb2f13f
1 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
||||||
include("../includes/config.inc.php");
|
include("../includes/config.inc.php");
|
||||||
include("../includes/classes/curl/class.curl.php");
|
include("../includes/classes/curl/class.curl.php");
|
||||||
//error_reporting(E_ALL ^E_NOTICE);/**/
|
//error_reporting(E_ALL ^E_NOTICE);/**/
|
||||||
|
ini_set('max_execution_time', 300);
|
||||||
if(isset($_POST['check_url']))
|
if(isset($_POST['check_url']))
|
||||||
{
|
{
|
||||||
$url = $_POST['check_url'];
|
$url = $_POST['check_url'];
|
||||||
|
@ -49,7 +49,6 @@ if(!isCurlInstalled())
|
||||||
exit(json_encode(array("error"=>"Sorry, we do not support remote upload")));
|
exit(json_encode(array("error"=>"Sorry, we do not support remote upload")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//checking if user is logged in or not
|
//checking if user is logged in or not
|
||||||
if(!userid())
|
if(!userid())
|
||||||
exit(json_encode(array('error'=>'You are not logged in')));
|
exit(json_encode(array('error'=>'You are not logged in')));
|
||||||
|
@ -126,7 +125,7 @@ if(isset($_POST['youtube']))
|
||||||
|
|
||||||
if(error())
|
if(error())
|
||||||
{
|
{
|
||||||
exit(json_encode(array('error'=>error('single'))));
|
//exit(json_encode(array('error'=>error('single'))));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!function_exists('get_refer_url_from_embed_code'))
|
if(!function_exists('get_refer_url_from_embed_code'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue