forked from tecnickcom/tcexam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Automatic "onchange" update on Test Results Summary form was disabled - now you have to press the select button to update results. - Test selection queries were fixed for postgresql. - OMR page generation was fixed for some languages. - New config.default configuration directories were added on admin, public and shared folders to avoid overriding the existing configuration files during "git pull".
- Loading branch information
Nicola Asuni
committed
Apr 9, 2013
1 parent
3385360
commit 1ccfb79
Showing
32 changed files
with
49,061 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
admin/config/ | ||
shared/config/ | ||
public/config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ FOR ANY COMMERCIAL USAGE PLEASE CONTACT: [email protected] | |
|
||
Name: TCExam | ||
|
||
Version: 12.0.006 | ||
Version: 12.0.007 | ||
|
||
Release date: 2013-04-08 | ||
Release date: 2013-04-09 | ||
|
||
Author: | ||
Nicola Asuni | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
//============================================================+ | ||
// File name : tce_show_result_allusers.php | ||
// Begin : 2004-06-10 | ||
// Last Update : 2013-01-20 | ||
// Last Update : 2013-04-09 | ||
// | ||
// Description : Display test results summary for all users. | ||
// | ||
|
@@ -18,7 +18,7 @@ | |
// [email protected] | ||
// | ||
// License: | ||
// Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD | ||
// Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as | ||
|
@@ -223,7 +223,8 @@ | |
echo '</span>'.K_NEWLINE; | ||
echo '<span class="formw">'.K_NEWLINE; | ||
echo '<input type="hidden" name="changecategory" id="changecategory" value="" />'.K_NEWLINE; | ||
echo '<select name="test_id" id="test_id" size="0" onchange="document.getElementById(\'form_resultallusers\').changecategory.value=1; document.getElementById(\'form_resultallusers\').submit()" title="'.$l['h_test'].'">'.K_NEWLINE; | ||
//echo '<select name="test_id" id="test_id" size="0" onchange="document.getElementById(\'form_resultallusers\').changecategory.value=1; document.getElementById(\'form_resultallusers\').submit()" title="'.$l['h_test'].'">'.K_NEWLINE; | ||
echo '<select name="test_id" id="test_id" size="0" title="'.$l['h_test'].'">'.K_NEWLINE; | ||
$sql = F_select_executed_tests_sql(); | ||
if ($r = F_db_query($sql, $db)) { | ||
echo '<option value="0"'; | ||
|
@@ -261,7 +262,8 @@ | |
echo '<label for="group_id">'.$l['w_group'].'</label>'.K_NEWLINE; | ||
echo '</span>'.K_NEWLINE; | ||
echo '<span class="formw">'.K_NEWLINE; | ||
echo '<select name="group_id" id="group_id" size="0" onchange="document.getElementById(\'form_resultallusers\').submit()">'.K_NEWLINE; | ||
//echo '<select name="group_id" id="group_id" size="0" onchange="document.getElementById(\'form_resultallusers\').submit()">'.K_NEWLINE; | ||
echo '<select name="group_id" id="group_id" size="0">'.K_NEWLINE; | ||
$sql = 'SELECT * FROM '.K_TABLE_GROUPS.''; | ||
if ($test_id > 0) { | ||
$sql .= ' WHERE group_id IN ('.$test_group_ids.')'; | ||
|
@@ -296,7 +298,8 @@ | |
echo '<label for="user_id">'.$l['w_user'].'</label>'.K_NEWLINE; | ||
echo '</span>'.K_NEWLINE; | ||
echo '<span class="formw">'.K_NEWLINE; | ||
echo '<select name="user_id" id="user_id" size="0" onchange="document.getElementById(\'form_resultallusers\').submit()">'.K_NEWLINE; | ||
//echo '<select name="user_id" id="user_id" size="0" onchange="document.getElementById(\'form_resultallusers\').submit()">'.K_NEWLINE; | ||
echo '<select name="user_id" id="user_id" size="0">'.K_NEWLINE; | ||
$sql = 'SELECT user_id, user_lastname, user_firstname, user_name FROM '.K_TABLE_USERS.''; | ||
if ($test_id > 0) { | ||
$sql .= ', '.K_TABLE_TEST_USER.' WHERE testuser_user_id=user_id AND testuser_test_id='.$test_id.''; | ||
|
@@ -339,7 +342,8 @@ | |
echo '<label for="display_mode">'.$l['w_mode'].'</label>'.K_NEWLINE; | ||
echo '</span>'.K_NEWLINE; | ||
echo '<span class="formw">'.K_NEWLINE; | ||
echo '<select name="display_mode" id="display_mode" size="0" onchange="document.getElementById(\'form_resultallusers\').submit()" title="'.$l['w_mode'].'">'.K_NEWLINE; | ||
//echo '<select name="display_mode" id="display_mode" size="0" onchange="document.getElementById(\'form_resultallusers\').submit()" title="'.$l['w_mode'].'">'.K_NEWLINE; | ||
echo '<select name="display_mode" id="display_mode" size="0" title="'.$l['w_mode'].'">'.K_NEWLINE; | ||
foreach($detail_modes as $key => $dmode) { | ||
echo '<option value="'.$key.'"'; | ||
if ($key == $display_mode) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
<?php | ||
//============================================================+ | ||
// File name : tce_auth.php | ||
// Begin : 2002-09-02 | ||
// Last Update : 2011-05-20 | ||
// | ||
// Description : Define access levels for each admin page | ||
// Note: | ||
// 0 = Anonymous user (uregistered user) | ||
// 1 = registered user | ||
// 10 = System Administrator | ||
// | ||
// Author: Nicola Asuni | ||
// | ||
// (c) Copyright: | ||
// Nicola Asuni | ||
// Tecnick.com LTD | ||
// Manor Coach House, Church Hill | ||
// Aldershot, Hants, GU12 4RQ | ||
// UK | ||
// www.tecnick.com | ||
// [email protected] | ||
// | ||
// License: | ||
// Copyright (C) 2004-2010 Nicola Asuni - Tecnick.com LTD | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as | ||
// published by the Free Software Foundation, either version 3 of the | ||
// License, or (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
// Additionally, you can't remove, move or hide the original TCExam logo, | ||
// copyrights statements and links to Tecnick.com and TCExam websites. | ||
// | ||
// See LICENSE.TXT file for more information. | ||
//============================================================+ | ||
|
||
/** | ||
* @file | ||
* Configuration file: define access levels for each admin page. | ||
* @package com.tecnick.tcexam.admin.cfg | ||
* @author Nicola Asuni | ||
* @since 2002-09-02 | ||
*/ | ||
|
||
// ************************************************************ | ||
// SECURITY WARNING : | ||
// SET THIS FILE AS READ ONLY AFTER MODIFICATIONS | ||
// ************************************************************ | ||
|
||
/** | ||
* Administrator level. | ||
*/ | ||
define ('K_AUTH_ADMINISTRATOR', 10); | ||
|
||
/** | ||
* Operator level. | ||
*/ | ||
define ('K_AUTH_OPERATOR', 5); | ||
|
||
/** | ||
* Required user's level to access index page. | ||
*/ | ||
define ('K_AUTH_INDEX', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to access "user editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_USERS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to delete users. | ||
*/ | ||
define ('K_AUTH_DELETE_USERS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to export users. | ||
*/ | ||
define ('K_AUTH_EXPORT_USERS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to import users. | ||
*/ | ||
define ('K_AUTH_IMPORT_USERS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to access "group editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_GROUPS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to delete user groups. | ||
*/ | ||
define ('K_AUTH_DELETE_GROUPS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to move users from one group to another. | ||
*/ | ||
define ('K_AUTH_MOVE_GROUPS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to access "tcecode editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_TCECODE', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to access "module editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_MODULES', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to access "subject editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_SUBJECTS', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to access "question editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_QUESTIONS', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to access "answer editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_ANSWERS', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to access "test editor". | ||
*/ | ||
define ('K_AUTH_ADMIN_TESTS', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to access "TCExam information". | ||
*/ | ||
define ('K_AUTH_ADMIN_INFO', 0); | ||
|
||
/** | ||
* Required user's level to display online users. | ||
*/ | ||
define ('K_AUTH_ADMIN_ONLINE_USERS', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to upload images. | ||
*/ | ||
define ('K_AUTH_ADMIN_UPLOAD_IMAGES', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to manually rate free text answers. | ||
*/ | ||
define ('K_AUTH_ADMIN_RATING', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to display results. | ||
*/ | ||
define ('K_AUTH_ADMIN_RESULTS', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to import questions. | ||
*/ | ||
define ('K_AUTH_ADMIN_IMPORT', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to import OMR answers. | ||
*/ | ||
define ('K_AUTH_ADMIN_OMR_IMPORT', K_AUTH_OPERATOR); | ||
|
||
/** | ||
* Required user's level to import questions. | ||
*/ | ||
define ('K_AUTH_BACKUP', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to access file manager for multimedia files. | ||
*/ | ||
define ('K_AUTH_ADMIN_FILEMANAGER', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to create and delete directories. | ||
*/ | ||
define ('K_AUTH_ADMIN_DIRS', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to delete multimedia files. | ||
*/ | ||
define ('K_AUTH_DELETE_MEDIAFILE', K_AUTH_ADMINISTRATOR); | ||
|
||
/** | ||
* Required user's level to rename multimedia files. | ||
*/ | ||
define ('K_AUTH_RENAME_MEDIAFILE', K_AUTH_ADMINISTRATOR); | ||
|
||
//============================================================+ | ||
// END OF FILE | ||
//============================================================+ |
Oops, something went wrong.