Exemplo n.º 1
0
<?php

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();
$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>
Exemplo n.º 2
0
<?php

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>
Exemplo n.º 3
0
<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
include '../config.php';
include '../Classes/DB.php';
include '../Classes/ActorsActions.php';
session_start();
if (empty($_SESSION['username'])) {
    header('Location:Auth.php');
}
$act = new ActorsActions();
$all = $act->getAllActors();
$msg = $_GET['msg'];
?>


<!DOCTYPE html>
<html lang="en">
<head>
    <style>
        .video-
        {

            width: 100%;!important;
        }
    </style>
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
Exemplo n.º 4
0
<?php

ini_set("display_errors", "1");
error_reporting(E_ALL);
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:../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>
Exemplo n.º 5
0
<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
include '../Classes/ActorsActions.php';
include '../Classes/DB.php';
include '../config.php';
$id = $_GET['id'];
if (isset($_POST['update'])) {
    $firstname = $_POST['firstname'];
    $lastname = $_POST['lastname'];
    $actActions = new ActorsActions();
    $actActions->updateActorByID($firstname, $lastname, $id);
    $msg = 'Actor updated';
    header('Location:../Views-client/Actors.php?msg=' . $msg);
}
Exemplo n.º 6
0
<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
include '../Classes/ActorsActions.php';
include '../Classes/DB.php';
include '../config.php';
if (isset($_POST['submit'])) {
    echo "submit";
    $firstname = $_POST['actorname'];
    $lastname = $_POST['actorlastname'];
    $actors = new ActorsActions();
    $actors->InsertActor($firstname, $lastname);
} else {
    echo "not submit";
}
Exemplo n.º 7
0
<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
include '../Classes/ActorsActions.php';
include '../Classes/DB.php';
include '../config.php';
if (isset($_GET['id'])) {
    $id = $_GET['id'];
    $actor = new ActorsActions();
    $actor->DeleteActor($id);
}
Exemplo n.º 8
0
<?php

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');
}
$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");