synch up files
diff --git a/downloadsites/webtools/miscNotUsedNow/c.xsl b/downloadsites/webtools/miscNotUsedNow/c.xsl
new file mode 100644
index 0000000..b57f944
--- /dev/null
+++ b/downloadsites/webtools/miscNotUsedNow/c.xsl
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output
+ method="html"
+ indent="yes" />
+
+ <xsl:template match="/">
+ <html>
+ <body>
+ <xsl:apply-templates select="compiler" />
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="compiler">
+ <h2>Compiler Report</h2>
+ <p>
+ Compiler:
+ <xsl:value-of select="@name" />
+ <xsl:text> </xsl:text>
+ Version:
+ <xsl:value-of select="@version" />
+ </p>
+
+ <xsl:apply-templates select="stats" />
+
+ <xsl:apply-templates select="sources" />
+ </xsl:template>
+
+ <xsl:template
+ name="stats"
+ match="stats">
+
+ <p>
+ Number of source files:
+ <xsl:value-of select="count(..//source)" />
+ Number of classfiles:
+ <xsl:value-of select="number_of_classfiles/@value" />
+ </p>
+ <p>
+ Problems:
+ <xsl:value-of select="problem_summary/@problems" />
+ (Errors:
+ <xsl:value-of select="problem_summary/@errors" />
+ Warnings:
+ <xsl:value-of select="problem_summary/@warnings" />
+ )
+ </p>
+ </xsl:template>
+
+
+ <xsl:template
+ name="sources"
+ match="sources">
+
+ <xsl:if test="count(source) > 0">
+
+ <dl>
+ <xsl:for-each select="source">
+
+ <xsl:variable
+ name="package"
+ select="normalize-space(@package)">
+ </xsl:variable>
+ <xsl:variable
+ name="path"
+ select="normalize-space(@path)">
+ </xsl:variable>
+ <xsl:variable
+ name="classname"
+ select="substring-after($path, $package)">
+ </xsl:variable>
+ <xsl:if test="count(problems) > 0">
+ <dt style="font-weight: bold; color: black">
+ Source File:
+ <xsl:value-of select="$package" />
+ <xsl:value-of select="$classname" />
+ </dt>
+ <xsl:apply-templates select="problems">
+ <xsl:with-param name="classname">
+ <xsl:value-of select="$classname" />
+ </xsl:with-param>
+ </xsl:apply-templates>
+ </xsl:if>
+ </xsl:for-each>
+ </dl>
+
+ </xsl:if>
+
+ </xsl:template>
+
+ <xsl:template match="problems">
+ <xsl:param name="classname" />
+ <xsl:for-each select="problem">
+
+ <dd style="font-weight: normal; color: black">
+ <xsl:value-of select="position()" />
+ <xsl:text>. </xsl:text>
+ <xsl:value-of select="@severity" />
+ <xsl:text>: </xsl:text>
+ <xsl:value-of select="@id" />
+ <xsl:variable
+ name="lineNumber"
+ select="@line">
+ </xsl:variable>
+ <xsl:for-each select="message">
+ <p
+ style="margin-left: +.5in; font-size: -1; margin-top: 0;margin-bottom:0;">
+ <small>
+ <xsl:value-of select="@value" />
+ </small>
+ </p>
+ </xsl:for-each>
+ <xsl:for-each select="source_context">
+ <xsl:variable
+ name="pre"
+ select="substring(@value,0,(@sourceStart + 1))">
+ </xsl:variable>
+ <xsl:variable
+ name="main"
+ select="substring(@value,(@sourceStart + 1),(((@sourceEnd + 1) - (@sourceStart + 1)) + 1))">
+ </xsl:variable>
+ <xsl:variable
+ name="end"
+ select="substring(@value,(@sourceEnd + 2))">
+ </xsl:variable>
+
+ <p
+ style="margin-left: +.5in; font-size: -2; margin-top: 0;margin-bottom:0;">
+ <xsl:value-of select="substring($classname,2)" />
+ :
+ </p>
+ <p
+ style="margin-left: +.5in; font-size: -2;font-family: monospace; margin-top: 0;margin-bottom:0;">
+ <xsl:value-of select="$lineNumber" />
+ :
+ <xsl:value-of select="$pre" />
+ <b>
+ <u>
+ <xsl:value-of select="$main" />
+ </u>
+ </b>
+ <xsl:value-of select="$end" />
+ </p>
+ </xsl:for-each>
+ </dd>
+ </xsl:for-each>
+
+
+ </xsl:template>
+
+</xsl:stylesheet>
+
diff --git a/downloadsites/webtools/miscNotUsedNow/ip_test.php b/downloadsites/webtools/miscNotUsedNow/ip_test.php
new file mode 100644
index 0000000..ca01b96
--- /dev/null
+++ b/downloadsites/webtools/miscNotUsedNow/ip_test.php
@@ -0,0 +1,15 @@
+<?php
+ echo "Your IP: " . $_SERVER['REMOTE_ADDR'] . "<br />";
+ $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
+ echo "Your hostname (reverse lookup): " . $hostname . "<br />";
+ $ip = gethostbyname($hostname);
+ echo "Your hostname's IP (forward lookup of your reverse lookup): " . $ip . "<br />";
+
+ if($ip != $_SERVER['REMOTE_ADDR']) {
+ echo "<font size=\"+4\" color=\"red\">Your DNS is broken. This may cause your connection to CVS to be slow!</font>";
+ }
+ else {
+ echo "<font size=\"+2\" color=\"green\">Your DNS seems okay! Thanks!</font>";
+ }
+
+?>
\ No newline at end of file
diff --git a/downloadsites/webtools/miscNotUsedNow/runXSLT.sh b/downloadsites/webtools/miscNotUsedNow/runXSLT.sh
new file mode 100644
index 0000000..221a05e
--- /dev/null
+++ b/downloadsites/webtools/miscNotUsedNow/runXSLT.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+# remember to leave no slashes on commonVariations in source command,
+# so that users path is used to find it (first). But, path on
+# commonComputedVariables means we expect to execute only our
+# version
+
+if [ -z $BUILD_INITIALIZED ]
+then
+ # if releng_control not set, we assume we are already in releng_control directory
+ if [ -z $RELENG_CONTROL ]
+ then
+ RELENG_CONROL=`pwd`
+ fi
+ pushd .
+ cd ${RELENG_CONTROL}
+ source commonVariations.shsource
+ source ${RELENG_CONTROL}/commonComputedVariables.shsource
+ popd
+fi
+
+# For most ant tasks, we want Java 4 to be default,
+# so if not desired (such as for WTP 2.0 unit tests),
+# then we have to spec Java 5 right there where we run
+# the tests.
+# Note: this must be Java 4, for now, for "customizeAccessRules"
+# to work. I'll recompile it for Java 5 eventually, but it causes
+# a problem, and a problem only on PPC machine/VM.
+export JAVA_HOME=${JAVA_4_HOME}
+
+
+ANT_CMD=${ANT_HOME}/bin/ant
+
+exec "$ANT_CMD" -v -f transformReportsToHTML.xml
+
+
diff --git a/downloadsites/webtools/miscNotUsedNow/transformReportsToHTML.xml b/downloadsites/webtools/miscNotUsedNow/transformReportsToHTML.xml
new file mode 100644
index 0000000..1f4855b
--- /dev/null
+++ b/downloadsites/webtools/miscNotUsedNow/transformReportsToHTML.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ name="xsl-conversion"
+ default="main"
+ basedir=".">
+
+ <target
+ name="main"
+ description="example.bin.xml to produce example.html">
+ <xslt
+ destdir="./compilelogs"
+ scanincludeddirectories="true"
+ style="c.xsl"
+ force="true" >
+ <fileset dir="./compilelogs" includes="**/*.bin.xml" />
+ <mapper type="glob" from="*.xml" to="*.html"/>
+ </xslt>
+ </target>
+</project>