示例#1
0
    // check if the directory was protected...
    if (!isset($_SERVER['PHP_AUTH_USER'])) {
        echo "<p><font color='maroon'>- The system is recommending that you should password protect your admin/ directory using the features in your web hosting account (or using .htaccess). The admin/ directory is already password protected, but this is limited to php files. By password protecting the entire admin/ directory, you will restrict access to all of files in this directory.</font></p>";
    }
    if (ini_get('register_globals') == true) {
        echo "<p><font color='maroon'>- Security Warning: The system is has detected that you have <b>Register Globls</b> turned on. It is suggested that the script be run with Register Globals set to Off. See here for more information: http://www.php.net/manual/en/security.globals.php</font></p>";
    }
    JB_show_lang_permission_warning();
}
echo "</div>";
function does_field_exist($table, $field)
{
    global $jb_mysql_link;
    $result = jb_mysql_query("show columns from `" . jb_escape_sql($table) . "`");
    while ($row = @mysql_fetch_row($result)) {
        if ($row[0] == $field) {
            return true;
        }
    }
    return false;
}
if ($DB_ERROR == '') {
    // update JB_POSTS_DISPLAY_DAYS value.
    $sql = "REPLACE INTO jb_config (`key`, `val`) VALUES ('POSTS_DISPLAY_DAYS', '" . JB_POSTS_DISPLAY_DAYS . "') ";
    jb_mysql_query($sql);
    JB_merge_language_files();
}
JB_admin_footer();
?>

示例#2
0
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
            JB_format_codes_translation_table($row['field_id']);
        }
        // update forms
        // (copy English to new lang)
        JB_format_field_translation_table(1);
        JB_format_field_translation_table(2);
        JB_format_field_translation_table(3);
        JB_format_field_translation_table(4);
        JB_format_field_translation_table(5);
        // update email templates
        JB_format_email_translation_table();
        preg_match('#([a-z0-9_\\-]+)#i', stripslashes($_REQUEST['jb_theme']), $m);
        $lang_file = JB_get_theme_dir() . $m[1] . "/lang/english_default.php";
        if (file_exists($lang_file)) {
            JB_merge_language_files(true);
            echo '<br><br>';
        }
        @touch("../config.php");
        // update config.php timestamp.
        $JBMarkup->ok_msg('Language Updated.');
        $_REQUEST['action'] = '';
    }
}
?>

<table border="0" cellSpacing="1" cellPadding="3" bgColor="#d9d9d9" >
			<tr bgColor="#eaeaea">
				<td><b><font size="2">Language</b></font></td>
				<td><b><font size="2">Code</b></font></td>
				<td><b><font size="2">File</b></font></td>