Пример #1
0
				
					$new_name = 'Videos'.GetSID(7);
					//$new_name = (isset($_POST['name'])) ? $_POST['name'] : "";
					if ($my_upload->upload($new_name)) { // new name is an additional filename information, use this to rename the uploaded file
						$full_path = $my_upload->upload_dir.$my_upload->file_copy;
						$info = $my_upload->get_uploaded_file_info($full_path);
						// ... or do something like insert the filename to the database
					}
			} else {
				$full_path = "";
			}
			
			$_POST = sanitize($_POST);
		    $photos = $_POST;
		    settype($photos,'object');
			VideoGallery::addVideoGallery($photos,$full_path); 
			$success = "Videos Successfully Saved!";
			
			$updates = 'Add new videos content';
  	    AdminAction::addAdminAction($_SESSION['admin_name'],$updates);
	}
?>
<!DOCTYPE html>  
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">  
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <link rel="stylesheet" type="text/css" media="screen" href="<?php 
echo $ROOT_URL;
?>
_admin/_assets/css/core3.css" />