multiViews) { // If this is a form handling request, deal with it if (@$_REQUEST["op"] == "form") { include("$locwebsvnreal/form.php"); exit; } $origPathInfo = isset($_SERVER['ORIG_PATH_INFO']) ? $_SERVER['ORIG_PATH_INFO'] : ''; $pathInfo = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : ''; $path = trim(empty($pathInfo) ? $origPathInfo : $pathInfo); // Remove initial slash $path = substr($path, 1); if (empty($path)) { include("$locwebsvnreal/index.php"); exit; } // Split the path into repository and path elements // Note: we have to cope with the repository name // having a slash in it $pos = strpos($path, '/'); if ($pos === false) { $pos = strlen($path); } $name = substr($path, 0, $pos); $rep =& $config->findRepository($name); if ($rep != null) { $path = substr($path, $pos); if ($path == '') { $path = '/'; } } else { include("$locwebsvnreal/index.php"); exit; } createProjectSelectionForm(); createRevisionSelectionForm(); $vars["allowdownload"] = $rep->getAllowDownload(); $vars["repname"] = htmlentities($rep->getDisplayName(), ENT_QUOTES, 'UTF-8'); // find the operation type $op = @$_REQUEST["op"]; switch ($op) { case "dir": $file = "listing.php"; break; case "revision": $file = "revision.php"; break; case "file": $file = "filedetails.php"; break; case "log": $file = "log.php"; break; case "diff": $file = "diff.php"; break; case "blame": $file = "blame.php"; break; case "rss": $file = "rss.php"; break; case "dl": $file = "dl.php"; break; case "comp": $file = "comp.php"; break; default: $svnrep = new SVNRepository($rep); if ($svnrep->isFile($path, $rev)) { $file = "filedetails.php"; } else { $file = "listing.php"; } break; } // Now include the file that handles it include("$locwebsvnreal/$file"); } else { print "
MultiViews must be configured in config.php in order to use this file"; exit; }
![]() ![]() |
websvn |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|