$success = param_check_not_empty('svn_url', T_('Please enter the URL of repository')); $success = $success && param_check_regexp('svn_folder', '#/blogs/$#', T_('A correct SVN folder path must ends with "/blogs/')); if (!$success) { $action = 'start'; break; } $success = prepare_maintenance_dir($upgrade_path, true); if ($success) { // Set maximum execution time set_max_execution_time(2400); // 60 minutes load_class('_ext/phpsvnclient/phpsvnclient.php', 'phpsvnclient'); $phpsvnclient = new phpsvnclient($svn_url, $svn_user, $svn_password); // Get an error if it was during connecting to svn server $svn_error = $phpsvnclient->getError(); if (!empty($svn_error) || $phpsvnclient->getVersion() < 1) { // Some errors or Incorrect version echo '<p class="red">' . T_('Unable to get a repository version, probably URL of repository is incorrect.') . '</p>'; evo_flush(); $action = 'start'; break; // Stop an upgrade from SVN } if ($svn_revision > 0) { // Set revision from request if ($phpsvnclient->getVersion() < $svn_revision) { // Incorrect revision number echo '<p class="red">' . sprintf(T_('Please select a correct revision number. The latest revision is %s.'), $phpsvnclient->getVersion()) . '</p>'; evo_flush(); $action = 'start'; break;
* * Gets WordPress via SVN. * * Usage: Call svn_wordpress.php, enter repository URL and local installation path. * Check version and revision & click yes to checkout from repoository. * * @author Kevin Schmitt */ require_once 'phpsvnclient.php'; $svn_memory_limit = '128M'; $wp_repository = 'http://core.svn.wordpress.org/'; $wp_version = '3.0.1'; $wp_revision = ''; $wp_local_dir = $_SERVER['DOCUMENT_ROOT'] . '/wordpress'; $svn = new phpsvnclient($wp_repository); $wp_revision_latest = $svn->getVersion(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>parched-art</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="content-language" content="de-de" /> <meta http-equiv="author" content="Kevin Schmitt" /> <meta name="language" content="de-de" /> <meta name="robots" content="noindex,nofollow" /> </head>
<?php define('BILD_VERSION', file_get_contents(BASE_DIR . '/inc/current_revision.txt')); if (SVN_ACTIVE == true) { include_once "phpsvnclient.php"; $svn = new phpsvnclient(SVN_URL); $svn->setAuth(SVN_LOGIN, SVN_PASSWORD); $last_rev = $svn->getVersion(); if ($last_rev > BILD_VERSION) { $log_svn = $svn->getRepositoryLogs("", (int) BILD_VERSION + 1, $last_rev); $AVE_Template->assign('log_svn', $log_svn); $AVE_Template->assign('svn_link', SVN_LINK); $AVE_Template->assign('svn_url', SVN_URL); } }