Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/admin/NQADisplayCatImages.php
<?php
/*****************************************************************/
/* Nukequiz (tm)    v 3.1.0                                		 */
/* By: Kissoftware (hide@address.com)      		     */
/* http://www.kissoftware.org.uk                           		 */
/* http://www.kissoftware.co.uk                       		     */
/* Copyright © 2003-2008 by Kissoftware         				 */
/* See Docs For Information & Credits                 			 */
/* For More information Visit Forums Or The Online Help Manual	 */
/*****************************************************************/
$Theme_Sel = get_theme();
echo "<html><link rel='StyleSheet' href='$nukeurl/themes/$Theme_Sel/style/style.css' TYPE='text/css'>";
echo "<head>";
include_once("themes/$Theme_Sel/theme.php");
echo "<title>"._NQ_VIEWCATIMAGES."</title></head><body>";
$dir_name="modules/$module_name/$folder";
$handle=opendir($dir_name);
echo "<table width='100%' height='100%' cellpadding='0' cellspacing='0' border='0'><tr>";
echo "<td class='row1' align='center'><br>"._NQ_CATIMAGETHEMESELECTABLE."";
echo "<br><center><table width='100%' cellpadding='2' cellspacing='2' border='0'><tr>"; 
while (($file = readdir($handle))!== false) {	
$image = "$dir_name/$file";
if (substr($file,0,5) == "logo_"){
if (substr($file,-4) == ".png" || substr($file,-4) == ".PNG"){
if (file_exists("themes/$Theme_Sel/images/nquiz/$file")) {
$themelogo = "<b>"._NQ_EXISTS."</b>";
} else {
$themelogo = "<b>"._NQ_NOTEXIST."</b>";
}                           
echo "<td><center><img src='$image' border='0'><br>"._NQ_FILENAME."&nbsp;:&nbsp;$file<br>"._NQ_THEMEFILE."&nbsp;:&nbsp;$themelogo</center></td></tr>"; 
} 
}
}
echo "</tr></table></td></tr></table></center>";
closedir($handle);
echo "</body></html>";
?>
Return current item: Nukequiz