-
FPDF_FONTPATH
-
full path to PDF fonts directory
-
F_addLogAnswers
-
Add specified answers on tce_tests_logs_answer table.
-
F_checkTestStatus
-
Check and returns specific test status for the specified user.
-
F_check_fields_format
-
Check fields format using regular expression comparisons.
Returns a string containing a list of wrong fields (comma separated).
-
F_check_form_fields
-
Check Form Fields.
-
F_check_required_fields
-
Check Required Form Fields.
Returns a string containing a list of missing fields (comma separated).
-
F_check_unique
-
Check if specified fields are unique on table.
-
F_close_button
-
Returns XHTML code string to display a window close button
-
F_compact_string
-
Remove the following characters:
-
F_count_rows
-
Count rows of the given table.
-
F_createTest
-
Create user's test and returns TRUE on success.
-
F_decode_form_fields
-
Returns an array containing form fields.
-
F_decode_tcecode
-
Returns XHTML code from text marked-up with TCExam Code Tags
-
F_display_db_error
-
Print the database error message.
-
F_empty_to_null
-
Prepare field value for SQL query.
Returns the quoted string if not empty, NULL otherwise.
-
F_error_handler
-
Custom PHP error handler function.
-
F_executeTest
-
Returns true if the current user is authorized to execute the selected test.
Generates the test if it's not already generated.
-
F_getAuthorizedUsers
-
Returns a comma separated string of ID of the users that belong to the same groups.
-
F_getBoolean
-
Returns boolean value from string.
This function is needed to get the right boolean value from boolean field returned by PostgreSQL query.
-
F_getFirstTestUser
-
Returns the ID of the tce_tests_users table corresponding to a complete test of $test_id type.
-
F_getQuestionTestStat
-
Returns test data structure for selected question:
-
F_getTestBasicScore
-
Returns the basic score for right questions.
-
F_getTestData
-
Returns the test data.
-
F_getTestDuration
-
Returns the test duration time in seconds.
-
F_getTestName
-
Returns the test name.
-
F_getTestStartTime
-
Returns the user's test start time in seconds since UNIX epoch (1970-01-01 00:00:00).
-
F_getUserTests
-
Returns an XHTML unordered list of user's enabled tests.
-
F_getUserTestStat
-
Returns test data structure for selected user:
-
F_isAuthorizedUser
-
Returns true if the current user is authorized to update and delete the selected database record.
-
F_isRightTestlogUser
-
Checks if the current user is the right testlog_id owner.
This function is used for security reasons.
-
F_isValidIP
-
Check if user's IP is valid over test IP range
-
F_isValidTestUser
-
Check if user is authorized to execute the specified test
-
F_lockUserTest
-
Lock the user's test.
-
F_loginForm
-
Returns XHTML / CSS formatted string for login form.
-
F_login_form
-
Display login page.
NOTE: This function calls exit() after execution.
-
F_logout_form
-
Display logout form.
-
F_logout_page
-
Display logout page.
NOTE: This function calls exit() after execution.
-
F_newTestLog
-
Creates a new tce_tests_logs table entry and returns inserted ID.
-
F_objects_callback
-
Callback function for preg_replace_callback.
-
F_objects_replacement
-
Returns the xhtml code needed to display the object by MIME type.
-
F_printTestInfo
-
Returns an XHTML string containing specified test information.
-
F_print_error
-
Handle error/warning/system messages.
-
F_questionForm
-
Returns a formatted XHTML form code to handle the specified question.
-
F_questionsMenu
-
Return a formatted XHTML ordered list containing test questions menu.
-
F_remove_tcecode
-
Returns specified string without tcecode mark-up tags
-
F_replace_angulars
-
Replace angular parenthesis with html equivalents (html entities).
-
F_selectAnswers
-
Return an array containing answer_id field of selected answers.
-
F_session_close
-
Close session.
Call garbage collector function to remove expired sessions.
-
F_session_destroy
-
Deletes the specific session.
-
F_session_gc
-
Garbage collector.
Deletes expired sessions.
NOTE: while time() function returns a 32 bit integer, it works fine until year 2038.
-
F_session_open
-
Open session.
-
F_session_read
-
Get session data.
-
F_session_string_to_array
-
Convert encoded session string data to array.
-
F_session_write
-
Insert or Update session.
-
F_show_page_navigator
-
Display Pages navigation index.
-
F_stripslashes_formfields
-
Strip slashes from posted form fields.
-
F_submit_button
-
Returns XHTML code string to display Form Submit Button.
-
F_substrHTML
-
Return a substring of XHTML code while making sure no html tags are chopped.
-
F_substr_utf8
-
Return part of a string removing remaining non-ASCII characters.
-
F_tcecodeToLine
-
Converts tcecode text to a single XHTML string removing some eobjects.
-
F_tcecodeToTitle
-
Converts tcecode text to simple string for XHTML title attribute.
-
F_terminateUserTest
-
Terminate user's test
-
F_testComment
-
Display a textarea for user's comment.
-
F_testInfoLink
-
Returns XHTML link to open test info popup.
-
F_text_to_xml
-
Escape some special characters (< > &).
-
F_twoColRow
-
Return a formatted XHTML row to display 2 columns data.
-
F_updateQuestionLog
-
Updates question log data (register user's answers).
-
F_updateTestComment
-
Updates user's test comment.
-
F_xml_to_text
-
Unescape some special characters (< > &).
-
F_zero_to_null
-
Prepare field value for SQL query.
Returns the num if different from zero, NULL otherwise.
-
K_ANSWER_TEXTAREA_COLS
-
number of columns for answer textarea
-
K_ANSWER_TEXTAREA_ROWS
-
number of rows for answer textarea
-
K_BLANK_IMAGE
-
full path to a blank image
-
K_COOKIE_DOMAIN
-
cookie domain
-
K_COOKIE_EXPIRE
-
expiration time for cookies
-
K_COOKIE_PATH
-
cookie path
-
K_COOKIE_SECURE
-
if true use secure cookies
-
K_DATABASE_HOST
-
database Host name (eg: localhost)
-
K_DATABASE_NAME
-
database name (tcexam)
-
K_DATABASE_PORT
-
database port (eg: 3306 or 5432)
-
K_DATABASE_TYPE
-
database type (POSTGRESQL or MYSQL)
-
K_DATABASE_USER_NAME
-
database user name
-
K_DATABASE_USER_PASSWORD
-
database user password
-
K_ENABLE_JSERRORS
-
if true display messages and errors on Javascript popup window
-
K_ERROR_TYPES
-
define error reporting types for debug
-
K_LANGUAGE
-
2-letters language code
-
K_PATH_CACHE
-
full path to cache directory
-
K_PATH_FONTS
-
full path to fonts directory
-
K_PATH_HOST
-
host URL (e.g.: "http://www.yoursite.com")
-
K_PATH_IMAGES
-
relative path to images directory
-
K_PATH_JSCRIPTS
-
relative path to javascript directory
-
K_PATH_MAIN
-
real full path where this program is installed (e.g: "/var/www/html/TCExam/")
-
K_PATH_PUBLIC_CODE
-
path to public code
-
K_PATH_PUBLIC_CODE_REAL
-
server path to public code
-
K_PATH_SHARED_JSCRIPTS
-
relative path to shared javascript directory
-
K_PATH_STYLE_SHEETS
-
relative path to stylesheets directory
-
K_PATH_TCEXAM
-
relative URL where this program is installed (e.g.: "/")
-
K_PATH_TMX_FILE
-
full path to TMX language file
-
K_PATH_URL_CACHE
-
url path to to cache directory
-
K_QUESTION_DIFFICULTY_LEVELS
-
number of difficulty levels for questions
-
K_QUESTION_LINE_MAX_LENGTH
-
define max line length in chars for question navigator on test execution interface
-
K_RANDOM_SECURITY
-
string used as a seed for some security code generation please change this value and keep it secret
-
K_REDIRECT_LOGIN_MODE
-
various pages redirection modes after login(valid values are 1,2 and 3).
-
K_SECONDS_IN_DAY
-
number of seconds in one day
-
K_SECONDS_IN_HOUR
-
number of seconds in one hour
-
K_SECONDS_IN_MINUTE
-
number of seconds in one minute
-
K_SECONDS_IN_MONTH
-
number of seconds in one month
-
K_SECONDS_IN_WEEK
-
number of seconds in one week
-
K_SECONDS_IN_YEAR
-
number of seconds in one year
-
K_SESSION_LIFE
-
user's session life time in seconds
-
K_STANDARD_PORT
-
standard port for http (80) or https (443)
-
K_TABLE_ANSWERS
-
-
K_TABLE_GROUPS
-
-
K_TABLE_LOG_ANSWER
-
-
K_TABLE_PREFIX
-
prefix for database tables names
-
K_TABLE_QUESTIONS
-
-
K_TABLE_SESSIONS
-
-
K_TABLE_SUBJECTS
-
-
K_TABLE_SUBJECT_SET
-
-
K_TABLE_TESTS
-
-
K_TABLE_TESTS_LOGS
-
-
K_TABLE_TEST_GROUPS
-
-
K_TABLE_TEST_SUBJSET
-
-
K_TABLE_TEST_USER
-
-
K_TABLE_USERGROUP
-
-
K_TABLE_USERS
-
-
K_TCEXAM_VERSION
-
TCExam version (do not change)
-
K_TEST_COMMENT
-
if true allows the user to leave a comment on test
-
K_TEST_INFO_HEIGHT
-
popup window height in pixels for test info
-
K_TEST_INFO_WIDTH
-
popup window width in pixels for test info
-
K_TIMESTAMP_FORMAT
-
define timestamp format using PHP notation
-
K_USE_ERROR_LOG
-
enable error logs (../log/tce_errors.log)