mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the Limesurvey 1.91+ branch of queXS in to the trunk
This commit is contained in:
@@ -1,22 +1,21 @@
|
||||
<?php
|
||||
/*
|
||||
* LimeSurvey
|
||||
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
|
||||
* All rights reserved.
|
||||
* License: GNU/GPL License v2 or later, see LICENSE.php
|
||||
* LimeSurvey is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*
|
||||
* $Id: config-defaults.php 7241 2009-07-07 21:46:50Z lemeur $
|
||||
*/
|
||||
* LimeSurvey
|
||||
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
|
||||
* All rights reserved.
|
||||
* License: GNU/GPL License v2 or later, see LICENSE.php
|
||||
* LimeSurvey is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*
|
||||
* $Id: config-defaults.php 10474 2011-07-11 15:51:19Z c_schmitz $
|
||||
*/
|
||||
|
||||
// CAUTION
|
||||
// This file contains the default settings for LimeSurvey
|
||||
// Do not Edit this file as it may change in future revisions of the
|
||||
// software.
|
||||
// Do not edit this file as it may change in future revisions of the software.
|
||||
// Correct procedure to setup LimeSurvey is the following:
|
||||
// * copy the lines corresponding to the parameter you want to change
|
||||
// from this file to the config.php file
|
||||
@@ -26,34 +25,38 @@
|
||||
// === Basic Setup
|
||||
|
||||
$databasetype = 'mysql'; // ADOdb database driver - valid values are mysql, mysqli, odbc_mssql, mssql_n, odbtp or postgres
|
||||
// mysql: Recommended driver for mysql
|
||||
// mysqli: Slightly faster driver for mysql - not on all server systems available
|
||||
// odbc_mssql: MSSQL driver for easy run with MS SQL Server
|
||||
// mssql_n: Experimental driver for MS SQL Server which handles UTF-8 charsets
|
||||
// odbtp: Best choice for MSSQL-Server to handle UTF-8 correctly - we recommend to activate $databasepersistent for decent speed
|
||||
// postgres: Standard postgres driver
|
||||
// mysql: Recommended driver for mysql
|
||||
// mysqli: Slightly faster driver for mysql - not on all server systems available
|
||||
// odbc_mssql: MSSQL driver for easy run with MS SQL Server
|
||||
// mssqlnative: Native SQL Server driver for SQL Server 2005+
|
||||
// mssql_n: Experimental driver for MS SQL Server which handles UTF-8 charsets
|
||||
// odbtp: Best choice for MSSQL-Server to handle UTF-8 correctly - we recommend to activate $databasepersistent for decent speed
|
||||
// postgres: Standard postgres driver
|
||||
$databaselocation = 'localhost'; // Network location of your Database - for odbc_mssql use the mssql servername, not localhost or IP
|
||||
$databaseport = 'default'; // The port of your Database - if you use a standard port leave on default
|
||||
$databasename = 'limesurvey'; // The name of the database that we will create
|
||||
$databaseuser = 'root'; // The name of a user with rights to create db (or if db already exists, then rights within that db)
|
||||
$databasepass = ''; // Password of db user
|
||||
$dbprefix = 'lime_'; // A global prefix that can be added to all LimeSurvey tables. Use this if you are sharing
|
||||
// a database with other applications. Suggested prefix is 'lime_'
|
||||
$databasetabletype = 'InnoDB'; // Storage engine mysql should use when creating survey results tables and token tables (if mysql is used). If available, InnoDB is recommended. Default is myISAM.
|
||||
// a database with other applications. Suggested prefix is 'lime_'
|
||||
$databasetabletype = 'InnoDB'; // Storage engine mysql should use when creating survey results tables and token tables (if mysql is used). Default is myISAM.
|
||||
$databasepersistent = false; // If you want to enable persistent database connections set this to 'true' - this might be faster for some database drivers. Default is false.
|
||||
|
||||
// FILE LOCATIONS
|
||||
|
||||
$rooturl = "http://{$_SERVER['HTTP_HOST']}/limesurvey"; //The root web url for your limesurvey installation.
|
||||
// File Locations
|
||||
if (isset($cmd_install) && $cmd_install) {
|
||||
$rooturl = "http://localhost/limesurvey"; // A safe Root URL if we're doing a cmd_install
|
||||
} else {
|
||||
$rooturl = "http://{$_SERVER['HTTP_HOST']}/limesurvey"; // The root web url for your limesurvey installation (without a trailing slash).
|
||||
// The double quotes (") are important.
|
||||
$cmd_install = false;
|
||||
}
|
||||
|
||||
$rootdir = dirname(__FILE__); // This is the physical disk location for your limesurvey installation. Normally you don't have to touch this setting.
|
||||
// If you use IIS then you MUST enter the complete rootdir e.g. : $rootDir="C:\Inetpub\wwwroot\limesurvey"!
|
||||
// Some IIS installations also require to use forward slashes instead of backslashes, e.g. $rootDir="C:/Inetpub/wwwroot/limesurvey"!
|
||||
// If you use OS/2 this must be the complete rootdir with FORWARD slashes e.g.: $rootDir="c:/limesurvey";!
|
||||
|
||||
$rootsymlinked = 0; // if your root document dir is symlinked LimeSurvey might have problems to find out the dir
|
||||
// If you notice that labels are not being translated like "_ADMINISTRATION_" instead of "Administration"
|
||||
// then try setting this to 1 .
|
||||
// If you use IIS then you MUST enter the complete rootdir e.g. : $rootDir="C:\Inetpub\wwwroot\limesurvey"!
|
||||
// Some IIS installations also require to use forward slashes instead of backslashes, e.g. $rootDir="C:/Inetpub/wwwroot/limesurvey"!
|
||||
// If you use OS/2 this must be the complete rootdir with FORWARD slashes e.g.: $rootDir="c:/limesurvey";!
|
||||
|
||||
// Site Info
|
||||
$sitename = 'LimeSurvey'; // The official name of the site (appears in the Window title)
|
||||
@@ -62,75 +65,81 @@ $scriptname = 'admin.php'; // The name of the admin script
|
||||
$defaultuser = 'admin'; // This is the default username when LimeSurvey is installed
|
||||
$defaultpass = 'password'; // This is the default password for the default user when LimeSurvey is installed
|
||||
|
||||
// If the user enters password incorrectly
|
||||
$maxLoginAttempt = 3; // Lock them out after 3 attempts
|
||||
$timeOutTime = 60 * 10; // Lock them out for 10 minutes.
|
||||
|
||||
// Site Settings
|
||||
$lwcdropdowns = 'R'; // SHOW LISTS WITH COMMENT in Public Survey as Radio Buttons (R) or Dropdown List (L)
|
||||
$dropdownthreshold = '25'; // The number of answers to a list type question before it switches from Radio Buttons to List
|
||||
// Only applicable, of course, if you have chosen 'R' for $dropdowns and/or $lwcdropdowns
|
||||
// Only applicable, of course, if you have chosen 'R' for $dropdowns and/or $lwcdropdowns
|
||||
$repeatheadings = '25'; // The number of answers to show before repeating the headings in array (flexible) questions. Set to 0 to turn this feature off
|
||||
$minrepeatheadings = 3; // The minimum number of remaining answers that are required before repeating the headings in array (flexible) questions.
|
||||
$defaultlang = 'en'; // The default language to use - the available languages are the directory names in the /locale dir - for example de = German
|
||||
|
||||
$translationmode = 0; // If interface translations are not working this might be because of a bug in your PHP version.
|
||||
// Set this to '1' to activate a workaround for this bug
|
||||
|
||||
$timeadjust = 0; // Number of hours to adjust between your webserver local time and your own local time (for datestamping responses)
|
||||
$allowexportalldb = 1; // 0 will only export prefixed tables when doing a database dump. If set to 1 ALL tables in the database will be exported
|
||||
$allowmandbackwards = 1; // Allow moving backwards (ie: << prev) through survey if a mandatory question
|
||||
// has not been answered. 1=Allow, 0=Deny
|
||||
// has not been answered. 1=Allow, 0=Deny
|
||||
$deletenonvalues = 1; // By default, LimeSurvey does not save responses to conditional questions that haven't been answered/shown. To have LimeSurvey save these responses change this value to 0.
|
||||
$printanswershonorsconditions = 1; // Set to 1 if you want the participant printanswers feature to show only the questions that were displayed survey branching-logic
|
||||
$shownoanswer = 1; // Show 'no answer' for non mandatory questions
|
||||
$stringcomparizonoperators = 0; // By default, LimeSurvey assumes the numrical order for comparizon operators in conditions. If you need string comparizon operators, set this parameter to 1
|
||||
$printanswershonorsconditions = 1; // Set to 1 if you want the participant printanswers feature to show only the questions that were displayed survey branching-logic
|
||||
$shownoanswer = 1; // Show 'no answer' for non mandatory questions ( 0 = no , 1 = yes , 2 = survey admin can choose )
|
||||
$admintheme = 'default'; // This setting specifys the directory where the admin finds it theme/css style files, e.g. setting 'default' points to /admin/styles/default
|
||||
|
||||
$defaulttemplate = 'default'; // This setting specifys the default theme used for the 'public list' of surveys
|
||||
|
||||
$allowedtemplateuploads = 'gif,jpg,png'; // File types allowed to be uploaded in the templates section.
|
||||
$allowedtemplateuploads = 'gif,ico,jpg,jpe,jpeg,png'; // File types allowed to be uploaded in the templates section.
|
||||
|
||||
$allowedresourcesuploads = '7z,aiff,asf,avi,bmp,csv,doc,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xml,zip,pstpl,css,js'; // File types allowed to be uploaded in the resources sections, and with the HTML Editor
|
||||
$allowedresourcesuploads = '7z,aiff,asf,avi,bmp,csv,doc,fla,flv,gif,gz,gzip,ico,jpeg,jpg,jpe,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xml,zip,pstpl,css,js'; // File types allowed to be uploaded in the resources sections, and with the HTML Editor
|
||||
|
||||
$memorylimit = '128M'; // This sets how much memory LimeSurvey can access. 32M is the minimum (M=mb) recommended - if you are using PDF functions up to 64M may be needed
|
||||
|
||||
$debug = 0; // Set this to 1 if you are looking for errors. If you still get no errors after enabling this
|
||||
// then please check your error-logs - either in your hosting provider admin panel or in some /logs dir.
|
||||
// LimeSurvey developers set this to 2 to circumvent the restriction to remove the installation directory or to change the password
|
||||
// If you set it to 3 then in addition PHP STRICT warnings will be shown
|
||||
|
||||
$memorylimit = '128M'; // This sets how much memory LimeSurvey can access. 16M is the minimum (M=mb) recommended.
|
||||
|
||||
$sessionlifetime = 3600; // How long until a survey session expires in seconds
|
||||
$showpopups = 1; // Show popup messages if mandatory or conditional questions have not been answered correctly.
|
||||
// 1=Show popup message, 0=Show message on page instead.
|
||||
// 1=Show popup message, 0=Show message on page instead.
|
||||
|
||||
|
||||
// Session options
|
||||
|
||||
// $sessionlifetime sets how long until a survey session expires in seconds
|
||||
$sessionlifetime = 3600;
|
||||
// $sessionhandler can be either 'file' or 'db'. (default: 'file').
|
||||
// Generally you don't want to change that unless you are using LimeSurvey on load-balanced servers
|
||||
$sessionhandler = 'file';
|
||||
|
||||
|
||||
|
||||
// Email Settings
|
||||
// These settings determine how LimeSurvey will send emails
|
||||
|
||||
$siteadminemail = 'your@email.org'; // The default email address of the site administrator
|
||||
$siteadminbounce = 'your@email.org'; // The default email address used for error notification of sent messages for the site administrator (Return-Path)
|
||||
$siteadminname = 'Your Name'; // The name of the site administrator
|
||||
$siteadminemail = 'your-email@example.net'; // The default email address of the site administrator
|
||||
$siteadminbounce = 'your-email@example.net'; // The default email address used for error notification of sent messages for the site administrator (Return-Path)
|
||||
$siteadminname = 'Your Name'; // The name of the site administrator
|
||||
|
||||
$emailmethod = 'mail'; // The following values can be used:
|
||||
// mail - use internal PHP Mailer
|
||||
// sendmail - use Sendmail Mailer
|
||||
// qmail - use Qmail MTA
|
||||
// smtp - use SMTP relaying
|
||||
$emailmethod = 'mail'; // The following values can be used:
|
||||
// mail - use internal PHP Mailer
|
||||
// sendmail - use Sendmail Mailer
|
||||
// qmail - use Qmail MTA
|
||||
// smtp - use SMTP relaying
|
||||
|
||||
$emailsmtphost = 'localhost'; // Sets the SMTP host. You can also specify a different port than 25 by using
|
||||
// this format: [hostname:port] (e.g. 'smtp1.example.com:25').
|
||||
$emailsmtphost = 'localhost'; // Sets the SMTP host. You can also specify a different port than 25 by using
|
||||
// this format: [hostname:port] (e.g. 'smtp1.example.com:25').
|
||||
|
||||
$emailsmtpuser = ''; // SMTP authorisation username - only set this if your server requires authorization - if you set it you HAVE to set a password too
|
||||
$emailsmtppassword = ''; // SMTP authorisation password - empty password is not allowed
|
||||
$emailsmtpssl = ''; // Set this to 'ssl' or 'tls' to use SSL/TLS for SMTP connection
|
||||
$emailsmtpuser = ''; // SMTP authorisation username - only set this if your server requires authorization - if you set it you HAVE to set a password too
|
||||
$emailsmtppassword = ''; // SMTP authorisation password - empty password is not allowed
|
||||
$emailsmtpssl = ''; // Set this to 'ssl' or 'tls' to use SSL/TLS for SMTP connection
|
||||
|
||||
$maxemails = 50; // The maximum number of emails to send in one go (this is to prevent your mail server or script from timeouting when sending mass mail)
|
||||
$emailsmtpdebug = 0; // Settings this to 1 activates SMTP debug mode
|
||||
|
||||
$emailcharset = "UTF-8"; // You can change this to change the charset of outgoing emails to some other encoding - like 'iso-8859-1'
|
||||
$maxemails = 50; // The maximum number of emails to send in one go (this is to prevent your mail server or script from timeouting when sending mass mail)
|
||||
|
||||
$emailcharset = "utf-8"; // You can change this to change the charset of outgoing emails to some other encoding - like 'iso-8859-1'
|
||||
|
||||
|
||||
// Support for Fancy URLs
|
||||
//
|
||||
// This new feature makes survey URLs more readable
|
||||
// For example a normal survey that looks like this
|
||||
// For example a normal survey that looks like this
|
||||
|
||||
// http://example.com/limesurvey/index.php?sid=12345&lang=de
|
||||
|
||||
@@ -140,26 +149,19 @@ $emailcharset = "UTF-8"; // You can change this to change the c
|
||||
|
||||
// If you want to have fancy URLs, set this to 1 AND
|
||||
// rename htaccess.txt in the LimeSurvey root directory to .htaccess
|
||||
//
|
||||
//
|
||||
// NOTE: You MUST have the Apache mod_rewrite module installed.
|
||||
// If you don't know what this is better leave this setting alone.
|
||||
$modrewrite = 0;
|
||||
$modrewrite = 0;
|
||||
|
||||
// CMS Integration Settings
|
||||
// Set $embedded to true and specify the header and footer functions - for example if the survey is to be displayed embedded in a CMS
|
||||
$embedded = false;
|
||||
$embedded_inc = ''; // path to a php file to include
|
||||
$embedded_headerfunc = ''; // e.g. COM_siteHeader for geeklog
|
||||
$embedded_footerfunc = ''; // e.g. COM_siteFooter for geeklog
|
||||
|
||||
// Enable or Disable Ldap feature
|
||||
// Enable or Disable LDAP feature
|
||||
$enableLdap = false;
|
||||
|
||||
// Experimental parameters, only change if you know what you're doing
|
||||
//
|
||||
// $filterout_incomplete_answers
|
||||
// * default behaviour of LimeS regarding answer records with no submitdate
|
||||
// * can be overwritten by module parameters choose one of the following://
|
||||
// * can be overwritten by module parameters choose one of the following://
|
||||
// * filter: Show only complete answers
|
||||
// * show: Show both complete and incomplete answers
|
||||
// * incomplete: Show only incomplete answers
|
||||
@@ -174,9 +176,9 @@ $filterout_incomplete_answers = 'show';
|
||||
// $defaulthtmleditormode
|
||||
// * sets the default mode for htmleditor: none, inline, popup
|
||||
// users without specific preference inherit this setup
|
||||
// * inline: inline replacement of fields by an HTML editor:
|
||||
// * inline: inline replacement of fields by an HTML editor:
|
||||
// --> slow but convenient and user friendly
|
||||
// * popup: adds an icon that runs a popup with and html editor
|
||||
// * popup: adds an icon that runs a popup with and html editor
|
||||
// --> faster, but html code is displayed on the form
|
||||
// * none: no html editor
|
||||
$defaulthtmleditormode = 'inline';
|
||||
@@ -189,7 +191,7 @@ $surveyPreview_require_Auth = true;
|
||||
|
||||
|
||||
// $use_one_time_passwords
|
||||
// New feature since version 1.81: One time passwords
|
||||
// Activate One time passwords
|
||||
// The user can call the limesurvey login at /limesurvey/admin and pass username and
|
||||
// a one time password which was previously written into the users table (column one_time_pw) by
|
||||
// an external application.
|
||||
@@ -197,6 +199,16 @@ $surveyPreview_require_Auth = true;
|
||||
$use_one_time_passwords = false;
|
||||
|
||||
|
||||
// $display_user_password_in_html
|
||||
// Option to tell LS to display the automatically generated user password in the html GUI or not
|
||||
$display_user_password_in_html = false;
|
||||
|
||||
|
||||
// $display_user_password_in_email
|
||||
// Option to tell LS to display the automatically generated user password in the welcome email or not
|
||||
$display_user_password_in_email = true;
|
||||
|
||||
|
||||
// $useWebserverAuth
|
||||
// Enable delegation of authentication to the webserver.
|
||||
// If you set this parameter to true and set your webserver to authenticate
|
||||
@@ -207,7 +219,7 @@ $use_one_time_passwords = false;
|
||||
// The user still needs to be defined in the limesurvey database in order to
|
||||
// login and get his permissions (unless $WebserverAuth_autocreateUser is set to true)
|
||||
$useWebserverAuth = false;
|
||||
//
|
||||
|
||||
// $userArrayMap
|
||||
// Enable username mapping
|
||||
// This parameter is an array mapping username from the webserver to username
|
||||
@@ -217,7 +229,7 @@ $useWebserverAuth = false;
|
||||
// $userArrayMap = Array ('mylogin' => 'admin');
|
||||
//
|
||||
// $WebserverAuth_autocreateUser
|
||||
// Enable this if you want to automatically create users authenticated by the
|
||||
// Enable this if you want to automatically create users authenticated by the
|
||||
// webserver in LS
|
||||
// Default is false (commenting this options also means false)
|
||||
// $WebserverAuth_autocreateUser = false;
|
||||
@@ -226,9 +238,9 @@ $useWebserverAuth = false;
|
||||
// This parameter MUST be defined if you set $WebserverAuth_autocreateUser to true
|
||||
// otherwise autocreateUser will be disabled.
|
||||
// This is an array describing the default profile to use for auto-created users
|
||||
// This profile will be the same for all users (unless you define the optionnal
|
||||
// This profile will be the same for all users (unless you define the optionnal
|
||||
// 'hook_get_autouserprofile' function).
|
||||
//
|
||||
//
|
||||
//$WebserverAuth_autouserprofile = Array(
|
||||
// 'full_name' => 'autouser',
|
||||
// 'email' => $siteadminemail,
|
||||
@@ -249,7 +261,7 @@ $useWebserverAuth = false;
|
||||
// It is used to customize the profile of the imported user
|
||||
// If set, the this function will overwrite the $WebserverAuth_autouserprofile
|
||||
// defined above by its return value
|
||||
//
|
||||
//
|
||||
// You can use any external DB in order to fill the profile for the user_name
|
||||
// passed as the first parameter
|
||||
// A dummy example for the 'hook_get_autouserprofile' function is given
|
||||
@@ -269,25 +281,23 @@ $useWebserverAuth = false;
|
||||
// 'configurator' =>0,
|
||||
// 'manage_template' => 0,
|
||||
// 'manage_label' => 0);
|
||||
//}
|
||||
//}
|
||||
|
||||
|
||||
//$filterxsshtml
|
||||
// Enables filtering of suspicious html tags in survey, group, questions
|
||||
// and answer texts in the administration interface
|
||||
// Only set this to false if you absolutely trust the users
|
||||
// you created for the administration of LimeSurvey and if you want to
|
||||
// allow these users to be able to use Javascript etc. .
|
||||
// Only set this to false if you absolutely trust the users
|
||||
// you created for the administration of LimeSurvey and if you want to
|
||||
// allow these users to be able to use Javascript etc. .
|
||||
$filterxsshtml = true;
|
||||
|
||||
|
||||
// $usercontrolSameGroupPolicy
|
||||
// If this option is set to true, then limesurvey operators will only 'see'
|
||||
// users that belong to at least one of their groups
|
||||
// Otherwise they can see all operators defines in LimeSurvey
|
||||
$usercontrolSameGroupPolicy = true;
|
||||
|
||||
|
||||
// $addTitleToLinks
|
||||
// If this option is set to true, then LimeSurvey will add 'title' html element
|
||||
// to all links used in menus. This will help screen reader to analyse the
|
||||
@@ -304,6 +314,7 @@ $addTitleToLinks = false;
|
||||
// * Disables uploading files on the Template Editor
|
||||
// * Disables sending email invitations and reminders
|
||||
// * Disables doing a database dump
|
||||
// * Disables the ability to save the following global settings: Site name, Default language, Default Htmleditor Mode, XSS filter
|
||||
|
||||
$demoModeOnly = false;
|
||||
|
||||
@@ -315,32 +326,18 @@ $demoModeOnly = false;
|
||||
* $column_style defines how columns are rendered for survey answers.
|
||||
* There are four possible options:
|
||||
* 'css' using one of the various CSS only methods for creating
|
||||
columns (see template style sheet for details).
|
||||
columns (see template style sheet for details).
|
||||
* 'ul' using multiple floated unordered lists. (DEFAULT)
|
||||
* 'table' using conventional tables based layout.
|
||||
* NULL blocks the use of columns
|
||||
*/
|
||||
$column_style = 'ul';
|
||||
/** -----------------------------------------------------
|
||||
* By default, the most columns you can have when you set the
|
||||
* columns attribute for a questions is 8. (If you set it above the
|
||||
* maximum, it will default to the maximum) This is because the
|
||||
* number of columns must be reflected in the style sheet.
|
||||
*
|
||||
* NOTE: If you increase $max_columns from 8, you MUST add additional
|
||||
* styles to your style sheets.
|
||||
* The style definitions in template.css you'll need to add to are:
|
||||
* ul.cols-2 , table.cols-2 (etc)
|
||||
* ul.cols-2 li , ul.cols-2-ul (etc)
|
||||
* ul.cols-2 li , ul.cols-2-ul , table.cols-2 td { width: 48%; } (etc)
|
||||
*/
|
||||
$max_columns = 8;
|
||||
|
||||
/**
|
||||
* before 1.85RC3, the group description of a group of questions with all questions
|
||||
* hidden by conditions was displayed in all-in-one survey mode.
|
||||
* Since 1.85RC3, the global parameter 'hide_groupdescr_allinone' can be set to control
|
||||
* if the group description should be hidden in this case.
|
||||
* $hide_groupdescr_allinone.
|
||||
* This parameter 'hide_groupdescr_allinone' can be set to control
|
||||
* if the group description should be hidden if the group description of a group of questions
|
||||
* with all questions hidden by conditions is displayed in all-in-one survey mode.
|
||||
* hide_groupdescr_allinone can be set to true or false (default: true)
|
||||
*/
|
||||
$hide_groupdescr_allinone=true;
|
||||
@@ -356,7 +353,7 @@ $use_firebug_lite = false;
|
||||
/*
|
||||
* When activated there are additional values like arithmetic mean and standard deviation at statistics.
|
||||
* This only affects question types "A" (5 point array) and "5" (5 point choice).
|
||||
* Furthermore data is aggregated to get a faster overview.
|
||||
* Furthermore data is aggregated to get a faster overview.
|
||||
*/
|
||||
$showaggregateddata = 1;
|
||||
|
||||
@@ -365,20 +362,35 @@ $showaggregateddata = 1;
|
||||
* When this settings is true/1 (default) then the standard templates that are delivered with the
|
||||
* LimeSurvey installation package are read-only. If you want to modify a template just copy it first.
|
||||
* This prevents upgrade problems later because if you modify your standard templates you could accidenitally
|
||||
* overwrite these on a LimSurvey upgrade. Only set this to 0 if you know what you are doing.
|
||||
*/
|
||||
$standard_templates_readonly = true;
|
||||
* overwrite these on a LimSurvey upgrade. Only set this to 0 if you know what you are doing.
|
||||
*/
|
||||
$standard_templates_readonly = true;
|
||||
|
||||
|
||||
/**
|
||||
* When this settings is true/1 (default = false/0) then the printable survey option will show a reference
|
||||
* to the "lime_survey_12345" table which stores the survey answers.
|
||||
* It will show a code like "12345X22X333name":
|
||||
* 12345 = surveyID
|
||||
* 22 = groupID
|
||||
* 333 = questionID
|
||||
* name = answer code (only shown for certain question types
|
||||
*
|
||||
* This code will be shown in front of each question and in front of each answer option at the printable survey.
|
||||
* It can be used as a data analysis code book for querying data from the main response table.
|
||||
*/
|
||||
$showsgqacode = false;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* PDF Export Settings
|
||||
* This feature activates PDF export for printable survey and Print Answers
|
||||
* The PDF export is totally experimental. The output is mostly ugly.
|
||||
* At this point no support can be given - if you want to help to fix it please get in touch with us
|
||||
*/
|
||||
* PDF Export Settings
|
||||
* This feature activates PDF export for printable survey and Print Answers
|
||||
* The PDF export is totally experimental. The output is mostly ugly.
|
||||
* At this point no support can be given - if you want to help to fix it please get in touch with us
|
||||
*/
|
||||
|
||||
$usepdfexport = 0; //Set 0 to disable; 1 to enable
|
||||
$usepdfexport = 0; //Set 0 to disable; 1 to enable
|
||||
$pdfdefaultfont = 'freemono'; //Default font for the pdf Export
|
||||
$pdffontsize = 9; //Fontsize for normal text; Surveytitle is +4; grouptitle is +2
|
||||
$notsupportlanguages = array('zh-Hant-TW','zh-Hant-HK','zh-Hans','ja','th');
|
||||
@@ -388,22 +400,22 @@ $pdforientation = 'P'; // Set L for Landscape or P for portr
|
||||
|
||||
// RemoteControl Settings
|
||||
/**
|
||||
* This value determines if the RemoteControl is enabled (true) or not (false)
|
||||
*/
|
||||
* This value determines if the RemoteControl is enabled (true) or not (false)
|
||||
*/
|
||||
$enableLsrc = false;
|
||||
|
||||
/**
|
||||
* This value determines if you can save survey structures (as .csv) into your lsrc folder in export menu
|
||||
*/
|
||||
* This value determines if you can save survey structures (as .csv) into your lsrc folder in export menu
|
||||
*/
|
||||
$export4lsrc = false;
|
||||
|
||||
// CAS Settings
|
||||
/**
|
||||
* Please note that CAS functionality is very basic and you have to modify the client to your needs.
|
||||
* At least the hard work is done.
|
||||
* Please note that CAS functionality is very basic and you have to modify the client to your needs.
|
||||
* At least the hard work is done.
|
||||
* The Client is deployed in Limesurvey and a file login_check_cas.php does what login_check.php does in normal mode.
|
||||
*
|
||||
* $casEnabled determines if CAS should be used or not for Authentication.
|
||||
*
|
||||
* $casEnabled determines if CAS should be used or not for Authentication.
|
||||
* $casAuthServer the servername of the cas Auth Server. Without http://
|
||||
* $casAuthPort CAS Server listening Port
|
||||
* $casAuthUri relative uri from $casAuthServer to cas workingdirectory
|
||||
@@ -415,24 +427,125 @@ $casAuthUri = '/cas-server/';
|
||||
|
||||
|
||||
/**
|
||||
* Statistics chart settings
|
||||
* Different languages need different fonts to properly create charts - this is what the following settings are for
|
||||
*/
|
||||
* Statistics chart settings
|
||||
* Different languages need different fonts to properly create charts - this is what the following settings are for
|
||||
*/
|
||||
|
||||
/**
|
||||
* $chartfontfile - set the font file name used to created the charts in statistics - this font must reside in <limesurvey root folder>/fonts
|
||||
* Set this to specific font-file (for example 'vera.ttf') or set it to 'auto' and LimeSurvey tried to pick the best font depending on your survey base language
|
||||
*/
|
||||
* $chartfontfile - set the font file name used to created the charts in statistics - this font must reside in <limesurvey root folder>/fonts
|
||||
* Set this to specific font-file (for example 'vera.ttf') or set it to 'auto' and LimeSurvey tried to pick the best font depending on your survey base language
|
||||
*/
|
||||
$chartfontfile='auto';
|
||||
|
||||
/**
|
||||
* $chartfontsize - set the size of the font to created the charts in statistics
|
||||
*/
|
||||
* $chartfontsize - set the size of the font to created the charts in statistics
|
||||
*/
|
||||
$chartfontsize =10;
|
||||
|
||||
|
||||
//DO NOT EVER CHANGE THE FOLLOWING LINE ---------------
|
||||
/**
|
||||
* $updatecheckperiod - sets how often LimeSurvey checks for updates - the number sets the number of days between updates.
|
||||
* Set to 0 to disable any update checks
|
||||
* Recommended: 7
|
||||
*/
|
||||
$updatecheckperiod=0;
|
||||
|
||||
/**
|
||||
* @var $showXquestions string allows you to control whether or not
|
||||
* {THEREAREXQUESTIONS} is displayed (if it is included in a template)
|
||||
* hide = always hide {THEREAREXQUESTIONS}
|
||||
* show = always show {THEREAREXQUESTIONS}
|
||||
* choose = allow survey admins to choose
|
||||
*/
|
||||
$showXquestions = 'choose';
|
||||
|
||||
|
||||
/**
|
||||
* @var $showgroupinfo string allows you to control whether or not
|
||||
* {GROUPNAME} and/or {GROUPDESCRIPTION} are displayed (if they are
|
||||
* included in a template)
|
||||
* none = always hide both title and description
|
||||
* name = always {GROUPNAME} only
|
||||
* description = always show {GROUPDESCRIPTION} only
|
||||
* both = always show both {GROUPNAME} and {GROUPDESCRIPTION}
|
||||
* choose = allow survey admins to choose
|
||||
*/
|
||||
$showgroupinfo = 'choose';
|
||||
|
||||
|
||||
/**
|
||||
* @var $showqnumcode string allows you to control whether or not
|
||||
* {QUESTION_NUMBER} and/or {QUESTION_CODE} are displayed (if they
|
||||
* are included in a template)
|
||||
* none = always hide both {QUESTION_NUMBER} and {QUESTION_CODE}
|
||||
* code = always show {QUESTION_CODE} only
|
||||
* number = always show {QUESTION_NUMBER} only
|
||||
* both = always show both {QUESTION_NUMBER} and {QUESTION_CODE}
|
||||
* choose = allow survey admins to choose
|
||||
*/
|
||||
$showqnumcode = 'choose';
|
||||
|
||||
|
||||
/**
|
||||
* @var $force_ssl string - forces LimeSurvey to run through HTTPS or to block HTTPS
|
||||
* 'on' = force SSL/HTTPS to be on (This will cause LimeSurvey
|
||||
* to fail in SSL is turned off)
|
||||
* 'off' = block SSL/HTTPS (this prevents LimeSurvey from
|
||||
* running through SSL)
|
||||
* '' = do nothing (default)
|
||||
*
|
||||
* DO NOT turn on secure unless you are sure SSL/HTTPS is working and
|
||||
* that you have a current, working, valid certificate. If you are
|
||||
* unsure whether your server has a valid certificate, just add 's'
|
||||
* to the http part of your normal LimeSurvey URL.
|
||||
* e.g. https://your.domain.org/limesurvey/admin/admin.php
|
||||
* If LimeSurvey comes up as normal, then everything is fine. If you
|
||||
* get a page not found error or permission denied error then
|
||||
*/
|
||||
$force_ssl = ''; // DO not turn on unless you are sure your server supports SSL/HTTPS
|
||||
|
||||
|
||||
/**
|
||||
* @var $ssl_emergency_override boolean forces SSL off
|
||||
* if You've turned HTTPS/SSL on in the global settings but your
|
||||
* server doesn't have HTTPS enabled, the only way to turn it off is
|
||||
* by changing a value in the database directly. This allows you to
|
||||
* force HTTPS off while you change the global settings for Force Secure.
|
||||
*
|
||||
* false = do nothing;
|
||||
* true = override $force_ssl=on;
|
||||
*
|
||||
* This should always be false except in emergencies where you change
|
||||
* it to true until you fix the problem.
|
||||
*/
|
||||
$ssl_emergency_override = false;
|
||||
|
||||
|
||||
/**
|
||||
* @var $ipInfoDbAPIKey Get your IP Info DB key from http://ipinfodb.com/
|
||||
* If you have the API key, you can use it to get the initial approximate location of the participant.
|
||||
*/
|
||||
$ipInfoDbAPIKey = '';
|
||||
|
||||
// Google Maps API key. http://code.google.com/apis/maps/signup.html
|
||||
// To have questions that require google Maps!
|
||||
|
||||
$googleMapsAPIKey = '';
|
||||
|
||||
/**
|
||||
* This variable defines the total space available to the file upload question across all surveys. If set to 0 then no limit applies.
|
||||
*
|
||||
* @var $iFileUploadTotalSpaceMB Integer number to determine the available space in MB - Default: 0
|
||||
*
|
||||
*/
|
||||
$iFileUploadTotalSpaceMB=0;
|
||||
|
||||
//DO NOT EVER CHANGE THE FOLLOWING 5 LINES ---------------
|
||||
require_once(dirname(__FILE__).'/config.php');
|
||||
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']!='' && $_SERVER['HTTPS']!='off')
|
||||
{
|
||||
$rooturl=str_replace('http://', 'https://', $rooturl);
|
||||
}
|
||||
//-----------------------------------------------------
|
||||
|
||||
// === Advanced Setup
|
||||
@@ -441,26 +554,33 @@ require_once(dirname(__FILE__).'/config.php');
|
||||
// This means that if you want to tweak these very advanced parameters
|
||||
// you'll have to do this in this file and not in config.php
|
||||
// In this case, don't forget to backup your config-defaults.php settings when upgrading LS
|
||||
// and report them to the new config-defaults.php file (Do not simply overwrite the new
|
||||
// and report them to the new config-defaults.php file (Do not simply overwrite the new
|
||||
// config-defaults file with your old one
|
||||
|
||||
//The following url and dir locations do not need to be modified unless you have a non-standard
|
||||
//LimeSurvey installation. Do not change unless you know what you are doing.
|
||||
$homeurl = "$rooturl/admin"; // The website location (url) of the admin scripts
|
||||
$publicurl = "$rooturl"; // The public website location (url) of the public survey script
|
||||
$tempurl = "$rooturl/tmp";
|
||||
$imagefiles = "$rooturl/images"; // Location of button bar files for admin script
|
||||
$templaterootdir= "$rootdir/templates"; // Location of the templates
|
||||
$templaterooturl= "$rooturl/templates"; // Location of the templates
|
||||
$homedir = "$rootdir/admin"; // The physical disk location of the admin scripts
|
||||
$publicdir = "$rootdir"; // The physical disk location of the public scripts
|
||||
$tempdir = "$rootdir/tmp"; // The physical location where LimeSurvey can store temporary files
|
||||
// Note: For OS/2 the $tempdir may need to be defined as an actual directory
|
||||
// example: "x:/limesurvey/tmp". We don't know why.
|
||||
$fckeditordir = "$homeurl/scripts/fckeditor.2641";
|
||||
$fckeditexpandtoolbar = true; // defines if the FCKeditor toolbar should be opened by default
|
||||
$pdfexportdir = '/admin/classes/tcpdf'; //Directory with the tcpdf.php extensiontcpdf.php
|
||||
$pdffonts = $pdfexportdir.'/fonts'; //Directory for the TCPDF fonts
|
||||
//The following url and dir locations do not need to be modified unless you have a non-standard
|
||||
//LimeSurvey installation. Do not change unless you know what you are doing.
|
||||
|
||||
$homeurl = "$rooturl/admin"; // The website location (url) of the admin scripts
|
||||
$publicurl = "$rooturl"; // The public website location (url) of the public survey script
|
||||
$tempurl = "$rooturl/tmp";
|
||||
$imageurl = "$rooturl/images"; // Location of button bar files for admin script
|
||||
$uploadurl = "$rooturl/upload";
|
||||
$standardtemplaterooturl = "$rooturl/templates"; // Location of the standard templates
|
||||
$usertemplaterooturl = "$uploadurl/templates"; // Location of the user templates
|
||||
|
||||
|
||||
$homedir = "$rootdir".DIRECTORY_SEPARATOR."admin"; // The directory path of the admin scripts
|
||||
$publicdir = "$rootdir"; // The directory path of the public scripts
|
||||
$tempdir = "$rootdir".DIRECTORY_SEPARATOR."tmp"; // The directory path where LimeSurvey can store temporary files
|
||||
$imagedir = "$rootdir".DIRECTORY_SEPARATOR."images"; // The directory path of the image directory
|
||||
$uploaddir = "$rootdir".DIRECTORY_SEPARATOR."upload";
|
||||
$standardtemplaterootdir = "$rootdir".DIRECTORY_SEPARATOR."templates"; // The directory path of the standard templates
|
||||
$usertemplaterootdir = "$uploaddir".DIRECTORY_SEPARATOR."templates"; // The directory path of the user templates
|
||||
|
||||
$sCKEditorURL = "$homeurl/scripts/ckeditor.36";
|
||||
$ckeditexpandtoolbar = true; // defines if the CKeditor toolbar should be opened by default
|
||||
$pdfexportdir = "$homedir/classes/tcpdf"; //Directory with the tcpdf.php extensiontcpdf.php
|
||||
$pdffonts = $pdfexportdir.'/fonts'; //Directory for the TCPDF fonts
|
||||
|
||||
// Computing relative url
|
||||
// $relativeurl is the url relative to you DocumentRoot where is installed LimeSurvey.
|
||||
@@ -468,12 +588,10 @@ require_once(dirname(__FILE__).'/config.php');
|
||||
// $relativeurl is now automatically computed from $rooturl
|
||||
if(!isset($cmd_install) || !$cmd_install==true)
|
||||
{
|
||||
$parsedurl = parse_url($rooturl);
|
||||
$relativeurl= isset($parsedurl['path']) ? $parsedurl['path'] : "";
|
||||
$parsedurl = parse_url($rooturl);
|
||||
$relativeurl= isset($parsedurl['path']) ? $parsedurl['path'] : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
// commandline installation, no relativeurl needed
|
||||
// commandline installation, no relativeurl needed
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user