include '../Classes/DB.php'; include '../Classes/CategoriesActions.php'; include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:Auth.php'); } $msg = $_GET['msg']; echo $msg; $actoractions = new ActorsActions(); $actors = $actoractions->getAllActors(); $idd = $_GET['id']; $catactions = new CategoriesActions(); $categories = $catactions->getAllCategories(); $vidactions = new VideosActions(); $videos = $vidactions->getVideosForSpecificCategorie($idd); var_dump($videos); $upit = $catactions->getCategorieBySpecificID($idd); $specificcategorie = $upit->fetch(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="en"> <head> <style> body{
include '../config.php'; include '../Classes/DB.php'; include '../Classes/CategoriesActions.php'; include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:Auth.php'); } $msg = $_GET['msg']; echo $msg; $actoractions = new ActorsActions(); $actors = $actoractions->getAllActors(); $catactions = new CategoriesActions(); $categories = $catactions->getAllCategories(); $vidactions = new VideosActions(); $videos = $vidactions->getAllvideos(); ?> <!DOCTYPE html> <html lang="en"> <head> <style> .video-js{ width: 100%;!important; } </style> <link href="http://vjs.zencdn.net/5.4.4/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="http://vjs.zencdn.net/ie8/1.1.1/videojs-ie8.min.js"></script> <link rel="stylesheet" href="../css/bootstrap.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; include '../Classes/CategoriesActions.php'; include '../Classes/DB.php'; include '../config.php'; $catAct = new CategoriesActions(); $vidAct = new VideosActions(); $t_x = $_FILES["fileToUpload"]["name"]; $t_xx = explode('.', $t_x); $title = $t_xx[0]; $target_dir = "../Video/"; $foldertitle = $_FILES["fileToUpload"]["name"]; $target_file = $target_dir . $title; $uploadOk = true; $Insert = false; $url = '../Video/' . $title; $msg = ''; $glumci = $_POST['formActors']; $title = $_POST['videotitle']; $description = $_POST['videodescription']; $categorie = $_POST['categorie']; $UploadUrl = $_POST['UploadUrl']; if (isset($_POST["submit"])) { echo "Submit"; if (empty($title)) { $msg .= 'You must enter Title</br>'; }
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include '../Classes/VideosActions.php'; include '../Classes/DB.php'; include '../config.php'; $videoactions = new VideosActions(); $url = $_GET["url"]; if (isset($_GET['id'])) { $videoactions->deleteVideoById($_GET['id']); $fh = fopen($url, 'a'); fclose($fh); $bool = unlink($url); var_dump($bool); header("Location:../Views-client/Pocetna.php"); }
include '../Classes/CategoriesActions.php'; include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:../Views-client/Auth.php'); } $msg = $_GET['msg']; $id = $_GET['id']; $actorsactions = new ActorsActions(); $actors = $actorsactions->getAllActors(); $actorsbyid = $actorsactions->getActorsById($id); $categoriesactions = new CategoriesActions(); $categories = $categoriesactions->getAllCategories(); $categoriesbyid = $categoriesactions->getCategorieForSpecificVideo($id); $videoactions = new VideosActions(); $video = $videoactions->getVideoById($id); ?> <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="../css/bootstrap.css"> <meta charset="UTF-8"> <title>Title</title> <style> body{ background-image: url("../Images/background2.jpg"); background-repeat: no-repeat; background-size:100% 100%;
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include '../Classes/VideosActions.php'; include '../Classes/DB.php'; include '../config.php'; $id = $_GET['id']; if (isset($_GET['id'])) { $actVideo = new VideosActions(); $title = $_POST['title']; $description = $_POST['description']; $categorie = $_POST['categorie']; $actors = $_POST['formActors']; $actVideo = new VideosActions(); $msg = $actVideo->ValidateUpdateFields($title, $description, $categorie); if (empty($msg)) { $actVideo->UpdateVideoById($title, $description, $actors, $categorie, $id); } else { header('Location:../Views-client/EditVideo.php?id=' . $id); } }
<?php error_reporting(-1); ini_set('display_errors', 'On'); include '../Classes/VideosActions.php'; include '../Classes/DB.php'; include '../config.php'; $videos = new VideosActions(); $allVideos = $videos->getAllCategories(); $data = array(); while ($row = $allVideos->fetch(PDO::FETCH_ASSOC)) { $data[] = $row; } echo json_encode($data);
include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:Auth.php'); } $idd = $_GET['id']; $msg = $_GET['msg']; echo $msg; $actoractions = new ActorsActions(); $actors = $actoractions->getAllActors(); $query = $actoractions->getSpecificActor($idd); $specificactor = $query->fetch(PDO::FETCH_ASSOC); $catactions = new CategoriesActions(); $categories = $catactions->getAllCategories(); $vidactions = new VideosActions(); $videos = $vidactions->getVideosForSpecificCategorie($idd); $upit = $vidactions->GetAllVideosOfSpecificActor($idd); $videosofactor = $upit->fetch(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="en"> <head> <style> body{ background-image: url("../Images/background2.jpg"); background-repeat: no-repeat; background-size:100% 100%; } .video-js {