예제 #1
0
<?php

include '../includes/backend/mysqli_connect.php';
include '../includes/functions.php';
if ($vid = validate_id($_GET['vid'])) {
    $set = get_video_by_id($vid);
    $videos = array();
    if (mysqli_num_rows($set) > 0) {
        $videos = mysqli_fetch_array($set, MYSQLI_ASSOC);
    } else {
        redirect_to('admin/list_videos.php');
    }
} else {
    redirect_to('admin/list_videos.php');
}
$title_page = $videos['type_name'];
include '../includes/backend/header-admin.php';
?>

	<div class="content-wrapper">
        <div class="container">
            <div class="row">
                <div class="col-md-11" style="margin-left: 4.1%">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h2 style="text-align: center"><?php 
echo $videos['type_name'];
?>
</h2>
                            <h4 style="text-align: center" ><a href="index.php"><?php 
echo $lang['ADD_VIDEO_LINK_HOME'];
예제 #2
0
<!--#####################################################################
    #
    #   File          : VIDEO
    #   Project       : Game Magazine Project
    #   Author        : Béo Sagittarius
    #   Created       : 07/01/2015
    #
    ##################################################################### -->
<?php 
include 'includes/backend/mysqli_connect.php';
include 'includes/functions.php';
$result = get_video_by_id(11);
if (mysqli_num_rows($result) > 0) {
    $video = mysqli_fetch_array($result, MYSQLI_ASSOC);
}
include 'includes/frontend/header.php';
?>
<div class="container">
    <div class="content-top" style="padding-top: 1.3em">
        <div class="video_embed" style="width: 125%; height: 510px; left: -150px; position: relative;">
            <div class="col-lg-8" id="embed_player" style="left: 19%; margin: auto ;" >
                <video id="example_video_1" class="video-js vjs-default-skin" controls
                    preload="auto" width="854" height="480"
                    poster=""
                    data-setup='{"techOrder":["youtube"], "src":"<?php 
echo $video['url_video'];
?>
"}' >
                </video>
            </div>
        </div>
예제 #3
0
<!--#####################################################################
    #
    #   File          : VIDEO
    #   Project       : Game Magazine Project
    #   Author        : Béo Sagittarius
    #   Created       : 07/01/2015
    #
    ##################################################################### -->
<?php 
include 'includes/backend/mysqli_connect.php';
include 'includes/functions.php';
if (isset($_GET['vid'])) {
    $vid = $_GET['vid'];
    $result = get_video_by_id($vid);
    if (mysqli_num_rows($result) > 0) {
        $video = mysqli_fetch_array($result, MYSQLI_ASSOC);
    }
} else {
    redirect_to('index.php');
}
include 'includes/frontend/header.php';
?>
<div class="container">
    <div class="content-top" style="padding-top: 1.3em">
        <div class="video_embed" style="width: 125%; height: 510px; left: -150px; position: relative;">
            <div class="col-lg-8" id="embed_player" style="left: 19%; margin: auto ;" >
                <video id="example_video_1" class="video-js vjs-default-skin" controls
                    preload="auto" width="854" height="480"
                    poster=""
                    data-setup='{"techOrder":["youtube"], "src":"<?php 
echo $video['url_video'];