clipbucket/upload/actions/embed_form_verifier.php

25 lines
575 B
PHP
Raw Normal View History

2009-08-25 12:16:42 +00:00
<?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'))
2010-02-09 11:47:08 +00:00
e(lang("pelase_select_img_file_for_vdo"));
2009-08-25 12:16:42 +00:00
if(count($eh->error_list>0))
$array['err'] = $eh->error_list[0];
echo json_encode($array);
?>