コード例 #1
0
ファイル: add_video.php プロジェクト: abelardopardo/oval
$userID = $_SESSION['user_id'];
echo "userID is: " . $userID;
$title = $_POST['title'];
echo "title is: " . $title;
$url = $_POST['url'];
echo "url is: " . $url;
$description = $_POST['description'];
echo "description is: " . $description;
$dur = "";
$point1 = $_POST['point_one'];
$point2 = $_POST['point_two'];
$point3 = $_POST['point_three'];
$media = new media();
// delete hosted video as well if the deleting user is the one uploaded
// the kaltura deletion must happen before the OVAL database deletion for owner check to work
if ($media->userOwnsMedia($videoID, $userID)) {
    // TODO: this was commented out so that OVAL deletions becomes "soft delete"
    // implement more comprehensive soft deletion later, where deleted videos are
    // marked as deleted within OVAL, and get reassigned to the system-admin group.
    //
    // The system admin group will then have a "hard delete" command in video
    // management. This arrangement allow departments who administer their own
    // OVAL instance to do their own video management.
    //
    // deleteVideoOnKaltura($videoID);
}
?>

<script>
alert("before the addMedia call!");