<form method="POST">
		<input type="submit" name="update_info" value="update_info" />
		<input type="submit" name="update_xml" value="update_xml" />
		<input type="submit" name="update_fmt_from_db" value="update_fmt_from_db" />
		<input type="submit" name="update_struct" value="update_struct" />
		<input type="submit" name="listing_dbc" value="listing_dbc" disabled />
		<input type="submit" name="check_struct_files" value="check_struct_files 400" />
	</form>
</div>
<div>
<pre>
<?php 
if (isset($_POST['update_info'])) {
    foreach ($f_dbc as $f) {
        $dbc->_set($f);
        $dbc->getHeader();
    }
    $DB->query('TRUNCATE `_dbc_fields_`');
    foreach ($f_dbc as $f) {
        $fmt = $DBCfmt[$f];
        $struct = $DBCstruct[$f];
        $strlen = strlen($fmt);
        for ($i = 0; $i < strlen($fmt); $i++) {
            $count = @is_array($struct[$i]) && $struct[$i][1] > 1 ? $struct[$i][1] : '-1';
            $key = @($struct[$i][1] == INDEX_PRIMORY_KEY) ? 1 : 0;
            $type = get_type($fmt[$i]);
            $field = null;
            if (isset($struct[$i]) && $struct[$i] != '') {
                $field = is_array($struct[$i]) ? $struct[$i][0] : $struct[$i];
            }
            $out = array($f, $i, $field, $key, $count, $fmt[$i], $type);