Beispiel #1
0
         }
         break;
     case 'playtomic':
         $installed = yasDB_select("SELECT `id` FROM `games` WHERE `source` = 'PLAYTOMIC' AND `sourceid` = " . $row['sourceid']);
         if ($installed->num_rows > 0) {
             $success = true;
         } else {
             $success = install_playtomic($row['sourceid']);
         }
         break;
     case 'kongregate':
         $installed = yasDB_select("SELECT `id` FROM `games` WHERE `source` = 'KONGREGATE' AND `sourceid` = " . $row['sourceid']);
         if ($installed->num_rows > 0) {
             $success = true;
         } else {
             $success = install_konggame($row['sourceid']);
         }
         break;
     case 'vasco':
         $installed = yasDB_select("SELECT `id` FROM `games` WHERE `source` = 'VASCOGAMES' AND `sourceid` = " . $row['sourceid']);
         if ($installed->num_rows > 0) {
             $success = true;
         } else {
             $success = install_vascogame($row['sourceid']);
         }
         break;
     default:
         break;
 }
 if ($success) {
     $orderresult = yasDB_select("SELECT `order` FROM `gameque` WHERE `source` = '" . $row['source'] . "' AND `sourceid` = " . $row['sourceid']);
Beispiel #2
0
    echo ' <a href="index.php?act=managekong&page=1&category=' . $category . '&description=' . $description . '&filter=Filter games">FIRST</a>';
    $prevpage = $pageno - 1;
    echo ' <a href="index.php?act=managekong&page=' . $prevpage . '&category=' . $category . '&description=' . $description . '&filter=Filter games">PREV</a>';
}
echo ' ( Page ' . $pageno . ' of ' . $lastpage . ' ) ';
if ($pageno == $lastpage) {
    echo ' NEXT LAST ';
} else {
    $nextpage = $pageno + 1;
    echo ' <a href="index.php?act=managekong&page=' . $nextpage . '&category=' . $category . '&description=' . $description . '&filter=Filter games">NEXT</a>';
    echo ' <a href="index.php?act=managekong&page=' . $lastpage . '&category=' . $category . '&description=' . $description . '&filter=Filter games">LAST</a>';
}
echo '</div>';
if (isset($_GET['install'])) {
    if ($_GET['install'] == 'Install') {
        install_konggame($_GET['gameid']) or die("Game did not install successfully");
        echo '<script>alert("Game sucessfully installed.");</script>';
        if (isset($_GET['page'])) {
            $pageno = $_GET['page'];
        } else {
            $pageno = 1;
        }
        if (isset($_GET['category'])) {
            $category = $_GET['category'];
        } else {
            $category = 'all';
        }
        $description = yasDB_clean($_GET['description']);
        echo '<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php?act=managekong&page=' . $pageno . '&category=' . $category . '&description=' . $description . '&filter=Filter games">';
        exit;
    }