Exemplo n.º 1
0
}
if (isset($ratinglid) && isset($ratinguser) && isset($rating)) {
    $ret = addrating($ratinglid, $ratinguser, $rating, $ratinghost_name, $ratingcomments);
}
switch ($l_op) {
    case "menu":
        menu($mainlink);
        break;
    case "AddLink":
        AddLink();
        break;
    case "NewLinks":
        NewLinks($newlinkshowdays);
        break;
    case "NewLinksDate":
        NewLinksDate($selectdate);
        break;
    case "TopRated":
        TopRated($ratenum, $ratetype);
        break;
    case "MostPopular":
        MostPopular($ratenum, $ratetype);
        break;
    case "RandomLink":
        RandomLink();
        break;
    case "viewlink":
        viewlink($cid, $min, $orderby, $show);
        break;
    case "brokenlink":
        brokenlink($lid);
Exemplo n.º 2
0
if (isset($_GET['show'])) {
    $show = intval($_GET['show']);
}
if (isset($_GET['ratenum'])) {
    $ratenum = intval($_GET['ratenum']);
}
//trigger_error($_GET['orderby']);
switch ($l_op) {
    case "addlink":
        AddLink();
        break;
    case "newlinks":
        NewLinks(isset($_POST['newlinkshowdays']) ? $_POST['newlinkshowdays'] : isset($_GET['newlinkshowdays']) ? $_GET['newlinkshowdays'] : '');
        break;
    case "newlinksdate":
        NewLinksDate($_GET['selectdate']);
        break;
    case "toprated":
        TopRated(isset($_GET['ratenum']) ? $_GET['ratenum'] : (isset($_POST['ratenum']) ? $_POST['ratenum'] : NULL), isset($_GET['ratetype']) ? $_GET['ratetype'] : (isset($_POST['ratetype']) ? $_POST['ratetype'] : NULL));
        break;
    case "mostpopular":
        MostPopular(isset($_GET['ratenum']) ? $_GET['ratenum'] : (isset($_POST['ratenum']) ? $_POST['ratenum'] : NULL), isset($_GET['ratetype']) ? $_GET['ratetype'] : (isset($_POST['ratetype']) ? $_POST['ratetype'] : NULL));
        break;
    case "randomlink":
        RandomLink();
        break;
    case "viewlink":
        if ($cid == 0) {
            index();
            break;
        }