Esempio n. 1
0
            </a>
            <form method="post" action="userlike.php">
                <div class = "row">
                    <div class="form-group" >
                        <input type="hidden" name="SName" value= <?php 
echo "'{$dislike2}'";
?>
 >
                    </div>
                    <button type="submit" class="btn btn-danger">Like</button>
                </div>
            </form>
        </div>
        <div class="col-sm-4">
            <a href="<?php 
$preview3 = showPreview(2);
echo $preview3;
?>
">
                <?php 
$dislike3 = recommendSongs(2);
echo $dislike3;
?>
            </a>
            <form method="post" action="userlike.php">
                <div class = "row">
                    <div class="form-group" >
                        <input type="hidden" name="SName" value= <?php 
echo "'{$dislike3}'";
?>
 >
Esempio n. 2
0
// Recht für Kommentare pruefen
$komsOK = 1;
if ($allgAr['GBgkoms'] == 0) {
    if (loggedin()) {
        $komsOK = true;
    } else {
        $komsOK = false;
    }
}
if ($allgAr['GBukoms'] == 0) {
    $komsOK = false;
}
switch ($menu->get(1)) {
    case 'insert':
        if (isset($_POST["preview"])) {
            showPreview();
            showForm($_POST["txt"], $_POST["mail"], $_POST["page"]);
        } elseif (isset($_POST['submit'])) {
            $dppk_time = time();
            // Fehlerabfrage
            if ($_SESSION['klicktime_gbook'] + $timeSperre < $dppk_time and isset($_POST['name'])) {
                $fehler .= '&middot;&nbsp;' . $lang['donotpostsofast'] . '<br/>';
            }
            if (trim($_POST['name']) == '') {
                $fehler .= '&middot;&nbsp;' . $lang['emptyname'] . '<br/>';
            }
            if (strlen($_POST['txt']) > $allgAr['Gtxtl']) {
                $fehler .= '&middot;&nbsp;' . sprintf($lang['gbooktexttolong'], $allgAr['Gtxtl']) . '<br/>';
            }
            if (trim($_POST['txt']) == '') {
                $fehler .= '&middot;&nbsp;' . $lang['emptymessage'] . '<br/>';