<?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.
 **********************************************************************************
 */
session_start();
require_once( "functions.php" );

if (!Beveiliging()) {
    echo "You are not logged in anymore, please go <a href='index.php'>back to login</a>";
} else {
	include_once("modules/adminfunctions.inc");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Just Another Video Script - Admin 1.4.3</title>

<link rel="stylesheet" type="text/css" href="admin.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/videosearcher.js"></script>

</head>
<body>
<div id="editbox"></div>
<div id="wrapper">

	<div class="container">
		<div class="menu">

			<ul>
				<li class="Status"><a href="main.php?do=status">Status</a></li>

				<li class="SiteSettings"><a>Site Settings</a>
					<ul>
						<li class="Global"><a href="main.php?do=global">Global</a></li>
						<li class="Mediasettings"><a href="main.php?do=mediasettings">Media settings</a></li>
						<li class="Menusettings"><a href="main.php?do=menusettings">Menu settings</a></li>
						<li class="Encodingsettings"><a href="main.php?do=encodingsettings">Encoding settings</a></li>
						<li class="Pagesettings"><a href="main.php?do=pagesettings">Page settings</a></li>
						<li class="EmailText"><a href="main.php?do=emailtext">Email Text</a></li>
						<li class="Mobilesettings"><a href="main.php?do=mobilesettings">Mobile settings</a></li>
						<li class="HDsettings"><a href="main.php?do=hdsettings">HD settings</a></li>
						<li class="SEO subsubl"><a>SEO</a>
							<ul>
								<li class="SiteSEO"><a href="main.php?do=seo">Site SEO</a></li>
								<li class="Sitemap"><a href="main.php?do=sitemap">Sitemap</a></li>
							</ul>
						</li>

					</ul>
				</li>

				<li class="Video"><a>Video</a>
					<ul>
						<li class="Allvideos"><a href="main.php?do=allvideos">All videos</a></li>
						<li class="Newuploads"><a href="main.php?do=newuploads">New uploads</a></li>
						<li class="Databasecleaner"><a href="main.php?do=dbclean">Database cleaner</a></li>
						<li class="Comments"><a href="main.php?do=memcomments">Comments</a></li>
						<li class="FlaggedVideos"><a href="main.php?do=flagged">Flagged Videos</a></li>
						<li class="Category"><a href="main.php?do=Category">Category</a></li>
					</ul>
				</li>

				<li class="Users"><a>Users</a>
					<ul>
						<li class="UserList"><a href="main.php?do=userlist">User List</a></li>
						<li class="Massemail"><a href="main.php?do=massemail">Mass email</a></li>
					</ul>
				</li>


				</li>
				<li class="Plugins"><a href="main.php?do=plugins">Plugins Manager</a>
					<ul>
						<?php
							$db->query("SELECT * FROM `plugin_menu` WHERE loaded = '1' ORDER BY id") ;
							$plug = $db->fetchAll() ;
							foreach($plug as $value) {
								echo '<li class="'.$value['menuclass'].'"><a href="main.php?play='.$value['menuclass'].'">'.$value['menuname'].'</a></li>';
							}
						?>
					</ul>
				</li>



				<li class="Advertising"><a href="main.php?do=advertising">Advertising</a></li>
				<li class="AdminAccount"><a href="main.php?do=changepass">Admin Account</a></li>
				<li class="GotoSite"><a href="../">Go to Site</a></li>
				<li class="Logout"><a href="main.php?do=logout">Logout</a></li>
			</ul>

		</div>
	</div>




	<div id="content">
		<?php include_once("modules/admincontent.inc") ?>
	</div>

</div>
</body>
</html>


<?php
}
?>