- <?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
- $databaselocation = "localhost"; // Network location of your MySQL Database
- $databaseport = "3306"; // The port of your MySQL Database (3306 is default)
- $databasename = "eprintstats"; // The name of the database that we will create
- $databaseuser = "eprintstatspriv"; // The name of a user with rights to create db (or if db already exists, then rights within that db)
- $databasepass = "AuldGrizzel"; // Password of db user
- $databasetabletype = "MyISAM"; // Default 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_"
-
- $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']}:##SURVEYOR_PORT##/phpsurveyor"; //The root web url for your phpsurveyor installation
-
- $rootdir = dirname(__FILE__); // This is the physical disk location for your phpsurveyor installation.
- // 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/admin/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.
- $maxemails = 100; // The maximum number of emails to send in one go (this is to allow for script timeouts with large emails)
- $defaultlang = "english"; // The default language to use
- $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 = "##SURVEYOR_ADMIN_EMAIL##"; // The default email address of the site administrator
- $siteadminname = "##SURVEYOR_ADMIN_NAME##"; // The name of the site administrator
- $emailmethod = 2; // The following values can be used:
- // 1 = SMTP_LOCAL - Localhost
- // 2 = SMTP_CLIENT - MX host name(s)
- // 3 = SMTP_LOCAL_CLIENT - 1'st SMTP_LOCAL, 2'nd if fail try SMTP_CLIENT
- // 4 = SMTP_CLIENT_LOCAL - 1'st SMTP_CLIENT, 2'nd if fail try SMTP_LOCAL
- // 5 = SMTP_RELAY - Relay MX host name(s) or ip address with optional authorisation
- // 6 = SMTP_RELAY_CLIENT, - 1'st SMTP_RELAY, 2'nd if fail try SMTP_CLIENT
- // 7 = SMTP_CLIENT_RELAY - 1'st SMTP_CLIENT, 2'nd if fail try SMTP_RELAY
-
- $emailsmtphost = ""; // If you use $emailmethod 5-7 you have to set the SMTP relayhost here
-
-
- // 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');
- ?>