3 // takes the locale/en.php file and loads it into the database language system
8 require_once('./global.php');
10 if (empty($_REQUEST['do']))
12 echo "are you sure? <a href=\"lang_file_import.php?do=1\">yes</a>";
15 if ($_REQUEST['do'] == 1)
17 $db->query("TRUNCATE TABLE " . TABLE_PREFIX
. "phrase");
20 INSERT INTO " . TABLE_PREFIX
. "phrase
21 (varname, phrasetext, imported)
25 require('./docs/lang_file_master.php');
27 foreach ($language AS $varname => $phrase)
30 ('" . $bugsys->escape($varname) . "', '" . $bugsys->escape($phrase) . "', " . time() . ")";
33 $sql .= implode(',', $sqlbits);
35 echo "<pre>$sql</pre>";