PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/IronPython_Main/Runtime/Tests/LinqDlrTests/testenv/perl/eg/aspsamples/hello.asp

#
ASP | 49 lines | 44 code | 5 blank | 0 comment | 1 complexity | ce3bc8910cef9bc039cc5f02afccbdc0 MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
  1. <%@ LANGUAGE = PerlScript %>
  2. <html>
  3. <HEAD>
  4. <!--
  5. Copyright (c) 1996, Microsoft Corporation. All rights reserved.
  6. Developed by ActiveState Internet Corp., http://www.ActiveState.com
  7. -->
  8. <TITLE> Hello World </TITLE>
  9. </HEAD>
  10. <BODY> <BODY BGCOLOR=#FFFFFF>
  11. <!--
  12. ActiveState PerlScript sample
  13. PerlScript: The coolest way to program custom web solutions.
  14. -->
  15. <!-- Masthead -->
  16. <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  17. <TR VALIGN=TOP ><TD WIDTH=400>
  18. <A NAME="TOP"><IMG SRC="PSBWlogo.gif" WIDTH=400 HEIGHT=48 ALT="ActiveState PerlScript" BORDER=0></A><P>
  19. </TD></TR></TABLE>
  20. <%
  21. for ($i = 3; $i < 8; $i++) {
  22. %>
  23. <font size=<%= $i %>>
  24. "Hello World!"
  25. </font>
  26. <BR>
  27. <%
  28. }
  29. %>
  30. <!-- +++++++++++++++++++++++++++++++++++++
  31. here is the standard showsource link -
  32. Note that PerlScript must be the default language --> <hr>
  33. <%
  34. $url = $Request->ServerVariables('PATH_INFO')->item;
  35. $_ = $Request->ServerVariables('PATH_TRANSLATED')->item;
  36. s/[\/\\](\w*\.asp\Z)//m;
  37. $params = 'filename='."$1".'&URL='."$url";
  38. $params =~ s#([^a-zA-Z0-9&_.:%/-\\]{1})#uc '%' . unpack('H2', $1)#eg;
  39. %>
  40. <A HREF="index.htm"> Return </A>
  41. <A HREF="showsource.asp?<%=$params%>">
  42. <h4><i>view the source</i></h4></A>
  43. </BODY>
  44. </HTML>