Esempio n. 1
0
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>
Esempio n. 2
0
<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
include '../Classes/CategoriesActions.php';
include '../Classes/DB.php';
include '../config.php';
if (isset($_POST['submit'])) {
    echo "submit";
    $name = $_POST['categoriename'];
    $category = new CategoriesActions();
    $category->InsertCategorie($name);
} else {
    echo "not submit";
}
Esempio n. 3
0
<?php

error_reporting(-1);
ini_set('display_errors', 'On');
include '../Classes/CategoriesActions.php';
include '../Classes/DB.php';
include '../config.php';
$categories = new CategoriesActions();
$allCategories = $categories->getAllCategories();
$data = array();
while ($row = $allCategories->fetch(PDO::FETCH_ASSOC)) {
    $data[] = $row;
}
echo json_encode($data);
Esempio n. 4
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>
Esempio n. 5
0
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>
    <style>
        body{
            background-image: url("../Images/background2.jpg");
Esempio n. 6
0
<?php

include '../config.php';
include '../Classes/DB.php';
include '../Classes/CategoriesActions.php';
session_start();
if (empty($_SESSION['username'])) {
    header('Location:Auth.php');
}
$cat = new CategoriesActions();
$all = $cat->getAllCategories();
$msg = $_GET['msg'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <style>
        .video-js
        {
            width: 100%;!important;
        }
    </style>
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
Esempio n. 7
0
<?php

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

error_reporting(E_ALL);
ini_set("display_errors", 1);
include '../Classes/CategoriesActions.php';
include '../Classes/DB.php';
include '../config.php';
$id = $_GET['id'];
if (isset($_POST['update'])) {
    var_dump($_POST);
    $naziv = $_POST['naziv'];
    $catactions = new CategoriesActions();
    $catactions->UpdateCategorie($naziv, $id);
    $msg = 'Actor updated';
    header('Location:../Views-client/Kategorije.php?msg=' . $msg);
}
Esempio n. 9
0
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");
            background-repeat: no-repeat;
            background-size:100% 100%;
        }