Пример #1
0
    include "footer.php";
}
function CoolSize($size)
{
    $mb = 1024 * 1024;
    if ($size > $mb) {
        $mysize = sprintf("%01.2f", $size / $mb) . " MB";
    } elseif ($size >= 1024) {
        $mysize = sprintf("%01.2f", $size / 1024) . " Kb";
    } else {
        $mysize = $size . " bytes";
    }
    return $mysize;
}
if (isset($_POST['ratinglid']) && isset($_POST['ratinguser']) && isset($_POST['rating'])) {
    addrating(intval($_POST['ratinglid']), $_POST['ratinguser'], intval($_POST['rating']), $_POST['ratinghost_name'], $_POST['ratingcomments']);
}
$d_op = isset($_POST['d_op']) ? $_POST['d_op'] : (isset($_GET['d_op']) ? $_GET['d_op'] : '');
switch ($d_op) {
    case "AddDownload":
        AddDownload();
        break;
    case "NewDownloads":
        require_once "modules/{$module_name}/new.php";
        NewDownloads();
        break;
    case "NewDownloadsDate":
        require_once "modules/{$module_name}/new.php";
        NewDownloadsDate();
        break;
    case "TopRated":
Пример #2
0
     break;
     /* Reviews */
 /* Reviews */
 case "writereview":
     writereview($link_id, $option);
     break;
 case "addreview":
     addreview($link_id, $option);
     break;
     /* Ratings */
 /* Ratings */
 case "rate":
     rate($link_id, $option);
     break;
 case "addrating":
     addrating($link_id, $option);
     break;
     /* Favourite */
 /* Favourite */
 case "fav":
     $action = JRequest::getInt('action', 1);
     fav($link_id, $action, $option);
     break;
     /* Vote review */
 /* Vote review */
 case 'votereview':
     $rev_vote = JRequest::getInt('vote', 0);
     $rev_id = JRequest::getInt('rev_id', 0);
     votereview($rev_id, $rev_vote, $option);
     break;
     /* Report review */
Пример #3
0
     getit($lid);
     break;
 case "Add":
     Add($title, $url, $auth_name, $cat, $description, $email, $filesize, $version, $homepage);
     break;
 case "search":
     search($query, $min, $orderby, $show);
     break;
 case "rateinfo":
     rateinfo($lid);
     break;
 case "ratedownload":
     ratedownload($lid, $user);
     break;
 case "addrating":
     addrating($ratinglid, $ratinguser, $rating, $ratinghost_name, $ratingcomments, $user);
     break;
 case "viewdownloadcomments":
     viewdownloadcomments($lid);
     break;
 case "outsidedownloadsetup":
     outsidedownloadsetup($lid);
     break;
 case "viewdownloadeditorial":
     viewdownloadeditorial($lid);
     break;
 case "viewdownloaddetails":
     viewdownloaddetails($lid);
     break;
 default:
     index();
Пример #4
0
 case "add":
     add_link($_POST['title'], $_POST['url'], $_POST['auth_name'], $cat, $_POST['description'], $_POST['email']);
     break;
 case "search":
     search(isset($_POST['query']) ? $_POST['query'] : $_GET['query'], isset($_POST['min']) ? intval($_POST['min']) : 0, isset($_GET['orderby']) ? $_GET['orderby'] : '', isset($_POST['show']) ? $_POST['show'] : '');
     break;
 case "rateinfo":
     rateinfo($lid);
     break;
 case "ratelink":
     require "modules/{$module_name}/rate.inc";
     ratelink($lid, $_GET['ttitle']);
     break;
 case "addrating":
     require "modules/{$module_name}/rate.inc";
     addrating();
     break;
 case "outsidelinksetup":
     require "modules/{$module_name}/rate.inc";
     outsidelinksetup($lid);
     break;
 case "viewlinkcomments":
     viewlinkcomments($lid, isset($_GET['ttitle']) ? $_GET['ttitle'] : '');
     break;
 case "viewlinkeditorial":
     viewlinkeditorial($lid, isset($_GET['ttitle']) ? $_GET['ttitle'] : '');
     break;
 case "viewlinkdetails":
     viewlinkdetails($lid, isset($_GET['ttitle']) ? $_GET['ttitle'] : '');
     break;
 default: