Feeds and reboot.php #840

This commit is contained in:
Ulrich Block 2016-05-08 20:47:13 +02:00
parent 5a8fc81bf5
commit ccd7a7cb0b
2 changed files with 7 additions and 3 deletions

View File

@ -116,7 +116,7 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
$query2 = $sql->prepare("UPDATE `servertypes` SET `steamVersion`=? WHERE `appID`=?");
$query = $sql->prepare("SELECT t.`appID`,t.`shorten` FROM `servertypes` t INNER JOIN `rservermasterg` r ON t.`id`=r.`servertypeid` WHERE t.`appID` IS NOT NULL AND t.`steamgame`!='N' GROUP BY t.`appID` ORDER BY t.`appID`");
$query = $sql->prepare("SELECT t.`appID`,t.`shorten` FROM `servertypes` t INNER JOIN `rservermasterg` r ON t.`id`=r.`servertypeid` WHERE t.`appID` IS NOT NULL AND t.`steamgame`!='N' GROUP BY t.`appID`,t.`shorten` ORDER BY t.`appID`");
$query->execute();
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {

View File

@ -37,8 +37,12 @@
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
//Load Twitter API 1.1
require_once(EASYWIDIR . '/third_party/TwitterAPI/TwitterAPIExchange.php');
if (!class_exists('TwitterAPIExchange')) {
require_once(EASYWIDIR . '/third_party/TwitterAPI/TwitterAPIExchange.php');
}
if (isset($newsInclude) and $newsInclude == true) {
$update = $sql->prepare("UPDATE `feeds_settings` SET `lastUpdate`=NOW() WHERE `resellerID`=? LIMIT 1");
@ -64,7 +68,7 @@ if (isset($newsInclude) and $newsInclude == true) {
$newsAmount = $row['newsAmount'];
$query2 = $sql->prepare("SELECT t.* FROM `servertypes` t LEFT JOIN `rservermasterg` r ON t.`id`=r.`servertypeid` WHERE r.`id` IS NOT NULL AND t.`appID` IS NOT NULL AND t.`steamgame`!='N' GROUP BY t.`appID` ORDER BY t.`appID`");
$query2 = $sql->prepare("SELECT DISTINCT(t.`appID`) AS `appID`, t.* FROM `servertypes` AS t LEFT JOIN `rservermasterg` AS r ON t.`id`=r.`servertypeid` WHERE r.`id` IS NOT NULL AND t.`appID` IS NOT NULL AND t.`steamgame`!='N' ORDER BY t.`appID`");
$query2->execute();
while ($row2 = $query2->fetch(PDO::FETCH_ASSOC)) {