예제 #1
0
    } else {
        echo "<div style='text-align: center; margin: 50px auto 0; width: 400px;'>You need to log in to post this video<br />";
        include "../nodes/not_logged_in.php";
        echo "</div>";
    }
}
if ($ps == "(2)setVideo") {
    if (!isset($AuthUser)) {
        die;
    }
    $q->getVideoFromVimeo($getVideo);
    // Run Vimeo API connection with "video" from GET parameter
    include 'view_input.php';
    //Начинаем проверку условий отправляемых карточкой параметров
    //Внешний ID ролика
    if (Check_Valid_Id($OutId)) {
        $Prm = 1;
    } else {
        $QuerryErrors .= $nme_err_NoId . ', ';
        $Prm = 0;
    }
    //Заголовок видео
    if (!empty($getTitle) and iconv_strlen($getTitle, 'UTF-8') > 2) {
        $Prm = $Prm == 1 ? 1 : 0;
    } else {
        $QuerryErrors .= $nme_err_NoTitle . ', ';
        $Prm = 0;
    }
    //Проверяем данные с API на одном параметре "лайки" (он не передается в $_GET без явного участия юзера), наличие и число ли?
    if (isset($Likes)) {
        $Prm = $Prm == 1 ? 1 : 0;
예제 #2
0
            continue;
        } else {
            echo '<div class="Button here ' . $Section . '">' . $Item . '</div>' . "\n";
        }
    } else {
        if ($Item == $SectionList[0]) {
            continue;
        } else {
            echo '<div class="Button"><a href="board/' . $UserName . '/' . $Item . '/">' . $Item . '</a></div>' . "\n";
        }
    }
}
//Output Add Video only for Auth User
if (isset($AuthUser)) {
    if (!empty($_GET['code'])) {
        if (!Check_Valid_Id($_GET['code'])) {
            $input_error = 'class="input_error"';
        }
    }
    echo '
                <div class="Button-VideoInput">
                    <form action="add/" method="get" autocomplete="off">
                        <div ' . $input_error . '>
                        <input name="code" class="code" placeholder="New Video..."  /></textarea>
                        <input type="submit" value="" class="SendVideo"/></p>
                        </div>
                    </form>
                </div>
                ';
}
?>