Viewing file: manageImages.inc.php3 (2.13 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
require("$mysqlCall");
if(checkSuperSession($superSession, $REMOTE_ADDR))
{
include("include/rootGui.inc.php3");
$userId = getUserSUId($superSession);
$userInfo = getUserInfo($userId);
if(($userInfo[SuperUser]==1) && ($userInfo[manageImages]==1) && ($userInfo[active]==1))
{
$query = sqlQuery($seg, $images);
$mysql_result = mysql_query($query, $mysql_link);
$rows=countRows($images);
if($rows>0)
{
navGen($seg, $images, "index.php3?mode=manageImages&superSession=$superSession");
}
while(($row2 = mysql_fetch_row($mysql_result)))
{
$item_ID = $row2[0];
$details = $row2[1];
print("<table width=70% border=0 cellpadding=3 cellspacing=0 >");
print("<tr><td bgcolor=$border_colour align=center>");
print("<table width=100% border=0 cellpadding=5 cellspacing=0 >");
printf("<tr>\n");
print("<td bgcolor=$table_colour2 align=center width=100%>");
print("$details");
print("</td>");
print("<td bgcolor=$table_colour align=right rowspan=2 >");
print("<form method=\"post\" action=\"index.php3?mode=delImage&superSession=$superSession&id=$item_ID\">");
print("<input type=submit value=Del></form>");
print("</td>");
print("</tr>\n");
printf("<tr>\n");
print("<td bgcolor=$bgcolour align=center>");
print("<img src=\"imageShow.php3?id=$item_ID\">");
print("</td>");
print("</tr>\n");
print("</table>");
print("<tr><td>");
print("</table>");
print("<br><br>");
}
if($rows>0)
{
navGen($seg, $images, "index.php3?mode=manageImages&superSession=$superSession");
}
}
else
{
print("Nemate pristup ovoj funkciji");
}
include("include/guiBase.inc.php3");
}
else
{
/* session is bad */
print("Pogresna sesija ID ($superSession)!<BR>\n");
$superSession = "";
}
?>
|