コード例 #1
0
ファイル: mylist.php プロジェクト: NsProject/NicoSearch-OPEN-
<?php

include dirname(__FILE__) . '/../../nicovideoclass.php';
$Nicovideo = new nicovideoclass();
$mylisid = $Nicovideo->RequestVariableCheck(INPUT_GET, 'id', FILTER_VALIDATE_INT);
if (is_null($mylisid)) {
    header('Location:' . $Nicovideo->nicosubbaseurl . 'error/404.html');
    exit;
}
$sort = $Nicovideo->RequestVariableCheck(INPUT_COOKIE, 'videomylistsort', FILTER_VALIDATE_INT);
if (is_null($sort)) {
    $sort = 2;
}
$Nicovideo->VideoMylistGet($mylisid, $sort - 1);
if (!$Nicovideo->mylistinfo['flag']) {
    header('Location:' . $Nicovideo->nicosubbaseurl . 'error/404.html');
    exit;
}
?>
<!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" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <meta name="description" content="アカウントなしでニコニコ動画を視聴できます" />
        <meta name="keywords" content="NicoSearch,ニコニコ動画,アカウントなし,ログインなし,ニコ動" />
        <title><?php 
echo $Nicovideo->mylistinfo['title'];
?>
 - マイリスト- NicoSearch</title>
コード例 #2
0
ファイル: watch.php プロジェクト: NsProject/NicoSearch-OPEN-
<?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" />
コード例 #3
0
ファイル: search.php プロジェクト: NsProject/NicoSearch-OPEN-
<?php

include dirname(__FILE__) . '/../nicovideoclass.php';
$Nicovideo = new nicovideoclass();
$word = $Nicovideo->RequestVariableCheck(INPUT_GET, 'word');
if (!is_null($word)) {
    if (strcasecmp(mb_detect_encoding($word), "UTF-8") != 0) {
        $word = mb_convert_encoding($word, 'utf8', 'sjis-win');
    }
} else {
    $word = "";
}
$s = $Nicovideo->RequestVariableCheck(INPUT_GET, 's', FILTER_VALIDATE_INT);
if (!is_null($s)) {
    if ($s == -1 && filter_has_var(INPUT_COOKIE, 'videosearchsort')) {
        $s = $Nicovideo->RequestVariableCheck(INPUT_COOKIE, 'videosearchsort');
    }
} else {
    $s = 1;
}
$page = $Nicovideo->RequestVariableCheck(INPUT_GET, 'page', FILTER_VALIDATE_INT);
if (is_null($page)) {
    $page = 1;
}
$search = $Nicovideo->RequestVariableCheck(INPUT_GET, 'search');
if (is_null($search)) {
    $search = "keyword";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ja-jp">
コード例 #4
0
ファイル: index.php プロジェクト: NsProject/NicoSearch-OPEN-
<?php

include dirname(__FILE__) . '/../../nicovideoclass.php';
$NicoRanking = new nicovideoclass();
$cate = $NicoRanking->RequestVariableCheck(INPUT_COOKIE, 'videorankingcate', FILTER_VALIDATE_INT);
$target = $NicoRanking->RequestVariableCheck(INPUT_COOKIE, 'videorankingtarget', FILTER_VALIDATE_INT);
$term = $NicoRanking->RequestVariableCheck(INPUT_COOKIE, 'videorankingterm', FILTER_VALIDATE_INT);
if (is_null($cate)) {
    $cate = 1;
}
if (is_null($target)) {
    $target = 1;
}
if (is_null($term)) {
    $term = 1;
}
?>
<!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" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <meta name="description" content="アカウントなしでニコニコ動画を視聴できます" />
        <meta name="keywords" content="NicoSearch,ニコニコ動画,アカウントなし,ログインなし,ニコ動" />
        <title><?php 
echo $NicoRanking->VideoRankingCategorySelect($cate) . '(' . $NicoRanking->VideoRankingTargetSelect($target) . ')';
?>
ランキング - NicoSearch</title>
        <link rel="shortcut icon" href="../../nico.ico" type="image/vnd.microsoft.icon" />
        <link rel="Stylesheet" type="text/css" href="../../header.css"/>