Music Video Generator


VIDEO IS COMPLETE!:
TITLE
ARTIST
You can watch it here!
session_start(); session_name("mvgen"); if(isset($_GET['logoff'])) { $_SESSION = array(); session_destroy(); $_SESSION['usr']= ""; $_SESSION['id'] = 0; header("Location: index.php"); exit; } //ini_set('session.gc_maxlifetime', 1*60*60*24); //1 days // session_id is the number you want to monitor! // you can add the user ID to it if it exists // pull up session_id() if (isset($_SESSION['id'])){ // get the user id from the cookie $user_id = $_SESSION['id']; $username = $_SESSION['usr']; } else { // guest $user = 0; setcookie("mvgen", $user, time() + 2*60*60*24); } $db = mysqli_connect ("localhost", "pack", "watch3r"); mysqli_select_db ($db, "pack"); $checker = mysqli_query($db,"SELECT * FROM pack_engine LIMIT 1"); while ($gather = mysqli_fetch_array($checker)) { $enginestatus = $gather["status"]; } // if($enginestatus == 'DOWN'){ // header("Location: ./down2.php"); // die(); // } ?>