<?php include dirname(__FILE__) . '/../../nicovideoclass.php'; $Nicovideo = new nicovideoclass(); $videoid = $Nicovideo->RequestVariableCheck(INPUT_GET, 'id'); if (is_null($videoid) || !$Nicovideo->VideoWatchFlagConfirm($videoid)) { header('Location:' . $Nicovideo->nicosubbaseurl . 'error/404.html'); exit; } $Nicovideo->VideoInfoGet($videoid, 0); if (!$Nicovideo->videoinfo['videoinfo'][0]['flag']) { header('Location:' . $Nicovideo->nicosubbaseurl . 'error/404.html'); exit; } if (!$Nicovideo->videoinfo['videoinfo'][0]['embeddable']) { $Nicovideo->VideoDeletionDataBaseDelete($Nicovideo->videoinfo['videoinfo'][0]['id']); header('Location:' . $Nicovideo->nicosubbaseurl . 'error/404.html'); exit; } $Nicovideo->VideoFileServerGetInSmileVideo($Nicovideo->videoinfo['videoinfo'][0]['id']); if (!$Nicovideo->videofileinfo['flag']) { $Nicovideo->VideoDeletionDataBaseDelete($Nicovideo->videoinfo['videoinfo'][0]['id']); header('Location:' . $Nicovideo->nicosubbaseurl . 'error/404.html'); exit; } $Nicovideo->VideoRelationGet($Nicovideo->videoinfo['videoinfo'][0]['id']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="ja-jp"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" />