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; // $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. $addTitleToLinks = false; //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 $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.26"; //PDF Export Settings $usepdfexport = 1; //Set 0 to disable; 1 to enable $pdfexportdir = "/admin/classes/tcpdf"; //Directory with the tcpdf.php extensiontcpdf.php $pdffonts = $pdfexportdir."/fonts"; //Directory for the TCPDF fonts $pdfdefaultfont = 'freemono'; //Default font for the pdf Export $pdffontsize = 10; //Fontsize for normal text; Surveytitle is +4; grouptitle is +2 $notsupportlanguages = array("zh-Hant-TW","zh-Hant-HK","zh-Hans","ja","th"); // 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 $parsedurl = parse_url($rooturl); $relativeurl= $parsedurl['path']; ?>