Esempio n. 1
0
function editLanguageSource($p_lname, $option)
{
    $file = stripslashes("../language/{$p_lname}.php");
    if ($fp = fopen($file, "r")) {
        $content = fread($fp, filesize($file));
        $content = htmlspecialchars($content);
        HTML_languages::editLanguageSource($p_lname, $content, $option);
    } else {
        mosRedirect("index2.php?option={$option}&mosmsg=Operation Failed: Could not open {$file}");
    }
}
Esempio n. 2
0
function editLanguageSource($p_lname, $option)
{
    global $adminLanguage;
    $file = stripslashes("../language/{$p_lname}.php");
    if ($fp = fopen($file, "r")) {
        $content = fread($fp, filesize($file));
        $content = htmlspecialchars($content);
        HTML_languages::editLanguageSource($p_lname, $content, $option);
    } else {
        mosRedirect("index2.php?option={$option}&mosmsg=" . $adminLanguage->A_COMP_LANG_FAILED_OPEN . " " . $file);
    }
}
function editLanguageSource($p_lname, $option)
{
    $file = stripslashes("../language/{$p_lname}.php");
    if ($fp = fopen($file, "r")) {
        $content = fread($fp, filesize($file));
        $content = htmlspecialchars($content);
        HTML_languages::editLanguageSource($p_lname, $content, $option);
    } else {
        mosRedirect("index2.php?option={$option}&mosmsg=Operação Falhou: Não foi possível abrir o arquivo {$file}");
    }
}