<?php include_once "mochi_functions.php"; if (isset($_GET['feed'])) { get_mochifeed(); } ?> <div id="center-column"> <div class="top-bar"> <h1>Install Mochimedia.com Feed Games</h1> <div class="breadcrumbs"><a href="index.php?act=mochiid" title="Update Mochi ID">Update Mochi ID</a></div> </div><br /> <div class="select-bar"></div> <?php $result = yasDB_select("SELECT COUNT(id) FROM mochigames WHERE hidden = 0"); $query_data = $result->fetch_array(MYSQLI_NUM); $numrows = $query_data[0]; $result->close(); $result2 = yasDB_select("SELECT `sourceid` FROM `gameque` WHERE `source` = 'mochi'"); $queids = array(); while ($source = $result2->fetch_array(MYSQLI_NUM)) { $queids[] = $source[0]; } ?> <script type="text/javascript"> $(document).ready(function() { $("#game").fancybox({ 'type' : 'swf', 'padding' : 0, 'autoScale' : true, 'transitionIn' : 'elastic',
<div class="breadcrumbs"><a href="index.php?act=managemochi" title="Install Mochi Games">Install Mochi Games</a> / <a href="index.php?act=mochiid" title="Update Mochi ID">Update Mochi ID</a></div> </div><br /> <div class="select-bar"> <label> <h3>Manage Mochiad Feed</h3> </label> </div> <br/> <span style="text-align:center;"><h3>Feed takes a while to update and install. Please wait until Success message appears.</h3></span><br/><br/> <span style="text-align:center;"> <?php if (isset($_GET['getfeed'])) { $category = $_GET['category']; $rating = $_GET['rating']; include "mochi_functions.php"; if (!get_mochifeed($category, $rating)) { echo '<center>There was a problem getting the Mochi feed.</center>'; exit; } echo '<center>Feed successfully installed!</center>'; } ?> <form enctype="multipart/form-data" action="index.php" method="get"> <input type="hidden" name="act" value="mochifeed"/> <label for="category_filter">Category:</label> <select name="category" id="category"> <option value="all" selected>All Categories</option> <optgroup label="genre"> <option value="action">Action</option> <option value="adventure">Adventure</option>