clipbucket/upload/actions/embed_form_verifier.php
2010-02-09 11:47:08 +00:00

25 lines
No EOL
575 B
PHP

<?php
/**
* This file is used to verify embed form
* @author : Arslan Hassan
*/
include("../includes/config.inc.php");
$embed_code = $_POST['embed_code'];
$duration = $_POST['duration'];
$thumb_file = $_POST['thumb_file'];
$ext = strtolower(getExt($thumb_file));
validate_embed_code($embed_code);
validate_duration($duration);
if(empty($thumb_file) || ( $ext != 'jpg' && $ext != 'png' && $ext !='gif'))
e(lang("pelase_select_img_file_for_vdo"));
if(count($eh->error_list>0))
$array['err'] = $eh->error_list[0];
echo json_encode($array);
?>