'; exit; } //get the data: $query = "SELECT gameurl,gamename,flipline FROM othergames WHERE active = 1 ORDER BY sorting DESC LIMIT ".$perpage; $result = mysql_query($query); $num_rows = mysql_num_rows($result); $hasData = FALSE; if ($num_rows > 0){ $hasData = TRUE; for ($i=0; $i<$num_rows; $i++){ $row = mysql_fetch_array($result); if ($row['flipline'] == 1){ $newarray = array($row['gameurl'], $row['gamename'], FALSE); } else { $newarray = array($row['gameurl'], $row['gamename'], TRUE); } array_push($games, $newarray); if ($i == 3){ //we want Goodgame Promos for #4 and #5, so push them here: array_push($games, array("goodgameempire", "Goodgame Empire", TRUE)); array_push($games, array("goodgamebigfarm", "Goodgame Big Farm", TRUE)); } else if ($i == 10){ //we want Shadow Kings promo, push it here: array_push($games, array("shadowkings", "Shadow Kings", TRUE)); } } } else { echo ""; exit; } //Information about the "New Games" to show: //16 games shown. //format = array(sku, title, IsOtherGame) /* $games = array( array("montysmoon", "Monty's Moon", TRUE), array("mushbits2", "Mushbits 2", TRUE), array("slimelaboratory2", "Slime Laboratory 2", TRUE), array("ninjaminer", "Ninja Miner", TRUE), array("newsplitterpals", "New Splitter Pals", TRUE), array("papalouie2", "Papa Louie 2", FALSE), array("giantsanddwarvestd", "Giants & Dwarves TD", TRUE), array("monsterland3", "Monsterland 3", TRUE), array("coasterracer3", "Coaster Racer 3", TRUE), array("orboxc", "Orbox C", TRUE), array("forestguardians", "Forest Guardians", TRUE), array("flipandgo", "Flip and Go", TRUE), array("superduckpunch", "Super Duck Punch", TRUE), array("snailbobspace", "Snail Bob Space", TRUE), array("disasterwillstrike2", "Disaster Will Strike 2", TRUE), array("feedmemoar", "Feed Me Moar", TRUE), ); */ //Functions to get data: function getGameLink($idx){ global $games; if ($games[$idx][2] == TRUE){ echo "othergames/".$games[$idx][0]."/index.html"; } else { echo "games/".$games[$idx][0]."/index.html"; } } function getGameIcon($idx){ global $games; if ($games[$idx][2] == TRUE){ echo "http://i.flipline.com/othergamefiles/".$games[$idx][0]."/images/gameicon.jpg"; } else { echo "http://i.flipline.com/gamefiles/".$games[$idx][0]."/images/gameicon.jpg"; } } function getGameTitle($idx){ global $games; echo $games[$idx][1]; } ?> <?php //PHP Title Tag, based on domain. $url = $_SERVER['HTTP_HOST']; if (strpos($url, "papalouie.com") !== FALSE || strpos($url, "papalouie.net") !== FALSE || strpos($url, "papasburgeria.com") !== FALSE){ echo "Papa Louie Arcade : "; } else { echo "Flipline Studios : "; } ?> Home of Free Games like Papa's Cupcakeria and Papa's Donuteria

Papa's Burgeria HD
shop   apps

'; } ?>
'.$featurerow['gamename'].'
<? getGameTitle(0); ?> <? getGameTitle(1); ?> <? getGameTitle(2); ?> <? getGameTitle(3); ?> <? getGameTitle(4); ?> <? getGameTitle(5); ?>
<? getGameTitle(6); ?> <? getGameTitle(7); ?> <? getGameTitle(8); ?> <? getGameTitle(9); ?>

<? getGameTitle(10); ?> <? getGameTitle(11); ?> <? getGameTitle(12); ?> <? getGameTitle(13); ?>
<? getGameTitle(14); ?> <? getGameTitle(15); ?> <? getGameTitle(16); ?> <? getGameTitle(17); ?>
<? getGameTitle(18); ?> <? getGameTitle(19); ?> <? getGameTitle(20); ?> <? getGameTitle(21); ?> <? getGameTitle(22); ?>

Welcome to Flipline Studios! Here you’ll find all our latest and greatest games for your entertainment. Play our brawler western game called Cactus McCoy. Try our classics like the 2D platformer adventure, Papa Louie 2: When Burgers Attack! Or maybe try your hand at running a doughnut shop in Papa’s Donuteria or make cupcakes in Papa’s Cupcakeria! Looking for some serious crafting? Try our weapon shop game, Jacksmith! Try our newest Apps... Papa's Pizzeria To Go! for mobile and Papa's Wingeria HD for tablets!

Try our newest game...Papa's Donuteria!

0){ for ($f=0; $f<$num_rowslist; $f++){ $rowlist = mysql_fetch_array($resultlist); echo ''.$rowlist['gamename'].' | '; } } //also add the current othergames: $query3 = "SELECT gameurl,gamename,flipline FROM othergames WHERE active = 1 ORDER BY sorting DESC LIMIT ".$perpage; $result3 = mysql_query($query3); $num_rows3 = mysql_num_rows($result3); for ($y=0; $y<$num_rows3; $y++){ $rowlist2 = mysql_fetch_array($result3); if ($rowlist2['flipline'] == 0){ echo ''.$rowlist2['gamename'].''; if ($y < $num_rows3 - 1){ echo ' | '; } } } ?>
   Home  |   Games  |   Apps  |   About  |   Contact  |   Terms of Use  |   Privacy Policy  |   Blog  |   Forum  |   Shop  |   Flipdeck  |   Free Games for your Site  |   © 2014 Flipline IDS LLC