136 require_once(ENANO_ROOT.'/includes/paths.php'); |
136 require_once(ENANO_ROOT.'/includes/paths.php'); |
137 require_once(ENANO_ROOT.'/includes/sessions.php'); |
137 require_once(ENANO_ROOT.'/includes/sessions.php'); |
138 require_once(ENANO_ROOT.'/includes/template.php'); |
138 require_once(ENANO_ROOT.'/includes/template.php'); |
139 require_once(ENANO_ROOT.'/includes/plugins.php'); |
139 require_once(ENANO_ROOT.'/includes/plugins.php'); |
140 require_once(ENANO_ROOT.'/includes/lang.php'); |
140 require_once(ENANO_ROOT.'/includes/lang.php'); |
141 require_once(ENANO_ROOT.'/includes/comment.php'); |
|
142 require_once(ENANO_ROOT.'/includes/wikiformat.php'); |
|
143 require_once(ENANO_ROOT.'/includes/diff.php'); |
|
144 require_once(ENANO_ROOT.'/includes/render.php'); |
141 require_once(ENANO_ROOT.'/includes/render.php'); |
145 require_once(ENANO_ROOT.'/includes/stats.php'); |
|
146 require_once(ENANO_ROOT.'/includes/pageutils.php'); |
|
147 require_once(ENANO_ROOT.'/includes/js-compressor.php'); |
|
148 require_once(ENANO_ROOT.'/includes/rijndael.php'); |
142 require_once(ENANO_ROOT.'/includes/rijndael.php'); |
149 require_once(ENANO_ROOT.'/includes/email.php'); |
143 require_once(ENANO_ROOT.'/includes/email.php'); |
150 require_once(ENANO_ROOT.'/includes/search.php'); |
|
151 require_once(ENANO_ROOT.'/includes/json.php'); |
|
152 require_once(ENANO_ROOT.'/includes/json2.php'); |
144 require_once(ENANO_ROOT.'/includes/json2.php'); |
153 require_once(ENANO_ROOT.'/includes/math.php'); |
|
154 require_once(ENANO_ROOT.'/includes/wikiengine/Tables.php'); |
|
155 require_once(ENANO_ROOT.'/includes/pageprocess.php'); |
145 require_once(ENANO_ROOT.'/includes/pageprocess.php'); |
156 require_once(ENANO_ROOT.'/includes/tagcloud.php'); |
146 require_once(ENANO_ROOT.'/includes/tagcloud.php'); |
157 |
147 |
158 strip_magic_quotes_gpc(); |
148 strip_magic_quotes_gpc(); |
159 |
149 |
306 grinding_halt('No languages', '<p>There are no languages installed on this site.</p> |
298 grinding_halt('No languages', '<p>There are no languages installed on this site.</p> |
307 <p>If you are the website administrator, you may install a language by writing and executing a simple PHP script to install it:</p> |
299 <p>If you are the website administrator, you may install a language by writing and executing a simple PHP script to install it:</p> |
308 <pre> |
300 <pre> |
309 <?php |
301 <?php |
310 define("ENANO_ALLOW_LOAD_NOLANG", 1); |
302 define("ENANO_ALLOW_LOAD_NOLANG", 1); |
311 $_GET["title"] = "langinstall"; |
|
312 require("includes/common.php"); |
303 require("includes/common.php"); |
313 install_language("eng", "English", "English", ENANO_ROOT . "/language/english/enano.json");</pre>'); |
304 install_language("eng", "English", "English", ENANO_ROOT . "/language/english/enano.json");</pre>'); |
314 } |
305 } |
315 $row = $db->fetchrow(); |
306 $row = $db->fetchrow(); |
316 setConfig('default_language', $row['lang_id']); |
307 setConfig('default_language', $row['lang_id']); |