Go to the documentation of this file.00001 <?php
00009
00010
00011 define("MYSQL_SERVER","localhost");
00012
00013
00014 define("MYSQL_USERNAME","pragyancms");
00015
00016
00017 define("MYSQL_PASSWORD","pragyancms");
00018
00019
00020 define("MYSQL_DATABASE","pragyancms");
00021
00022
00023
00024 define("MYSQL_DATABASE_PREFIX","pragyanV3_");
00025
00026
00027 define("ADMIN_USERID",1);
00028
00029
00039 $error_level = 0;
00040 switch($error_level) {
00041 case 0 : $error_text = 0; break;
00042 case 1 : $error_text = E_ERROR | E_WARNING | E_PARSE; break;
00043 case 2 : $error_text = E_ERROR | E_WARNING | E_PARSE | E_NOTICE; break;
00044 case 3 : $error_text = E_ALL ^ E_NOTICE;break;
00045 case 4 : $error_text = E_ALL; break;
00046 case 5 : $error_text = E_ALL; $debugSet='on'; break;
00047 }
00048 ini_set('error_reporting', $error_text);
00049 ini_set('display_errors', 0);
00050
00051
00052 define("LANGUAGE","en");
00053
00054
00055
00056 define("MAILPATH","./cms/languages");
00057
00058
00059
00060
00061
00062
00063 $authmethods['imap']['status']=false;
00064 $authmethods['imap']['server_address']="";
00065 $authmethods['imap']['port']="";
00066 $authmethods['imap']['user_domain']="";
00067
00068 $authmethods['ldap']['status']=false;
00069 $authmethods['ldap']['server_address']="";
00070 $authmethods['ldap']['search_group']="";
00071 $authmethods['ldap']['user_domain']="";
00072
00073 $authmethods['ads']['status']=false;
00074 $authmethods['ads']['server_address']="";
00075 $authmethods['ads']['network_name']="";
00076 $authmethods['ads']['user_domain']="";
00077
00078
00079 if(!defined('CMS_SETUP')) {
00080
00081 ini_set("use_cookies",1);
00082 ini_set("use_only_cookies",1);
00083
00084
00085 $cookie_path = "/";
00086
00087
00088 $cookie_timeout = 60 * 30;
00089
00090
00091
00092
00093
00094
00095 $garbage_timeout = $cookie_timeout + 300;
00096
00097
00098 ini_set('session.name',"PHPSESSID");
00099 session_set_cookie_params($cookie_timeout, $cookie_path);
00100
00101
00102
00103 ini_set('session.gc_maxlifetime', $garbage_timeout);
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115 $sessdir = $sourceFolder."/".$uploadFolder."/sessions";
00116 if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
00117 ini_set('session.save_path', $sessdir);
00118
00119 }
00120 ?>