mój movie.php
<?php
/*--------------------------------------------+
| PHP-Fusion 5 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."movies.php";
if (!isset($cat_id)) {
opentable($locale['400']);
echo $ticker_content;
$result = dbquery("SELECT * FROM ".$db_prefix."movie_cats ORDER BY movie_cat_name");
$rows = dbrows($result);
if ($rows != 0) {
$column = 0;
echo "<table width='100%' cellspacing='0' cellpadding='0' class='tbl'>\n";
echo "<tr><td>
<table border='1' cellpadding='1' cellspacing='1' width='100%'>
<tr><td align='center' valign='top' width='50%'>".$locale['408']." <span class='small2'></table>";
echo "<td>
<table border='1' cellpadding='1' cellspacing='1' width='100%'>
<tr><td align='center' valign='top' width='50%'>".$locale['409']." <span class='small2'></table>";
while ($data = dbarray($result)) {
if (checkgroup($data['movie_cat_access'])) {
if ($column == 0) { $row1 = "<tr>\n"; } else { $row1 = ""; }
if ($column == 1) { $row2 = "</tr>\n"; $column=-1; } else { $row2 = ""; }
$column++;
$num = dbcount("(movie_cat)", "movie", "movie_cat='".$data['movie_cat_id']."'");
echo $row1."<tr><td>
<table border='1' cellpadding='1' cellspacing='1' width='100%' >
<tr><td align='center' valign='top' width='50%'><a href='".FUSION_SELF."?cat_id=".$data['movie_cat_id']."'>".$data['movie_cat_name']."</a> <span class='small2'></table><td>
<table border='1' cellpadding='1' cellspacing='1' width='100%' >
<tr><td align='center' valign='top' width='50%'>($num)</span></table>
\n";
echo "</td></tr>\n".$row1;
}
}
echo "</tr>\n</table>\n";
} else {
echo "<center><br>\n".$locale['401']."<br><br>\n</center>\n";
}
echo $ticker_content;
closetable();
} else {
$res = 0;
if (!isNum($cat_id)) fallback(FUSION_SELF);
$result = dbquery("SELECT * FROM ".$db_prefix."movie_cats WHERE movie_cat_id='$cat_id'");
if (dbrows($result) != 0) {
$cdata = dbarray($result);
if (checkgroup($cdata['movie_cat_access'])) {
$res = 1;
opentable($locale['400'].": ".$cdata['movie_cat_name']);
$rows = dbcount("(movie_id)", "movie", "movie_cat='$cat_id'");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$result = dbquery("SELECT * FROM ".$db_prefix."movie WHERE movie_cat='$cat_id' ORDER BY movie_subject LIMIT $rowstart,20");
$numrows = dbrows($result); $i = 1;
while ($data = dbarray($result)) {
if ($data['movie_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
$new = " <span class='small'>[".$locale['402']."]</span>";
} else {
$new = "";
}
echo "<table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color: transparent; border: 1px solid #7e924a' width='100%'><tr><td height='21' class='tbl2'><a href='movies.php?movie_id=".$data['movie_id']."' title='".$data['movie_subject']."'>".$data['movie_subject']."</a>$new ".$locale['405']." ".$data['movie_reads']." ".$locale['406']."<br></td></tr><tr><td><center><hr><style='padding: 4px;'>".stripslashes($data['movie_snippet']);
echo "<br><a href='movies.php?movie_id=".$data['movie_id']."' title='".$data['movie_subject']."'><b> >>> ZOBACZ <<< </b></a><hr></center></td></tr></table>";
echo ($i != $numrows ? "<br><br>\n" : "\n"); $i++;
}
closetable();
echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,15,$rows,3,FUSION_SELF."?cat_id=$cat_id&")."\n</div>\n";
} else {
echo "<center>".$locale['403']."</center>\n";
closetable();
}
}
}
if ($res == 0) redirect(FUSION_SELF);
}
require_once "side_right.php";
require_once "footer.php";
?>
jaką dodać lijnijkę do kodu aby z tego samego folderu co filmik ładowało screen o takiej samej nazwie z rozszerzeniem .bmp?????
proszę o odp. :(
Edytowane przez Kukis dnia 14.10.2006 15:54:47
|