<?php
/*
 **************************************************************************************************
 *    Copyright (c) 2010-2012 Just Another Video script
 *
 * 	  This file is part of Just Another Video Script.
 *    Version 1.4.3
 *    info@justanothervideoscript.com
 **************************************************************************************************
 *    Come to website for support or buying additional plugins/modules.
 *    http://justanothervideoscript.com/
 **************************************************************************************************
 *    By using this software you agree that you have read and acknowledged our End-User License
 *    Agreement available at http://justanothervideoscript.com/license and can be bound by it.
 **********************************************************************************
 */
include_once("adminfunctions.inc");

	if (isset($_POST['submit'])) { 
		$meta_allvideos_header = $_POST['meta_allvideos_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_allvideos_header."' WHERE `setting` = 'meta_allvideos_header'") ;
		$meta_allvideos_key = $_POST['meta_allvideos_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_allvideos_key."' WHERE `setting` = 'meta_allvideos_key'") ;
		$meta_allvideos_desc = $_POST['meta_allvideos_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_allvideos_desc."' WHERE `setting` = 'meta_allvideos_desc'") ;
		$meta_catlist_header = $_POST['meta_catlist_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_catlist_header."' WHERE `setting` = 'meta_catlist_header'") ;
		$meta_catlist_key = $_POST['meta_catlist_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_catlist_key."' WHERE `setting` = 'meta_catlist_key'") ;
		$meta_catlist_desc = $_POST['meta_catlist_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_catlist_desc."' WHERE `setting` = 'meta_catlist_desc'") ;
		$meta_category_header = $_POST['meta_category_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_category_header."' WHERE `setting` = 'meta_category_header'") ;
		$meta_category_key = $_POST['meta_category_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_category_key."' WHERE `setting` = 'meta_category_key'") ;
		$meta_category_desc = $_POST['meta_category_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_category_desc."' WHERE `setting` = 'meta_category_desc'") ;	
		$meta_home_header = $_POST['meta_home_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_home_header."' WHERE `setting` = 'meta_home_header'") ;
		$meta_home_key = $_POST['meta_home_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_home_key."' WHERE `setting` = 'meta_home_key'") ;
		$meta_home_desc = $_POST['meta_home_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_home_desc."' WHERE `setting` = 'meta_home_desc'") ;
		$meta_community_header = $_POST['meta_community_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_community_header."' WHERE `setting` = 'meta_community_header'") ;
		$meta_community_key = $_POST['meta_community_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_community_key."' WHERE `setting` = 'meta_community_key'") ;
		$meta_community_desc = $_POST['meta_community_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_community_desc."' WHERE `setting` = 'meta_community_desc'") ;	
		$meta_mostviewed_header = $_POST['meta_mostviewed_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_mostviewed_header."' WHERE `setting` = 'meta_mostviewed_header'") ;
		$meta_mostviewed_key = $_POST['meta_mostviewed_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_mostviewed_key."' WHERE `setting` = 'meta_mostviewed_key'") ;
		$meta_mostviewed_desc = $_POST['meta_mostviewed_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_mostviewed_desc."' WHERE `setting` = 'meta_mostviewed_desc'") ;
		$meta_profile_header = $_POST['meta_profile_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_profile_header."' WHERE `setting` = 'meta_profile_header'") ;
		$meta_profile_key = $_POST['meta_profile_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_profile_key."' WHERE `setting` = 'meta_profile_key'") ;
		$meta_profile_desc = $_POST['meta_profile_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_profile_desc."' WHERE `setting` = 'meta_profile_desc'") ;
		$meta_search_header = $_POST['meta_search_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_search_header."' WHERE `setting` = 'meta_search_header'") ;
		$meta_search_key = $_POST['meta_search_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_search_key."' WHERE `setting` = 'meta_search_key'") ;
		$meta_search_desc = $_POST['meta_search_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_search_desc."' WHERE `setting` = 'meta_search_desc'") ;
		$meta_toprated_header = $_POST['meta_toprated_header'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_toprated_header."' WHERE `setting` = 'meta_toprated_header'") ;
		$meta_toprated_key = $_POST['meta_toprated_key'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_toprated_key."' WHERE `setting` = 'meta_toprated_key'") ;
		$meta_toprated_desc = $_POST['meta_toprated_desc'] ;
		$db->query("UPDATE `setting` SET `value` = '".$meta_toprated_desc."' WHERE `setting` = 'meta_toprated_desc'") ;

	}

	
$meta_catlist_header = getSetting(meta_catlist_header, $db) ;
$meta_catlist_key = getSetting(meta_catlist_key, $db) ;
$meta_catlist_desc = getSetting(meta_catlist_desc, $db) ;
$meta_allvideos_header = getSetting(meta_allvideos_header, $db) ;
$meta_allvideos_key = getSetting(meta_allvideos_key, $db) ;
$meta_allvideos_desc = getSetting(meta_allvideos_desc, $db) ;
$meta_category_header = getSetting(meta_category_header, $db) ;
$meta_category_key = getSetting(meta_category_key, $db) ;
$meta_category_desc = getSetting(meta_category_desc, $db) ;
$meta_home_header = getSetting(meta_home_header, $db) ;
$meta_home_key = getSetting(meta_home_key, $db) ;
$meta_home_desc = getSetting(meta_home_desc, $db) ;
$meta_community_header = getSetting(meta_community_header, $db) ;
$meta_community_key = getSetting(meta_community_key, $db) ;
$meta_community_desc = getSetting(meta_community_desc, $db) ;
$meta_mostviewed_header = getSetting(meta_mostviewed_header, $db) ;
$meta_mostviewed_key = getSetting(meta_mostviewed_key, $db) ;
$meta_mostviewed_desc = getSetting(meta_mostviewed_desc, $db) ;
$meta_profile_header = getSetting(meta_profile_header, $db) ;
$meta_profile_key = getSetting(meta_profile_key, $db) ;
$meta_profile_desc = getSetting(meta_profile_desc, $db) ;
$meta_search_header = getSetting(meta_search_header, $db) ;
$meta_search_key = getSetting(meta_search_key, $db) ;
$meta_search_desc = getSetting(meta_search_desc, $db) ;
$meta_toprated_header = getSetting(meta_toprated_header, $db) ;
$meta_toprated_key = getSetting(meta_toprated_key, $db) ;
$meta_toprated_desc = getSetting(meta_toprated_desc, $db) ;

?>

<h2>SEO Settings</h2>


<div class="settings">

	<fieldset>
		<form action="" method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<h3><?=$submitmsg?><h3>
			</tr>	
			<tr>
				<td class="bigtext">Home</td>
			</tr>		
			<tr>
					<td>Home header:</td>
					<td><input type="text" size="100" name="meta_home_header" value="<?=$meta_home_header?>"></td>
			</tr>
			<tr>
					<td>Home keywords:</td>
					<td><input type="text" size="100" name="meta_home_key" value="<?=$meta_home_key?>"></td>
			</tr>
			<tr>
					<td>Home description:</td>
					<td><input type="text" size="100" name="meta_home_desc" value="<?=$meta_home_desc?>"></td>
			</tr>			
			
			<tr>
					<td class="bigtext">All videos</td>
			</tr>
			<tr>
					<td>All videos header:</td>
					<td><input type="text" size="100" name="meta_allvideos_header" value="<?=$meta_allvideos_header?>"></td>
			</tr>
			<tr>
					<td>All videos keywords:</td>
					<td><input type="text" size="100" name="meta_allvideos_key" value="<?=$meta_allvideos_key?>"></td>
			</tr>
			<tr>
					<td>All videos description:</td>
					<td><input type="text" size="100" name="meta_allvideos_desc" value="<?=$meta_allvideos_desc?>"></td>
			</tr>
			<tr>
					<td class="bigtext">Mostviewed</td>
			</tr>
			<tr>
					<td>Mostviewed header:</td>
					<td><input type="text" size="100" name="meta_mostviewed_header" value="<?=$meta_mostviewed_header?>"></td>
			</tr>
			<tr>
					<td>Mostviewed keywords:</td>
					<td><input type="text" size="100" name="meta_mostviewed_key" value="<?=$meta_mostviewed_key?>"></td>
			</tr>
			<tr>
					<td>Mostviewed description:</td>
					<td><input type="text" size="100" name="meta_mostviewed_desc" value="<?=$meta_mostviewed_desc?>"></td>
			</tr>
			<tr>
					<td class="bigtext">Category list</td>
			</tr>
			<tr>
					<td>Catlist header:</td>
					<td><input type="text" size="100" name="meta_catlist_header" value="<?=$meta_catlist_header?>"></td>
			</tr>
			<tr>
					<td>Catlist keywords:</td>
					<td><input type="text" size="100" name="meta_catlist_key" value="<?=$meta_catlist_key?>"></td>
			</tr>
			<tr>
					<td>Catlist description:</td>
					<td><input type="text" size="100" name="meta_catlist_desc" value="<?=$meta_catlist_desc?>"></td>
			</tr>
			<tr>
					<td class="bigtext">Top rated</td>
			</tr>
			<tr>
					<td>Top rated header:</td>
					<td><input type="text" size="100" name="meta_toprated_header" value="<?=$meta_toprated_header?>"></td>
			</tr>
			<tr>
					<td>Top rated keywords:</td>
					<td><input type="text" size="100" name="meta_toprated_key" value="<?=$meta_toprated_key?>"></td>
			</tr>
			<tr>
					<td>Top rated description:</td>
					<td><input type="text" size="100" name="meta_toprated_desc" value="<?=$meta_toprated_desc?>"></td>
			</tr>
			<tr>
					<td class="bigtext">Community</td>
			</tr>
			<tr>
					<td>Community header:</td>
					<td><input type="text" size="100" name="meta_community_header" value="<?=$meta_community_header?>"></td>
			</tr>
			<tr>
					<td>Community keywords:</td>
					<td><input type="text" size="100" name="meta_community_key" value="<?=$meta_community_key?>"></td>
			</tr>
			<tr>
					<td>Community description:</td>
					<td><input type="text" size="100" name="meta_community_desc" value="<?=$meta_community_desc?>"></td>
			</tr>
			<tr>
					<td class="bigtext">Profile</td>
			</tr>
			<tr>
					<td>Profile header:</td>
					<td><input type="text" size="100" name="meta_profile_header" value="<?=$meta_profile_header?>"></td>
			</tr>
			<tr>
					<td>Profile keywords:</td>
					<td><input type="text" size="100" name="meta_profile_key" value="<?=$meta_profile_key?>"></td>
			</tr>
			<tr>
					<td>Profile description:</td>
					<td><input type="text" size="100" name="meta_profile_desc" value="<?=$meta_profile_desc?>"></td>
			</tr>
			<tr>
					<td class="bigtext">Category</td>
			</tr>
			<tr>
					<td>Category header:</td>
					<td><input type="text" size="100" name="meta_category_header" value="<?=$meta_category_header?>"></td>
			</tr>
			<tr>
					<td>Category keywords:</td>
					<td><input type="text" size="100" name="meta_category_key" value="<?=$meta_category_key?>"></td>
			</tr>
			<tr>
					<td>Category description:</td>
					<td><input type="text" size="100" name="meta_category_desc" value="<?=$meta_category_desc?>"></td>
			</tr>
			<tr>
					<td class="bigtext">Search</td>
			</tr>
			<tr>
					<td>Search header:</td>
					<td><input type="text" size="100" name="meta_search_header" value="<?=$meta_search_header?>"></td>
			</tr>
			<tr>
					<td>Search keywords:</td>
					<td><input type="text" size="100" name="meta_search_key" value="<?=$meta_search_key?>"></td>
			</tr>
			<tr>
					<td>Search description:</td>
					<td><input type="text" size="100" name="meta_search_desc" value="<?=$meta_search_desc?>"></td>
			</tr>			
			
			
			
			
			
			<tr>	
				<td><input class="submitbutton" type="submit" name="submit" value="Submit" /></td>
			</tr>
		</table>
		</form>

	</fieldset>
</div>	

		

		