Example #1
0
function translator($option)
{
    global $mosConfig_absolute_path, $lang_array, $lang_dir;
    $langs = array();
    $cid = $_REQUEST['cid'];
    $files = $_REQUEST['files'];
    if (is_array($cid)) {
        foreach ($cid as $value) {
            $langs[] = $files[$value];
        }
    }
    if ($_REQUEST['task'] == 'del_lang') {
        foreach ($langs as $lang) {
            @unlink($lang_dir . "/" . $lang . ".php");
        }
        $msg = LM_LANG_MSG_DEL;
        mosRedirect('index2.php?option=' . $option . "&task=lang", $msg);
    }
    HTML_cloner::Translator($option, $lang_array);
}