]>
src.bluestatic.org Git - bugdar.git/blob - docs/lang_file_import.php
3 // takes the XML language file and loads it into the database
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 require_once('./includes/class_xml_language.php');
18 $lang = new XML_Language();
20 $lang->path
= './docs/lang_file_master.xml';
23 $query = $lang->build();
27 $db->query("TRUNCATE TABLE " . TABLE_PREFIX
. "phrase");
29 echo 'language file imported...';