access_page(); // only set this this method to protect your page $page_protect->get_user_info(); $hello_name = $page_protect->user; if ($page_protect->access_level == 10) $isadmin=1; else $isadmin=0; //are you an admin /*What channel are we going to show?*/ if (!$_GET['channel']) $channel = $config['default_channel']; else $channel = $_GET['channel']; /*select channel info and format it*/ $resultNWT = db_query ("SELECT ID FROM media WHERE channel=\"$channel\" ORDER BY published DESC LIMIT 1;"); $row = mysql_fetch_row($resultNWT); $ID=$row[0]; if ( !$ID ) $ID=-1; if ($_GET['ID']) { $ID=$_GET['ID']; } else { $_GET['ID']=$ID; } print " "; ?> Distributed Multimedia Data Base