Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/admin/NQADirCheck.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	 */
/*****************************************************************/
include('header.php');
nqmenuheader();
OpenTable();
echo "<br><center><font class='title'>"._NQ_DIRCHECK."</font></center><br>";
echo "<center><table width='100%' border='0' cellpadding='1' cellspacing='1'><tr><th>#</th><th>"._NQ_TITLE."</th>";
echo "<th>"._NQ_DIRNAME."</th><th>"._NQ_QUIZSTATUS."</th><th>"._NQ_CHMOD."</th><th>"._NQ_STATUS."</th></tr><tr>";
$checkresult = $db->sql_query("SELECT qid, iscq, dir, title FROM ".$prefix."_nquiz_quiz ORDER BY qid ASC");
if (!$db->sql_numrows($checkresult)){
echo "<td align='center' colspan='6' class='row1'><b><br>"._NQ_NORESULTS."</b></td></tr></table>";
}
else {
while(list($qid,$iscq,$dir,$title) = $db->sql_fetchrow($checkresult))
{
$imagesdir = $nq_config['images_directory'];
if ($iscq=='0'){$compquiz=_NQ_NOTCOMP;} else{$compquiz= _NQ_ISCOMP;}
$d="modules/$module_name/$imagesdir/$dir";
if (file_exists($d)){
$status =_NQ_OK;	
}else {
$status = "[&nbsp;<a href='".$admin_file.".php?op=nqcreatedir&amp;qid=$qid'>"._NQ_CREATEDIR."</a>&nbsp;]";
}
echo "<td align='center' class='row1'>$qid</td><td class='row1'>$title</td><td class='row1'>$dir</td><td class='row1'>";
echo "$compquiz</td><td align='center' class='row1'>".substr(decoct(fileperms($d)),-4,4)."</td>";
echo "<td align='center' class='row1'>$status</td></tr><tr>";
}
echo "</table></center>";
}
echo "<br><br><center>"._GOBACK."</center><br>";
CloseTable();
include ('footer.php');
?>
Return current item: Nukequiz