[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/sites/developer/documentation/library
From:       Daniel Molkentin <molkentin () kde ! org>
Date:       2007-05-26 16:57:25
Message-ID: 1180198645.604244.31723.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 668516 by danimo:

redirect KDE 3.x users of classmapper (i.e.: most)


 M  +1 -55     classmapper.php  


--- trunk/www/sites/developer/documentation/library/classmapper.php #668515:668516
@@ -1,57 +1,3 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Struct//EN"
-                      "DTD/xhtml1-strict.dtd">
 <?php
-$queries = split('&', $_SERVER['QUERY_STRING']);
-foreach ( $queries as $queryItem ) {
-	$pair = split( '=', $queryItem );
-	if ("version" == $pair[0]) $version=$pair[1];
-	if ("class" == $pair[0]) $class=$pair[1];
-}
-
-if (isset($class)) {
-	# Undo encoding of : for namespaced classes
-	$class = str_replace("%3A",":",$class);
-}
-
-$valid_versions = array( "1.1", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "3.4", "cvs" );
-if ( empty( $version ) || !in_array( $version, $valid_versions ) )
-	$version = "cvs";
-echo "<!-- Version $version -->\n";
-echo "<!-- Class $class -->\n";
-
-if (!empty($class)) {
-	$class = strtolower( $class );
-
-	if ($class == "//radio")
-		$file = "http://radio.kde.org";
-	else if ($version != "cvs") {
-		include "classmap-".$version.".inc";
-
-		if ( empty( $map[$class] ) )
-			$file = "index.html";
-		else
-			$file = $map[$class];
-	} else {
-		$modules=array("kdelibs","kdebase","kdepim","koffice");
-		foreach($modules as $i) {
-			$path="$i-classmap.inc";
-			unset ($map);
-			include $path;
-			echo "<!-- Loaded map for $i from $path -->\n";
-			if (!empty($map[$class])) {
-				$file="cvs-api/$i-apidocs/" . $map[$class];
-				break;
-			}
-		}
-	}
-} 
-if (empty($file)) $file="index.php";
+http_redirect("http://www.api.kde.org", $_GET, false, HTTP_REDIRECT_PERM);
 ?>
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
-		<meta http-equiv="refresh" content="0; url=<?php echo $file;?>"/>
-	</head>
-	<body/>
-</html>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic