'; exit; } //get the data: $query = "SELECT gameurl,gamename,flipline,blog,gamefile FROM othergames WHERE active = 1 ORDER BY sorting DESC LIMIT ".$perpage; $result = mysql_query($query); $num_rows = mysql_num_rows($result); $hasData = FALSE; //format = array(gamesku-or-blogurl, title, IsOtherGame, IsBlogLink, blogIconURL) if ($num_rows > 0){ $hasData = TRUE; for ($i=0; $i<$num_rows; $i++){ $row = mysql_fetch_array($result); if ($row['blog'] == 1){ $newarray = array($row['gameurl'], $row['gamename'], FALSE, TRUE, $row['gamefile']); } else if ($row['flipline'] == 1){ $newarray = array($row['gameurl'], $row['gamename'], FALSE, FALSE, ""); } else { $newarray = array($row['gameurl'], $row['gamename'], TRUE, FALSE, ""); } array_push($games, $newarray); } } else { echo ""; exit; } //Information about the "New Games" to show: //16 games shown. //format = array(sku, title, IsOtherGame, IsBlogLink, blogIconURL) //---- Flipline Games ------ $fliplinegames = array(); //get the data: //$query2 = "SELECT gameurl,gamename FROM fliplinegames WHERE active = 1 AND comingsoon = 0 ORDER BY sorting DESC LIMIT 24"; $query2 = "SELECT gameurl,gamename,icon_shortname FROM homefeature WHERE active = 1 ORDER BY sorting DESC"; $result2 = mysql_query($query2); $num_rows2 = mysql_num_rows($result2); //format = array(gamesku, title) if ($num_rows2 > 0){ $hasData = TRUE; for ($i=0; $i<$num_rows2; $i++){ $row2 = mysql_fetch_array($result2); $newarray = array($row2['gameurl'], $row2['gamename'], $row2['icon_shortname']); array_push($fliplinegames, $newarray); } } else { echo ""; exit; } //---- End Flipline Games ----- //Functions to get data: function getGameLink($idx){ global $games; if ($games[$idx][3] == TRUE){ echo $games[$idx][0]; //blog uses first item as blog url } else 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][3] == TRUE){ echo "https://i.flipline.com/images/blog/".$games[$idx][4]; //blog uses last item as image url } else if ($games[$idx][2] == TRUE){ echo "https://i.flipline.com/othergamefiles/".$games[$idx][0]."/images/gameicon.jpg"; } else { echo "https://i.flipline.com/gamefiles/".$games[$idx][0]."/images/gameicon.jpg"; } } function getGameTitle($idx){ global $games; echo $games[$idx][1]; } function getFliplineGameLink($idx){ global $fliplinegames; //echo "games/".$fliplinegames[$idx][0]."/index.html"; if ($idx >= count($fliplinegames)){ //empty: echo "#"; } else { //full URL included now: echo $fliplinegames[$idx][0]; } } function getFliplineGameIcon($idx, $isSmall){ global $fliplinegames; // if ($isSmall === TRUE){ // echo "https://i.flipline.com/gamefiles/".$fliplinegames[$idx][0]."/images/tinythumb.jpg"; // } else { // echo "https://i.flipline.com/gamefiles/".$fliplinegames[$idx][0]."/images/mini_thumb2.jpg"; // } if ($idx >= count($fliplinegames)){ //empty: echo "https://i.flipline.com/images/2021/featured_mystery_a.jpg"; } else { //using the larger A size: echo "https://i.flipline.com/images/2021/".$fliplinegames[$idx][2]."_a.jpg"; } } function getFliplineGameTitle($idx){ global $fliplinegames; if ($idx >= count($fliplinegames)){ echo ""; //"???"; } else { echo $fliplinegames[$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
<? getFliplineGameTitle(0); ?> <? getFliplineGameTitle(1); ?> <? getFliplineGameTitle(2); ?> <? getFliplineGameTitle(3); ?> <? getFliplineGameTitle(4); ?> <? getFliplineGameTitle(5); ?> <? getFliplineGameTitle(6); ?> <? getFliplineGameTitle(7); ?> <? getFliplineGameTitle(8); ?>
<? getFliplineGameTitle(9); ?> <? getFliplineGameTitle(10); ?> <? getFliplineGameTitle(11); ?> <? getFliplineGameTitle(12); ?> <? getFliplineGameTitle(13); ?> <? getFliplineGameTitle(14); ?> <? getFliplineGameTitle(15); ?> <? getFliplineGameTitle(16); ?> <? getFliplineGameTitle(17); ?>
<? 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 3: When Sundaes 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 some of our newest Apps... Papa's Paleteria To Go! and Papa's Cluckeria To Go! for phones and tablets!
Create your own custom characters and scenes in our free app: Papa Louie Pals!

Try our latest game: !

0){ for ($f=0; $f<$num_rowslist; $f++){ $rowlist = mysql_fetch_array($resultlist); echo ''.$rowlist['gamename'].''; if ($f < $num_rowslist-1){ echo ' | '; } } } $hasOtherGames = FALSE; //also add the current othergames: //$query3 = "SELECT gameurl,gamename,flipline FROM othergames WHERE active = 1 AND blog = 0 ORDER BY sorting DESC LIMIT ".$perpage; $query3 = "SELECT gameurl,gamename,flipline,blog 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 && $rowlist2['blog'] == 0){ //add a divider between flipline games and other games if ($hasOtherGames == FALSE){ echo ' | '; $hasOthergames = TRUE; } 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  |   © Flipline IDS LLC