-
Notifications
You must be signed in to change notification settings - Fork 986
/
config.php
153 lines (126 loc) · 10.8 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
/*
#############################################################
# >>> PHPSurveyor #
#############################################################
# > Author: Jason Cleeland #
# > E-mail: jason@cleeland.org #
# > Mail: Box 99, Trades Hall, 54 Victoria St, #
# > CARLTON SOUTH 3053, AUSTRALIA #
# > Date: 20 February 2003 #
# #
# This set of scripts allows you to develop, publish and #
# perform data-entry on surveys. #
#############################################################
# #
# Copyright (C) 2003 Jason Cleeland #
# #
# This program is free software; you can redistribute #
# it and/or modify it under the terms of the GNU General #
# Public License as published by the Free Software #
# Foundation; either version 2 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 General Public License #
# for more details. #
# #
# You should have received a copy of the GNU General #
# Public License along with this program; if not, write to #
# the Free Software Foundation, Inc., 59 Temple Place - #
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/
// === Basic Setup
$databasetype = "mysql"; // ADOdb database driver - either mysql or odbc_mssql
$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 = "phpsurveyor"; // 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
$databasetabletype = "MyISAM"; // Default mySQL table type (only used if creating db automatically through script -eg "MyISAM" or "InnoDB"
$dbprefix = "phpsv_"; // A global prefix that can be added to all PHPSurveyor tables. Use this if you are sharing
// a database with other applications. Suggested prefix is "phpsv_"
$codeString = 'hU+*jzR2#'; //added by Dennis
$useidprefix = 0; // Set this to 1 if you want to use a prefix on survey responses (useful for replicated/pooled databases)
$idprefix = 0; // Leave this as 0 to use your server's IP address. Alternatively, use a number here - characters WILL NOT WORK.
// FILE LOCATIONS
$rooturl = "http://{$_SERVER['SERVER_NAME']}/PHPSurveyor/"; //The root web url for your phpsurveyor installation.
$rootdir = dirname(__FILE__); // This is the physical disk location for your phpsurveyor 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\phpsurveyor"!
// Some IIS installations also require to use forward slashes instead of backslashes, e.g. $rootDir="C:/Inetpub/wwwroot/phpsurveyor"!
// If you use OS/2 this must be the complete rootdir with FORWARD slashes e.g.: $rootDir="c:/phpsurveyor";!
$rootsymlinked = 0; // if your root document dir is symlinked PHPSurveyor 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 .
// === Advanced Setup
//The following url and dir locations do not need to be modified unless you have a non-standard
//PHPSurveyor 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 PHPSurveyor can store temporary files
// Note: For OS/2 the $tempdir may need to be defined as an actual directory
// example: "x:/phpsurveyor/tmp". We don't know why.
// Site Info
$sitename = "PHPSurveyor"; // The official name of the site (appears in the Window title)
$scriptname = "admin.php"; // The name of the admin script (can be changed to the experimental admin interface index.php)
$accesscontrol = 1; // make 0 for no access control
$defaultuser = "admin"; // This is the default username when security is first turned on
$defaultpass = "password"; // This is the default password for when security is first turned on
// 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
$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 remaing 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
$OS = PHP_OS;
$apachedir = ""; // If left empty, the script will attempt to find htpasswd itself
// otherwise, set this to the location of the "htpasswd" executable
// usually found in the apache "bin" directory
$mysqldir = ""; // If left empty the script will attempte to find mysql binary directory itself
// otherwise, set this to the location of the mysql binary files
$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
$deletenonvalues = 1; // By default, PHPSurveyor does not save responses to conditional questions that haven't been answered/shown. To have PHPSurveyor save these responses change this value to 0.
$shownoanswer = 1; // Show "no answer" for non mandatory questions
// Email Settings
// These settings determine how PHPSurveyor will send emails
$siteadminemail = "your@email.org"; // The default email address of the site administrator
$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
// smtp - use SMTP relaying
$emailsmtphost = "localhost"; // Sets the SMTP host. All hosts must be separated by a semicolon.
// You can also specify a different port for each host by using
// this format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
$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
$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)
// JPGRAPH Settings
// To use jpgraph you must install and set up jpgraph, available from http://www.aditus.nu/jpgraph/
// PHPSurveyor has been tested using version 1.13. Documentation for this is available at the
// jpgraph website. PHPSurveyor cannot assist in the setting up of this system.
// To use JPGraph adjust the next two lines, and adjust the location as suites.
$usejpgraph = 0; //Set to 1 to enable
$jpgraphdir = "/var/apache/htdocs/jpgraph"; //The location of the jpgraph class (where jpgraph.php is)
// If you use IIS then you MUST enter the complete rootdir e.g. : $rootDir="C:\\Inetpub\\wwwroot\\jpgraph"
$jpgraphfont = "FF_ARIAL"; //The font to use with graphs. A failsafe setting would be "FF_FONT1"
// CMS Integration Settings
// Set $embedded to true and specify the header and footer functions if the survey is to be displayed embedded in a CMS
$embedded = false;
$embedded_inc = ""; // path to the header to include if any
$embedded_headerfunc = ""; // e.g. COM_siteHeader for geeklog
$embedded_footerfunc = ""; // e.g. COM_siteFooter for geeklog
//DO NOT CHANGE BELOW HERE --------------------
require_once(dirname(__FILE__).'/common.php');
?>