includes/common.php
changeset 1315 d423fc0e9bc9
parent 1312 e6c6b42a5a51
child 1343 2a31905a567d
equal deleted inserted replaced
1314:29b14c220a78 1315:d423fc0e9bc9
   344 				<p>If you are the website administrator, you may install a language by writing and executing a simple PHP script to install it:</p>
   344 				<p>If you are the website administrator, you may install a language by writing and executing a simple PHP script to install it:</p>
   345 				<pre>
   345 				<pre>
   346 &lt;?php
   346 &lt;?php
   347 define("ENANO_ALLOW_LOAD_NOLANG", 1);
   347 define("ENANO_ALLOW_LOAD_NOLANG", 1);
   348 require("includes/common.php");
   348 require("includes/common.php");
   349 install_language("eng", "English", "English", ENANO_ROOT . "/language/english/enano.json");</pre>');
   349 install_language("eng", "English", "English", ENANO_ROOT . "/language/english/core.json");</pre>');
   350 	}
   350 	}
   351 	$row = $db->fetchrow();
   351 	$row = $db->fetchrow();
   352 	setConfig('default_language', $row['lang_id']);
   352 	setConfig('default_language', $row['lang_id']);
   353 }
   353 }
   354 
   354