slow but convenient and user friendly // * 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'; // $surveyPreview_require_Auth // Enforce Authentication to the LS system // before beeing able to preview a survey (testing a non active survey) // Default is true $surveyPreview_require_Auth = true; // $use_one_time_passwords // New feature since version 1.81: 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. // This setting has to be turned on to enable the usage of one time passwords (default = off). $use_one_time_passwords = false; // $useWebserverAuth // Enable delegation of authentication to the webserver. // If you set this parameter to true and set your webserver to authenticate // users accessing the /admin subdirectory, then the username returned by // the webserver will be trusted by LimeSurvey and used for authentication // unless a username mapping is used see $userArrayMap below // // 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 // defined in LimeSurvey // Can be usefull if you have no way to add an 'admin' user to the database // used by the webserver, then you could map your true loginame to admin with // $userArrayMap = Array ('mylogin' => 'admin'); // // $WebserverAuth_autocreateUser // 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; // // $WebserverAuth_autouserprofile // 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 // 'hook_get_autouserprofile' function). // //$WebserverAuth_autouserprofile = Array( // 'full_name' => 'autouser', // 'email' => $siteadminemail, // 'lang' => 'en', // 'htmleditormode' => $defaulthtmleditormode, // 'templatelist' => 'default,basic', // 'create_survey' => 1, // 'create_user' => 0, // 'delete_user' => 0, // 'superadmin' => 0, // 'configurator' =>0, // 'manage_template' => 0, // 'manage_label' => 0); // // // The optionnal 'hook_get_autouserprofile' function // is for advanced user usage only. // 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 // below: //function hook_get_autouserprofile($user_name) //{ // return Array( // 'full_name' => '$user_name', // 'email' => "$user_name@localdomain.org", // 'lang' => 'en', // 'htmleditormode' => 'inline', // 'templatelist' => 'default,basic,MyOrgTemplate', // 'create_survey' => 1, // 'create_user' => 0, // 'delete_user' => 0, // 'superadmin' => 0, // '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. . $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 // menus. Only set this to true if you're using a screen reader because // it overlaps with tooltips. This option shouldn't be required anymore // for new releases of screen readers. $addTitleToLinks = false; // $demoModeOnly // If this option is set to true, then LimeSurvey will go into demo mode. // Demo mode disables the following things: // // * Disables changing of the admin user's details and password // * Disables uploading files on the Template Editor // * Disables sending email invitations and reminders // * Disables doing a database dump $demoModeOnly = false; /** ----------------------------------------------------- * Because columns are tricky things, in terms of balancing visual * layout against semantic markup. The choice has been left to the * system administrator or designer. (Who ever cares most.) * * $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). * '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 can be set to true or false (default: true) */ $hide_groupdescr_allinone=true; /** * Use FireBug Lite for JavaScript and template development and testing. * This allows you to use all the features of Firebug in any browser. * see http://getfirebug.com/lite.html for more info. */ $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. */ $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; /** * 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 $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'); $pdforientation = 'P'; // Set L for Landscape or P for portrait format // RemoteControl Settings /** * 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 */ $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. * 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. * $casAuthServer the servername of the cas Auth Server. Without http:// * $casAuthPort CAS Server listening Port * $casAuthUri relative uri from $casAuthServer to cas workingdirectory */ $casEnabled = false; $casAuthServer = 'localhost'; $casAuthPort = 8443; $casAuthUri = '/cas-server/'; /** * 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 /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 =10; //DO NOT EVER CHANGE THE FOLLOWING LINE --------------- require_once(dirname(__FILE__).'/config.php'); //----------------------------------------------------- // === Advanced Setup // The following parameters need information from config.php // and thus are defined here (After reading your config.php file). // 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 // 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 // Computing relative url // $relativeurl is the url relative to you DocumentRoot where is installed LimeSurvey. // Usually same as $rooturl without http://{$_SERVER['HTTP_HOST']}. // $relativeurl is now automatically computed from $rooturl if(!isset($cmd_install) || !$cmd_install==true) { $parsedurl = parse_url($rooturl); $relativeurl= isset($parsedurl['path']) ? $parsedurl['path'] : ""; } else { // commandline installation, no relativeurl needed }