/** * Defaukt constructor. * * @param array $options */ public function __construct(array $options = array()) { $this->log = Hoborg_Log::getLogger(__CLASS__); $this->options = $options; svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, $options['user']); svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, $options['password']); $this->log->debug('SVN client version: ' . svn_client_version()); }
<?php phpinfo(); print "<hr/>\n"; print 'register_globals = ' . ini_get('register_globals') . "\n"; print "<hr/>\n"; if (function_exists("svn_client_version")) { print "version svn : " . svn_client_version(); } else { print "pas de fonction svn"; }
echo "<br/><br/><b>Your installation is not an SVN checkout. If you install ResourceSpace as an SVN checkout, updates to the software would be much easier.</b>"; } else { // check svn version $svnrevision = shell_exec("svnversion " . $storagedir . "/.."); $svnrevision = explode(":", $svnrevision); if (isset($svnrevision[1])) { $svnrevision = $svnrevision[1]; } else { $svnrevision = $svnrevision[0]; } // parse string to check if revision is modified if (substr(trim($svnrevision), -1) == "M") { $files_modified = true; } // echo versions echo "Your SVN client version: " . svn_client_version(); echo "<br/>Your ResourceSpace SVN version: " . $svnrevision; // next, analyze an svn status report to see if the installation is clean and can be updated using this tool. if ($files_modified) { $svn_status = svn_status($storagedir . "/../"); ?> <br/> <br/> <table class="InfoTable"> <?php for ($n = 1; $n < count($svn_status); $n++) { if ($svn_status[$n]["text_status"] == 8) { ?> <tr> <td><?php echo $svn_status[$n]["path"];
<?php $theVersion = svn_client_version(); echo $theVersion; ?>