getArches(); $arr = importDiff('arch', $arr_arches); if(count($arr['delete'])) { foreach($arr['delete'] as $name) { $sql = "DELETE FROM arch WHERE name = ".$db->quote($name).";"; shell::msg($sql); $db->query($sql); } } if(count($arr['insert'])) { foreach($arr['insert'] as $name) { $arr_insert = array('name' => $name); $db->autoExecute('arch', $arr_insert, MDB2_AUTOQUERY_INSERT); } } unset($arr); ?>