Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/admin/index.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	 */
/*****************************************************************/
global $admin_file, $language, $prefix,  $db, $nukeurl, $adminmail;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!defined('ADMIN_FILE')) { die("Illegal Access Detected!!"); }
$admins = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_authors WHERE aid='$aid'"));
if ($admins['radminsuper'] == 1) {
$module_name = 'Nukequiz';
get_lang($module_name);
include("includes/functions_nukequiz.php");
$nq_config = nqget_configs();
switch ($op) {
case "nukequiz":
global $prefix, $language, $module_name, $admin_file, $adminmail, $db;
$pagetitle = _NQ_MAINNQADMIN;
include ("header.php");
nqmenuheader();
$install = $nq_config['install'];
if ($install == ''){
installwarning();
}
else {
copyright();
}
include ("footer.php");
break;
case "nqadminconfigsave":@include("modules/$module_name/admin/NQAAdminConfigSave.php");break; 
case "nqadminconfig":@include("modules/$module_name/admin/NQAAdminConfig.php");break;	
case "nqcategoryedit":@include("modules/$module_name/admin/NQACategoryEdit.php");break;
case "nqdisplaycatimages":@include("modules/$module_name/admin/NQADisplayCatImages.php");break;
case "nqcreatesection":@include("modules/$module_name/admin/NQACreateSection.php");break;
case "nqmodifysection":@include("modules/$module_name/admin/NQAModifyCategory.php");break;
case "nqsavemodifysection":@include("modules/$module_name/admin/NQAModifyCategorySave.php");break;
case "nqdeletesection":@include("modules/$module_name/admin/NQADeleteCategory.php");break;
case "nqcreatenewquiz":@include("modules/$module_name/admin/NQACreateNewQuiz.php");break;	
case "nqsavenewquiz":@include("modules/$module_name/admin/NQASaveNewQuiz.php");break;
case "nqviewquizlist":@include("modules/$module_name/admin/NQAViewQuizList.php");break;
case "nqdeactivatequiz":@include("modules/$module_name/admin/NQADeactivateQuiz.php"); break;
case "nqactivatequiz":@include("modules/$module_name/admin/NQAActivateQuiz.php");break;
case "nqresetquiz":@include("modules/$module_name/admin/NQAResetQuiz.php");break;	
case "nqdeletequiz":@include("modules/$module_name/admin/NQADeleteQuiz.php");break;   
case "nqdisplayquestionfiles":@include("modules/$module_name/admin/NQADisplayQuestionFiles.php");break;
case "nqimportquestions":@include("modules/$module_name/admin/NQAImportQuestions.php");break;
case "nqimportquesexec":@include("modules/$module_name/admin/NQAImportQuestionsComplete.php");break;	
case "nquploadquestions":@include("modules/$module_name/admin/NQAUploadQuestions.php");break;
case "nquploadcompleted":@include("modules/$module_name/admin/NQAUploadQuestions.php");break;
case "nqmodifyquiz":@include("modules/$module_name/admin/NQAModifyQuiz.php");break;		
case "nqsavequizchanges":@include("modules/$module_name/admin/NQASaveQuizChanges.php");break;	
case "nquploadquestionimagefilesfinished":@include("modules/$module_name/admin/NQAUploadQuestionImageFiles.php");break;
case "nquploadquestionimagefiles":@include("modules/$module_name/admin/NQAUploadQuestionImageFiles.php");break;
case "nquploadquestionsoundfilesfinished":@include("modules/$module_name/admin/NQAUploadQuestionSoundFiles.php");break;
case "nquploadquestionsoundfiles":@include("modules/$module_name/admin/NQAUploadQuestionSoundFiles.php");break;
case "nqaddwatermark":@include("modules/$module_name/admin/NQAAddWatermark.php");break;
case "nqmodifyquestion":@include("modules/$module_name/admin/NQAModifyQuestion.php");break;
case "nqsavemodifyquestion":@include("modules/$module_name/admin/NQAModifyQuestionSave.php");break;
case "nqaddquestion":@include("modules/$module_name/admin/NQAAddQuestion.php");break;
case "nqsavenewquestion":@include("modules/$module_name/admin/NQANewQuestionSave.php");break;
case "nqdeletequestion":@include("modules/$module_name/admin/NQADeleteQuestion.php");break;
case "nqleague":@include("modules/$module_name/admin/NQAQuizLeague.php");break;
case "nqviewentries":@include("modules/$module_name/admin/NQAViewQuizEntries.php");break;
case "nqupdatenql":@include("modules/$module_name/admin/NQAUpdateQuizLeague.php");break;
case "nqupdatenqlentries":@include("modules/$module_name/admin/NQAUpdateLeagueUser.php");break;
case "nqdeleteleagueuser":@include("modules/$module_name/admin/NQADeleteLeagueUser.php");break;	
case "nqeditnotice":@include("modules/$module_name/admin/NQAEditNotice.php");break;
case "nqeditnoticesave":@include("modules/$module_name/admin/NQAEditNoticeSave.php");break;
case "nqexportquestions":@include("modules/$module_name/admin/NQAExportQuestions.php");break;
case "nqexportquizdelete":@include("modules/$module_name/admin/NQACheckExported.php");break;
case "nqnukequiztools":@include("modules/$module_name/admin/NQAAdminTools.php");break;
case "nqviewtemplates":@include("modules/$module_name/admin/NQAViewTemplates.php");break;
case "nqshowtemplate":@include("modules/$module_name/admin/NQAShowTemplate.php");break;
case "nqcheckdir":@include("modules/$module_name/admin/NQADirCheck.php");break;
case "nqdeleteuser":@include("modules/$module_name/admin/NQADeleteUser.php");break;	
case "nqcreatedir":@include("modules/$module_name/admin/NQACreateDir.php");break;
case "nqimporttempquestions":@include("modules/$module_name/admin/NQAImportRandomQuestions.php");break;
case "nqupdatefolders":@include("modules/$module_name/admin/NQAUpdateWatermark.php");break;

case "nqdeletezipfile":
$backupdir = $nq_config['backup_directory'];
unlink("modules/$module_name/$backupdir/$file");
Header("Location: ".$admin_file.".php?op=nqexportquizdelete");
break;


case "nqgdchecker":
include('header.php');
nqmenuheader();
nqgdchk();
include ('footer.php');
break;
}//admincheck
}//optag
else {
include("header.php");
GraphicAdmin();
OpenTable();
echo "<center><b>"._ERROR."</b><br><br>You do not have administration permission for module \"$module_name\"</center>";
CloseTable();
include("footer.php");
}
?>
Return current item: Nukequiz