Example #1
0
            echo "<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"" . 'migrate.php?step=4' . '&language=' . $language . '&site_url=' . $_REQUEST['site_url'] . '&site_admin_url=' . $_REQUEST['site_admin_url'] . "\";',3000);</script>\n";
        } else {
            if ($delaypersession != 0) {
                echo '<p><b>' . $LANG_BIGDUMP[24] . $delaypersession . $LANG_BIGDUMP[25] . LB;
            }
            // Go to the next step
            echo '<script language="JavaScript" type="text/javascript">window.setTimeout(\'location.href="' . $_SERVER['PHP_SELF'] . '?start=' . $linenumber . '&fn=' . urlencode($curfilename) . '&foffset=' . $foffset . '&totalqueries=' . $totalqueries . '&db_connection_charset=' . $db_connection_charset . '&language=' . $language . '&site_url=' . $site_url . '&site_admin_url=' . $site_admin_url . '";\',500+' . $delaypersession . ');</script>' . LB . '<noscript>' . LB . ' <p><a href="' . $_SERVER['PHP_SELF'] . '?start=' . $linenumber . '&amp;fn=' . urlencode($curfilename) . '&amp;foffset=' . $foffset . '&amp;totalqueries=' . $totalqueries . '&amp;db_connection_charset=' . $db_connection_charset . '&amp;language=' . $language . '&amp;site_url=' . $site_url . '&amp;site_admin_url=' . $site_admin_url . '">Continue from the line ' . $linenumber . '</a></p>' . LB . '</noscript>' . LB . '<p><b><a href="' . $_SERVER['PHP_SELF'] . '">' . $LANG_BIGDUMP[26] . '</a></b> ' . $LANG_BIGDUMP[27] . ' <b>' . $LANG_BIGDUMP[28] . '</b></p>' . LB;
        }
    } else {
        echo INST_getAlertMsg($LANG_BIGDUMP[29]);
    }
}
if ($error) {
    $backurl = 'migrate.php';
    if (!empty($language)) {
        $backurl .= '?language=' . $language;
    }
    echo '<p><a href="' . $backurl . '">' . $LANG_BIGDUMP[30] . '</a> ' . $LANG_BIGDUMP[31] . '</p>' . LB;
}
if ($dbconnection) {
    mysql_close($dbconnection);
}
if ($file && !$gzipmode) {
    fclose($file);
} else {
    if ($file && $gzipmode) {
        gzclose($file);
    }
}
echo INST_getFooter();
Example #2
0
                // Plugins
                if ($missing_plugins > 0) {
                    $display .= INST_getAlertMsg($LANG_MIGRATE[32] . ' <code>' . $_CONF['path'] . 'plugins/</code> ' . $LANG_MIGRATE[33], 'notice');
                }
                if ($disabled_plugins > 0) {
                    $display .= INST_getAlertMsg($LANG_MIGRATE[48]);
                }
                // Article images
                if ($missing_article_images) {
                    $display .= INST_getAlertMsg($LANG_MIGRATE[34] . ' <code>' . $html_path . 'images/articles/</code> ' . $LANG_MIGRATE[35], 'notice');
                }
                // Topic images
                if ($missing_topic_images) {
                    $display .= INST_getAlertMsg($LANG_MIGRATE[34] . ' <code>' . $html_path . 'images/topics/</code> ' . $LANG_MIGRATE[35], 'notice');
                }
                // Userphoto images
                if ($missing_userphoto_images) {
                    $display .= INST_getAlertMsg($LANG_MIGRATE[34] . ' <code>' . $html_path . 'images/userphotos/</code> ' . $LANG_MIGRATE[35], 'notice');
                }
                $display .= '<p>' . $LANG_MIGRATE[36] . '</p>' . LB . '<form action="success.php" method="get">' . LB . '<input type="hidden" name="type" value="migrate"' . XHTML . '>' . LB . '<input type="hidden" name="language" value="' . $language . '"' . XHTML . '>' . LB . '<input type="hidden" name="" value=""' . XHTML . '>' . LB . '<p><input type="submit" class="button big-button" name="" value="' . $LANG_INSTALL[62] . ' &gt;&gt;"' . XHTML . '></p>' . LB . '</form>';
            } else {
                header('Location: success.php?type=migrate&language=' . $language);
            }
            break;
    }
    // End switch ($step)
}
// end if (php_v())
$display .= INST_getFooter();
header('Content-Type: text/html; charset=' . $LANG_CHARSET);
echo $display;
Example #3
0
    echo $output;
    die(1);
}
// this is not ideal but will stop PHP 5.3.0ff from complaining ...
$system_timezone = @date_default_timezone_get();
date_default_timezone_set($system_timezone);
$_REQUEST = array_merge($_GET, $_POST);
// Before we begin, check if an uploaded file exceeds PHP's post_max_size
if (isset($_SERVER['CONTENT_LENGTH'])) {
    // This code is thanks to v3 AT sonic-world DOT ru via PHP.net
    $POST_MAX_SIZE = ini_get('post_max_size');
    $mul = substr($POST_MAX_SIZE, -1);
    $mul = $mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1));
    if ($_SERVER['CONTENT_LENGTH'] > $mul * (int) $POST_MAX_SIZE && $POST_MAX_SIZE) {
        // If it does, display an error message
        $display = INST_getHeader($LANG_ERROR[8]) . INST_getAlertMsg($LANG_ERROR[7]) . INST_getFooter();
        die($display);
    }
}
// +---------------------------------------------------------------------------+
// | Functions                                                                 |
// +---------------------------------------------------------------------------+
/**
 * Returns the beginning HTML for the installer theme.
 *
 * @param   $mHeading   Heading
 * @return  string      Header HTML code
 *
 */
function INST_getHeader($mHeading)
{