Esempio n. 1
0
echo '<img src="css/msd/pics/h1_logo.gif" alt="' . $lang['L_INSTALL_TOMENU'] . '">';
echo '<div id="pagetitle"><p>
' . $Anzeige . '
</p></div>';
echo '<div id="content" align="center"><p class="small"><strong>Version ' . MSD_VERSION . '</strong><br></p>';
switch ($phase) {
    case 0:
        // Anfang - Sprachauswahl
        // da viele ja nicht in die Anleitung schauen -> versuchen die Perldateien automatisch richtig zu chmodden
        @chmod('./msd_cron/crondump.pl', 0755);
        @chmod('./msd_cron/perltest.pl', 0755);
        @chmod('./msd_cron/simpletest.pl', 0755);
        echo '<form action="install.php" method="get"><input type="hidden" name="phase" value="1">';
        echo '<table class="bdr"><tr class="thead"><th>Language</th><th>Tools</th></tr>';
        echo '<tr><td valign="top" width="300"><table>';
        echo GetLanguageCombo("radio", "radio", "language", "<tr><td>", "</td></tr>");
        echo '</table></td><td valign="top">';
        foreach ($lang['languages'] as $key) {
            echo "\n<div id=\"" . $key . '"><a href="install.php?language=' . $key . '&phase=100">' . $lang['L_TOOLS1'][$key] . '</a><br><br>';
            echo "</div>";
        }
        echo "\n</td></tr><tr><td colspan=\"2\" style=\"padding: 4px\"><input type=\"submit\" name=\"submit\" value=\"Installation\" class=\"Formbutton\"></td></tr></table></form>";
        echo '<script language="JavaScript" type="text/javascript">show_tooldivs("' . $language . '");</script>';
        break;
    case 1:
        // checken
        @chmod("config.php", 0777);
        echo '<h6>' . $lang['L_DBPARAMETER'] . '</h6>';
        if (!is_writable("config.php")) {
            echo '<p class="warning">' . $lang['L_CONFIGNOTWRITABLE'] . '</p>';
            echo '<a href="' . $href . '">' . $lang['L_TRYAGAIN'] . '</a>';
if (!isset($config['ignore_enable_keys'])) {
    $config['ignore_enable_keys'] = 0;
}
$aus['global1'].='<tr><td>Ignore "ENABLE KEYS":</td><td>';
$aus['global1'].='<input type="radio" class="radio" name="ignore_enable_keys" value="1" ' . ( ( $config['ignore_enable_keys'] == 1 ) ? " checked" : "" ) . '>&nbsp;' . $lang['L_YES'];
$aus['global1'].='&nbsp;&nbsp;&nbsp;<input type="radio" class="radio" name="ignore_enable_keys" value="0" ' . ( ( $config['ignore_enable_keys'] == 0 ) ? " checked" : "" ) . '>&nbsp;' . $lang['L_NO'];
$aus['global1'].='</td></tr>';

$aus['global1'].='</table></fieldset>';
$aus['global1'].=print_save_button();
$aus['global1'].='</div>';

//Interface -->
$aus['global3']='<div id="global3"><fieldset><legend>' . $lang['L_CONFIG_INTERFACE'] . '</legend><table>';
$aus['global3'].='<tr><td>' . Help($lang['L_HELP_LANG'],"conf11") . $lang['L_LANGUAGE'] . ':&nbsp;</td>';
$aus['global3'].='<td><select name="language">' . GetLanguageCombo("op");
$aus['global3'].='</select><input type="hidden" name="lang_old" value="' . $config['language'] . '"><input type="hidden" name="scaption_old" value="' . $config['interface_server_caption'] . '"></td></tr>';

$aus['global3'].='<tr><td>' . Help($lang['L_HELP_SERVERCAPTION'],"") . $lang['L_SERVERCAPTION'] . ':</td>';
$aus['global3'].='<td><input type="checkbox" class="checkbox" value="1" name="server_caption" ' . ( ( $config['interface_server_caption'] == 1 ) ? " checked" : "" ) . '>&nbsp;' . $lang['L_ACTIVATED'] . '&nbsp;&nbsp;&nbsp;';
$aus['global3'].='<input type="radio" class="radio" name="server_caption_position" value="1" ' . ( ( $config['interface_server_caption_position'] == 1 ) ? "checked" : "" ) . '>&nbsp;' . $lang['L_IN_MAINFRAME'] . '&nbsp;&nbsp;<input type="radio" class="radio" name="server_caption_position" value="0" ' . ( ( $config['interface_server_caption_position'] == 0 ) ? "checked" : "" ) . '>&nbsp;' . $lang['L_IN_LEFTFRAME'] . '';
$aus['global3'].='</td></tr>';
$aus['global3'].='<tr><td>' . Help("","") . 'Theme:</td><td><select name="theme">' . GetThemes() . '</select></td></tr>';

$aus['global3'].='</table></fieldset><fieldset><legend>' . $lang['L_SQL_BROWSER'] . '</legend><table>';
$aus['global3'].='<tr><td>' . Help("","") . $lang['L_SQLBOXHEIGHT'] . ':&nbsp;</td>';
$aus['global3'].='<td><input type="text" class="text" name="sqlboxsize" value="' . $config['interface_sqlboxsize'] . '" size="3" maxlength="3">&nbsp;Pixel</td></tr>';
$aus['global3'].='<tr><td>' . Help("","") . $lang['L_SQLLIMIT'] . ':&nbsp;</td>';
$aus['global3'].='<td><input type="text" class="text" name="sql_limit" value="' . $config['sql_limit'] . '" size="3" maxlength="6">&nbsp;</td></tr>';
$aus['global3'].='<tr><td>' . Help("","") . $lang['L_BBPARAMS'] . ':&nbsp;</td>';
$aus['global3'].='<td>';