-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php.templ
172 lines (153 loc) · 5.57 KB
/
index.php.templ
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
/*==== MANDATORY SETTINGS */
#Root URL of this instance Aigaion, WITH trailing slash
define('AIGAION_ROOT_URL','http://ingmec.ual.es/aigaion2/');
#Unique ID of this site, to keep it separate from other installations that use same engine
#NOTE: use only alphanumeric characters, no spaces, and at least one letter. Otherwise Aigaion won't work at all.
define('AIGAION_SITEID', 'AigaionInstance1');
# Host where database runs
define('AIGAION_DB_HOST', 'XXXXXXXXXX');
# Database user
define('AIGAION_DB_USER', 'XXXXXXXXXX');
# Database password
define('AIGAION_DB_PWD', 'XXXXXXXXXXXx');
# Name of the standard database
define('AIGAION_DB_NAME', 'XXXXXXXXXXX');
#We need to know where the web content of Aigaion (themes, icons, javascript) is located. WITH trailing slash.
#By default this is http://localhost/aigaion2root/webcontent/
define('AIGAION_WEBCONTENT_URL','http://ingmec.ual.es/aigaion2/webcontent/');
define('AIGAION_WEBCONTENT_DIR','/home/ingmec/aigaion2/webcontent/');
/*==== OPTIONAL SETTINGS */
# Directory where to store attachments. Default: this directory/attachments
# Only uncomment and fill this line if your directory for storing attachments on server
# is different from the default
//define('AIGAION_ATTACHMENT_DIR', '/Path/for/attachments');
# Table prefix for database.
# By default, no table prefix is defined. If your tables have been defined
# with a table prefix, uncomment the following line and fill in the prefix:
//define('AIGAION_DB_PREFIX', '');
# Enable/disable clean URLs.
# If set to true, you can use URLS like http://<server>/aigaion2root/topics instead of http://<server>/aigaion2root/index.php/topics
#
#This requires the webserver to rewrite URLs to /index.php
#see sample.htaccess for what you need to put in the .htaccess file to achieve these rewrite rules
# addition by Michael Gorven
define('CLEAN_URLS', FALSE);
/*
|---------------------------------------------------------------
| EMAIL EXPORT
|---------------------------------------------------------------
|
|
|
|
|
*/
# set this to the name of the email address you want to use as 'sender' when publications are exported by email
#
define('EXPORT_REPLY_ADDRESS', '...@........');
# Defines the maximum size of email attachments
define('MAXIMUM_ATTACHMENT_SIZE', '10000');
/*
|---------------------------------------------------------------
| PHP ERROR REPORTING LEVEL
|---------------------------------------------------------------
|
| By default Aigaion runs with error reporting set to ALL. For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit: http://www.php.net/error_reporting
|
*/
error_reporting(E_ALL);
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your code igniter 'system' folder.
| Include the path if the folder is not in the same directory
| as this file.
| This is normally only changed when you are sharing the same Aigaion 2 code base
| between several instances of Aigaion 2
|
| NO TRAILING SLASH!
|
*/
$system_folder = './codeigniter';
/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| Points to the folder of the aigaion engine. If not relative from the directory
| in which this file is located, use a path.
| This is normally only changed when you are sharing the same Aigaion 2 code base
| between several instances of Aigaion 2
|
| If you want to use a relative path, always include ./ or ../
| E.g. like this: ./aigaionengine
|
| This is normally only changed when you are sharing the same Aigaion 2 code base
| between several instances of Aigaion 2
|
| NO TRAILING SLASH!
|
*/
$application_folder = './aigaionengine';
/*
|===============================================================
| END OF USER CONFIGURABLE SETTINGS
|===============================================================
*/
/*
|---------------------------------------------------------------
| DEFINE APPLICATION CONSTANTS
|---------------------------------------------------------------
|
| EXT - The file extension. Typically '.php'
| FCPATH - The full server path to THIS file
| SELF - The name of THIS file (typically 'index.php')
| BASEPATH - The full server path to the 'system' folder
| APPPATH - The full server path to the 'application' folder
|
*/
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ($application_folder == '')
{
$application_folder = 'application';
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
/*
|---------------------------------------------------------------
| DEFINE E_STRICT
|---------------------------------------------------------------
|
| Some older versions of PHP don't support the E_STRICT constant
| so we need to explicitly define it otherwise the Exception class
| will generate errors.
|
*/
if ( ! defined('E_STRICT'))
{
define('E_STRICT', 2048);
}
/*
|---------------------------------------------------------------
| LOAD THE FRONT CONTROLLER
|---------------------------------------------------------------
|
| And away we go...
|
*/
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
?>