httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1338148 - in /httpd/httpd/branches/2.4.x/docs/manual/rewrite: advanced.html.en advanced.xml.fr rewritemap.html.en
Date Mon, 14 May 2012 10:56:53 GMT
Author: humbedooh
Date: Mon May 14 10:56:52 2012
New Revision: 1338148

URL: http://svn.apache.org/viewvc?rev=1338148&view=rev
Log:
rebuild

Modified:
    httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.html.en
    httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.xml.fr
    httpd/httpd/branches/2.4.x/docs/manual/rewrite/rewritemap.html.en

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.html.en?rev=1338148&r1=1338147&r2=1338148&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.html.en Mon May 14 10:56:52 2012
@@ -254,61 +254,61 @@ RewriteRule   ^(/[uge]/[^/]+/?.*):refres
 $| = 1;
 
 #   split the QUERY_STRING variable
-@pairs = split(/&/, $ENV{'QUERY_STRING'});
+@pairs = split( /&/, $ENV{'QUERY_STRING'} );
 foreach $pair (@pairs) {
-($name, $value) = split(/=/, $pair);
-$name =~ tr/A-Z/a-z/;
-$name = 'QS_' . $name;
-$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
-eval "\$$name = \"$value\"";
-}
-$QS_s = 1 if ($QS_s eq '');
-$QS_n = 3600 if ($QS_n eq '');
-if ($QS_f eq '') {
-print "HTTP/1.0 200 OK\n";
-print "Content-type: text/html\n\n";
-print "<b>ERROR</b>: No file given\n";
-exit(0);
-}
-if (! -f $QS_f) {
-print "HTTP/1.0 200 OK\n";
-print "Content-type: text/html\n\n";
-print "<b>ERROR</b>: File $QS_f not found\n";
-exit(0);
+    ( $name, $value ) = split( /=/, $pair );
+    $name =~ tr/A-Z/a-z/;
+    $name = 'QS_' . $name;
+    $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
+    eval "\$$name = \"$value\"";
+}
+$QS_s = 1    if ( $QS_s eq '' );
+$QS_n = 3600 if ( $QS_n eq '' );
+if ( $QS_f eq '' ) {
+    print "HTTP/1.0 200 OK\n";
+    print "Content-type: text/html\n\n";
+    print "<b>ERROR</b>: No file given\n";
+    exit(0);
+}
+if ( !-f $QS_f ) {
+    print "HTTP/1.0 200 OK\n";
+    print "Content-type: text/html\n\n";
+    print "<b>ERROR</b>: File $QS_f not found\n";
+    exit(0);
 }
 
 sub print_http_headers_multipart_begin {
-print "HTTP/1.0 200 OK\n";
-$bound = "ThisRandomString12345";
-print "Content-type: multipart/x-mixed-replace;boundary=$bound\n";
-&print_http_headers_multipart_next;
+    print "HTTP/1.0 200 OK\n";
+    $bound = "ThisRandomString12345";
+    print "Content-type: multipart/x-mixed-replace;boundary=$bound\n";
+    &print_http_headers_multipart_next;
 }
 
 sub print_http_headers_multipart_next {
-print "\n--$bound\n";
+    print "\n--$bound\n";
 }
 
 sub print_http_headers_multipart_end {
-print "\n--$bound--\n";
+    print "\n--$bound--\n";
 }
 
 sub displayhtml {
-local($buffer) = @_;
-$len = length($buffer);
-print "Content-type: text/html\n";
-print "Content-length: $len\n\n";
-print $buffer;
+    local ($buffer) = @_;
+    $len = length($buffer);
+    print "Content-type: text/html\n";
+    print "Content-length: $len\n\n";
+    print $buffer;
 }
 
 sub readfile {
-local($file) = @_;
-local(*FP, $size, $buffer, $bytes);
-($x, $x, $x, $x, $x, $x, $x, $size) = stat($file);
-$size = sprintf("%d", $size);
-open(FP, "<$file");
-$bytes = sysread(FP, $buffer, $size);
-close(FP);
-return $buffer;
+    local ($file) = @_;
+    local ( *FP, $size, $buffer, $bytes );
+    ( $x, $x, $x, $x, $x, $x, $x, $size ) = stat($file);
+    $size = sprintf( "%d", $size );
+    open( FP, "<$file" );
+    $bytes = sysread( FP, $buffer, $size );
+    close(FP);
+    return $buffer;
 }
 
 $buffer = &readfile($QS_f);
@@ -316,30 +316,30 @@ $buffer = &readfile($QS_f);
 &displayhtml($buffer);
 
 sub mystat {
-local($file) = $_[0];
-local($time);
+    local ($file) = $_[0];
+    local ($time);
 
-($x, $x, $x, $x, $x, $x, $x, $x, $x, $mtime) = stat($file);
-return $mtime;
+    ( $x, $x, $x, $x, $x, $x, $x, $x, $x, $mtime ) = stat($file);
+    return $mtime;
 }
 
 $mtimeL = &mystat($QS_f);
-$mtime = $mtime;
-for ($n = 0; $n < $QS_n; $n++) {
-while (1) {
-    $mtime = &mystat($QS_f);
-    if ($mtime ne $mtimeL) {
-        $mtimeL = $mtime;
-        sleep(2);
-        $buffer = &readfile($QS_f);
-        &print_http_headers_multipart_next;
-        &displayhtml($buffer);
-        sleep(5);
-        $mtimeL = &mystat($QS_f);
-        last;
+$mtime  = $mtime;
+for ( $n = 0 ; $n & lt ; $QS_n ; $n++ ) {
+    while (1) {
+        $mtime = &mystat($QS_f);
+        if ( $mtime ne $mtimeL ) {
+            $mtimeL = $mtime;
+            sleep(2);
+            $buffer = &readfile($QS_f);
+            &print_http_headers_multipart_next;
+            &displayhtml($buffer);
+            sleep(5);
+            $mtimeL = &mystat($QS_f);
+            last;
+        }
+        sleep($QS_s);
     }
-    sleep($QS_s);
-}
 }
 
 &print_http_headers_multipart_end;

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.xml.fr?rev=1338148&r1=1338147&r2=1338148&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/advanced.xml.fr Mon May 14 10:56:52 2012
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1174747:1335963 (outdated) -->
+<!-- English Revision: 1174747:1338147 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/rewritemap.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/rewrite/rewritemap.html.en?rev=1338148&r1=1338147&r2=1338148&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/rewritemap.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/rewritemap.html.en Mon May 14 10:56:52
2012
@@ -430,10 +430,10 @@ this process, or if the script itself is
     <p>If a query returns more than one row, a random row from
 the result set is used.</p>
 
-    <pre class="prettyprint lang-config"><strong>Example</strong>
+	<div class="example"><h3>Example</h3><pre class="prettyprint lang-config">
 RewriteMap myquery "fastdbd:SELECT destination FROM rewrite WHERE source = %s"
     </pre>
-
+</div>
 
   </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
 <div class="section">



Mime
View raw message