Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- ob_start("ob_gzhandler");
- require "include/bittorrent.php";
- dbconn(true);
- loggedinorreturn();
- //dbconn(false);
- stdhead();
- //begin_main_frame();
- print("<div class=\"fborder\" style=\"width:860px;\"><h2 style=\"text-align:left; padding-left:10px;\">" . $SITENAME . " iesaka");
- $res = mysql_query("SELECT movmod FROM access WHERE movmod = '$CURUSER[id]'") or sqlerr();
- $arr = mysql_fetch_assoc($res);
- $movmod = $arr["movmod"];
- if (get_user_class() >= UC_MODERATOR || $CURUSER[id] == $movmod) {
- echo(" - <font class=\"small\">[<a class=\"altlink\" href=\"moviesadd.php\"><span class=\"modify\">".ADD."</span></a>]</font>");
- echo(" - <font class=\"small\">[<a class=\"altlink\" href=\"moviesedit.php\"><span class=\"modify\">MovieModi</span></a>]</font>");
- }
- echo("</h2><div class=\"movies\">");
- //print("</h2><a href=\"javascript: klappe_news('a130".$array['id']."')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica".$array['id']."\" alt=\"Rādīt/Paslēpt\"></a><div id=\"ka130".$array['id']."\" style=\"display: none;\"><p>\n");
- $res = mysql_query("SELECT * FROM movies ORDER BY added DESC LIMIT 100") or sqlerr(__FILE__, __LINE__);
- if (mysql_num_rows($res) > 0)
- {
- print("<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" style=\"background:transparent\" width=\"100%\"><tr><td style=\"border:none;\">\n");
- $file = "cache/movies.txt";
- $input = "SELECT * FROM movies ORDER BY added DESC LIMIT 100";
- $expire = 60*5; //60*5
- $arr1 = cache_mysql($file,$expire,$input);
- $count = 0;
- if ($arr1)
- foreach ($arr1 as $arr)
- {
- if($count % 4 == 0)
- {
- // Multiple of 4
- echo '</tr>';
- echo '<tr>';
- }
- print("<td style=\"border:none; background:none;\">");
- // begin_frame();
- print("<div class=\"posters\">");
- print("<div style=\"height:300px\"><h4>".format_comment($arr['name'])."</h4>");
- print(format_comment("[url=" . $arr['url'] . "][img=" . $arr['body'] . "][/url]"));
- print("</div>");
- if($arr["imdb"] != "")
- print("<br /><div class=\"videogallery\">" . format_comment("[b][url=" . $arr['imdb'] . "][img=$DEFAULTBASEURL/pic/imdb.gif][/url][/b]"));
- if($arr["youtube"] != "")
- {
- $youtubevideo = str_replace("watch?v=", "v/", $arr['youtube']);
- print("<a rel=\"#voverlay\" href=\"" . $youtubevideo . "?autoplay=1&rel=0&enablejsapi=1&playerapiid=ytplayer\"><img style=\"width:60px;\" alt=\"youtube\" src=\"$DEFAULTBASEURL/pic/youtube.png\"/></a></div>"/* . format_comment("[b][url=" . $arr['youtube'] . "][img=$DEFAULTBASEURL/pic/youtube.png][/url][/b]")*/);
- }
- if($arr["info"] != "")
- print("" . format_comment($arr['info']) . "");
- print("</div>");
- // end_frame();
- print("</td>");
- /* if (get_user_class() >= UC_MODERATOR || $CURUSER[username] == $tmod)
- {
- print(" <font size=\"-2\">[<a class=altlink href=turniri.php?action=edit&gameid=" . $arr['id'] . "&returnto=" . urlencode($_SERVER['PHP_SELF']) . "><b>E</b></a>]</font>");
- print(" <font size=\"-2\">[<a class=altlink href=turniri.php?action=delete&gameid=" . $arr['id'] . "&returnto=" . urlencode($_SERVER['PHP_SELF']) . "><b>D</b></a>]</font>");
- }*/
- $count++;
- }
- print("</tr></table></div></div>\n");
- }
- //end_main_frame();
- stdfoot();
- ?>
Add Comment
Please, Sign In to add comment