Пример #1
0
    }
    echo "<hr noshade=\"noshade\" class=\"ongl\" /><p align=\"center\"><a href=\"reviews.php?op=write_review\" class=\"noir\">" . adm_translate("Cliquer ici pour proposer une Critique.") . "</a></p><hr noshade class=\"ongl\">";
    echo adm_translate("Effacer / Modifier une Critique");
    echo "<br />";
    echo adm_translate("Vous pouvez simplement Effacer / Modifier les Critiques en naviguant sur") . " <a href=\"reviews.php\" class=\"noir\">reviews.php</a> " . adm_translate("en tant qu'Administrateur.") . "<br />";
    adminfieldinp($result);
    sql_free_result($result);
    adminfoot('fv', '', '', '');
}
function add_review($id, $date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title)
{
    global $NPDS_Prefix;
    $title = stripslashes(FixQuotes($title));
    $text = stripslashes(FixQuotes($text));
    $reviewer = stripslashes(FixQuotes($reviewer));
    $email = stripslashes(FixQuotes($email));
    sql_query("INSERT INTO " . $NPDS_Prefix . "reviews VALUES (NULL, '{$date}', '{$title}', '{$text}', '{$reviewer}', '{$email}', '{$score}', '{$cover}', '{$url}', '{$url_title}', '1')");
    sql_query("DELETE FROM " . $NPDS_Prefix . "reviews_add WHERE id = '{$id}'");
    Header("Location: admin.php?op=reviews");
}
switch ($op) {
    case "reviews":
        reviews();
        break;
    case "add_review":
        add_review($id, $date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title);
        break;
    case "mod_main":
        mod_main($title, $description);
        break;
}
Пример #2
0
        }
    }
    redirect_url("reviews.php");
}
settype($op, 'string');
switch ($op) {
    case "showcontent":
        showcontent($id);
        break;
    case "write_review":
        write_review();
        break;
    case "preview_review":
        preview_review($title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id);
        break;
    case "add_reviews":
        send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $asb_question, $asb_reponse);
        break;
    case "del_review":
        del_review($id_del);
        break;
    case "mod_review":
        mod_review($id);
        break;
    case "sort":
        reviews($field, $order);
        break;
    default:
        reviews("date", "DESC");
        break;
}
Пример #3
0
        }
    }
    redirect_url("reviews.php");
}
settype($op, 'string');
switch ($op) {
    case 'showcontent':
        showcontent($id);
        break;
    case 'write_review':
        write_review();
        break;
    case 'preview_review':
        preview_review($title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id);
        break;
    case 'add_reviews':
        send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $asb_question, $asb_reponse);
        break;
    case 'del_review':
        del_review($id_del);
        break;
    case 'mod_review':
        mod_review($id);
        break;
    case 'sort':
        reviews($field, $order);
        break;
    default:
        reviews('date', 'DESC');
        break;
}
Пример #4
0
        preview_review();
        break;
    case 'send_review':
        send_review();
        break;
    case 'del_review':
        del_review();
        break;
    case 'mod_review':
        mod_review();
        break;
    case 'postcomment':
        postcomment();
        break;
    case 'savecomment':
        savecomment();
        break;
    case 'del_comment':
        del_comment();
        break;
    default:
        if (strlen($rop) == 1) {
            if (!in_array(strtoupper($rop), $alphabet)) {
                cpg_error(_INVALIDTEXT);
            }
            reviews($rop);
        } else {
            reviews_index();
        }
        break;
}
Пример #5
0
    $field = "";
}
if (!isset($order)) {
    $order = "";
}
if (!isset($date)) {
    $date = "";
}
if (!isset($hits)) {
    $hits = "";
}
if (!isset($id)) {
    $id = "";
}
if (strlen($rop) == 1 and ctype_alnum($rop)) {
    reviews($rop, $field, $order);
} else {
    switch ($rop) {
        case "showcontent":
            showcontent($id, $page);
            break;
        case "write_review":
            write_review();
            break;
        case "preview_review":
            preview_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage);
            break;
        case "" . _YES . "":
            send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage);
            break;
        case "del_review":
Пример #6
0
function reviews_action($mysqli)
{
    $data = reviews($mysqli);
    require "templates/reviews.php";
}
Пример #7
0
     reviews(4, $field, $order);
     break;
 case "5":
     reviews(5, $field, $order);
     break;
 case "6":
     reviews(6, $field, $order);
     break;
 case "7":
     reviews(7, $field, $order);
     break;
 case "8":
     reviews(8, $field, $order);
     break;
 case "9":
     reviews(9, $field, $order);
     break;
 case "showcontent":
     showcontent($id, $page);
     break;
 case "write_review":
     write_review();
     break;
 case "preview_review":
     preview_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage);
     break;
 case "" . _YES . "":
     send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage);
     break;
 case "del_review":
     del_review($id_del);