diff --git a/README.md b/README.md
deleted file mode 100644
index 59b0768..0000000
--- a/README.md
+++ /dev/null
@@ -1,207 +0,0 @@
-ASP Xtreme Evolution
-====================
-
-The ASP Xtreme Evolution goal is to be a versatile MVC URL-Friendly base for Classic ASP applications with some additional features that are not ASP native. It should implement things that are common to most applications removing the pain of starting a new software and helping you to structure it so that you get things right from the beginning. Our key concepts are choice and freedom over limiting conventions, polyglotism, sustained quality, extensibility which we try to implement in a clean, maintainable and extensible way.
-
-License
--------
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU Lesser General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program. If not, see
ASP Xtreme Evolution goal is to be a versatile MVC URL-Friendly base for Classic ASP applications with some additional features that are not ASP native. It should implement things that are common to most applications removing the pain of starting a new software and helping you to structure it so that you get things right from the beginning. Our key concepts are choice and freedom over limiting conventions, polyglotism, sustained quality, extensibility which we try to implement in a clean, maintainable and extensible way.
-ASP Xtreme Evolution v1.2.0.0 running over VBScript v5.8.18702
-LCID: 1033 - Codepage: 65001 - Charset: UTF-8
-First of all, ASP Xtreme Evolution is based in some extensions, but don't worry -it's all free or open source and already comes with the package. Although, if you -want to check the original projects, here's a list of their sites:
-Unzip the entire zip package in your HD and upload it to your domain FTP.
-If the domain is not registered in the server yet, register it in IIS pointing it's root to the folder where default.asp is located. Don't forget to check "Run scripts (such as ASP)".
-If your server does not provide a default cgi-bin folder, create a virtual directory named "cgi-bin" in your domain root pointing to /lib/axe/bin. Don't forget to check "Execute (such as ISAPI applications or CGI)"; Otherwise, move the contents of /lib/axe/bin to your cgi-bin folder.
-Give only "Read and Write" permission to your /app/cache folder.
-Go to your site properties and in ISAPI Filters tab, click [Add]. Fill the box with the following data:
-
-Filter name: IIRF
-
-[Browse...] to /lib/axe/bin/IsapiRewrite4.dll
Yet in the site properties, go to the Custom Errors tab and look for 500;100 Default "Internal Server Error - ASP Error". Click [Edit...]
-
-Message type: URL
-
-URL: /app/views/error.asp
Go to your Web Service Extensions and Add the binaries that comes with the package. They are located at /lib/axe/bin and their names are:
-Notes:
-If your server does not support MSXML 6.0 yet, install it. It's available at: /lib/axe/bin/msxml6.msi
-Create an application pool for the application views.
-Set /app/views to the application pool created in step 9.
-That's it! Open a Web browser and type your domain. The "Welcome to ASP Xtreme Evolution" page should open.
-append: - ?reconfigure=true in the address bar
-append: - ?inspect=true in the address bar
-append:
- /defaultController/another in the address bar for a valid
- /Controller/action
example
append: - /foo/bar in the address bar for an internal error example
-Mmmm, I really don't have a track of the fixes 8'( but changed a lot of things -for sure.
-ASP Xtreme Evolution goal is to be a versatile MVC URL-Friendly base for Classic ASP applications with some additional features that are not ASP native. It should implement things that are common to most applications removing the pain of starting a new software and helping you to structure it so that you get things right from the beginning. Our key concepts are choice and freedom over limiting conventions, polyglotism, sustained quality, extensibility which we try to implement in a clean, maintainable and extensible way.
", _ - "" & axeInfo() & "
", _ - "LCID: " & Session.lcid & " - Codepage: " & Session.codepage & " - Charset: " & Response.charset & "
", _ - "append: ?reconfigure=true in the address bar
", _ - "append: ?inspect=true in the address bar
", _ - "append: /defaultController/another in the address bar for a valid /Controller/action
example
append: /foo/bar in the address bar for an internal error example
", _ - Parser.makeHtml( Core.loadTextFile( Server.mapPath("/lib/axe/docs/CHANGES.md") ) ), _ - "As you can see, just changing <action>
on the http://www.domain.com/<Controller>
/<action>
/<arguments[]>
address bar pattern, you call the <action>
method of <Controller>
passing the <arguments[]>
to it. This means you are ready for a spectacular experince with friendly URLs and MVC approach. Check below the easy source code of the standard pages of the framework:
A Controller processes and responds to events, typically user actions, and may invoke changes on the model.
-<%= Session("this").item("defaultController.source") %>-
A Model is the domain-specific representation of the information on which the application operates. Domain logic adds meaning to raw data (e.g., calculating whether today is the user's birthday, or the totals, taxes, and shipping charges for shopping cart items).
-<%= Session("this").item("defaultModel.source") %>-
A View renders the model into a form suitable for interaction, typically a user interface element. As you can see here, multiple views can exist for different purposes in the same Controller. This view is attached with an action which enables the AXE(ASP Xtreme Evolution) full power, returning XML representation in the Model and using XSLT to dinamically generate the output.
-<%= Session("this").item("defaultView.source") %>-
If you felt confused by the XML-XSLT pattern, you can use Models to bring raw data from databases and Views as HTML. It also tastes good!
-<%= Session("this").item("anotherView.source") %>-
{0} @ {1}
{2}{3}
" & AspError.line & "
"), ""), _
- iif(AspError.column > 0, (", column: " & AspError.column & ""), ""), _
- iif(AspError.source > "", "" & Server.htmlEncode(AspError.source) & "
", "") _
- ) _
- )
-end if
-set AspError = nothing
-
-%>
-
-
-
-
-
- An error occurred processing the page ( '<%= Request.ServerVariables("SCRIPT_NAME") & "' [" & Request.ServerVariables("REQUEST_METHOD") %>]
) you requested. Please see the details below for more information.
" & sVariable & " | " & vbNewLine - Response.write "" & Request.serverVariables(sVariable) & " | " & vbNewLine - Response.write "
---|
<% Response.write Core.printerFriendlyCode(Session("this").item("Output.xml")) %>-
<% Response.write Core.printerFriendlyCode(Session("this").item("Output.xslt")) %>-
<% Response.write Core.printerFriendlyCode(Session("this").item("Output.value")) %>-
dp.SyntaxHighlighter Version: {V}©2004-2007 Alex Gorbatchev. |
dp.SyntaxHighlighter Version: {V}©2004-2007 Alex Gorbatchev. |
", _
- " | ", _
- " ", _ - " | ", _ - " |
- ASP Xtreme Evolution after install defaultController. You should replace it with your own defaultController. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- ASP Xtreme Evolution after install defaultModel. You should replace it with your own defaultModel. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- ASP Xtreme Evolution after install defaultView. Views can be simple (x)html files if want it. You should remove it. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- ASP Xtreme Evolution after install defaultView. This view uses the prototyped DefaultModel.introduce() XML output to display the content using XSLT - which is our recommendation. You should replace it with your own defaultView. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- When a error occurs processing this framework, it will be storage in an array. This errors array is then verified and if something is there, this view will be triggered instead of the current requested view. It can also be used as the default 500;100 Internal Server Error. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- Use this view to dispatch the content assigned to “View.content”. Useful view for feeding XML and JSON directly from their models. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- Here we are initializing the timer, defining some constants to be used later and setting a flag requiring to load application.configure.asp. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- global.asa - | -- Here we are initializing the timer, defining some constants to be used later and setting a flag requiring to load application.configure.asp. - | -
- Functions - | -- |
- Application_onStart - | -- Define Application constants and load the config.xml data into application configuration. - | -
- Session_onStart - | -- In order to compute the execution time of a request, we need to start a timer. - | -
-Define Application constants and load the config.xml data into application configuration. --
-- -- sub Application_onStart - -
-In order to compute the execution time of a request, we need to start a timer. --
-- -- sub Session_onStart - -
- This view provide resources for developers to analyse the current data source, transformation and output which is being sent to the user. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- The main document, this is a gateway. All requests are handled here and only here. Used with IIRF, it provides a nice MVC architecture with URL-Rewriting logic. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- Here we are initializing the timer, defining some constants to be used later and setting a flag requiring to load application.configure.asp. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- global.asa - | -- Here we are initializing the timer, defining some constants to be used later and setting a flag requiring to load application.configure.asp. - | -
- Functions - | -- |
- Application_onStart - | -- Define Application constants and load the config.xml data into application configuration. - | -
- Session_onStart - | -- In order to compute the execution time of a request, we need to start a timer. - | -
-Define Application constants and load the config.xml data into application configuration. --
-- -- sub Application_onStart - -
-In order to compute the execution time of a request, we need to start a timer. --
-- -- sub Session_onStart - -
- It’s here where the config file is parsed. This is automatically executed in the first time the application runs, but you can send “?reconfigure=true” in the queryString to request a new execution. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-
- application. |
- - It’s here where the config file is parsed. - | -
- Functions - | -- |
- loadCommon - | -- Loads common application configurations. - | -
- loadCache - | -- Configures cache life time and items to be cached. - | -
-Loads common application configurations. --
-- -- --
-- -- sub loadCommon( - -- Xml - -- ) - -
-Configures cache life time and items to be cached. --
-- -- --
-- -- sub loadCache( - -- Xml - -- ) - -
- All asp pages should include this file. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- base.asp - | -- All asp pages should include this file. - | -
- Functions - | -- |
- axeInfo - | -- Prints information about the ASP Xtreme Evolution version and Server scripting engine. - | -
- iif - | -- |
- strsubstitute - | -- Mimics the string placeholders. - | -
- sanitize - | -- A generic sanitize function. - | -
- isOdd - | -- Checks if a natural is odd or not. - | -
- isEven - | -- Checks if a natural is even or not. - | -
- max - | -- Returns the number with the highest value of an array. - | -
- min - | -- Returns the number with the lowest value of an array. - | -
- floor - | -- Returns the value of a number rounded downwards to the nearest integer. - | -
- ceiling - | -- Returns the value of a number rounded upwards to the nearest integer. - | -
- hex2dec - | -- Converts a hexadecimal number into a decimal one. - | -
- dec2hex - | -- Converts a decimal number into a hexadecimal one. - | -
---
-- -- --
-- -- function iif( - -- expr, - -- -- - truepart, - -- -- - falsepart - -- ) - -
- (expression) - | -- The expression that is to be evaluated - | -
- (variant) - | -- Defines what the iif function returns if the evaluation of expression returns true - | -
- (variant) - | -- Defines what the iif function returns if the evaluation of expression returns false - | -
- (variant) - | -- truepart or falsepart - | -
-----Response.write iif((5 < 10), "Yes, it is", "No, it isn't") ' prints "Yes, it is" -Response.write iif((2 + 2 = 5), "Correct", "Wrong") ' prints "Wrong" --
---
-- -- --
-- -- function strsubstitute( - -- template, - -- -- - replacements - -- ) - -
- Mimics the string placeholders. -
-- (string) - | -- The string template with placeholders - | -
- (string[]) - | -- Replacements array - | -
- (string) - | -- parsed string - | -
-----Response.write( strsubstitute("{0} {1}", array("Hello", "World")) ) --
---
-- -- --
-- -- public function sanitize( - -- value, - -- -- - placeholders, - -- -- - replacements - -- ) - -
- A generic sanitize function. -
-- (string) - | -- The value to be sanitized - | -
- (string[]) - | -- Elements to be sanitized array - | -
- (string[]) - | -- Elements replacements array - | -
- (string) - | -- Sanitized string - | -
-----dim aWithAccent : aWithAccent = "àáâãäå" -Response.write( sanitize( aWithAccent, array("à", "á", "â", "ã", "ä", "å"), array("a", "a", "a", "a", "a", "a") ) ) --
---
-- -- --
-- -- function isOdd( - -- n - -- ) - -
- Checks if a natural is odd or not. -
-- (int) - | -- Integer - | -
- (boolean) - | -- true, if yes; false, otherwise - | -
-----Response.write isOdd(1) ' prints true -Response.write isOdd(2) ' prints false --
---
-- -- --
-- -- function isEven( - -- n - -- ) - -
- Checks if a natural is even or not. -
-- (int) - | -- Integer - | -
- (boolean) - | -- true, if yes; false, otherwise - | -
-----Response.write isEven(1) ' prints false -Response.write isEven(2) ' prints true --
---
-- -- --
-- -- function max( - -- a - -- ) - -
- Returns the number with the highest value of an array. -
-- (float[]) - | -- Decimals - | -
- (float) - | -- Maximum - | -
-----Response.write max(array(0,1,2,3,4)) ' prints 4 -Response.write max(array(5,6,7,8,9)) ' prints 9 --
---
-- -- --
-- -- function min( - -- a - -- ) - -
- Returns the number with the lowest value of an array. -
-- (float[]) - | -- Decimals - | -
- (float) - | -- Minimum - | -
-----Response.write min(array(0,1,2,3,4)) ' prints 0 -Response.write min(array(5,6,7,8,9)) ' prints 5 --
---
-- -- --
-- -- function floor( - -- n - -- ) - -
- Returns the value of a number rounded downwards to the nearest integer. -
-- (float) - | -- Decimal - | -
- (int) - | -- Nearest integer equal-or-less than Decimal - | -
-----Response.write floor(2.71828182) ' prints 2 -Response.write floor(3.14159265) ' prints 3 --
---
-- -- --
-- -- function ceiling( - -- n - -- ) - -
- Returns the value of a number rounded upwards to the nearest integer. -
-- (float) - | -- Decimal - | -
- (int) - | -- Nearest integer equal-or-greater than Decimal - | -
-----Response.write ceiling(2.71828182) ' prints 3 -Response.write ceiling(3.14159265) ' prints 4 --
---
-- -- --
-- -- function hex2dec( - -- value - -- ) - -
- Converts a hexadecimal number into a decimal one. -
-- (string) - | -- Hexadecimal - | -
- (int) - | -- Decimal - | -
-----Response.write hex2dec("FF") ' prints 255 -Response.write hex2dec("00") ' prints 0 --
---
-- -- --
-- -- function dec2hex( - -- value - -- ) - -
- Converts a decimal number into a hexadecimal one. -
-- (int) - | -- Decimal - | -
- (string) - | -- Hexadecimal - | -
-----Response.write dec2hex(255) ' prints "FF" -Response.write dec2hex(0) ' prints 0 --
-Prints information about the ASP Xtreme Evolution version and Server scripting engine. --
-- -- function axeInfo() - -
---
-- -- --
-- -- function iif( - -- expr, - -- -- - truepart, - -- -- - falsepart - -- ) - -
-Mimics the string placeholders. --
-- -- --
-- -- function strsubstitute( - -- template, - -- -- - replacements - -- ) - -
-A generic sanitize function. --
-- -- --
-- -- public function sanitize( - -- value, - -- -- - placeholders, - -- -- - replacements - -- ) - -
-Checks if a natural is odd or not. --
-- -- --
-- -- function isOdd( - -- n - -- ) - -
-Checks if a natural is even or not. --
-- -- --
-- -- function isEven( - -- n - -- ) - -
-Returns the number with the highest value of an array. --
-- -- --
-- -- function max( - -- a - -- ) - -
-Returns the number with the lowest value of an array. --
-- -- --
-- -- function min( - -- a - -- ) - -
-Returns the value of a number rounded downwards to the nearest integer. --
-- -- --
-- -- function floor( - -- n - -- ) - -
-Returns the value of a number rounded upwards to the nearest integer. --
-- -- --
-- -- function ceiling( - -- n - -- ) - -
-Converts a hexadecimal number into a decimal one. --
-- -- --
-- -- function hex2dec( - -- value - -- ) - -
-Converts a decimal number into a hexadecimal one. --
-- -- --
-- -- function dec2hex( - -- value - -- ) - -
- More basic math functions derived from the built-in ones. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-
- base. |
- - More basic math functions derived from the built-in ones. - | -
- Functions - | -- |
- sec - | -- Secant. - | -
- cosec - | -- Cosecant. - | -
- cotan - | -- Cotangent. - | -
- arcsin - | -- Inverse Sine. - | -
- arccos - | -- Inverse Cosine. - | -
- arcsec - | -- Inverse Secant. - | -
- arccosec - | -- Inverse Cosecant. - | -
- arccotan - | -- Inverse Cotangent. - | -
- hsin - | -- Hyperbolic Sine. - | -
- hcos - | -- Hyperbolic Cosine. - | -
- htan - | -- Hyperbolic Tangent. - | -
- hsec - | -- Hyperbolic Secant. - | -
- hcosec - | -- Hyperbolic Cosecant. - | -
- hcotan - | -- Hyperbolic Cotangent. - | -
- harcsin - | -- Inverse Hyperbolic Sine. - | -
- harccos - | -- Inverse Hyperbolic Cosine. - | -
- harctan - | -- Inverse Hyperbolic Tangent. - | -
- harcsec - | -- Inverse Hyperbolic Secant. - | -
- harccosec - | -- Inverse Hyperbolic Cosecant. - | -
- harccotan - | -- Inverse Hyperbolic Cotangent. - | -
- logN - | -- Logarithm to base N. - | -
-Secant. --
-- -- --
-- -- public function sec( - -- x - -- ) - -
-Cosecant. --
-- -- --
-- -- public function cosec( - -- x - -- ) - -
-Cotangent. --
-- -- --
-- -- public function cotan( - -- x - -- ) - -
-Inverse Sine. --
-- -- --
-- -- public function arcsin( - -- x - -- ) - -
-Inverse Cosine. --
-- -- --
-- -- public function arccos( - -- x - -- ) - -
-Inverse Secant. --
-- -- --
-- -- public function arcsec( - -- x - -- ) - -
-Inverse Cosecant. --
-- -- --
-- -- public function arccosec( - -- x - -- ) - -
-Inverse Cotangent. --
-- -- --
-- -- public function arccotan( - -- x - -- ) - -
-Hyperbolic Sine. --
-- -- --
-- -- public function hsin( - -- x - -- ) - -
-Hyperbolic Cosine. --
-- -- --
-- -- public function hcos( - -- x - -- ) - -
-Hyperbolic Tangent. --
-- -- --
-- -- public function htan( - -- x - -- ) - -
-Hyperbolic Secant. --
-- -- --
-- -- public function hsec( - -- x - -- ) - -
-Hyperbolic Cosecant. --
-- -- --
-- -- public function hcosec( - -- x - -- ) - -
-Hyperbolic Cotangent. --
-- -- --
-- -- public function hcotan( - -- x - -- ) - -
-Inverse Hyperbolic Sine. --
-- -- --
-- -- public function harcsin( - -- x - -- ) - -
-Inverse Hyperbolic Cosine. --
-- -- --
-- -- public function harccos( - -- x - -- ) - -
-Inverse Hyperbolic Tangent. --
-- -- --
-- -- public function harctan( - -- x - -- ) - -
-Inverse Hyperbolic Secant. --
-- -- --
-- -- public function harcsec( - -- x - -- ) - -
-Inverse Hyperbolic Cosecant. --
-- -- --
-- -- public function harccosec( - -- x - -- ) - -
-Inverse Hyperbolic Cotangent. --
-- -- --
-- -- public function harccotan( - -- x - -- ) - -
-Logarithm to base N. --
-- -- --
-- -- public function logN( - -- x, - -- -- - N - -- ) - -
- AXE(ASP Xtreme Evolution) implementation of Atom web feeds. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- AXE(ASP Xtreme Evolution) implementation of RSS 2.0 web feeds. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- rss.asp - | -- AXE(ASP Xtreme Evolution) implementation of RSS 2.0 web feeds. - | -
- RSS - | -- Really Simple Syndication Channel Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- title - | -- It’s how people refer to your service. - | -
- link - | -- The URL to the HTML website corresponding to the channel. - | -
- description - | -- Phrase or sentence describing the channel. - | -
- language - | -- This allows aggregators to group all Italian language sites, for example, on a single page. - | -
- copyright - | -- Copyright notice for content in the channel. - | -
- managingEditor - | -- Email address for person responsible for editorial content. - | -
- webMaster - | -- Email address for person responsible for technical issues relating to channel. - | -
- pubDate - | -- All date-times in RSS conform to the Date and Time Specification of http://asg.web.cmu.edu/rfc/rfc822.html, with the exception that the year may be expressed with two characters or four characters (four preferred). - | -
- lastBuildDate - | -- The last time the content of the channel changed. - | -
- Categories - | -- Specify one or more categories that the channel belongs to. - | -
- generator - | -- A string indicating the program used to generate the channel. - | -
- docs - | -- A URL that points to the documentation for the format used in the RSS file. - | -
- Cloud - | -- It specifies a web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1. - | -
- ttl - | -- It’s a number of minutes that indicates how long a channel can be cached before refreshing from the source. - | -
- Image - | -- Specifies a GIF, JPEG or PNG image that can be displayed with the channel. - | -
- TextInput - | -- The purpose of the <textInput> element is something of a mystery. - | -
- SkipHours - | -- An XML element that contains up to 24 <hour> sub-elements whose value is a number between 0 and 23, representing a time in GMT, when aggregators, if they support the feature, may not read the channel on hours listed in the skipHours element. - | -
- SkipDays - | -- An XML element that contains up to seven <day> sub-elements whose value is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday. - | -
- Items - | -- Specify one or more items that belongs to the channel. - | -
- Functions - | -- |
- toString - | -- Returns the RSS representation to be used inside <channel>. - | -
- RSS_Item - | -- Really Simple Syndication Item Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- title - | -- The title of the item. - | -
- link - | -- The URL of the item. - | -
- description - | -- The item synopsis. - | -
- author - | -- It’s the email address of the author of the item. - | -
- Categories - | -- Includes the item in one or more categories. - | -
- comments - | -- URL of a page for comments relating to the item. - | -
- Enclosure - | -- Describes a media object that is attached to the item. - | -
- Guid - | -- It’s a string that uniquely identifies the item. - | -
- pubDate - | -- Indicates when the item was published. - | -
- Source - | -- It’s value is the name of the RSS channel that the item came from, derived from it’s title. - | -
- Functions - | -- |
- toString - | -- Returns the item representation to be used inside <channel>. - | -
- RSS_Category - | -- Really Simple Syndication Category Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- domain - | -- A string that identifies a categorization taxonomy. - | -
- innerText - | -- The value of the category. - | -
- Functions - | -- |
- toString - | -- Returns the category representation to be used inside <channel> or <item>. - | -
- RSS_Cloud - | -- Really Simple Syndication Cloud Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- domain - | -- A list of urls of RSS files to be watched. - | -
- port - | -- The TCP port the workstation is listening on. - | -
- path - | -- The path to it’s responder. - | -
- procedure - | -- The name of the procedure that the cloud should call to notify the workstation of changes. - | -
- protocol - | -- A string indicating which protocol to use (xml-rpc or soap, case-sensitive) - | -
- Functions - | -- |
- toString - | -- Returns the cloud representation to be used inside <channel>. - | -
- RSS_Image - | -- Really Simple Syndication Image Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- url - | -- The URL of a GIF, JPEG or PNG image that represents the channel. - | -
- title - | -- Describes the image, it’s used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML. - | -
- link - | -- Is the URL of the site, when the channel is rendered, the image is a link to the site. - | -
- description - | -- Contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering. - | -
- width - | -- Indicates the width of the image in pixels(maximum value for width is 144). - | -
- height - | -- Indicates the height of the image in pixels(maximum value for width is 400). - | -
- Functions - | -- |
- toString - | -- Returns the image representation to be used inside <channel>. - | -
- RSS_TextInput - | -- Really Simple Syndication TextInput Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- title - | -- The label of the Submit button in the text input area. - | -
- description - | -- Explains the text input area. - | -
- name - | -- The name of the text object in the text input area. - | -
- link - | -- The URL of the CGI script that processes text input requests. - | -
- Functions - | -- |
- toString - | -- Returns the textInput representation to be used inside <channel>. - | -
- RSS_SkipHours - | -- Really Simple Syndication SkipHours Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- skip - | -- An array from 0 to 23 which indicates the hour to skip. - | -
- Functions - | -- |
- toString - | -- Returns the skipHours representation to be used inside <channel>. - | -
- RSS_SkipDays - | -- Really Simple Syndication SkipHours Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- skip - | -- An array from “Sunday” to “Saturday” which indicates the weekday to skip. - | -
- Functions - | -- |
- toString - | -- Returns the skipDays representation to be used inside <channel>. - | -
- RSS_Enclosure - | -- Really Simple Syndication Enclosure Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- url - | -- Where the enclosure is located. - | -
- length - | -- Length in bytes. - | -
- mime - | -- A standard MIME type. - | -
- Functions - | -- |
- toString - | -- Returns the enclosure representation to be used inside <item>. - | -
- RSS_Guid - | -- Really Simple Syndication Guid Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- isPermaLink - | -- isPermaLink is optional, it’s default value is true. - | -
- innerText - | -- The value of the guid. - | -
- Functions - | -- |
- toString - | -- Returns the guid representation to be used inside <item>. - | -
- RSS_Source - | -- Really Simple Syndication Source Model Abstraction. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- url - | -- Links to the XMLization of the source. - | -
- innerText - | -- The value of the source. - | -
- Functions - | -- |
- toString - | -- Returns the source representation to be used inside <item>. - | -
- Really Simple Syndication Channel Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org/feed/docs/rss2.html. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- title - | -- It’s how people refer to your service. - | -
- link - | -- The URL to the HTML website corresponding to the channel. - | -
- description - | -- Phrase or sentence describing the channel. - | -
- language - | -- This allows aggregators to group all Italian language sites, for example, on a single page. - | -
- copyright - | -- Copyright notice for content in the channel. - | -
- managingEditor - | -- Email address for person responsible for editorial content. - | -
- webMaster - | -- Email address for person responsible for technical issues relating to channel. - | -
- pubDate - | -- All date-times in RSS conform to the Date and Time Specification of http://asg.web.cmu.edu/rfc/rfc822.html, with the exception that the year may be expressed with two characters or four characters (four preferred). - | -
- lastBuildDate - | -- The last time the content of the channel changed. - | -
- Categories - | -- Specify one or more categories that the channel belongs to. - | -
- generator - | -- A string indicating the program used to generate the channel. - | -
- docs - | -- A URL that points to the documentation for the format used in the RSS file. - | -
- Cloud - | -- It specifies a web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1. - | -
- ttl - | -- It’s a number of minutes that indicates how long a channel can be cached before refreshing from the source. - | -
- Image - | -- Specifies a GIF, JPEG or PNG image that can be displayed with the channel. - | -
- TextInput - | -- The purpose of the <textInput> element is something of a mystery. - | -
- SkipHours - | -- An XML element that contains up to 24 <hour> sub-elements whose value is a number between 0 and 23, representing a time in GMT, when aggregators, if they support the feature, may not read the channel on hours listed in the skipHours element. - | -
- SkipDays - | -- An XML element that contains up to seven <day> sub-elements whose value is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday. - | -
- Items - | -- Specify one or more items that belongs to the channel. - | -
- Functions - | -- |
- toString - | -- Returns the RSS representation to be used inside <channel>. - | -
- This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element, as provided by Netscape (http://backend.userland.com
- [(string)] - | -- The language the channel is written in - | -
- All date-times in RSS conform to the Date and Time Specification of http://asg.web.cmu.edu/rfc/rfc822.html, with the exception that the year may be expressed with two characters or four characters (four preferred). -
-- [(string)] - | -- The publication date for the content in the channel - | -
- The purpose of the <textInput> element is something of a mystery. You can use it to specify a search engine box. Or to allow a reader to provide feedback. Most aggregators ignore it. -
-- [(string)] - | -- Specifies a text input box that can be displayed with the channel - | -
- An XML element that contains up to 24 <hour> sub-elements whose value is a number between 0 and 23, representing a time in GMT, when aggregators, if they support the feature, may not read the channel on hours listed in the skipHours element. -
-- [(RSS_SkipHours)] - | -- A hint for aggregators telling them which hours they can skip - | -
- An XML element that contains up to seven <day> sub-elements whose value is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday. Aggregators may not read the channel during days listed in the skipDays element. -
-- [(RSS_SkipDays)] - | -- A hint for aggregators telling them which days they can skip - | -
---
-- -- public function toString() - -
- Returns the RSS representation to be used inside <channel>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Item representation. - | -
-----dim Item_item : set Item_item = new RSS_Item -Item_item.title = "A Really Simple Syndication item" -Item_item.link = "http://www.domain.com/friendly-url-as-permalink" -Item_item.description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla cursus nisl vel purus tristique eget venenatis erat gravida. Praesent nisi arcu, placerat at adipiscing sit amet, auctor tempus enim." -Item_item.author = "name@domain.com (Your Name)" -Item_item.comments = "http://www.domain.com/friendly-url-as-permalink#comments" -Item_item.pubDate = "Sat, 22 August 2009 00:00:00 GMT" -Item_item.source = "http://www.domain.com/feed/?type=rss" - -dim Item_guid : set Item_guid = new RSS_Guid -Item_guid.isPermaLink = true -Item_guid.innerText = "http://www.domain.com/friendly-url-as-permalink" -set Item_item.guid = Item_guid -set Item_guid = nothing - -Response.write(Item_item.toString(0)) -set Item_item = nothing --
- Really Simple Syndication Item Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- A channel may contain any number of <item>s. An item may represent a “story” -- much like a story in a newspaper or magazine; if so it’s description is a synopsis of the story, and the link points to the full story. An item may also be complete in itself, if so, the description contains the text (entity-encoded HTML is allowed), and the link and title may be omitted. All elements of an item are optional, however at least one of title or description must be present. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- title - | -- The title of the item. - | -
- link - | -- The URL of the item. - | -
- description - | -- The item synopsis. - | -
- author - | -- It’s the email address of the author of the item. - | -
- Categories - | -- Includes the item in one or more categories. - | -
- comments - | -- URL of a page for comments relating to the item. - | -
- Enclosure - | -- Describes a media object that is attached to the item. - | -
- Guid - | -- It’s a string that uniquely identifies the item. - | -
- pubDate - | -- Indicates when the item was published. - | -
- Source - | -- It’s value is the name of the RSS channel that the item came from, derived from it’s title. - | -
- Functions - | -- |
- toString - | -- Returns the item representation to be used inside <channel>. - | -
- It’s the email address of the author of the item. For newspapers and magazines syndicating via RSS, the author is the person who wrote the article that the <item> describes. For collaborative weblogs, the author of the item might be different from the managing editor or webmaster. For a weblog authored by a single individual it would make sense to omit the author element. -
-- [(string)] - | -- Email address of the author of the item - | -
- Describes a media object that is attached to the item. It has three required attributes. url says where the enclosure is located, length says how big it is in bytes, and type says what it’s type is, a standard MIME type. -
-- [(RSS_Enclosure)] - | -- Describes a media object that is attached to the item - | -
- It’s a string that uniquely identifies the item. When present, an aggregator may choose to use this string to determine if an item is new. If the guid element has an attribute named “isPermaLink” with a value of true, the reader may assume that it is a permalink to the item, that is, a url that can be opened in a Web browser, that points to the full item described by the <item> element. -
-- [(RSS_Guid)] - | -- GUID stands for globally unique identifier - | -
- It’s value is the name of the RSS channel that the item came from, derived from it’s title. It has one required attribute, url, which links to the XMLization of the source. -
-- [(RSS_Source)] - | -- The RSS channel that the item came from - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the item representation to be used inside <channel>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Item representation. - | -
-----dim Item_item : set Item_item = new RSS_Item -Item_item.title = "A Really Simple Syndication item" -Item_item.link = "http://www.domain.com/friendly-url-as-permalink" -Item_item.description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla cursus nisl vel purus tristique eget venenatis erat gravida. Praesent nisi arcu, placerat at adipiscing sit amet, auctor tempus enim." -Item_item.author = "name@domain.com (Your Name)" -Item_item.comments = "http://www.domain.com/friendly-url-as-permalink#comments" -Item_item.pubDate = "Sat, 22 August 2009 00:00:00 GMT" -Item_item.source = "http://www.domain.com/feed/?type=rss" - -dim Item_guid : set Item_guid = new RSS_Guid -Item_guid.isPermaLink = true -Item_guid.innerText = "http://www.domain.com/friendly-url-as-permalink" -set Item_item.guid = Item_guid -set Item_guid = nothing - -Response.write(Item_item.toString(0)) -set Item_item = nothing --
- Really Simple Syndication Category Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- You may include as many category elements as you need to, for different domains, and to have an item cross-referenced in different parts of the same domain. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- domain - | -- A string that identifies a categorization taxonomy. - | -
- innerText - | -- The value of the category. - | -
- Functions - | -- |
- toString - | -- Returns the category representation to be used inside <channel> or <item>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the category representation to be used inside <channel> or <item>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Guid representation. - | -
-----dim Channel_category : set Channel_category = new RSS_Category -Channel_category.innerText = "Category" -Response.write(Channel_category.toString(0)) -set Channel_category = nothing --
- Really Simple Syndication Cloud Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- It specifies a web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1. -
-- It’s purpose is to allow processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds. -
-
- A full explanation of this element and the rssCloud interface is http://www.thetwowayweb.com
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- domain - | -- A list of urls of RSS files to be watched. - | -
- port - | -- The TCP port the workstation is listening on. - | -
- path - | -- The path to it’s responder. - | -
- procedure - | -- The name of the procedure that the cloud should call to notify the workstation of changes. - | -
- protocol - | -- A string indicating which protocol to use (xml-rpc or soap, case-sensitive) - | -
- Functions - | -- |
- toString - | -- Returns the cloud representation to be used inside <channel>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the cloud representation to be used inside <channel>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Cloud representation. - | -
-----dim Channel_cloud : set Channel_cloud = new RSS_Cloud -Channel_cloud.domain = "www.domain.com" -Channel_cloud.port = 80 -Channel_cloud.path = "/webservices" -Channel_cloud.procedure = "rssPleaseNotify" -Channel_cloud.protocol = "xml-rpc" -Response.write(Channel_cloud.toString(0)) -set Channel_cloud = nothing --
- Really Simple Syndication Image Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- url - | -- The URL of a GIF, JPEG or PNG image that represents the channel. - | -
- title - | -- Describes the image, it’s used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML. - | -
- link - | -- Is the URL of the site, when the channel is rendered, the image is a link to the site. - | -
- description - | -- Contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering. - | -
- width - | -- Indicates the width of the image in pixels(maximum value for width is 144). - | -
- height - | -- Indicates the height of the image in pixels(maximum value for width is 400). - | -
- Functions - | -- |
- toString - | -- Returns the image representation to be used inside <channel>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the image representation to be used inside <channel>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Image representation. - | -
-----dim Channel_image : set Channel_image = new RSS_Image -Channel_image.url = "http://www.domain.com/rss.png" -Channel_image.title = "alt attribute value" -Channel_image.link = "http://www.domain.com" -Response.write(Channel_image.toString(0)) -set Channel_image = nothing --
- Really Simple Syndication TextInput Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- The purpose of the <textInput> element is something of a mystery. You can use it to specify a search engine box. Or to allow a reader to provide feedback. Most aggregators ignore it. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- title - | -- The label of the Submit button in the text input area. - | -
- description - | -- Explains the text input area. - | -
- name - | -- The name of the text object in the text input area. - | -
- link - | -- The URL of the CGI script that processes text input requests. - | -
- Functions - | -- |
- toString - | -- Returns the textInput representation to be used inside <channel>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the textInput representation to be used inside <channel>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- TextInput representation. - | -
-----dim Channel_textInput : set Channel_textInput = new RSS_Category -Channel_textInput.title = "Submit" -Channel_textInput.description = "Please give your feedback" -Channel_textInput.name = "Feedback" -Channel_textInput.link = "http://www.domain.com/processTextInput/" -Response.write(Channel_textInput.toString(0)) -set Channel_textInput = nothing --
- Really Simple Syndication SkipHours Model Abstraction. Implementation based on w3.org definition at http://backend.userland.com
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- skip - | -- An array from 0 to 23 which indicates the hour to skip. - | -
- Functions - | -- |
- toString - | -- Returns the skipHours representation to be used inside <channel>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the skipHours representation to be used inside <channel>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- SkipHours representation. - | -
-----dim Channel_skipHours : set Channel_skipHours = new RSS_SkipHours -dim i : for i = 0 to 5 - Channel_skipHours.skip(i) = true -next -Response.write(Channel_skipHours.toString(0)) -set Channel_skipHours = nothing --
- Really Simple Syndication SkipHours Model Abstraction. Implementation based on w3.org definition at http://backend.userland.com
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- skip - | -- An array from “Sunday” to “Saturday” which indicates the weekday to skip. - | -
- Functions - | -- |
- toString - | -- Returns the skipDays representation to be used inside <channel>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the skipDays representation to be used inside <channel>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- SkipHours representation. - | -
-----dim Channel_skipDays : set Channel_skipDays = new RSS_SkipDays -Channel_skipDays.skip(0) = true -Channel_skipDays.skip(6) = true -Response.write(Channel_skipDays.toString(0)) -set Channel_skipDays = nothing --
- Really Simple Syndication Enclosure Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- url - | -- Where the enclosure is located. - | -
- length - | -- Length in bytes. - | -
- mime - | -- A standard MIME type. - | -
- Functions - | -- |
- toString - | -- Returns the enclosure representation to be used inside <item>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the enclosure representation to be used inside <item>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Enclosure representation. - | -
-----dim Item_enclosure : set Item_enclosure = new RSS_Enclosure -Item_enclosure.url = "http://www.domain.com/music.mp3" -Item_enclosure.length = 1024 -Item_enclosure.mime = "audio/mpeg" -Response.write(Item_enclosure.toString(0)) -set Item_enclosure = nothing --
- Really Simple Syndication Guid Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- Guid stands for globally unique identifier. It’s a string that uniquely identifies the item. When present, an aggregator may choose to use this string to determine if an item is new. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- isPermaLink - | -- isPermaLink is optional, it’s default value is true. - | -
- innerText - | -- The value of the guid. - | -
- Functions - | -- |
- toString - | -- Returns the guid representation to be used inside <item>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the guid representation to be used inside <item>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Guid representation. - | -
-----dim Item_guid : set Item_guid = new RSS_Guid -Item_guid.innerText = "http://www.domain.com/friendly-url-as-permalink" -Response.write(Item_guid.toString(0)) -set Item_guid = nothing --
- Really Simple Syndication Source Model Abstraction. Implementation based on w3.org definition at http://validator.w3.org
- The purpose of this element is to propogate credit for links, to publicize the sources of news items. It’s used in the post command in the Radio UserLand aggregator. It should be generated automatically when forwarding an item from an aggregator to a weblog authoring tool. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- url - | -- Links to the XMLization of the source. - | -
- innerText - | -- The value of the source. - | -
- Functions - | -- |
- toString - | -- Returns the source representation to be used inside <item>. - | -
---
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- Returns the source representation to be used inside <item>. -
-- (int) - | -- Initial indentation level - | -
- (string) - | -- Source representation. - | -
-----dim Item_source : set Item_source = new RSS_Source -Item_source.url = "http://www.domain.com/links.xml" -Item_source.innerText = "Domain Realm" -Response.write(Item_source.toString(0)) -set Item_source = nothing --
-Returns the RSS representation to be used inside channel. --
-- -- public function toString() - -
-Returns the item representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the category representation to be used inside channel or item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the cloud representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the image representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the textInput representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the skipHours representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the skipDays representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the enclosure representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the guid representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the source representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
- AXE(ASP Xtreme Evolution) implementation of CSV parser. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- AXE(ASP Xtreme Evolution) implementation of JSON parser. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- json.asp - | -- AXE(ASP Xtreme Evolution) implementation of JSON parser. - | -
- Json - | -- This Class goal is to provide a simple way to parse JSON (JavaScript Object Notation) data directly from vbscript. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- loadJson - | -- Since ASP Classes strangely doesn’t accept parameters at it’s initializa- tion. - | -
- getElement - | -- This function takes a dot separated path and look for the element value in the JSON. - | -
- setElement - | -- This subroutine augments the JSON by adding elements to it. - | -
- removeElement - | -- This subroutine removes a node from the object. - | -
- getChildNodes - | -- Look for all element child keys and enumerate them. - | -
- serialize - | -- Converts the object into a JSON string. - | -
- new_JsonEngine - | -- Private function used to create a new instance of the JsonEngine Class. - | -
- JsonEngine - | -- Since VBScript doesn’t provide a native method to handle JSON, this class makes the magic of wrapping JScript JSON to VBScript. - | -
- This Class goal is to provide a simple way to parse JSON (JavaScript Object Notation) data directly from vbscript. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- loadJson - | -- Since ASP Classes strangely doesn’t accept parameters at it’s initializa- tion. - | -
- getElement - | -- This function takes a dot separated path and look for the element value in the JSON. - | -
- setElement - | -- This subroutine augments the JSON by adding elements to it. - | -
- removeElement - | -- This subroutine removes a node from the object. - | -
- getChildNodes - | -- Look for all element child keys and enumerate them. - | -
- serialize - | -- Converts the object into a JSON string. - | -
- new_JsonEngine - | -- Private function used to create a new instance of the JsonEngine Class. - | -
---
-- -- --
-- -- public function getElement( - -- sPath - -- ) - -
- This function takes a dot separated path and look for the element value in the JSON. -
-- (string) - | -- Relative path from root - | -
- (string) - | -- The element value - | -
-----dim sJson, oJson - -sJson = join(array( _ -"{", _ -" 'hello' : 'Hello World !',", _ -" 'howdy' : 'How do you do ?',", _ -" 'fields' : {", _ -" 'one': 1,", _ -" 'two': 2,", _ -" 'three': 3,", _ -" 'four': [ 'one', 'two,three', 'four' ],", _ -" 'five': { 'one' : 'apple', 'two' : 'orange', 'three' : 'banana' }", _ -" }", _ -"};" _ -), vbNewLine) - -set oJson = new Json -oJson.loadJson(sJson) -Response.write(oJson.getElement("hello") & "<br />" & vbNewLine) -Response.write(oJson.getElement("howdy") & "<br />" & vbNewLine) -set oJson = nothing --
---
-- -- --
-- -- public sub setElement( - -- sPath, - -- -- - value - -- ) - -
- This subroutine augments the JSON by adding elements to it. -
------set oJson = new Json -oJson.loadJson("{}") - -call oJson.setElement("obj", "{'key':'value'}") -call oJson.setElement("arr", "[1,2,3,4]") -call oJson.setElement("str", "string") -call oJson.setElement("int", 1982) -call oJson.setElement("bool", true) -call oJson.setElement("obj.augment", "I'm augmenting the first setElement element XD") -Response.write(oJson.serialize("") & "<br />" & vbNewLine) - -set oJson = nothing --
---
-- -- --
-- -- public sub removeElement( - -- sPath - -- ) - -
- This subroutine removes a node from the object. -
------set oJson = new Json -oJson.loadJson("{}") - -call oJson.setElement("obj", "{'key':'value'}") -call oJson.setElement("arr", "[1,2,3,4]") -call oJson.setElement("str", "string") -call oJson.setElement("int", 1982) -call oJson.setElement("bool", true) -call oJson.setElement("obj.augment", "I'm augmenting the first setElement element XD") -Response.write(oJson.serialize("") & "<br />" & vbNewLine) - -call oJson.removeElement("obj.augment") -Response.write(oJson.serialize("") & "<br />" & vbNewLine) - -set oJson = nothing --
---
-- -- --
-- -- public function getChildNodes( - -- sPath - -- ) - -
- Look for all element child keys and enumerate them. -
-- (string) - | -- Path to the parent element relative to root. - | -
- (string[]) - | -- With the child keys - | -
-----dim sJson, oJson, key - -sJson = join(array( _ -"{", _ -" 'hello' : 'Hello World !',", _ -" 'howdy' : 'How do you do ?',", _ -" 'fields' : {", _ -" 'one': 1,", _ -" 'two': 2,", _ -" 'three': 3,", _ -" 'four': [ 'one', 'two,three', 'four' ],", _ -" 'five': { 'one' : 'apple', 'two' : 'orange', 'three' : 'banana' }", _ -" }", _ -"};" _ -), vbNewLine) - -set oJson = new Json -oJson.loadJson(sJson) -for each key in oJson.getChildNodes("") - Response.write(key & " : " & oJson.getElement(key) & "<br />" & vbNewLine) -next -set oJson = nothing --
---
-- -- --
-- -- public function serialize( - -- path - -- ) - -
- Converts the object into a JSON string. -
-- (string) - | -- starting path. “” means the entire object. - | -
- (string) - | -- a JSON string - | -
-----dim sJson, oJson, key - -sJson = join(array( _ -"{", _ -" 'hello' : 'Hello World !',", _ -" 'howdy' : 'How do you do ?',", _ -" 'fields' : {", _ -" 'one': 1,", _ -" 'two': 2,", _ -" 'three': 3,", _ -" 'four': [ 'one', 'two,three', 'four' ],", _ -" 'five': { 'one' : 'apple', 'two' : 'orange', 'three' : 'banana' }", _ -" },", _ -" 'boolean' : true", _ -"};" _ -), vbNewLine) - -set oJson = new Json -oJson.loadJson(sJson) -Response.write oJson.serialize("") -set oJson = nothing --
---
-- -- --
-- -- function new_JsonEngine( - -- sJson - -- ) - -
- Private function used to create a new instance of the JsonEngine Class. -
-- (string) - | -- The Json string representation - | -
- (object) - | -- The Json root. - | -
-Since ASP Classes strangely doesn’t accept parameters at it’s initializa- tion. --
-- -- --
-- -- public sub loadJson( - -- sJson - -- ) - -
-This function takes a dot separated path and look for the element value in the JSON. --
-- -- --
-- -- public function getElement( - -- sPath - -- ) - -
-This subroutine augments the JSON by adding elements to it. --
-- -- --
-- -- public sub setElement( - -- sPath, - -- -- - value - -- ) - -
-This subroutine removes a node from the object. --
-- -- --
-- -- public sub removeElement( - -- sPath - -- ) - -
-Look for all element child keys and enumerate them. --
-- -- --
-- -- public function getChildNodes( - -- sPath - -- ) - -
-Converts the object into a JSON string. --
-- -- --
-- -- public function serialize( - -- path - -- ) - -
-Private function used to create a new instance of the JsonEngine Class. --
-- -- --
-- -- function new_JsonEngine( - -- sJson - -- ) - -
- AXE(ASP Xtreme Evolution) JSON parser based on Douglas Crockford json2.js. -
-- This class is the result of Classic ASP JSON topic revisited by Fabio Zendhi Nagao (nagaozen). JSON2.ASP is a better option over JSON.ASP because it embraces the AXE philosophy of real collaboration over the languages. It works under the original json parser, so this class is strict in the standard rules, plus it brings more of the Javascript json feeling to other ASP languages (eg. no more oJson.getElement(“foo”) stuff, just oJson.foo and you get it). -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2010 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- json2.asp - | -- AXE(ASP Xtreme Evolution) JSON parser based on Douglas Crockford json2.js. - | -
- JSON - | -- JSON (Javascript Object Notation) is a lightweight data-interchange format. - | -
- Functions - | -- |
- parse - | -- This method parses a JSON text to produce an object or array. - | -
- stringify - | -- This method produces a JSON text from a Javascript value. - | -
- toXML - | -- This method produces a XML text from a Javascript value. - | -
- JSON (Javascript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the Javascript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, Javascript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language. -
-- This method parses a JSON text to produce an object or array. It can throw a SyntaxError exception. -
-- (string) - | -- Valid JSON text. - | -
- (mixed) - | -- a Javascript value, usually an object or array. - | -
-----dim Info : set Info = JSON.parse(join(array( _ - "{", _ - " ""firstname"": ""Fabio"",", _ - " ""lastname"": ""長尾"",", _ - " ""alive"": true,", _ - " ""age"": 27,", _ - " ""nickname"": ""nagaozen"",", _ - " ""fruits"": [", _ - " ""banana"",", _ - " ""orange"",", _ - " ""apple"",", _ - " ""papaya"",", _ - " ""pineapple""", _ - " ],", _ - " ""complex"": {", _ - " ""real"": 1,", _ - " ""imaginary"": 2", _ - " }", _ - "}" _ -))) - -Response.write(Info.firstname & vbNewline) ' prints Fabio -Response.write(Info.alive & vbNewline) ' prints True -Response.write(Info.age & vbNewline) ' prints 27 -Response.write(Info.fruits.get(0) & vbNewline) ' prints banana -Response.write(Info.fruits.get(1) & vbNewline) ' prints orange -Response.write(Info.complex.real & vbNewline) ' prints 1 -Response.write(Info.complex.imaginary & vbNewline) ' prints 2 - -' You can also enumerate object properties ... - -dim key : for each key in Info.keys() - Response.write( key & vbNewline ) -next - -' which prints: - -' firstname -' lastname -' alive -' age -' nickname -' fruits -' complex - -set Info = nothing --
- This method produces a JSON text from a Javascript value. -
-- (mixed) - | -- any Javascript value, usually an object or array. - | -
- (mixed) - | -- an optional parameter that determines how object values are stringified for objects. It can be a function or an array of strings. - | -
- (mixed) - | -- an optional parameter that specifies the indentation of nested structures. If it is omitted, the text will be packed without extra whitespace. If it is a number, it will specify the number of spaces to indent at each level. If it is a string (such as ‘\t’ or ‘ ’), it contains the characters used to indent at each level. - | -
- (string) - | -- a string that contains the serialized JSON text. - | -
-----dim Info : set Info = JSON.parse("{""firstname"":""Fabio"", ""lastname"":""長尾""}") -Info.set "alive", true -Info.set "age", 27 -Info.set "nickname", "nagaozen" -Info.set "fruits", array("banana","orange","apple","papaya","pineapple") -Info.set "complex", JSON.parse("{""real"":1, ""imaginary"":1}") - -Response.write( JSON.stringify(Info, null, 2) & vbNewline ) ' prints the text below: -'{ -' "firstname": "Fabio", -' "lastname": "長尾", -' "alive": true, -' "age": 27, -' "nickname": "nagaozen", -' "fruits": [ -' "banana", -' "orange", -' "apple", -' "papaya", -' "pineapple" -' ], -' "complex": { -' "real": 1, -' "imaginary": 1 -' } -'} - -set Info = nothing --
- This method produces a XML text from a Javascript value. -
-- (mixed) - | -- any Javascript value, usually an object or array. - | -
- (string) - | -- an optional parameter that determines what tag should be used as a container for the output. Defaults to none. - | -
- (string) - | -- a string that contains the serialized XML text. - | -
-----dim Info : set Info = JSON.parse("{""firstname"":""Fabio"", ""lastname"":""長尾""}") -Info.set "alive", true -Info.set "age", 27 -Info.set "nickname", "nagaozen" -Info.set "fruits", array("banana","orange","apple","papaya","pineapple") -Info.set "complex", JSON.parse("{""real"":1, ""imaginary"":1}") - -Response.write( JSON.toXML(Info) & vbNewline ) ' prints the text below: -'<firstname>Fabio</firstname> -'<lastname>長尾</lastname> -'<alive>true</alive> -'<age>27</age> -'<nickname>nagaozen</nickname> -'<fruits>banana</fruits> -'<fruits>orange</fruits> -'<fruits>apple</fruits> -'<fruits>papaya</fruits> -'<fruits>pineapple</fruits> -'<complex> -' <real>1</real> -' <imaginary>1</imaginary> -'</complex> - -set Info = nothing --
- AXE(ASP Xtreme Evolution) implementation of Markdown parser. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- markdown.asp - | -- AXE(ASP Xtreme Evolution) implementation of Markdown parser. - | -
- Markdown - | -- Markdown is a lightweight markup language, originally created by John Gruber and Aaron Swartz, which aims for maximum readability and “publishability” of both its input and output forms, taking many cues from existing conventions for marking up plain text in email. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- makeHtml - | -- Converts Markdown into XHTML. - | -
- Markdown is a lightweight markup language, originally created by John Gruber and Aaron Swartz, which aims for maximum readability and “publishability” of both its input and output forms, taking many cues from existing conventions for marking up plain text in email. Markdown converts its marked-up text input to valid, well-formed XHTML and replaces left-pointing angle brackets (‘<’) and ampersands with their corresponding character entity references. Markdown was originally implemented in Perl by Gruber. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- makeHtml - | -- Converts Markdown into XHTML. - | -
---
-- -- --
-- -- public function makeHtml( - -- text - -- ) - -
- Converts Markdown into XHTML. -
-- (string) - | -- markdown - | -
- (string) - | -- html - | -
-----dim sMarkdown : sMarkdown = "Markdown *rocks*." -dim Converter : set Converter = new Markdown - -Response.write Converter.makeHtml(sMarkdown) - -set Converter = nothing --
-Converts Markdown into XHTML. --
-- -- --
-- -- public function makeHtml( - -- text - -- ) - -
- AXE(ASP Xtreme Evolution) Orderly parser by Zach Carter. -
-- Orderly.ASP leverages javascript to implement, without any modification, Zach Carter’s orderly.js http://github.com/zaach/orderly.js. AXE documentation and examples inserted by Fabio Zendhi Nagao (nagaozen). -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2010 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- orderly.asp - | -- AXE(ASP Xtreme Evolution) Orderly parser by Zach Carter. - | -
- Orderly - | -- Orderly is an ergonomic micro-language that can represent a subset of JSONSchema. - | -
- Functions - | -- |
- parse - | -- This method parses an orderly source to build a javascript object which represents the subset of JSONSchema http://json-schema.org/ that Orderly is designed to return. - | -
- compile - | -- This method parses an orderly source to build a string representation of the javascript object which represents the subset of JSONSchema http://json-schema.org/ generated by Orderly. - | -
- Orderly is an ergonomic micro-language that can represent a subset of JSONSchema. Orderly is designed to feel familiar to the average programmer and to be extremely easy to learn and remember. -
-- Copyright © 2009 Zachary Carter -
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -
-- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -
-- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-- Functions - | -- |
- parse - | -- This method parses an orderly source to build a javascript object which represents the subset of JSONSchema http://json-schema.org/ that Orderly is designed to return. - | -
- compile - | -- This method parses an orderly source to build a string representation of the javascript object which represents the subset of JSONSchema http://json-schema.org/ generated by Orderly. - | -
- This method parses an orderly source to build a javascript object which represents the subset of JSONSchema http://json-schema.org/ that Orderly is designed to return. -
-- (string) - | -- Valid Orderly text. - | -
- (mixed) - | -- a JavaScript object. - | -
-----dim def : def = join(array( _ - "object {", _ - " string name;", _ - " string description?;", _ - " string homepage /^http:/;", _ - " integer {1500,3000} invented;", _ - "}*;" _ -), vbNewline) - -Response.write( typename(Orderly.parse(def)) )' prints JScriptTypeInfo --
- This method parses an orderly source to build a string representation of the javascript object which represents the subset of JSONSchema http://json-schema.org/ generated by Orderly. -
-- (string) - | -- Valid Orderly text. - | -
- (string) - | -- The stringified version of the JSONSchema subset. - | -
-----dim def : def = join(array( _ - "object {", _ - " string name;", _ - " string description?;", _ - " string homepage /^http:/;", _ - " integer {1500,3000} invented;", _ - "}*;" _ -), vbNewline) - -Response.write( Orderly.compile(def) )' prints the string below: - -' { -' "type": "object", -' "properties": { -' "name": { -' "type": "string" -' }, -' "description": { -' "type": "string", -' "optional": true -' }, -' "homepage": { -' "type": "string", -' "pattern": "^http:" -' }, -' "invented": { -' "type": "integer", -' "minimum": 1500, -' "maximum": 3000 -' } -' }, -' "additionalProperties": true -' } --
- AXE(ASP Xtreme Evolution) implementation of Textile parser. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- AXE(ASP Xtreme Evolution) implementation of MD5 cipher. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- md5.asp - | -- AXE(ASP Xtreme Evolution) implementation of MD5 cipher. - | -
- MD5 - | -- ASP VBScript code for generating an MD5 ‘digest’ or ‘signature’ of a string. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- encryptData - | -- Use this method to encrypt your data. - | -
- ASP VBScript code for generating an MD5 ‘digest’ or ‘signature’ of a string. The MD5 algorithm is one of the industry standard methods for generating digital signatures. It is generically known as a digest, digital signature, one-way encryption, hash or checksum algorithm. A common use for MD5 is for password encryption as it is one-way in nature, that does not mean that your passwords are not free from a dictionary attack. -
-- This is ‘free’ software with the following restrictions -
-- You may not redistribute this code as a ‘sample’ or ‘demo’. However, you are free to use the source code in your own code, but you may not claim that you created the sample code. It is expressly forbidden to sell or profit from this source code other than by the knowledge gained or the enhanced value added by your own code. -
-- Use of this software is also done so at your own risk. The code is supplied as is without warranty or guarantee of any kind. -
-- Should you wish to commission some derivative work based on this code provided here, or any consultancy work, please do not hesitate to contact us. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- encryptData - | -- Use this method to encrypt your data. - | -
---
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
- Use this method to encrypt your data. -
-- (string) - | -- Data to be encrypted - | -
- (string) - | -- Encrypted version of the input data - | -
-----dim message : message = "This is a very secret message" -dim Encryptor -set Encryptor = new MD5 -Response.write("Plain: " & message & "<br />") -Response.write("Encrypted: " & Encryptor.encryptData(message)) -set Encryptor = nothing --
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
- AXE(ASP Xtreme Evolution) implementation of Rijndael cipher. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- rijndael.asp - | -- AXE(ASP Xtreme Evolution) implementation of Rijndael cipher. - | -
- Rijndael - | -- Implementation of the AES Rijndael Block Cipher. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- encryptData - | -- Use this method to encrypt your data. - | -
- decryptData - | -- Use this method to decrypt your data. - | -
- string2bytes - | -- Convert strings into an array of bytes. - | -
- bytes2string - | -- Convert an array of bytes into strings. - | -
- bytes2hex - | -- Convert an array of bytes into it’s hex form. - | -
- hex2bytes(hex) - | -- Convert the hex form into an array of bytes - | -
- Implementation of the AES Rijndael Block Cipher. Inspired by Mike Scott’s implementation in C. -
-- This is ‘free’ software with the following restrictions -
-- You may not redistribute this code as a ‘sample’ or ‘demo’. However, you are free to use the source code in your own code, but you may not claim that you created the sample code. It is expressly forbidden to sell or profit from this source code other than by the knowledge gained or the enhanced value added by your own code. -
-- Use of this software is also done so at your own risk. The code is supplied as is without warranty or guarantee of any kind. -
-- Should you wish to commission some derivative work based on this code provided here, or any consultancy work, please do not hesitate to contact us. -
-- @2010.04.12 (1.0.0.0 -> 1.0.1.0) -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- encryptData - | -- Use this method to encrypt your data. - | -
- decryptData - | -- Use this method to decrypt your data. - | -
- string2bytes - | -- Convert strings into an array of bytes. - | -
- bytes2string - | -- Convert an array of bytes into strings. - | -
- bytes2hex - | -- Convert an array of bytes into it’s hex form. - | -
- hex2bytes(hex) - | -- Convert the hex form into an array of bytes - | -
---
-- -- --
-- -- public function encryptData( - -- bytMessage, - -- -- - bytPassword - -- ) - -
- Use this method to encrypt your data. -
-- (byte[]) - | -- Data to be encrypted - | -
- (byte[]) - | -- Password - | -
- (byte[]) - | -- Encrypted version of the input data - | -
-----dim sMessage : sMessage = "This is a very secret message" -dim sPassword : sPassword = "Password" - -dim E, byteMessage, bytePassword, encData -set E = new Rijndael -byteMessage = E.string2bytes(sMessage) -bytePassword = E.string2bytes(sPassword) -encData = E.encryptData( byteMessage, bytePassword ) - -Response.write( "Plain Text: " & sMessage & "<br />" ) -Response.write( "Encrypted Hex: " & E.bytes2hex( encData ) & "<br />") -set E = nothing --
---
-- -- --
-- -- public function decryptData( - -- bytIn, - -- -- - bytPassword - -- ) - -
- Use this method to decrypt your data. -
-- (byte[]) - | -- Data to be decrypted - | -
- (byte[]) - | -- Password - | -
- (byte[]) - | -- Encrypted version of the input data - | -
-----dim sMessage : sMessage = "This is a very secret message" -dim sPassword : sPassword = "Password" - -dim E, byteMessage, bytePassword, encData -set E = new Rijndael -byteMessage = E.string2bytes(sMessage) -bytePassword = E.string2bytes(sPassword) -encData = E.encryptData( byteMessage, bytePassword ) - -Response.write( "Plain Text: " & sMessage & "<br />" ) -Response.write( "Encrypted Hex: " & E.bytes2hex( encData ) & "<br />") -Response.write( "Decrypted: " & E.bytes2string( E.decryptData( encData , bytePassword ) ) ) -set E = nothing --
---
-- -- --
-- -- public function string2bytes( - -- string - -- ) - -
- Convert strings into an array of bytes. -
-- (string) - | -- Word or phrase to be converted - | -
- (byte[]) - | -- Converted data - | -
-----dim E, a, i : set E = new Rijndael -a = E.string2bytes("Lorem ipsum") -Response.write "[ " -for i = 0 to ubound(a) - Response.write( a(i) & " " ) -next -Response.write "]" -erase a -set E = nothing --
---
-- -- --
-- -- public function bytes2string( - -- bytes - -- ) - -
- Convert an array of bytes into strings. -
-- (byte[]) - | -- Byte array to be converted - | -
- (string) - | -- Converted data - | -
-----dim E : set E = new Rijndael -Response.write( E.bytes2string( E.string2bytes("Lorem ipsum") ) ) -set E = nothing --
---
-- -- --
-- -- public function bytes2hex( - -- bytes - -- ) - -
- Convert an array of bytes into it’s hex form. -
-- (byte[]) - | -- Byte array to be converted - | -
- (hex) - | -- Converted data - | -
-----dim E : set E = new Rijndael -Response.write( E.bytes2hex( E.string2bytes("Lorem ipsum") ) ) -set E = nothing --
---
-- -- --
-- -- public function hex2bytes( - -- hex - -- ) - -
- Convert the hex form into an array of bytes -
-- (hex) - | -- Data to be converted - | -
- (byte[]) - | -- Byte array - | -
-----dim E, a, i : set E = new Rijndael -a = E.hex2bytes("FF00") -Response.write "[ " -for i = 0 to ubound(a) - Response.write( a(i) & " " ) -next -Response.write "]" -erase a -set E = nothing --
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- bytMessage, - -- -- - bytPassword - -- ) - -
-Use this method to decrypt your data. --
-- -- --
-- -- public function decryptData( - -- bytIn, - -- -- - bytPassword - -- ) - -
-Convert strings into an array of bytes. --
-- -- --
-- -- public function string2bytes( - -- string - -- ) - -
-Convert an array of bytes into strings. --
-- -- --
-- -- public function bytes2string( - -- bytes - -- ) - -
-Convert an array of bytes into it’s hex form. --
-- -- --
-- -- public function bytes2hex( - -- bytes - -- ) - -
-Convert the hex form into an array of bytes --
-- -- --
-- -- public function hex2bytes( - -- hex - -- ) - -
- AXE(ASP Xtreme Evolution) implementation of SHA256 cipher. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- sha256.asp - | -- AXE(ASP Xtreme Evolution) implementation of SHA256 cipher. - | -
- SHA256 - | -- ASP VBScript code for generating a SHA256 ‘digest’ or ‘signature’ of a string. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- encryptData - | -- Use this method to encrypt your data. - | -
- ASP VBScript code for generating a SHA256 ‘digest’ or ‘signature’ of a string. The SHA256 algorithm is one of the industry standard methods for generating digital signatures. It is generically known as a digest, digital signature, one-way encryption, hash or checksum algorithm. A common use for SHA256 is for password encryption as it is one-way in nature, that does not mean that your passwords are not free from a dictionary attack. -
-- if you are using the routine for passwords, you can make it a little more secure by concatenating some known random characters to the password before you generate the signature and on subsequent tests, so even if a hacker knows you are using SHA-256 for your passwords, the random characters will make it harder to dictionary attack. -
-- Due to the way in which the string is processed the routine assumes a single byte character set. VB passes unicode (2-byte) character strings, the ConvertToWordArray function uses on the first byte for each character. This has been done this way for ease of use, to make the routine truely portable you could accept a byte array instead, it would then be up to the calling routine to make sure that the byte array is generated from their string in a manner consistent with the string type. -
-- This is ‘free’ software with the following restrictions -
-- You may not redistribute this code as a ‘sample’ or ‘demo’. However, you are free to use the source code in your own code, but you may not claim that you created the sample code. It is expressly forbidden to sell or profit from this source code other than by the knowledge gained or the enhanced value added by your own code. -
-- Use of this software is also done so at your own risk. The code is supplied as is without warranty or guarantee of any kind. -
-- Should you wish to commission some derivative work based on this code provided here, or any consultancy work, please do not hesitate to contact us. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- encryptData - | -- Use this method to encrypt your data. - | -
---
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
- Use this method to encrypt your data. -
-- (string) - | -- Data to be encrypted - | -
- (string) - | -- Encrypted version of the input data - | -
-----dim message : message = "This is a very secret message" -dim Encryptor -set Encryptor = new SHA256 -Response.write("Plain: " & message & "<br />") -Response.write("Encrypted: " & Encryptor.encryptData(message)) -set Encryptor = nothing --
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
- AXE(ASP Xtreme Evolution) implementation of Akismet web service. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- akismet.asp - | -- AXE(ASP Xtreme Evolution) implementation of Akismet web service. - | -
- Akismet - | -- This class allows any ASP 3.0 application to use the Akismet anti-comment spam service. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- wpApiKey - | -- WordPress API key. - | -
- blog - | -- Blog address. - | -
- comment - | -- User comment data. - | -
- Functions - | -- |
- initialize - | -- ASP Classes doesn’t have a constructor, so you must initialize the class manually. - | -
- setPermalink - | -- Set Akismet permalink parameter. - | -
- setCommentType - | -- Set Akismet comment_type parameter. - | -
- setCommentAuthor - | -- Set Akismet comment_author parameter. - | -
- setCommentAuthorEmail - | -- Set Akismet comment_author_email parameter. - | -
- setCommentAuthorUrl - | -- Set Akismet comment_author_url parameter. - | -
- setCommentContent - | -- Set Akismet comment_content parameter. - | -
- isSpam - | -- Test for spam. - | -
- submitSpam - | -- This call is for submitting comments that weren’t marked as spam but should have been. - | -
- submitHam - | -- This call is intended for the marking of false positives, things that were incorrectly marked as spam. - | -
- This class allows any ASP 3.0 application to use the Akismet anti-comment spam service. This service performs a number of checks on submitted data and returns whether or not the data is likely to be spam. Please note that in order to use this class, you must have a valid WordPress API key. They are free for non/small-profit types and getting one will only take couple of minutes. For commercial use, please visit the Akismet commercial licensing page. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- wpApiKey - | -- WordPress API key. - | -
- blog - | -- Blog address. - | -
- comment - | -- User comment data. - | -
- Functions - | -- |
- initialize - | -- ASP Classes doesn’t have a constructor, so you must initialize the class manually. - | -
- setPermalink - | -- Set Akismet permalink parameter. - | -
- setCommentType - | -- Set Akismet comment_type parameter. - | -
- setCommentAuthor - | -- Set Akismet comment_author parameter. - | -
- setCommentAuthorEmail - | -- Set Akismet comment_author_email parameter. - | -
- setCommentAuthorUrl - | -- Set Akismet comment_author_url parameter. - | -
- setCommentContent - | -- Set Akismet comment_content parameter. - | -
- isSpam - | -- Test for spam. - | -
- submitSpam - | -- This call is for submitting comments that weren’t marked as spam but should have been. - | -
- submitHam - | -- This call is intended for the marking of false positives, things that were incorrectly marked as spam. - | -
---
-- -- --
-- -- public sub initialize( - -- key, - -- -- - uri - -- ) - -
- ASP Classes doesn’t have a constructor, so you must initialize the class manually. -
-- (hex) - | -- Wordpress API key - | -
- (uri) - | -- Blog address - | -
-----dim SpamSentinel : set SpamSentinel = new Akismet -SpamSentinel.initialize "123456789abc", "http://blog.domain.com" -set SpamSentinel = nothing --
---
-- -- public function isSpam() - -
- Test for spam. -
-- true - | -- if Akismet thinks this post is a spam - | -
- false - | -- otherwise - | -
-----dim SpamSentinel : set SpamSentinel = new Akismet -SpamSentinel.initialize "123456789abc", "http://blog.domain.com" -SpamSentinel.setPermalink "http://blog.domain.com/entry-permalink/" -SpamSentinel.setCommentType "comment" -SpamSentinel.setCommentAuthor "Author" -SpamSentinel.setCommentAuthorEmail "author@isp.com" -SpamSentinel.setCommentAuthorUrl "http://author.isp.com" -SpamSentinel.setCommentContent "The content that was submit" -Response.write SpamSentinel.isSpam() -set SpamSentinel = nothing --
---
-- -- public function submitSpam() - -
- This call is for submitting comments that weren’t marked as spam but should have been. -
-- (string) - | -- Akismet Service message. Something like: “Thanks for making the web a better place.” - | -
-----dim SpamSentinel : set SpamSentinel = new Akismet -SpamSentinel.initialize "123456789abc", "http://blog.domain.com" -SpamSentinel.setPermalink "http://blog.domain.com/entry-permalink/" -SpamSentinel.setCommentType "comment" -SpamSentinel.setCommentAuthor "Author" -SpamSentinel.setCommentAuthorEmail "author@isp.com" -SpamSentinel.setCommentAuthorUrl "http://author.isp.com" -SpamSentinel.setCommentContent "The content that was submit" -Response.write SpamSentinel.submitSpam() -set SpamSentinel = nothing --
---
-- -- public function submitHam() - -
- This call is intended for the marking of false positives, things that were incorrectly marked as spam. -
-- (string) - | -- Akismet Service message. Something like: “Thanks for making the web a better place.” - | -
-----dim SpamSentinel : set SpamSentinel = new Akismet -SpamSentinel.initialize "123456789abc", "http://blog.domain.com" -SpamSentinel.setPermalink "http://blog.domain.com/entry-permalink/" -SpamSentinel.setCommentType "comment" -SpamSentinel.setCommentAuthor "Author" -SpamSentinel.setCommentAuthorEmail "author@isp.com" -SpamSentinel.setCommentAuthorUrl "http://author.isp.com" -SpamSentinel.setCommentContent "The content that was submit" -Response.write SpamSentinel.submitHam() -set SpamSentinel = nothing --
-ASP Classes doesn’t have a constructor, so you must initialize the class manually. --
-- -- --
-- -- public sub initialize( - -- key, - -- -- - uri - -- ) - -
-Set Akismet permalink parameter. --
-- -- --
-- -- public sub setPermalink( - -- value - -- ) - -
-Set Akismet comment_type parameter. --
-- -- --
-- -- public sub setCommentType( - -- value - -- ) - -
-Set Akismet comment_author parameter. --
-- -- --
-- -- public sub setCommentAuthor( - -- value - -- ) - -
-Set Akismet comment_author_email parameter. --
-- -- --
-- -- public sub setCommentAuthorEmail( - -- value - -- ) - -
-Set Akismet comment_author_url parameter. --
-- -- --
-- -- public sub setCommentAuthorUrl( - -- value - -- ) - -
-Set Akismet comment_content parameter. --
-- -- --
-- -- public sub setCommentContent( - -- value - -- ) - -
-Test for spam. --
-- -- public function isSpam() - -
-This call is for submitting comments that weren’t marked as spam but should have been. --
-- -- public function submitSpam() - -
-This call is intended for the marking of false positives, things that were incorrectly marked as spam. --
-- -- public function submitHam() - -
- AXE(ASP Xtreme Evolution) implementation of reCAPTCHA web service. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- recaptcha.asp - | -- AXE(ASP Xtreme Evolution) implementation of reCAPTCHA web service. - | -
- ReCaptcha - | -- Provides a client for the Carnegie Mellon University reCAPTCHA Web Service. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- domainName - | -- reCAPTCHA will only work on this domain and subdomains. - | -
- uriVerify - | -- The URL of the reCAPTCHA_verify.asp - | -
- publicKey - | -- reCAPTCHA provides a public key to be used in the javascript widget. - | -
- privateKey - | -- reCAPTCHA provides a private key to be used in the javascript widget. - | -
- theme - | -- Sets the interface theme. - | -
- lang - | -- Sets the interface language. - | -
- status - | -- reCAPTCHA verify returns a second information which is the status id. - | -
- Functions - | -- |
- insert - | -- Use this subroutine in the document body to insert the reCAPTCHA in your page. - | -
- verify - | -- Contacts the reCAPTCHA service and get it’s response. - | -
- Provides a client for the Carnegie Mellon University reCAPTCHA Web Service. Per the reCAPTCHA site, “reCAPTCHA is a free CAPTCHA service that helps to digitize books.” Each reCAPTCHA requires the user to input two words, the first of which is the actual captcha, and the second of which is a word from some scanned text that Optical Character Recognition (OCR) software has been unable to identifiy. The assumption is that if a user correctly provides the first word, the second is likely correctly entered as well, and can be used to improve OCR software for digitizing books. -
-- In order to use the reCAPTCHA service, you will need to sign up for an account and register one or more domains with the service in order to generate public and private keys. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- domainName - | -- reCAPTCHA will only work on this domain and subdomains. - | -
- uriVerify - | -- The URL of the reCAPTCHA_verify.asp - | -
- publicKey - | -- reCAPTCHA provides a public key to be used in the javascript widget. - | -
- privateKey - | -- reCAPTCHA provides a private key to be used in the javascript widget. - | -
- theme - | -- Sets the interface theme. - | -
- lang - | -- Sets the interface language. - | -
- status - | -- reCAPTCHA verify returns a second information which is the status id. - | -
- Functions - | -- |
- insert - | -- Use this subroutine in the document body to insert the reCAPTCHA in your page. - | -
- verify - | -- Contacts the reCAPTCHA service and get it’s response. - | -
- reCAPTCHA will only work on this domain and subdomains. -
-- (string) - | -- Your site domain (no “http://”) - | -
- reCAPTCHA provides a public key to be used in the javascript widget. If you don’t have one yet go get it at http://recaptcha.net/api/getkey. -
-- (string) - | -- Your public key - | -
- reCAPTCHA provides a private key to be used in the javascript widget. If you don’t have one yet go get it at http://recaptcha.net/api/getkey. -
-- (string) - | -- Your private key - | -
- reCAPTCHA verify returns a second information which is the status id. For more details, please visit http://recaptcha.net/apidocs/captcha/ -
-- (string) - | -- status - | -
---
-- -- public sub insert() - -
- Use this subroutine in the document body to insert the reCAPTCHA in your page. -
------dim Captcha : set Captcha = new ReCaptcha -Captcha.domainName = "<domain name>" -Captcha.uriVerify = "<reCAPTCHA_verify.asp URL>" -Captcha.publicKey = "<public key>" -Captcha.privateKey = "<private key>" - -call Captcha.insert() - -set Captcha = nothing --
---
-- -- --
-- -- public function verify( - -- sChallenge, - -- -- - sResponse - -- ) - -
- Contacts the reCAPTCHA service and get it’s response. -
-- (string) - | -- challenge hash - | -
- (string) - | -- user input - | -
- (boolean) - | -- true if the input is right, false otherwise - | -
-----dim Captcha : set Captcha = new ReCaptcha -Captcha.domainName = "<domain name>" -Captcha.uriVerify = "<reCAPTCHA_verify.asp URL>" -Captcha.publicKey = "<public key>" -Captcha.privateKey = "<private key>" - -if( Captcha.verify( cstr(Request.Form("challenge")), cstr(Request.Form("response")) ) ) then - Response.write("Human access") -else - Response.write("Robot access") -end if - -set Captcha = nothing --
-Use this subroutine in the document body to insert the reCAPTCHA in your page. --
-- -- public sub insert() - -
-Contacts the reCAPTCHA service and get it’s response. --
-- -- --
-- -- public function verify( - -- sChallenge, - -- -- - sResponse - -- ) - -
- AXE(ASP Xtreme Evolution) email adapter using CDO.Message. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2010 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- cdo.asp - | -- AXE(ASP Xtreme Evolution) email adapter using CDO.Message. - | -
- Email_Adapter_CDO - | -- This class provides an Email_Interface using Microsoft CDO.Message as it’s backend. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- [_getTo] - | -- Returns a csv version of receivers collection. - | -
- [_getCC] - | -- Returns a csv version of carbon copy receivers collection. - | -
- [_getBCC] - | -- Returns a csv version of blind carbon copy receivers collection collection. - | -
- send - | -- Sends an Email using CDO (Collaboration Data Objects), a Microsoft technology that simplify the creation of messaging applications. - | -
- This class provides an Email_Interface using Microsoft CDO.Message as it’s backend. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- [_getTo] - | -- Returns a csv version of receivers collection. - | -
- [_getCC] - | -- Returns a csv version of carbon copy receivers collection. - | -
- [_getBCC] - | -- Returns a csv version of blind carbon copy receivers collection collection. - | -
- send - | -- Sends an Email using CDO (Collaboration Data Objects), a Microsoft technology that simplify the creation of messaging applications. - | -
---
-- -- --
-- -- private function [_getTo]( - -- Email - -- ) - -
- Returns a csv version of receivers collection. -
-- (Email) - | -- An instance of Email class (id est an Email Object). - | -
- (string) - | -- serialized version of receivers collection - | -
---
-- -- --
-- -- private function [_getCC]( - -- Email - -- ) - -
- Returns a csv version of carbon copy receivers collection. -
-- (Email) - | -- An instance of Email class (id est an Email Object). - | -
- (string) - | -- serialized version of carbon copy receivers collection - | -
---
-- -- --
-- -- private function [_getBCC]( - -- Email - -- ) - -
- Returns a csv version of blind carbon copy receivers collection collection. -
-- (Email) - | -- An instance of Email class (id est an Email Object). - | -
- (string) - | -- serialized version of blind carbon copy receivers collection collection - | -
---
-- -- --
-- -- public sub sends( - -- Email - -- ) - -
- Sends an Email using CDO (Collaboration Data Objects), a Microsoft technology that simplify the creation of messaging applications. -
-- (Email) - | -- An instance of Email class (id est an Email Object). - | -
-Returns a csv version of receivers collection. --
-- -- --
-- -- private function [_getTo]( - -- Email - -- ) - -
-Returns a csv version of carbon copy receivers collection. --
-- -- --
-- -- private function [_getCC]( - -- Email - -- ) - -
-Returns a csv version of blind carbon copy receivers collection collection. --
-- -- --
-- -- private function [_getBCC]( - -- Email - -- ) - -
-Sends an Email using CDO (Collaboration Data Objects), a Microsoft technology that simplify the creation of messaging applications. --
-- -- --
-- -- public sub sends( - -- Email - -- ) - -
- AXE(ASP Xtreme Evolution) email object interface specification. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2010 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- interface.asp - | -- AXE(ASP Xtreme Evolution) email object interface specification. - | -
- Email_Interface - | -- Defines the common specifications required to implement a working adapter of Email class. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- send - | -- Procedure send is used to send an Email. - | -
- Defines the common specifications required to implement a working adapter of Email class. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- send - | -- Procedure send is used to send an Email. - | -
-Procedure send is used to send an Email. --
-- -- --
-- -- public sub send( - -- Email - -- ) - -
- AXE(ASP Xtreme Evolution) firephp adapter. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- firephp.asp - | -- AXE(ASP Xtreme Evolution) firephp adapter. - | -
- Logger_Adapter_FirePHP - | -- This class leverages FirePHP protocol to send logs directly to Firebug. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- [_ι] - | -- Current log index - | -
- encoding - | -- Text encoding - | -
- Functions - | -- |
- [_μ] - | -- Maps Logger types to FirePHP types. - | -
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
- This class leverages FirePHP protocol to send logs directly to Firebug. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- [_ι] - | -- Current log index - | -
- encoding - | -- Text encoding - | -
- Functions - | -- |
- [_μ] - | -- Maps Logger types to FirePHP types. - | -
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
---
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
- Add a filter that will be applied before writing the message in this adapter. -
-- (mixed[]) - | -- array defining the filter - | -
- ([RegExp]) - | -- Skips the log operation if a test for the regular expression returns false - | -
- ([Number, Operator]) - | -- Skips the log operation based on the priority defined by Number and Operator. - | -
- ([String, ...]) - | -- Skips the log operation for the types listed in this array - | -
-Maps Logger types to FirePHP types. --
-- -- --
-- -- private function [_μ]( - -- tp - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- byval - -- message, - -- -- - - -- tp - -- ) - -
- AXE(ASP Xtreme Evolution) response stream adapter. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- response.asp - | -- AXE(ASP Xtreme Evolution) response stream adapter. - | -
- Logger_Adapter_Response - | -- nagaozen Logger_Adapter_Response - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
- nagaozen Logger_Adapter_Response -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
---
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
- Add a filter that will be applied before writing the message in this adapter. -
-- (mixed[]) - | -- array defining the filter - | -
- ([RegExp]) - | -- Skips the log operation if a test for the regular expression returns false - | -
- ([Number, Operator]) - | -- Skips the log operation based on the priority defined by Number and Operator. - | -
- ([String, ...]) - | -- Skips the log operation for the types listed in this array - | -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
- AXE(ASP Xtreme Evolution) text file adapter. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- text.asp - | -- AXE(ASP Xtreme Evolution) text file adapter. - | -
- Logger_Adapter_Text - | -- This class enables Logger to write messages into text files. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- path - | -- File System physical path - | -
- encoding - | -- Text encoding - | -
- Functions - | -- |
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
- This class enables Logger to write messages into text files. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- path - | -- File System physical path - | -
- encoding - | -- Text encoding - | -
- Functions - | -- |
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
---
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
- Add a filter that will be applied before writing the message in this adapter. -
-- (mixed[]) - | -- array defining the filter - | -
- ([RegExp]) - | -- Skips the log operation if a test for the regular expression returns false - | -
- ([Number, Operator]) - | -- Skips the log operation based on the priority defined by Number and Operator. - | -
- ([String, ...]) - | -- Skips the log operation for the types listed in this array - | -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
- AXE(ASP Xtreme Evolution) Logger interface definition. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- interface.asp - | -- AXE(ASP Xtreme Evolution) Logger interface definition. - | -
- Logger_Interface - | -- Defines the common specifications required to implement a working adapter of Logger class. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Priorities - | -- Scripting.Dictionary holding available log priorities. - | -
- [_Filters] - | -- Filters blocks a message from being written to the log. - | -
- Functions - | -- |
- [_ρ] - | -- Accepts only protected calls - | -
- [_compare] - | -- Compares two numbers by an order operator. - | -
- [isAcceptable] - | -- Check with Filters if a message can be logged. - | -
- [addFilter] - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
- Defines the common specifications required to implement a working adapter of Logger class. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Priorities - | -- Scripting.Dictionary holding available log priorities. - | -
- [_Filters] - | -- Filters blocks a message from being written to the log. - | -
- Functions - | -- |
- [_ρ] - | -- Accepts only protected calls - | -
- [_compare] - | -- Compares two numbers by an order operator. - | -
- [isAcceptable] - | -- Check with Filters if a message can be logged. - | -
- [addFilter] - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Adapter writing routine - | -
- Scripting.Dictionary holding available log priorities. The built-in priorities are the same available at BSD syslog http://tools.ietf.org/html/rfc3164. -
-- (Scripting.Dictionary) - | -- Built-in priorities - | -
- (EMERG) - | -- Emergency: system is unusable. Priority 0 - | -
- (ALERT) - | -- Alert: action must be taken immediately. Priority 1 - | -
- (CRIT) - | -- Critical: critical conditions. Priority 2 - | -
- (ERROR) - | -- Error: error conditions. Priority 3 - | -
- (WARN) - | -- Warning: warning conditions. Priority 4 - | -
- (NOTICE) - | -- Notice: normal but significant condition. Priority 5 - | -
- (INFO) - | -- Informational: informational messages. Priority 6 - | -
- (DEBUG) - | -- Debug: debug messages. Priority 7 - | -
---
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
- Compares two numbers by an order operator. -
-- (number) - | -- left side of comparison - | -
- (number) - | -- right side of comparison - | -
- (string) - | -- operator - | -
- (boolean) - | -- true, if the comparison is true; false, otherwise - | -
---
-- -- --
-- -- public function [isAcceptable]( - -- message, - -- -- - tp - -- ) : call [_ρ] - -
- Check with Filters if a message can be logged. -
-- (string) - | -- message - | -
- (string) - | -- type - | -
- (boolean) - | -- true, if acceptable; false, otherwise - | -
---
-- -- --
-- -- public sub [addFilter]( - -- mixed - -- ) : call [_ρ] - -
- Add a filter that will be applied before writing the message in this adapter. -
-- (mixed[]) - | -- array defining the filter - | -
- ([RegExp]) - | -- Tests the message against a regular expression and accept it if true. - | -
- ([Number, Operator]) - | -- Accepts only the priorities in the range created by the number and operator. - | -
- ([String, ...]) - | -- Accepts only the types listed in the array - | -
-Accepts only protected calls --
-- -- private sub [_ρ]() - -
-Compares two numbers by an order operator. --
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
-Check with Filters if a message can be logged. --
-- -- --
-- -- public function [isAcceptable]( - -- message, - -- -- - tp - -- ) : call [_ρ] - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub [addFilter]( - -- mixed - -- ) : call [_ρ] - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
- AXE(ASP Xtreme Evolution) translator object interface specification. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2010 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- interface.asp - | -- AXE(ASP Xtreme Evolution) translator object interface specification. - | -
- Translator_Interface - | -- Defines the common specifications required to implement a working adapter of Translator class. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- getText - | -- Fetch for the translation of the message in the right language. - | -
- Defines the common specifications required to implement a working adapter of Translator class. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- getText - | -- Fetch for the translation of the message in the right language. - | -
---
-- -- --
-- -- public default function getText( - -- lang, - -- -- - message - -- ) - -
- Fetch for the translation of the message in the right language. -
-- (lang) - | -- An identificator for the word/phrase. - | -
- (message) - | -- An identificator for the word/phrase. - | -
- (string) - | -- translated message - | -
-Fetch for the translation of the message in the right language. --
-- -- --
-- -- public default function getText( - -- lang, - -- -- - message - -- ) - -
- AXE(ASP Xtreme Evolution) implementation of ACL(Access Control List) utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- AXE(ASP Xtreme Evolution) implementation of authentication utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- AXE(ASP Xtreme Evolution) base64 utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- base64.asp - | -- AXE(ASP Xtreme Evolution) base64 utility. - | -
- Base64 - | -- Base64 is a way of representing binary data using alphanumeric characters only, usually used for transmitting binary over a text channel such as email, xml and json. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- getBinary - | -- Fetch for a binary in the given path and return its value as a Stream. - | -
- encode - | -- Converts a binary into a base64 data. - | -
- decode - | -- Converts base64 into a binary data. - | -
- encodedSize - | -- Computes the size of the base64 data in Kilobytes (KB). - | -
- decodedSize - | -- Computes the size of the binary data in Kilobytes (KB). - | -
- Base64 is a way of representing binary data using alphanumeric characters only, usually used for transmitting binary over a text channel such as email, xml and json. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- getBinary - | -- Fetch for a binary in the given path and return its value as a Stream. - | -
- encode - | -- Converts a binary into a base64 data. - | -
- decode - | -- Converts base64 into a binary data. - | -
- encodedSize - | -- Computes the size of the base64 data in Kilobytes (KB). - | -
- decodedSize - | -- Computes the size of the binary data in Kilobytes (KB). - | -
---
-- -- --
-- -- public function getBinary( - -- path - -- ) - -
- Fetch for a binary in the given path and return its value as a Stream. -
-- (string) - | -- Binary full path location - | -
- (application/octet-stream) - | -- Binary data - | -
-----dim Translator : set Translator = new Base64 -Response.contentType = "image/jpeg" -Response.binaryWrite( Translator.getBinary( Server.mapPath("apple-ipod-touch.jpg") ) ) -set Translator = nothing --
---
-- -- --
-- -- public function encode( - -- bin - -- ) - -
- Converts a binary into a base64 data. -
-- (bytearray) - | -- Data to encode - | -
- (base64) - | -- Encoded data - | -
-----dim encoded, Translator : set Translator = new Base64 -encoded = Translator.encode( Translator.getBinary( Server.mapPath("apple-ipod-touch.jpg") ) ) -Response.write(encoded) -set Translator = nothing --
---
-- -- --
-- -- public function decode( - -- base64 - -- ) - -
- Converts base64 into a binary data. -
-- (base64) - | -- Data do decode - | -
- (bytearray) - | -- Decoded data - | -
-----dim encoded, decoded, Translator - -set Translator = new Base64 -encoded = Translator.encode( Translator.getBinary( Server.mapPath("apple-ipod-touch.jpg") ) ) -decoded = Translator.decode( encoded ) -Response.contentType = "image/jpeg" -Response.binaryWrite( decoded ) -set Translator = nothing --
---
-- -- --
-- -- public function encodedSize( - -- base64 - -- ) - -
- Computes the size of the base64 data in Kilobytes (KB). -
-- (base64) - | -- Encoded data - | -
- (float) - | -- Data size - | -
-----dim encoded, Translator : set Translator = new Base64 -encoded = Translator.encode( Translator.getBinary( Server.mapPath("image.jpg") ) ) -Response.write(Translator.encodedSize(encoded) & " KB") -set Translator = nothing --
---
-- -- --
-- -- public function decodedSize( - -- bin - -- ) - -
- Computes the size of the binary data in Kilobytes (KB). -
-- (bytearray) - | -- Binary data - | -
- (float) - | -- Data size - | -
-----dim encoded, decoded, Translator - -set Translator = new Base64 -encoded = Translator.encode( Translator.getBinary( Server.mapPath("apple-ipod-touch.jpg") ) ) -decoded = Translator.decode( encoded ) -Response.write(Translator.decodedSize(decoded) & " KB") -set Translator = nothing --
-Fetch for a binary in the given path and return its value as a Stream. --
-- -- --
-- -- public function getBinary( - -- path - -- ) - -
-Converts a binary into a base64 data. --
-- -- --
-- -- public function encode( - -- bin - -- ) - -
-Converts base64 into a binary data. --
-- -- --
-- -- public function decode( - -- base64 - -- ) - -
-Computes the size of the base64 data in Kilobytes (KB). --
-- -- --
-- -- public function encodedSize( - -- base64 - -- ) - -
-Computes the size of the binary data in Kilobytes (KB). --
-- -- --
-- -- public function decodedSize( - -- bin - -- ) - -
- AXE(ASP Xtreme Evolution) color utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- color.asp - | -- AXE(ASP Xtreme Evolution) color utility. - | -
- Color - | -- This class makes color manipulation a very fun task. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- invert - | -- Inverts the color. - | -
- mix - | -- Mix two or more colors. - | -
- rgb2hex - | -- Converts RGB to HEX. - | -
- hex2rgb - | -- Converts HEX to RGB - | -
- rgb2hsb - | -- Converts RGB to HSB. - | -
- hsb2rgb - | -- Converts HSB to RGB - | -
- hex2hsb - | -- Converts HEX to HSB - | -
- hsb2hex - | -- Converts HSB to HEX - | -
- This class makes color manipulation a very fun task. It can mix, invert and convert colors between Hexadecimal, RGB and HSB. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- invert - | -- Inverts the color. - | -
- mix - | -- Mix two or more colors. - | -
- rgb2hex - | -- Converts RGB to HEX. - | -
- hex2rgb - | -- Converts HEX to RGB - | -
- rgb2hsb - | -- Converts RGB to HSB. - | -
- hsb2rgb - | -- Converts HSB to RGB - | -
- hex2hsb - | -- Converts HEX to HSB - | -
- hsb2hex - | -- Converts HSB to HEX - | -
---
-- -- --
-- -- public function invert( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
- Inverts the color. -
-- (int) - | -- red - | -
- (int) - | -- green - | -
- (int) - | -- blue - | -
- (int[]) - | -- [red, green, blue] - | -
-----dim Converter : set Converter = new Color -Response.write join(Converter.invert(51, 102, 153), ",") ' prints 204,153,102 -set Converter = nothing --
---
-- -- --
-- -- public function mix( - -- base, - -- -- - colors, - -- -- - percentage - -- ) - -
- Mix two or more colors. -
-- (int[]) - | -- base RGB color - | -
- (int[][]) - | -- array with colors in RGB to be mixed - | -
- (int) - | -- number between [0,100] which is the amount of the colors to be mixed. - | -
- (int[]) - | -- Mixed color - | -
-----dim Converter : set Converter = new Color -Response.write join(Converter.mix(array(0,0,0), array(Color.hex2rgb("FFF"), Color.hex2rgb("F0F")), 10), ",") ' prints 49,23,49 -set Converter = nothing --
---
-- -- --
-- -- function rgb2hex( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
- Converts RGB to HEX. -
-- (int) - | -- red - | -
- (int) - | -- green - | -
- (int) - | -- blue - | -
- (string) - | -- Hexadecimal representation with 6 digits - | -
-----dim Converter : set Converter = new Color -Response.write Converter.rgb2hex(51, 102, 153) ' prints 336699 -set Converter = nothing --
---
-- -- --
-- -- function hex2rgb( - -- sharp - -- ) - -
- Converts HEX to RGB -
-- (string) - | -- Hexadecimal representation (both FFFFFF and FFF) - | -
- (int[]) - | -- [red, green, blue] - | -
-----dim Converter : set Converter = new Color -Response.write join(Converter.hex2rgb("336699"), ",") ' prints 51,102,153 -set Converter = nothing --
---
-- -- --
-- -- function rgb2hsb( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
- Converts RGB to HSB. -
-- (int) - | -- red - | -
- (int) - | -- green - | -
- (int) - | -- blue - | -
- (int[]) - | -- [hue, saturation, brightness] - | -
-----dim Converter : set Converter = new Color -Response.write Converter.rgb2hsb(51, 102, 153) ' prints 210,67,60 -set Converter = nothing --
---
-- -- --
-- -- function hsb2rgb( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
- Converts HSB to RGB -
-- (int) - | -- hue - | -
- (int) - | -- saturation - | -
- (int) - | -- brightness - | -
- (int[]) - | -- [red, green, blue] - | -
-----dim Converter : set Converter = new Color -Response.write Converter.hsb2rgb(210,67,60) ' prints 50,102,153 -set Converter = nothing --
---
-- -- --
-- -- public function hex2hsb( - -- sharp - -- ) - -
- Converts HEX to HSB -
-- (string) - | -- Hexadecimal representation (both FFFFFF and FFF) - | -
- (int[]) - | -- [hue, saturation, brightness] - | -
-----dim Converter : set Converter = new Color -Response.write Converter.hex2hsb("336699") ' prints 210,67,60 -set Converter = nothing --
---
-- -- --
-- -- public function hsb2hex( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
- Converts HSB to HEX -
-- (int) - | -- hue - | -
- (int) - | -- saturation - | -
- (int) - | -- brightness - | -
- (string) - | -- Hexadecimal representation with 6 digits - | -
-----dim Converter : set Converter = new Color -Response.write Converter.hsb2hex(210,67,60) ' prints 336699 -set Converter = nothing --
-Inverts the color. --
-- -- --
-- -- public function invert( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
-Mix two or more colors. --
-- -- --
-- -- public function mix( - -- base, - -- -- - colors, - -- -- - percentage - -- ) - -
-Converts RGB to HEX. --
-- -- --
-- -- function rgb2hex( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
-Converts HEX to RGB --
-- -- --
-- -- function hex2rgb( - -- sharp - -- ) - -
-Converts RGB to HSB. --
-- -- --
-- -- function rgb2hsb( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
-Converts HSB to RGB --
-- -- --
-- -- function hsb2rgb( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
-Converts HEX to HSB --
-- -- --
-- -- public function hex2hsb( - -- sharp - -- ) - -
-Converts HSB to HEX --
-- -- --
-- -- public function hsb2hex( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
- AXE(ASP Xtreme Evolution) email utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- email.asp - | -- AXE(ASP Xtreme Evolution) email utility. - | -
- Email - | -- Conceptual email object. - | -
- Properties and Functions - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Adapter - | -- Email_Interface implementation - | -
- [_ε] - | -- Checks for an adapter assignment. - | -
- from - | -- From field is used to indicate source or origin. - | -
- Tos - | -- This collection is used to populate the email to field. - | -
- Ccs - | -- This collection is used to populate the email carbon copy field. - | -
- Bccs - | -- This collection is used to populate the email blind carbon copy field. - | -
- subject - | -- Email subject, theme, topic... - | -
- body - | -- Email body. - | -
- isHTML - | -- Switch to turn on/off the HTML body mode. - | -
- Attachments - | -- This collection is used to hold the fully qualified file name of the attachments. - | -
- addTo - | -- Adds an email to the receivers collection. - | -
- removeTo - | -- Removes an email from the receivers collection. - | -
- addCC - | -- Adds an email to the carbon copy receivers collection. - | -
- removeCC - | -- Removes an email from the carbon copy receivers collection. - | -
- addBCC - | -- Adds an email to the blind carbon copy receivers collection. - | -
- removeBCC - | -- Removes an email from the blind carbon copy receivers collection. - | -
- addAttachment - | -- Adds a fully qualified file name to the attachments collection. - | -
- removeAttachment - | -- Removes a fully qualified file name to the attachments collection. - | -
- send - | -- Procedure send is used to send an Email. - | -
- Conceptual email object. -
-- Properties and Functions - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Adapter - | -- Email_Interface implementation - | -
- [_ε] - | -- Checks for an adapter assignment. - | -
- from - | -- From field is used to indicate source or origin. - | -
- Tos - | -- This collection is used to populate the email to field. - | -
- Ccs - | -- This collection is used to populate the email carbon copy field. - | -
- Bccs - | -- This collection is used to populate the email blind carbon copy field. - | -
- subject - | -- Email subject, theme, topic... - | -
- body - | -- Email body. - | -
- isHTML - | -- Switch to turn on/off the HTML body mode. - | -
- Attachments - | -- This collection is used to hold the fully qualified file name of the attachments. - | -
- addTo - | -- Adds an email to the receivers collection. - | -
- removeTo - | -- Removes an email from the receivers collection. - | -
- addCC - | -- Adds an email to the carbon copy receivers collection. - | -
- removeCC - | -- Removes an email from the carbon copy receivers collection. - | -
- addBCC - | -- Adds an email to the blind carbon copy receivers collection. - | -
- removeBCC - | -- Removes an email from the blind carbon copy receivers collection. - | -
- addAttachment - | -- Adds a fully qualified file name to the attachments collection. - | -
- removeAttachment - | -- Removes a fully qualified file name to the attachments collection. - | -
- send - | -- Procedure send is used to send an Email. - | -
---
-- -- public sub send() : call [_ε] - -
- Procedure send is used to send an Email. -
------dim Eml : set Eml = new Email -set Eml.Adapter = new Email_Adapter_CDO -Eml.from = "sender@domain.com" -Eml.addTo("receiver@domain.com") -Eml.subject = "Email subject" -Eml.body = "Hello World" -Eml.isHTML = false -call Eml.send() -set Eml = nothing --
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Adds an email to the receivers collection. --
-- -- --
-- -- public sub addTo( - -- email - -- ) - -
-Removes an email from the receivers collection. --
-- -- --
-- -- public sub removeTo( - -- email - -- ) - -
-Adds an email to the carbon copy receivers collection. --
-- -- --
-- -- public sub addCC( - -- email - -- ) - -
-Removes an email from the carbon copy receivers collection. --
-- -- --
-- -- public sub removeCC( - -- email - -- ) - -
-Adds an email to the blind carbon copy receivers collection. --
-- -- --
-- -- public sub addBCC( - -- email - -- ) - -
-Removes an email from the blind carbon copy receivers collection. --
-- -- --
-- -- public sub removeBCC( - -- email - -- ) - -
-Adds a fully qualified file name to the attachments collection. --
-- -- --
-- -- public sub addAttachment( - -- path - -- ) - -
-Removes a fully qualified file name to the attachments collection. --
-- -- --
-- -- public sub removeAttachment( - -- path - -- ) - -
-Procedure send is used to send an Email. --
-- -- public sub send() : call [_ε] - -
- AXE(ASP Xtreme Evolution) image utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- image.asp - | -- AXE(ASP Xtreme Evolution) image utility. - | -
- Image - | -- This class intends to help people use the Imager in an easy way. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- imagerUri - | -- This should be the URI to Imager.dll including http:// etc. - | -
- image - | -- Full path to the image. - | -
- width - | -- Target width. - | -
- height - | -- Target height. - | -
- compression - | -- Target compression. - | -
- output - | -- Output format. - | -
- originalWidth - | -- Original width. - | -
- originalHeight - | -- Original height. - | -
- autoRotate - | -- Use the autorotate function? - | -
- whitespace - | -- Use the whitespace function? - | -
- bgColor - | -- 6 letter HEX color code used for whitespace/rotation functions. - | -
- rotation - | -- The amount of degrees to rotate the image. - | -
- processExif - | -- Extract EXIF data? - | -
- processBinary - | -- Return binary data? - | -
- forceNewCache - | -- Force the creation of a new file in the cache? - | -
- useQueryString - | -- Append the current querystring to the dll? - | -
- errorCode - | -- Error code from the query. - | -
- errorText - | -- Error description. - | -
- Xml - | -- XML Dom object which holds the returned xml. - | -
- Functions - | -- |
- go - | -- Executes the request to the application to retrieve the XML data. - | -
- saveToFile - | -- Saves the image to a path specified by path. - | -
- getExif - | -- Extract EXIF(EXchangeable Image Format) data from the Xml. - | -
- getBinary - | -- Extract binary data from the Xml. - | -
- getMime - | -- Extract MimeType from the Xml. - | -
- getFilename - | -- Extract filename from the imageinfo in Xml. - | -
- This class intends to help people use the Imager in an easy way. Imager brings some very useful image manipulations like resizing, stretching, rotating to asp. Then the result can be used directly from the memory or saved to the hard drive. You can also use it to retrieve image properties like width, height. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- imagerUri - | -- This should be the URI to Imager.dll including http:// etc. - | -
- image - | -- Full path to the image. - | -
- width - | -- Target width. - | -
- height - | -- Target height. - | -
- compression - | -- Target compression. - | -
- output - | -- Output format. - | -
- originalWidth - | -- Original width. - | -
- originalHeight - | -- Original height. - | -
- autoRotate - | -- Use the autorotate function? - | -
- whitespace - | -- Use the whitespace function? - | -
- bgColor - | -- 6 letter HEX color code used for whitespace/rotation functions. - | -
- rotation - | -- The amount of degrees to rotate the image. - | -
- processExif - | -- Extract EXIF data? - | -
- processBinary - | -- Return binary data? - | -
- forceNewCache - | -- Force the creation of a new file in the cache? - | -
- useQueryString - | -- Append the current querystring to the dll? - | -
- errorCode - | -- Error code from the query. - | -
- errorText - | -- Error description. - | -
- Xml - | -- XML Dom object which holds the returned xml. - | -
- Functions - | -- |
- go - | -- Executes the request to the application to retrieve the XML data. - | -
- saveToFile - | -- Saves the image to a path specified by path. - | -
- getExif - | -- Extract EXIF(EXchangeable Image Format) data from the Xml. - | -
- getBinary - | -- Extract binary data from the Xml. - | -
- getMime - | -- Extract MimeType from the Xml. - | -
- getFilename - | -- Extract filename from the imageinfo in Xml. - | -
- This should be the URI to Imager.dll including http:// etc. -
-- (string) - | -- URI - | -
---
-- -- --
-- -- public function saveToFile( - -- path, - -- -- - overwrite - -- ) - -
- Saves the image to a path specified by path. -
-- (string) - | -- Path to write the file - | -
- (boolean) - | -- Overwrite true|false - | -
- true - | -- if the save was successful - | -
- false - | -- otherwise - | -
-----dim oImage -set oImage = new Image -oImage.imagerUri = "http://localhost/cgi-bin/Imager.dll" -oImage.image = Server.mapPath("image.png") -oImage.width = 88 -oImage.height = 88 -oImage.compression = 88 -oImage.output = ".jpg" -oImage.whitespace = true -oImage.bgColor = "FFFFFF" -oImage.rotation = 15 -call oImage.go() -if(oImage.ErrorCode <> 0) then - Response.write("<strong>Error:</strong> " & oImage.errorText) - Response.end -end if -if(not oImage.saveToFile(Server.mapPath("saved/image.jpg"), true)) then - Response.write(oImage.errorText) - Response.end -else - Response.write("Saved") -end if -set oImage = nothing --
---
-- -- public function getExif() - -
- Extract EXIF(EXchangeable Image Format) data from the Xml. -
-- (scripting.dictionary) - | -- With the extracted EXIF data - | -
-----dim oImage, Exif, sItem -set oImage = new Image -oImage.imagerUri = "http://localhost/cgi-bin/Imager.dll" -oImage.image = Server.mapPath("image.png") -call oImage.go() -if(oImage.errorCode <> 0) then - Response.write("<strong>Error:</strong> " & oImage.errorText) - Response.end -end if -set Exif = oImage.getExif() -for each sItem in Exif - Response.write(sItem & " : " & Exif.item(sItem) & "<br />") -next -set Exif = nothing -set oImage = nothing --
---
-- -- public function getMime() - -
- Extract MimeType from the Xml. -
-- (string) - | -- Mimetype of the image - | -
-----dim oImage -set oImage = new Image -oImage.imagerUri = "http://localhost/cgi-bin/Imager.dll" -oImage.image = Server.mapPath("image.png") -call oImage.go() -if(oImage.errorCode <> 0) then - Response.write("<strong>Error:</strong> " & oImage.errorText) - Response.end -end if -Response.write(oImage.getMime()) -set oImage = nothing --
---
-- -- public function getFilename() - -
- Extract filename from the imageinfo in Xml. -
-- (string) - | -- Filename of the image - | -
-----dim oImage -set oImage = new Image -oImage.imagerUri = "http://localhost/cgi-bin/Imager.dll" -oImage.image = Server.mapPath("image.png") -call oImage.go() -if(oImage.errorCode <> 0) then - Response.write("<strong>Error:</strong> " & oImage.errorText) - Response.end -end if -Response.write(oImage.getFilename()) -set oImage = nothing --
-Executes the request to the application to retrieve the XML data. --
-- -- public sub go() - -
-Saves the image to a path specified by path. --
-- -- --
-- -- public function saveToFile( - -- path, - -- -- - overwrite - -- ) - -
-Extract EXIF(EXchangeable Image Format) data from the Xml. --
-- -- public function getExif() - -
-Extract binary data from the Xml. --
-- -- public function getBinary() - -
-Extract MimeType from the Xml. --
-- -- public function getMime() - -
-Extract filename from the imageinfo in Xml. --
-- -- public function getFilename() - -
- AXE(ASP Xtreme Evolution) list utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- list.asp - | -- AXE(ASP Xtreme Evolution) list utility. - | -
- List - | -- This is an enhanced implementation of a doubly-linked list. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- count - | -- Nodes count. - | -
- Head - | -- List head reference. - | -
- Foot - | -- List foot referece. - | -
- Functions - | -- |
- unshift - | -- Adds one element to the beginning of the list and returns the new length. - | -
- shift - | -- Removes and returns the first element of the list. - | -
- push - | -- Adds one element to the end of the list and returns the new length. - | -
- pop - | -- Removes and returns the last element of the list. - | -
- search - | -- Returns an element based on the result of the assert. - | -
- remove - | -- Removes an element based on the result of the assert. - | -
- List_Node - | -- Node implementation for a Doubly Linked List with sentinels. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- data - | -- Node content - | -
- pPrev - | -- Previous node reference. - | -
- pNext - | -- Next node reference. - | -
- hasPrev - | -- Informs if you can keep going backwards from the current node. - | -
- hasNext - | -- Informs if you can keep going forward from the current node. - | -
- This is an enhanced implementation of a doubly-linked list. It features additional methods which turns to be very useful to make queues, stacks, dynamic allocation arrays and others. -
-- In a doubly-linked list, each node contains, besides the next-node link, a second link field pointing to the previous node in the sequence. The two links may be called forward(s) and backwards. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- count - | -- Nodes count. - | -
- Head - | -- List head reference. - | -
- Foot - | -- List foot referece. - | -
- Functions - | -- |
- unshift - | -- Adds one element to the beginning of the list and returns the new length. - | -
- shift - | -- Removes and returns the first element of the list. - | -
- push - | -- Adds one element to the end of the list and returns the new length. - | -
- pop - | -- Removes and returns the last element of the list. - | -
- search - | -- Returns an element based on the result of the assert. - | -
- remove - | -- Removes an element based on the result of the assert. - | -
---
-- -- --
-- -- public function unshift( - -- Node - -- ) - -
- Adds one element to the beginning of the list and returns the new length. -
-- (List_Node) - | -- Element to be inserted - | -
- (int) - | -- The current number of elements - | -
-----dim L : set L = new List - -dim Node : set Node = new List_node -Node.data = "Hello World" -Response.write(L.unshift(Node)) ' prints 1 -set Node = nothing - -Response.write(L.Head.pNext.data) ' prints "Hello World" -Response.write(L.Head.pNext.hasNext) ' prints false - -set L = nothing --
---
-- -- public function shift() - -
- Removes and returns the first element of the list. -
-- (List_Node) - | -- Removed element - | -
-----dim L : set L = new List - -dim Node : set Node = new List_node -Node.data = "Hello World" -L.unshift(Node) -Response.write(L.shift().data) ' prints "Hello World" -Response.write(L.count) ' prints 0 -set Node = nothing - -set L = nothing --
---
-- -- --
-- -- public function push( - -- Node - -- ) - -
- Adds one element to the end of the list and returns the new length. -
-- (List_Node) - | -- Element to be inserted - | -
- (int) - | -- The current number of elements - | -
-----dim L : set L = new List - -dim Node : set Node = new List_node -Node.data = "Hello World" -Response.write(L.push(Node)) ' prints 1 -set Node = nothing - -Response.write(L.Head.pNext.data) ' prints "Hello World" -Response.write(L.Head.pNext.hasNext) ' prints false - -set L = nothing --
---
-- -- public function pop() - -
- Removes and returns the last element of the list. -
-- (int) - | -- The current number of elements - | -
-----dim L : set L = new List - -dim Node : set Node = new List_node -Node.data = "Hello World" -L.unshift(Node) -Response.write(L.pop().data) ' prints "Hello World" -Response.write(L.count) ' prints 0 -set Node = nothing - -set L = nothing --
---
-- -- --
-- -- public function search( - -- assert - -- ) - -
- Returns an element based on the result of the assert. -
-- (assert|string) - | -- Assert function or Assert function name - | -
- (List_Node) - | -- Matching Node - | -
-----dim L : set L = new List - -dim Node : set Node = new List_node -Node.data = "Hello World" -Response.write(L.push(Node)) ' prints 1 -set Node = nothing - -function helloWorldDetector(Node) - helloWorldDetector = false - if(Node.data = "Hello World") then helloWorldDetector = true -end function - -Response.write( L.search("helloWorldDetector").data ) - -set L = nothing --
---
-- -- --
-- -- public function remove( - -- assert - -- ) - -
- Removes an element based on the result of the assert. -
-- (assert|string) - | -- Assert function or Assert function name - | -
- (int) - | -- The current number of elements - | -
-----dim L : set L = new List - -dim Node : set Node = new List_node -Node.data = "Hello World" -Response.write(L.push(Node)) ' prints 1 -set Node = nothing - -function helloWorldDetector(Node) - helloWorldDetector = false - if(Node.data = "Hello World") then helloWorldDetector = true -end function - -Response.write( L.remove("helloWorldDetector") ) - -set L = nothing --
- Node implementation for a Doubly Linked List with sentinels. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- data - | -- Node content - | -
- pPrev - | -- Previous node reference. - | -
- pNext - | -- Next node reference. - | -
- hasPrev - | -- Informs if you can keep going backwards from the current node. - | -
- hasNext - | -- Informs if you can keep going forward from the current node. - | -
-Adds one element to the beginning of the list and returns the new length. --
-- -- --
-- -- public function unshift( - -- Node - -- ) - -
-Removes and returns the first element of the list. --
-- -- public function shift() - -
-Adds one element to the end of the list and returns the new length. --
-- -- --
-- -- public function push( - -- Node - -- ) - -
-Removes and returns the last element of the list. --
-- -- public function pop() - -
-Returns an element based on the result of the assert. --
-- -- --
-- -- public function search( - -- assert - -- ) - -
-Removes an element based on the result of the assert. --
-- -- --
-- -- public function remove( - -- assert - -- ) - -
- AXE(ASP Xtreme Evolution) log utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- logger.asp - | -- AXE(ASP Xtreme Evolution) log utility. - | -
- Logger - | -- Logger is a component for general purpose logging. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Priorities - | -- Scripting.Dictionary holding available log priorities. - | -
- [_Adapters] - | -- In order to really write the messages somewhere, Log requires adapters implementing Logger_Interface specifying how and where to write the data coming through this class. - | -
- [_Filters] - | -- Filters blocks a message from being written to the log. - | -
- [_τ] - | -- Template instance to handle the string formating. - | -
- Functions - | -- |
- [_ε] - | -- Checks for an adapter assignment. - | -
- [_compare] - | -- Compares two numbers by an order operator. - | -
- [_isAcceptable] - | -- Check with Filters if a message can be logged. - | -
- addAdapter - | -- Pushes a new Logger_Interface adapter to Adapters list - | -
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Main writing routine - | -
- emerg - | -- Logs an emergency - | -
- alert - | -- Logs an alert - | -
- critical - | -- Logs a critical - | -
- error - | -- Logs an error - | -
- warn - | -- Logs a warning - | -
- notice - | -- Logs a notice - | -
- info - | -- Logs a info - | -
- debug - | -- Logs a debug - | -
- Logger is a component for general purpose logging. It supports multiple log backends and filtering messages from being logged. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Priorities - | -- Scripting.Dictionary holding available log priorities. - | -
- [_Adapters] - | -- In order to really write the messages somewhere, Log requires adapters implementing Logger_Interface specifying how and where to write the data coming through this class. - | -
- [_Filters] - | -- Filters blocks a message from being written to the log. - | -
- [_τ] - | -- Template instance to handle the string formating. - | -
- Functions - | -- |
- [_ε] - | -- Checks for an adapter assignment. - | -
- [_compare] - | -- Compares two numbers by an order operator. - | -
- [_isAcceptable] - | -- Check with Filters if a message can be logged. - | -
- addAdapter - | -- Pushes a new Logger_Interface adapter to Adapters list - | -
- addFilter - | -- Add a filter that will be applied before writing the message in this adapter. - | -
- write - | -- Main writing routine - | -
- emerg - | -- Logs an emergency - | -
- alert - | -- Logs an alert - | -
- critical - | -- Logs a critical - | -
- error - | -- Logs an error - | -
- warn - | -- Logs a warning - | -
- notice - | -- Logs a notice - | -
- info - | -- Logs a info - | -
- debug - | -- Logs a debug - | -
- Scripting.Dictionary holding available log priorities. The built-in priorities are the same available at BSD syslog http://tools.ietf.org/html/rfc3164. -
-- (Scripting.Dictionary) - | -- Built-in priorities - | -
- (EMERG) - | -- Emergency: system is unusable. Priority 0 - | -
- (ALERT) - | -- Alert: action must be taken immediately. Priority 1 - | -
- (CRIT) - | -- Critical: critical conditions. Priority 2 - | -
- (ERROR) - | -- Error: error conditions. Priority 3 - | -
- (WARN) - | -- Warning: warning conditions. Priority 4 - | -
- (NOTICE) - | -- Notice: normal but significant condition. Priority 5 - | -
- (INFO) - | -- Informational: informational messages. Priority 6 - | -
- (DEBUG) - | -- Debug: debug messages. Priority 7 - | -
---
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
- Compares two numbers by an order operator. -
-- (number) - | -- left side of comparison - | -
- (number) - | -- right side of comparison - | -
- (string) - | -- operator - | -
- (boolean) - | -- true, if the comparison is true; false, otherwise - | -
---
-- -- --
-- -- private function [_isAcceptable]( - -- message, - -- -- - tp - -- ) - -
- Check with Filters if a message can be logged. -
-- (string) - | -- message - | -
- (string) - | -- type - | -
- (boolean) - | -- true, if acceptable; false, otherwise - | -
---
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
- Add a filter that will be applied before writing the message in this adapter. -
-- (mixed[]) - | -- array defining the filter - | -
- ([RegExp]) - | -- Tests the message against a regular expression and accept it if true. - | -
- ([Number, Operator]) - | -- Accepts only the priorities in the range created by the number and operator. - | -
- ([String, ...]) - | -- Accepts only the types listed in the array - | -
---
-- -- --
-- -- public sub write( - -- message, - -- -- - arguments, - -- -- - tp - -- ) : call [_ε] - -
- Main writing routine -
-- (string) - | -- message with/without placeholders - | -
- (string[]) - | -- replacements - | -
- (string) - | -- log type - | -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Compares two numbers by an order operator. --
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
-Check with Filters if a message can be logged. --
-- -- --
-- -- private function [_isAcceptable]( - -- message, - -- -- - tp - -- ) - -
-Pushes a new Logger_Interface adapter to Adapters list --
-- -- --
-- -- public sub addAdapter( - -- Adapter - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Main writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - arguments, - -- -- - tp - -- ) : call [_ε] - -
-Logs an emergency --
-- -- --
-- -- public sub emerg( - -- message, - -- -- - arguments - -- ) - -
-Logs an alert --
-- -- --
-- -- public sub alert( - -- message, - -- -- - arguments - -- ) - -
-Logs a critical --
-- -- --
-- -- public sub critical( - -- message, - -- -- - arguments - -- ) - -
-Logs an error --
-- -- --
-- -- public sub error( - -- message, - -- -- - arguments - -- ) - -
-Logs a warning --
-- -- --
-- -- public sub warn( - -- message, - -- -- - arguments - -- ) - -
-Logs a notice --
-- -- --
-- -- public sub notice( - -- message, - -- -- - arguments - -- ) - -
-Logs a info --
-- -- --
-- -- public sub info( - -- message, - -- -- - arguments - -- ) - -
-Logs a debug --
-- -- --
-- -- public sub debug( - -- message, - -- -- - arguments - -- ) - -
- AXE(ASP Xtreme Evolution) paginator utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- paginator.asp - | -- AXE(ASP Xtreme Evolution) paginator utility. - | -
- Paginator - | -- Paginator is a very useful class to create general purpose page indexes. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- all - | -- The text to be used as “View all” in the index. - | -
- prv - | -- The text to be used as “Previous” in the index. - | -
- nxt - | -- The text to be used as “Next” in the index. - | -
- visibles - | -- The number of indexes visible except First, Selected and Last. - | -
- page - | -- The index of the current page. - | -
- pages - | -- The number of pages. - | -
- url - | -- The url template to be used in the index anchors. - | -
- Functions - | -- |
- make - | -- Builds the index - | -
- Paginator is a very useful class to create general purpose page indexes. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- all - | -- The text to be used as “View all” in the index. - | -
- prv - | -- The text to be used as “Previous” in the index. - | -
- nxt - | -- The text to be used as “Next” in the index. - | -
- visibles - | -- The number of indexes visible except First, Selected and Last. - | -
- page - | -- The index of the current page. - | -
- pages - | -- The number of pages. - | -
- url - | -- The url template to be used in the index anchors. - | -
- Functions - | -- |
- make - | -- Builds the index - | -
-Builds the index --
-- -- public function make() - -
- AXE(ASP Xtreme Evolution) string builder utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- stringbuilder.asp - | -- AXE(ASP Xtreme Evolution) string builder utility. - | -
- StringBuilder - | -- While using Response.write is far away faster than concatenating strings, sometimes you need to store the entire output before printing it. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- reset - | -- Clear the string builder data. - | -
- append - | -- Add the incoming data to the buffer. - | -
- toString - | -- Reads the entire buffer and return it. - | -
- While using Response.write is far away faster than concatenating strings, sometimes you need to store the entire output before printing it. That’s when a special designed string builder class is required. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- reset - | -- Clear the string builder data. - | -
- append - | -- Add the incoming data to the buffer. - | -
- toString - | -- Reads the entire buffer and return it. - | -
---
-- -- public function toString() - -
- Reads the entire buffer and return it. -
-- (string) - | -- concatenated string - | -
-----dim Builder : set Builder = new StringBuilder -Builder.append "First line" & vbNewLine -Builder.append "Second line" & vbNewLine -Response.write( Builder.toString() ) -set Builder = nothing --
-Clear the string builder data. --
-- -- public function reset() - -
-Add the incoming data to the buffer. --
-- -- --
-- -- public sub append( - -- data - -- ) - -
-Reads the entire buffer and return it. --
-- -- public function toString() - -
- AXE(ASP Xtreme Evolution) string template (a kind of eXtended string) utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- template.asp - | -- AXE(ASP Xtreme Evolution) string template (a kind of eXtended string) utility. - | -
- Template - | -- A string Template class for Classic ASP. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- value - | -- This property holds the current Template value. - | -
- separator - | -- This property holds the standard Template separator. - | -
- Functions - | -- |
- setValue - | -- This is the class default method. - | -
- substitute - | -- Use this method to retrieve an evaluated version of the value with the given replacements. - | -
- [] - | -- Short hand name for substitute. - | -
- clean - | -- Removes all extraneous whitespace from a string and trims it. - | -
- length - | -- Compute the final length of an evaluated template with the given replacements. - | -
- toLowerCase - | -- Compute the template and retrieve a lowercased version of it’s value. - | -
- toUpperCase - | -- Compute the template and retrieve an uppercased version of it’s value. - | -
- capitalize - | -- Compute the template and retrieve a capitalized version of it’s value. - | -
- camelize - | -- Compute the template and retrieve a camelized version of it’s value. - | -
- hyphenate - | -- Compute the template and retrieve a hyphenated version of it’s value. - | -
- charAt - | -- Look up in the evaluated template for a character at the specified position. - | -
- substr - | -- Extracts a specified number of characters in a evaluated template, from a start index. - | -
- substring - | -- Extracts the characters in a evaluated template between two specified indices. - | -
- contains - | -- Compute the template and look for the position of the first occurence of a specified fragment in the evaluated string. - | -
- test - | -- Compute the template and search for a match between the value and a relular expression. - | -
- A string Template class for Classic ASP. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- value - | -- This property holds the current Template value. - | -
- separator - | -- This property holds the standard Template separator. - | -
- Functions - | -- |
- setValue - | -- This is the class default method. - | -
- substitute - | -- Use this method to retrieve an evaluated version of the value with the given replacements. - | -
- [] - | -- Short hand name for substitute. - | -
- clean - | -- Removes all extraneous whitespace from a string and trims it. - | -
- length - | -- Compute the final length of an evaluated template with the given replacements. - | -
- toLowerCase - | -- Compute the template and retrieve a lowercased version of it’s value. - | -
- toUpperCase - | -- Compute the template and retrieve an uppercased version of it’s value. - | -
- capitalize - | -- Compute the template and retrieve a capitalized version of it’s value. - | -
- camelize - | -- Compute the template and retrieve a camelized version of it’s value. - | -
- hyphenate - | -- Compute the template and retrieve a hyphenated version of it’s value. - | -
- charAt - | -- Look up in the evaluated template for a character at the specified position. - | -
- substr - | -- Extracts a specified number of characters in a evaluated template, from a start index. - | -
- substring - | -- Extracts the characters in a evaluated template between two specified indices. - | -
- contains - | -- Compute the template and look for the position of the first occurence of a specified fragment in the evaluated string. - | -
- test - | -- Compute the template and search for a match between the value and a relular expression. - | -
---
-- -- --
-- -- public default function setValue( - -- s - -- ) - -
- This is the class default method. It sets the instance value property. -
-- (string) - | -- template value - | -
- (Template) - | -- a self object reference - | -
-----dim XString : set XString = new Template -XString("{0} {1}").value' prints "{0} {1}" -XString("{0} {1}").substitute(array("Hello", "World"))' prints "Hello World" -XString("{0} {1}").toLowerCase(array("Hello", "World"))' prints "hello world" -XString("{0} {1}").<any_other_method_of_this_class>(arguments)' just works -set XString = nothing --
---
-- -- --
-- -- public function substitute( - -- saArgs - -- ) - -
- Use this method to retrieve an evaluated version of the value with the given replacements. -
-- (string[]) - | -- Replacements - | -
- (string) - | -- Evaluated string - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.substitute(array("Hello", "World")) -Response.write XString.substitute(null) -set XString = nothing --
---
-- -- --
-- -- public function []( - -- saArgs - -- ) - -
- Short hand name for substitute. -
-- (string[]) - | -- Replacements - | -
- (string) - | -- Evaluated string - | -
-----dim S : set S = new Template -Response.write S("Do you know {0} {1}?").[](array("foo", "bar")) ' prints Do you know foo bar? -set S = nothing --
---
-- -- --
-- -- public function clean( - -- saArgs - -- ) - -
- Removes all extraneous whitespace from a string and trims it. -
-- (string[]) - | -- Replacements - | -
- (string) - | -- A clean evaluated string. - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}, I like ASP." -Response.write XString.clean(array("Hello", "World")) -Response.write XString.clean(null) -set XString = nothing --
---
-- -- --
-- -- public function length( - -- saArgs - -- ) - -
- Compute the final length of an evaluated template with the given replacements. -
-- (string[]) - | -- Replacements - | -
- (int) - | -- Length - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.length(array("Hello", "World")) -Response.write XString.length(null) -set XString = nothing --
---
-- -- --
-- -- public function toLowerCase( - -- saArgs - -- ) - -
- Compute the template and retrieve a lowercased version of it’s value. -
-- (string[]) - | -- Replacements - | -
- (string) - | -- Lowercased evaluated string - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.toLowerCase(array("Hello", "World")) -Response.write XString.toLowerCase(null) -set XString = nothing --
- toUpperCase, capitalize, camelize, hyphenate -
----
-- -- --
-- -- public function toUpperCase( - -- saArgs - -- ) - -
- Compute the template and retrieve an uppercased version of it’s value. -
-- (string[]) - | -- Replacements - | -
- (string) - | -- Uppercased evaluated string - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.toUpperCase(array("Hello", "World")) -Response.write XString.toUpperCase(null) -set XString = nothing --
- toLowerCase, capitalize, camelize, hyphenate -
----
-- -- --
-- -- public function capitalize( - -- cSeparator, - -- -- - saArgs - -- ) - -
- Compute the template and retrieve a capitalized version of it’s value. -
-- (char) - | -- Separator (OPTIONAL) - | -
- (string[]) - | -- Replacements - | -
- (string) - | -- Capitalized evaluated string - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.capitalize(, array("hello", "world")) -Response.write XString.capitalize(" ", null) -set XString = nothing --
- toLowerCase, toUpperCase, camelize, hyphenate -
----
-- -- --
-- -- public function camelize( - -- cSeparator, - -- -- - saArgs - -- ) - -
- Compute the template and retrieve a camelized version of it’s value. -
-- (char) - | -- Separator (OPTIONAL) - | -
- (string[]) - | -- Replacements - | -
- (string) - | -- Camelized evaluated string - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.camelize(, array("Hello", "World")) -Response.write XString.camelize(" ", null) -set XString = nothing --
---
-- -- --
-- -- public function hyphenate( - -- cSeparator, - -- -- - saArgs - -- ) - -
- Compute the template and retrieve a hyphenated version of it’s value. -
-- (char) - | -- Separator (OPTIONAL) - | -
- (string[]) - | -- Replacements - | -
- (string) - | -- Hyphenated evaluated string - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.hyphenate(, array("Hello", "World")) -Response.write XString.hyphenate(" ", null) -set XString = nothing --
- toLowerCase, toUpperCase, capitalize, camelize -
----
-- -- --
-- -- public function charAt( - -- i, - -- -- - saArgs - -- ) - -
- Look up in the evaluated template for a character at the specified position. -
-- (int) - | -- Index - | -
- (string[]) - | -- Replacements - | -
- (char) - | -- Character - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.contains(0, array("Hello", "World")) -set XString = nothing --
---
-- -- --
-- -- public function substr( - -- iStart, - -- -- - iLength, - -- -- - saArgs - -- ) - -
- Extracts a specified number of characters in a evaluated template, from a start index. -
-- (int) - | -- Where to start the extraction - | -
- (int) - | -- How many characters to extract (OPTIONAL) - | -
- (string[]) - | -- Replacements - | -
- (string) - | -- Evaluated string fragment - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.substr(0, 5, array("Hello", "World")) -Response.write XString.substr(6,, array("Hello", "World")) -set XString = nothing --
---
-- -- --
-- -- public function substring( - -- iStart, - -- -- - iStop, - -- -- - saArgs - -- ) - -
- Extracts the characters in a evaluated template between two specified indices. -
-- (int) - | -- Where to start the extraction - | -
- (int) - | -- Where to stop the extraction (OPTIONAL) - | -
- (string[]) - | -- Replacements - | -
- (string) - | -- Evaluated string fragment - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.substr(0, 2, array("Hello", "World")) -Response.write XString.substr(6,, array("Hello", "World")) -set XString = nothing --
---
-- -- --
-- -- public function contains( - -- sFragment, - -- -- - saArgs - -- ) - -
- Compute the template and look for the position of the first occurence of a specified fragment in the evaluated string. -
-- (string) - | -- Fragment to look for - | -
- (string[]) - | -- Replacements - | -
- (int) - | -- The position of the first occurence of the fragment within value - | -
-----dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.contains("Hello", array("Hello", "World")) -Response.write XString.contains("World", array("Hello", "World")) -Response.write XString.contains("Lorem ipsum", array("Hello", "World")) -set XString = nothing --
---
-- -- --
-- -- public function test( - -- sPattern, - -- -- - bIgnoreCase, - -- -- - bGlobal, - -- -- - saArgs - -- ) - -
- Compute the template and search for a match between the value and a relular expression. -
-- (string) - | -- VBScript regular expression - | -
- (boolean) - | -- true|false indicating to enable a CI search or not - | -
- (boolean) - | -- true|false indicating to match or not all occurrences of the pattern - | -
- (string[]) - | -- Replacements - | -
- true, if a match for the regular expression is found in the value false, otherwise -
------dim XString : set XString = new Template : XString.value = "{0} {1}" -Response.write XString.test("Hello", false, true, array("Hello", "World")) -Response.write XString.test("hello", true, true, array("Hello", "World")) -set XString = nothing --
-This is the class default method. --
-- -- --
-- -- public default function setValue( - -- s - -- ) - -
-Use this method to retrieve an evaluated version of the value with the given replacements. --
-- -- --
-- -- public function substitute( - -- saArgs - -- ) - -
-Short hand name for substitute. --
-- -- --
-- -- public function []( - -- saArgs - -- ) - -
-Removes all extraneous whitespace from a string and trims it. --
-- -- --
-- -- public function clean( - -- saArgs - -- ) - -
-Compute the final length of an evaluated template with the given replacements. --
-- -- --
-- -- public function length( - -- saArgs - -- ) - -
-Compute the template and retrieve a lowercased version of it’s value. --
-- -- --
-- -- public function toLowerCase( - -- saArgs - -- ) - -
-Compute the template and retrieve an uppercased version of it’s value. --
-- -- --
-- -- public function toUpperCase( - -- saArgs - -- ) - -
-Compute the template and retrieve a capitalized version of it’s value. --
-- -- --
-- -- public function capitalize( - -- cSeparator, - -- -- - saArgs - -- ) - -
-Compute the template and retrieve a camelized version of it’s value. --
-- -- --
-- -- public function camelize( - -- cSeparator, - -- -- - saArgs - -- ) - -
-Compute the template and retrieve a hyphenated version of it’s value. --
-- -- --
-- -- public function hyphenate( - -- cSeparator, - -- -- - saArgs - -- ) - -
-Look up in the evaluated template for a character at the specified position. --
-- -- --
-- -- public function charAt( - -- i, - -- -- - saArgs - -- ) - -
-Extracts a specified number of characters in a evaluated template, from a start index. --
-- -- --
-- -- public function substr( - -- iStart, - -- -- - iLength, - -- -- - saArgs - -- ) - -
-Extracts the characters in a evaluated template between two specified indices. --
-- -- --
-- -- public function substring( - -- iStart, - -- -- - iStop, - -- -- - saArgs - -- ) - -
-Compute the template and look for the position of the first occurence of a specified fragment in the evaluated string. --
-- -- --
-- -- public function contains( - -- sFragment, - -- -- - saArgs - -- ) - -
-Compute the template and search for a match between the value and a relular expression. --
-- -- --
-- -- public function test( - -- sPattern, - -- -- - bIgnoreCase, - -- -- - bGlobal, - -- -- - saArgs - -- ) - -
- AXE(ASP Xtreme Evolution) solution for multilingual applications. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- translator.asp - | -- AXE(ASP Xtreme Evolution) solution for multilingual applications. - | -
- Translator - | -- Translator provides support for internationalization of text in code and templates. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- language - | -- Holds the language scope to fetch for translations. - | -
- Adapter - | -- Translator requires an implementation of Translator_Adapter_Interface. - | -
- Functions - | -- |
- [_ε] - | -- Checks for an adapter assignment. - | -
- getText - | -- Looks up a message in the current configuration. - | -
- Translator provides support for internationalization of text in code and templates. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- language - | -- Holds the language scope to fetch for translations. - | -
- Adapter - | -- Translator requires an implementation of Translator_Adapter_Interface. - | -
- Functions - | -- |
- [_ε] - | -- Checks for an adapter assignment. - | -
- getText - | -- Looks up a message in the current configuration. - | -
---
-- -- --
-- -- public default function getText( - -- message - -- ) : call [_ε] - -
- Looks up a message in the current configuration. -
-- (string) - | -- Message - | -
- (string) - | -- The translated value if on is found in the translation table, or the submitted messeage if not found - | -
-----dim T : set T = new Translator -set T.Adapter = new Translator_Adapter_Ini -T.language = "pt-br" -Response.write(T("Hello World")) -' prints: Olá Mundo -set T = nothing --
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Looks up a message in the current configuration. --
-- -- --
-- -- public default function getText( - -- message - -- ) : call [_ε] - -
- AXE(ASP Xtreme Evolution) upload utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- upload.asp - | -- AXE(ASP Xtreme Evolution) upload utility. - | -
- Upload - | -- This class implements an easy interface to upload files to a webserver. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Form - | -- Stores Request.Form elements. - | -
- Files - | -- Stores File elements. - | -
- errorText - | -- If an error occurs it’s message will be stored here. - | -
- Upload_File - | -- Each entry of Upload.Files contains an object of this class. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- name - | -- File name. - | -
- data - | -- File. - | -
- contentType - | -- File mimetype. - | -
- formName - | -- Name of the input field in the form which the image came from. - | -
- Functions - | -- |
- size - | -- Compute the file size. - | -
- saveToFile - | -- Saves the binary in the hard drive. - | -
- This class implements an easy interface to upload files to a webserver. It’s built using standard only functionallity in ASP. It will automaticly start parsing the binary stream sent by the browser which might take a while if the uploaded files are large. -
-- Large parts of this code is based on code by Gez Lemon of Juicy Studio http://www.juicystudio.com/. It has been and partially rewritten and enhanced by CrazyBeaver Software along with it’s new class interface. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Form - | -- Stores Request.Form elements. - | -
- Files - | -- Stores File elements. - | -
- errorText - | -- If an error occurs it’s message will be stored here. - | -
- Each entry of Upload.Files contains an object of this class. This is the class that user should use to retrieve information from the uploaded file. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- name - | -- File name. - | -
- data - | -- File. - | -
- contentType - | -- File mimetype. - | -
- formName - | -- Name of the input field in the form which the image came from. - | -
- Functions - | -- |
- size - | -- Compute the file size. - | -
- saveToFile - | -- Saves the binary in the hard drive. - | -
---
-- -- public function size() - -
- Compute the file size. -
-- (int) - | -- Size - | -
-----dim oUpload, oFile -set oUpload = new Upload -for each oFile in oUpload.Files - set oFile = oUpload.Files(oFile) - Response.write(oFile.name & " has " & oFile.size & " bytes<br />" & vbNewLine) - set oFile = nothing -next -set oUpload = nothing --
---
-- -- --
-- -- public function saveToFile( - -- sPath - -- ) - -
- Saves the binary in the hard drive. -
-- (string) - | -- Physical path - | -
- true - | -- if saveToFile is successful - | -
- false - | -- otherwise - | -
-----dim oUpload, oFile -set oUpload = new Upload -for each oFile in oUpload.Files - set oFile = oUpload.Files(oFile) - if(oFile.saveToFile(Server.mappath("saved/" & oFile.name))) then - Response.write(oFile.name & " has been saved...<br />" & vbNewLine) - end if - set oFile = nothing -next -set oUpload = nothing --
-Compute the file size. --
-- -- public function size() - -
-Saves the binary in the hard drive. --
-- -- --
-- -- public function saveToFile( - -- sPath - -- ) - -
- AXE(ASP Xtreme Evolution) re-implementation of sessions. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- AXE(ASP Xtreme Evolution) zip utility. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- zip.asp - | -- AXE(ASP Xtreme Evolution) zip utility. - | -
- Zip - | -- This class intends to help people use the CBZip in an easy way. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- cbZipUri - | -- This should be the URI to CBZip.exe including http:// etc. - | -
- zipName - | -- The zip filename with extension. - | -
- Files - | -- This is the container of all Zip_File objects. - | -
- Functions - | -- |
- go - | -- Parses the zip file and create the Zip_File objects. - | -
- extract - | -- Extract the files in the standard way. - | -
- extractWithoutFolders - | -- Extract the files without caring about their relative path inside the zip. - | -
- inspect - | -- Retrive a view from inside the zip. - | -
- Zip_File - | -- Each entry of Zip.Files contains an object of this class. - | -
- Properties - | -- |
- name - | -- Relative path plus the filename with it extension. - | -
- compMethod - | -- Compression method. - | -
- compSize - | -- The size of the file when it’s compressed. - | -
- uncompSize - | -- The size of the file. - | -
- compRatio - | -- Compression effectiveness. - | -
- crc32 - | -- The CRC32 code which is a 32 bits length hash. - | -
- isFolder - | -- A flag indicating if the entry is a folder or not. - | -
- uri - | -- Uri for downloading the file. - | -
- Functions - | -- |
- fileName - | -- Retrieve the file name. - | -
- fileExt - | -- Retrieve the file extension. - | -
- saveToFile - | -- Save the file to the hard drive. - | -
- This class intends to help people use the CBZip in an easy way. CBZip brings the power of zip archives to asp. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- cbZipUri - | -- This should be the URI to CBZip.exe including http:// etc. - | -
- zipName - | -- The zip filename with extension. - | -
- Files - | -- This is the container of all Zip_File objects. - | -
- Functions - | -- |
- go - | -- Parses the zip file and create the Zip_File objects. - | -
- extract - | -- Extract the files in the standard way. - | -
- extractWithoutFolders - | -- Extract the files without caring about their relative path inside the zip. - | -
- inspect - | -- Retrive a view from inside the zip. - | -
- This should be the URI to CBZip.exe including http:// etc. -
-- (string) - | -- URI - | -
---
-- -- --
-- -- public sub extract( - -- sTargetPath - -- ) - -
- Extract the files in the standard way. -
-- (string) - | -- Virtual Path where you intend to save your extracted files. - | -
-----dim oZip -set oZip = new Zip -oZip.cbZipUri = "http://localhost/cgi-bin/CBZIP.exe" -oZip.zipName = Server.mapPath("docs.zip") -call oZip.go() -oZip.extract("files/") 'Remember that "files/" must exist before calling the extract. -set oZip = nothing --
---
-- -- --
-- -- public sub extractWithoutFolders( - -- sTargetPath - -- ) - -
- Extract the files without caring about their relative path inside the zip. -
-- (string) - | -- Virtual Path where you intend to save your extracted files. - | -
-----dim oZip -set oZip = new Zip -oZip.cbZipUri = "http://localhost/cgi-bin/CBZIP.exe" -oZip.zipName = Server.mapPath("docs.zip") -call oZip.go() -oZip.extractWithoutFolders("files/") 'Remember that "files/" must exist before calling the extract. -set oZip = nothing --
---
-- -- public function inspect() - -
- Retrive a view from inside the zip. -
-- (string) - | -- HTML table with the zip contents - | -
-----dim oZip -set oZip = new Zip -oZip.cbZipUri = "http://localhost/cgi-bin/CBZIP.exe" -oZip.zipName = Server.mapPath("docs.zip") -call oZip.go() -Response.write(oZip.inspect()) -set oZip = nothing --
- Each entry of Zip.Files contains an object of this class. This is the class that the user should use to retrieve information from a file in the zip. -
-- Properties - | -- |
- name - | -- Relative path plus the filename with it extension. - | -
- compMethod - | -- Compression method. - | -
- compSize - | -- The size of the file when it’s compressed. - | -
- uncompSize - | -- The size of the file. - | -
- compRatio - | -- Compression effectiveness. - | -
- crc32 - | -- The CRC32 code which is a 32 bits length hash. - | -
- isFolder - | -- A flag indicating if the entry is a folder or not. - | -
- uri - | -- Uri for downloading the file. - | -
- Functions - | -- |
- fileName - | -- Retrieve the file name. - | -
- fileExt - | -- Retrieve the file extension. - | -
- saveToFile - | -- Save the file to the hard drive. - | -
-Parses the zip file and create the Zip_File objects. --
-- -- public sub go() - -
-Extract the files in the standard way. --
-- -- --
-- -- public sub extract( - -- sTargetPath - -- ) - -
-Extract the files without caring about their relative path inside the zip. --
-- -- --
-- -- public sub extractWithoutFolders( - -- sTargetPath - -- ) - -
-Retrive a view from inside the zip. --
-- -- public function inspect() - -
-Retrieve the file name. --
-- -- public function fileName() - -
-Retrieve the file extension. --
-- -- public function fileExt() - -
-Save the file to the hard drive. --
-- -- --
-- -- public function saveToFile( - -- sPath - -- ) - -
- AXE(ASP Xtreme Evolution) events factory. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- customevent.asp - | -- AXE(ASP Xtreme Evolution) events factory. - | -
- CustomEvent - | -- This class implements a generic way to work with Custom Events in ASP. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Owner - | -- description - | -
- Arguments - | -- Arguments to be passed to the handlers. - | -
- Functions - | -- |
- addHandler - | -- Adds a handler. - | -
- removeHandler - | -- description - | -
- fire - | -- Fires all handlers attached to this event. - | -
- revealArguments - | -- Reveals the event arguments. - | -
- This class implements a generic way to work with Custom Events in ASP. It’s the ASP Xtreme Evolution base for an Event-driven programming approach. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Owner - | -- description - | -
- Arguments - | -- Arguments to be passed to the handlers. - | -
- Functions - | -- |
- addHandler - | -- Adds a handler. - | -
- removeHandler - | -- description - | -
- fire - | -- Fires all handlers attached to this event. - | -
- revealArguments - | -- Reveals the event arguments. - | -
---
-- -- public sub fire() - -
- Fires all handlers attached to this event. -
------class ClassWithEvents - public classType - public classVersion - - public onLoad - public onUnload - public onComplimentBefore - public onComplimentAfter - - private sub Class_initialize() - classType = typename(Me) - classVersion = "1.0.0.0" - - set onLoad = new CustomEvent : set onLoad.Owner = Me - set onUnload = new CustomEvent : set onUnload.Owner = Me - set onComplimentBefore = new CustomEvent : set onComplimentBefore.Owner = Me - set onComplimentAfter = new CustomEvent : set onComplimentAfter.Owner = Me - - onComplimentBefore.Arguments.item("firstname") = "Fabio" - onComplimentBefore.Arguments.item("lastname") = "Nagao" - onComplimentBefore.Arguments.item("nickname") = "nagaozen" - call onLoad.fire() - end sub - - private sub Class_terminate() - call onUnload.fire() - - set onLoad = nothing - set onUnload = nothing - set onComplimentBefore = nothing - set onComplimentAfter = nothing - end sub - - public function compliment() - call onComplimentBefore.fire() - Response.write("Method compliment called." & vbNewline) - call onComplimentAfter.fire() - end function - -end class - - - -sub ev_onLoad(ev) - Response.write("Event onLoad has been fired" & vbNewline) -end sub - -sub ev_onUnLoad(ev) - Response.write("Event onUnLoad has been fired" & vbNewline) -end sub - -sub ev_onComplimentBefore(ev) - Response.write("Event onComplimentBefore has been fired. I was really expecting this method to say: 'Hello World " & ev.Arguments.item("firstname") & " " & ev.Arguments.item("lastname") & " (" & ev.Arguments.item("nickname") & ")'" & vbNewline) -end sub - -sub ev_onComplimentAfter(ev) - Response.write("Event onComplimentAfter has been fired" & vbNewline) -end sub - -dim CwE : set CwE = new ClassWithEvents -call CwE.onLoad.addHandler("ev_onLoad") -call CwE.onUnLoad.addHandler("ev_onUnLoad") -call CwE.onComplimentBefore.addHandler("ev_onComplimentBefore") -call CwE.onComplimentBefore.addHandler(lambda("function(ev){ Response.write('Another handler attached to Event onComplimentAfter. This one is using a lambda function -- Yes, ' + ev.Arguments.item('firstname') + ' ' + ev.Arguments.item('lastname') + ' (' + ev.Arguments.item('nickname') + ') has implemented it for Classic ASP.\r\n') }")) -call CwE.onComplimentAfter.addHandler("ev_onComplimentAfter") -CwE.compliment() -set CwE = nothing - -Response.write("As you can see, this nothing @ line 74 doesn't work as expected. onLoad doesn't work either. But for user methods and procedures the CustomEvent works fine." & vbNewLine) --
---
-- -- public function revealArguments() - -
- Reveals the event arguments. -
-- (string) - | -- A list of the available event arguments - | -
-----' Using the class defined in the example above -dim CwE : set CwE = new ClassWithEvents -Response.write(CwE.onComplimentBefore.revealArguments()) -set CwE = nothing --
-Adds a handler. --
-- -- --
-- -- public sub addHandler( - -- fn - -- ) - -
-description --
-- -- --
-- -- public sub removeHandler( - -- fn - -- ) - -
-Fires all handlers attached to this event. --
-- -- public sub fire() - -
-Reveals the event arguments. --
-- -- public function revealArguments() - -
- AXE(ASP Xtreme Evolution) interfaces factory. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- interface.asp - | -- AXE(ASP Xtreme Evolution) interfaces factory. - | -
- Interface - | -- All interfaces should extend this class. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Implementation - | -- Interface implementation. - | -
- requireds - | -- Attributes, Methods and Procedures to be checked. - | -
- Functions - | -- |
- check - | -- Performs a check in the Adapter for the Interface specifications. - | -
- All interfaces should extend this class. This class enforces a strong, but not perfect, binding over an interface and it’s adapters. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Implementation - | -- Interface implementation. - | -
- requireds - | -- Attributes, Methods and Procedures to be checked. - | -
- Functions - | -- |
- check - | -- Performs a check in the Adapter for the Interface specifications. - | -
---
-- -- public function check() - -
- Performs a check in the Adapter for the Interface specifications. -
-- (boolean) - | -- true, if adapter passes the test; false, otherwise. - | -
-----class Template_Adapter_Interface' extends Interface - - ' --[ Inheritance ]--------------------------------------------------------- - public Parent - - public property set Implementation(I) - set Parent.Implementation = I - end property - - public property get Implementation - set Implementation = Parent.Implementation - end property - - public property get requireds - requireds = Parent.requireds - end property - - public function check() - check = Parent.check() - end function - - ' --[ Interface definition ]------------------------------------------------ - public classVersion - public classType - - private sub Class_initialize() - classVersion = "1.0.0.0" - classType = typename(Me) - - set Parent = new Interface - Parent.requireds = array("prop", "load", "save", "drop") - end sub - - private sub Class_terminate() - set Parent = nothing - end sub - - public prop - - public sub load() - end sub - - public sub save() - end sub - - public sub drop() - end sub - -end class - - - -class Template_Adapter_Media' implements Template_Adapter_Interface - - ' --[ Interface ]----------------------------------------------------------- - public Interface - - ' --[ Adapter definition ]-------------------------------------------------- - public classVersion - public classType - - private sub Class_initialize() - classVersion = "1.0.0.0" - classType = typename(Me) - - set Interface = new Template_Adapter_Interface - set Interface.Implementation = Me - call Interface.check() - end sub - - private sub Class_terminate() - set Interface.Implementation = nothing - set Interface = nothing - end sub - - public prop - - public sub load() - end sub - - public sub save() - end sub - - public sub drop() - end sub - -end class --
-Performs a check in the Adapter for the Interface specifications. --
-- -- public function check() - -
- AXE(ASP Xtreme Evolution) framework kernel. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- kernel.asp - | -- AXE(ASP Xtreme Evolution) framework kernel. - | -
- Kernel - | -- This Class will be auto-loaded as the singleton “Core” for the entire application and it’s objective is to provide support for the main features of this framework: MVC, URL-Rewriting, Cache System and XSLT. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- initialize - | -- Initialize the application configuration, setup the (string)controller, (string)action and the (string[])argv sessions which will be used to run the MVC architecture. - | -
- process - | -- Process the controller if it exists. - | -
- computeView - | -- Compute the requested view with the current data and return it’s source to be used inside the current process. - | -
- dispatch - | -- If no error exists, send the Output.value string to user. - | -
- cacheIndex - | -- Informs the request page cache index - | -
- loadShuttle - | -- A shuttle is needed to carry the user Session(“this”) information to the server Session(“this”) in order to the view be a document and not a variable. - | -
- unloadShuttle - | -- Unload a POST string into the Session(“this”) scripting dictionary. - | -
- fileExists - | -- Checks if the file exists in the file system. - | -
- loadTextFile - | -- If the file exists, read it all and return the content. - | -
- createFile - | -- Create || Overwrite a file in the file system. - | -
- createLink - | -- Creates a friendly relative link to be used as an URL-Rewrite hyperlink reference. - | -
- str2xml - | -- Creates a XML Document from a string with it’s source code. - | -
- getXmlNodeValues - | -- Creates a string array with the text of all nodes that match with the XPath. - | -
- strictTransform - | -- Applies the xslt transformation AS IT IS, in other words it relies only in the built-in parser to do exactly what your transformation requested. - | -
- indentedTransform - | -- Since MSXML are very conservative about how much whitespace they put into serialized XSLT results when xsl:output indent=”yes”, we are properly indenting XML, without relying on the processor’s built-in indenting capability. - | -
- printerFriendlyCode - | -- replaces { chr(60) , chr(62) } with their xhtml respectives. - | -
- exception - | -- Triggers a generic internal error exception with the given message. - | -
- This Class will be auto-loaded as the singleton “Core” for the entire application and it’s objective is to provide support for the main features of this framework: MVC, URL-Rewriting, Cache System and XSLT. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Functions - | -- |
- initialize - | -- Initialize the application configuration, setup the (string)controller, (string)action and the (string[])argv sessions which will be used to run the MVC architecture. - | -
- process - | -- Process the controller if it exists. - | -
- computeView - | -- Compute the requested view with the current data and return it’s source to be used inside the current process. - | -
- dispatch - | -- If no error exists, send the Output.value string to user. - | -
- cacheIndex - | -- Informs the request page cache index - | -
- loadShuttle - | -- A shuttle is needed to carry the user Session(“this”) information to the server Session(“this”) in order to the view be a document and not a variable. - | -
- unloadShuttle - | -- Unload a POST string into the Session(“this”) scripting dictionary. - | -
- fileExists - | -- Checks if the file exists in the file system. - | -
- loadTextFile - | -- If the file exists, read it all and return the content. - | -
- createFile - | -- Create || Overwrite a file in the file system. - | -
- createLink - | -- Creates a friendly relative link to be used as an URL-Rewrite hyperlink reference. - | -
- str2xml - | -- Creates a XML Document from a string with it’s source code. - | -
- getXmlNodeValues - | -- Creates a string array with the text of all nodes that match with the XPath. - | -
- strictTransform - | -- Applies the xslt transformation AS IT IS, in other words it relies only in the built-in parser to do exactly what your transformation requested. - | -
- indentedTransform - | -- Since MSXML are very conservative about how much whitespace they put into serialized XSLT results when xsl:output indent=”yes”, we are properly indenting XML, without relying on the processor’s built-in indenting capability. - | -
- printerFriendlyCode - | -- replaces { chr(60) , chr(62) } with their xhtml respectives. - | -
- exception - | -- Triggers a generic internal error exception with the given message. - | -
---
-- -- public function initialize() - -
- Initialize the application configuration, setup the (string)controller, (string)action and the (string[])argv sessions which will be used to run the MVC architecture. -
-- (Kernel) - | -- Self instance to enable chaining - | -
---
-- -- --
-- -- public function cacheIndex( - -- sController, - -- -- - sAction - -- ) - -
- Informs the request page cache index -
-- (string) - | -- Controller name - | -
- (string) - | -- Action name - | -
- (integer) - | -- (-1) if it’s not in the cache array, array index otherwise - | -
- <config.xml> -
----
-- -- --
-- -- public function loadShuttle( - -- Sd - -- ) - -
- A shuttle is needed to carry the user Session(“this”) information to the server Session(“this”) in order to the view be a document and not a variable. This function loads everything in Session(“this”) into a POST string. -
-- (scripting dictionary) - | -- The dictionary to be encoded - | -
- (string) - | -- Private representation of the dictionary - | -
---
-- -- --
-- -- public function fileExists( - -- sFilePath - -- ) - -
- Checks if the file exists in the file system. -
-- (string) - | -- Full path plus file name with extension - | -
- true - | -- if it’s there - | -
- false - | -- otherwise - | -
---
-- -- --
-- -- public function loadTextFile( - -- sFilePath - -- ) - -
- If the file exists, read it all and return the content. -
-- (string) - | -- Full path plus file name with extension - | -
- (string) - | -- The file content - | -
---
-- -- --
-- -- public function createLink( - -- sController, - -- -- - sAction - -- ) - -
- Creates a friendly relative link to be used as an URL-Rewrite hyperlink reference. -
-- (string) - | -- Controller name - | -
- (string) - | -- Action name - | -
- (string) - | -- Reference to be used in action or href - | -
---
-- -- --
-- -- public function getXmlNodeValues( - -- Xml, - -- -- - sXPath - -- ) - -
- Creates a string array with the text of all nodes that match with the XPath. -
-- (xml object) - | -- The XML - | -
- (string) - | -- The XPath - | -
- (string[]) - | -- An array with the XPath Node.text values - | -
---
-- -- --
-- -- public function strictTransform( - -- Xml, - -- -- - Xslt - -- ) - -
- Applies the xslt transformation AS IT IS, in other words it relies only in the built-in parser to do exactly what your transformation requested. -
-- (xml object) - | -- The dataset - | -
- (xml object) - | -- The transformation - | -
- (string) - | -- The evaluated transformation - | -
---
-- -- --
-- -- public function indentedTransform( - -- Xml, - -- -- - Xslt, - -- -- - sOutput, - -- -- - sIndent - -- ) - -
- Since MSXML are very conservative about how much whitespace they put into serialized XSLT results when xsl:output indent=”yes”, we are properly indenting XML, without relying on the processor’s built-in indenting capability. This is useful if you are trying to print nicely indented outputs. -
-- (xml object)Xml - | -- The dataset - | -
- (xml object)Xslt - | -- The transformation - | -
- (string)sOutput - | -- The xsl:output directive - | -
- (string)sIndent - | -- The string which will be used as indentation - | -
- (string) - | -- The evaluated nicely indented transformation - | -
- strictTransform -
-
- This XSLT is strongly based on Mike J. Brown mi@skew .org ReIndent work: kehttp://skew.org
---
-- -- --
-- -- public function printerFriendlyCode( - -- sCode - -- ) - -
- replaces { chr(60) , chr(62) } with their xhtml respectives. -
-- (string) - | -- The code to be encoded - | -
- (string) - | -- Encoded text - | -
-Initialize the application configuration, setup the (string)controller, (string)action and the (string[])argv sessions which will be used to run the MVC architecture. --
-- -- public function initialize() - -
-Process the controller if it exists. --
-- -- public function process() - -
-Compute the requested view with the current data and return it’s source to be used inside the current process. --
-- -- public function computeView() - -
-If no error exists, send the Output.value string to user. --
-- -- public function dispatch() - -
-Informs the request page cache index --
-- -- --
-- -- public function cacheIndex( - -- sController, - -- -- - sAction - -- ) - -
-A shuttle is needed to carry the user Session(“this”) information to the server Session(“this”) in order to the view be a document and not a variable. --
-- -- --
-- -- public function loadShuttle( - -- Sd - -- ) - -
-Unload a POST string into the Session(“this”) scripting dictionary. --
-- -- public sub unloadShuttle() - -
-Checks if the file exists in the file system. --
-- -- --
-- -- public function fileExists( - -- sFilePath - -- ) - -
-If the file exists, read it all and return the content. --
-- -- --
-- -- public function loadTextFile( - -- sFilePath - -- ) - -
-Create || Overwrite a file in the file system. --
-- -- --
-- -- public sub createFile( - -- sFilePath, - -- -- - sContent - -- ) - -
-Creates a friendly relative link to be used as an URL-Rewrite hyperlink reference. --
-- -- --
-- -- public function createLink( - -- sController, - -- -- - sAction - -- ) - -
-Creates a XML Document from a string with it’s source code. --
-- -- --
-- -- public function str2xml( - -- sXml - -- ) - -
-Creates a string array with the text of all nodes that match with the XPath. --
-- -- --
-- -- public function getXmlNodeValues( - -- Xml, - -- -- - sXPath - -- ) - -
-Applies the xslt transformation AS IT IS, in other words it relies only in the built-in parser to do exactly what your transformation requested. --
-- -- --
-- -- public function strictTransform( - -- Xml, - -- -- - Xslt - -- ) - -
-Since MSXML are very conservative about how much whitespace they put into serialized XSLT results when xsl:output indent=”yes”, we are properly indenting XML, without relying on the processor’s built-in indenting capability. --
-- -- --
-- -- public function indentedTransform( - -- Xml, - -- -- - Xslt, - -- -- - sOutput, - -- -- - sIndent - -- ) - -
-replaces { chr(60) , chr(62) } with their xhtml respectives. --
-- -- --
-- -- public function printerFriendlyCode( - -- sCode - -- ) - -
-Triggers a generic internal error exception with the given message. --
-- -- --
-- -- public sub exception( - -- message - -- ) - -
- AXE(ASP Xtreme Evolution) Unit Test factory. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- unittest.asp - | -- AXE(ASP Xtreme Evolution) Unit Test factory. - | -
- UnitTest - | -- Unit tests are pretty popular these days. - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- container - | -- Holds the unit test container. - | -
- Properties - | -- This object stores the initialization properties to be called in the test. - | -
- Functions - | -- |
- assert - | -- Tests if the coded function or method returns an equal value to the expected value. - | -
- test - | -- Returns a friendly message of the test. - | -
- Unit tests are pretty popular these days. It’s a method of testing that verifies the individual units of source code are working properly. A unit is the smallest tastable part of an application. In our case, these units are functions or methods. -
-- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- container - | -- Holds the unit test container. - | -
- Properties - | -- This object stores the initialization properties to be called in the test. - | -
- Functions - | -- |
- assert - | -- Tests if the coded function or method returns an equal value to the expected value. - | -
- test - | -- Returns a friendly message of the test. - | -
---
-- -- --
-- -- public function assert( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
- Tests if the coded function or method returns an equal value to the expected value. -
-- (string) - | -- function or method - | -
- (array) - | -- arguments - | -
- (variant) - | -- expected output - | -
- (boolean) - | -- true if function or method returns expected, false otherwise - | -
-----dim Tester : set Tester = new UnitTest - -Response.write Tester.assert("helloWorld", null, "Hello World") & vbNewLine ' prints true -Response.write Tester.assert("helloWorld", null, "Hi World") & vbNewLine ' prints false - -Tester.container = "Math" - -Response.write "Testing Math.add" & vbNewLine -Response.write "----------------" & vbNewLine -Response.write Tester.assert("add", array(2,2), 4) & vbNewLine ' prints true -Response.write Tester.assert("add", array(2,0), 5) & vbNewLine ' prints false - -set Tester = nothing - -Response.write vbNewLine --
---
-- -- --
-- -- public function test( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
- Returns a friendly message of the test. -
-- (string) - | -- function or method - | -
- (array) - | -- arguments - | -
- (variant) - | -- expected output - | -
- (string) - | -- message - | -
-----dim Tester : set Tester = new UnitTest - -Response.write "Testing functions" & vbNewLine -Response.write "-----------------" & vbNewLine -Response.write Tester.test("helloWorld", null, "Hello World") & vbNewLine -Response.write Tester.test("dummy", array("someValue"), "anotherValue") & vbNewLine - -Response.write vbNewLine - -Tester.container = "Math" - -Response.write "Testing Math.add" & vbNewLine -Response.write "----------------" & vbNewLine -Response.write Tester.test("add", array(2,2), 4) & vbNewLine -Response.write Tester.test("add", array(2,0), 5) & vbNewLine -Response.write Tester.test("add", array(2008,1), 2009) & vbNewLine -Response.write Tester.test("add", array(1,2008), 2009) & vbNewLine - -set Tester = nothing - -Response.write vbNewLine --
-Tests if the coded function or method returns an equal value to the expected value. --
-- -- --
-- -- public function assert( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
-Returns a friendly message of the test. --
-- -- --
-- -- public function test( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
- Free the resources required by the session objects. -
-- <Framework.dispatch> -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- This snippet is one of the key features of this MVC approach. Since ASP does not have runtime includes (<!--#include-->’s are first included and then compiled with the entire ASP page), Request Object is read-only and Server.Execute runs the requested document in an isolated process we have no other built-in way than using the so called evil Session Scope to mimic a Request Scope where the framework can share data between controllers, models and views. This won’t become a problem since we are destroying them after each end of request. For Session tracking, we suggest using Cookies and Database which will also increase your application scalability making it web farms ready. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- Use this snippet to free the resources required by the shuttle. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- The shuttle is another of this framework key solutions. It’s loaded with some relevant user request scope data to be used in the server request scope. Use this snippet to initialize unloading the shuttle in all your views. -
-- <Framework.loadShuttle>, <Framework.computeView> -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- Use this snippet to free the resources required by the singletons. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- Use this snippet to initialize all your singletons. -
-- This file is part of ASP Xtreme Evolution. Copyright © 2007-2009 Fabio Zendhi Nagao -
-- ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -
-- ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -
-- You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution. If not, see http://www.gnu.org/licenses/. -
-- ${3:description} -
-
- ${1: |
- - ${3:description} - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- ${2:Description} -
-- ${2:description} -
-- interface.asp - | -- ${2:description} - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- ${2:description} -
-
- ${1: |
- - ${2:description} - | -
- Properties - | -- |
- classType - | -- Class type. - | -
- classVersion - | -- Class version. - | -
- Adapter - | -- Interface implementation - | -
- Functions - | -- |
- [_ε] - | -- Checks for an adapter assignment. - | -
- toXML - | -- Returns a XML representation of this model. - | -
- toJSON - | -- Returns a JSON representation of this model. - | -
- toHTML - | -- Returns a HTML representation of this model. - | -
---
-- -- public function toXML() - -
- Returns a XML representation of this model. -
-- (string) - | -- root node of the recursion - | -
- (string) - | -- XML representation - | -
-----dim Model : set Model = new $<[1]: return $1.capitalize() >Model -'. -'. initialize it -'. -Response.write(Model.toXML()) -set Model = nothing --
---
-- -- public function toJSON() - -
- Returns a JSON representation of this model. -
-- (string) - | -- root node of the recursion - | -
- (string) - | -- JSON representation - | -
-----dim Model : set Model = new $<[1]: return $1.capitalize() >Model -'. -'. initialize it -'. -Response.write(Model.toJSON()) -set Model = nothing --
---
-- -- public function toHTML() - -
- Returns a HTML representation of this model. -
-- (string) - | -- root node of the recursion - | -
- (string) - | -- HTML representation - | -
-----dim Model : set Model = new $<[1]: return $1.capitalize() >Model -'. -'. initialize it -'. -Response.write(Model.toHTML()) -set Model = nothing --
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Returns a XML representation of this model. --
-- -- public function toXML() - -
-Returns a JSON representation of this model. --
-- -- public function toJSON() - -
-Returns a HTML representation of this model. --
-- -- public function toHTML() - -
- ${2:Description} -
-- Written by ${3:author} http://${4:url} @ ${5:month} ${6:year} -
-- $#! - | -- |
- - | -
- ${1: |
-
- A - | -- |
- - | -- Akismet - | -
- B - | -- |
- - | -- Base64 - | -
- C - | -- |
- - | -- Color - | -
- - | -- CustomEvent - | -
- E - | -- |
- - | -- Email - | -
- - | -- Email_Adapter_CDO - | -
- - | -- Email_Interface - | -
- I - | -- |
- - | -- Image - | -
- J - | -- |
- - | -- Json - | -
- - | -- JSON - | -
- - | -- JsonEngine - | -
- K - | -- |
- - | -- Kernel - | -
- L - | -- |
- - | -- List - | -
- - | -- List_Node - | -
- - | -- Logger - | -
- - | -- Logger_Adapter_FirePHP - | -
- - | -- Logger_Adapter_Response - | -
- - | -- Logger_Adapter_Text - | -
- - | -- Logger_Interface - | -
- M - | -- |
- - | -- Markdown - | -
- - | -- MD5 - | -
- O - | -- |
- - | -- Orderly - | -
- P - | -- |
- - | -- Paginator - | -
- R - | -- |
- - | -- ReCaptcha - | -
- - | -- Rijndael - | -
- - | -- RSS - | -
- - | -- RSS_Category - | -
- - | -- RSS_Cloud - | -
- - | -- RSS_Enclosure - | -
- - | -- RSS_Guid - | -
- - | -- RSS_Image - | -
- - | -- RSS_Item - | -
- - | -- RSS_SkipDays - | -
- - | -- RSS_SkipHours - | -
- - | -- RSS_Source - | -
- - | -- RSS_TextInput - | -
- S - | -- |
- - | -- SHA256 - | -
- - | -- StringBuilder - | -
- T - | -- |
- - | -- Template - | -
- - | -- Translator - | -
- - | -- Translator_Interface - | -
- U - | -- |
- - | -- UnitTest - | -
- - | -- Upload - | -
- - | -- Upload_File - | -
- Z - | -- |
- - | -- Zip - | -
- - | -- Zip_File - | -
- $#! - | -- |
- - | -
- ${1: |
-
- - | -
- ${1: |
-
- - | -
- ${1: |
-
- A - | -- |
- - | -- acl.asp - | -
- - | -- akismet.asp - | -
- - | -- anotherView.asp - | -
- - | -
- application. |
-
- - | -- atom.asp - | -
- - | -- auth.asp - | -
- B - | -- |
- - | -- base.asp - | -
- - | -
- base. |
-
- - | -- base64.asp - | -
- C - | -- |
- - | -- cdo.asp - | -
- - | -- color.asp - | -
- - | -- csv.asp - | -
- - | -- customevent.asp - | -
- D - | -- |
- - | -- default.asp - | -
- - | -- defaultController.asp - | -
- - | -- defaultModel.asp - | -
- - | -- defaultView.asp - | -
- E - | -- |
- - | -- email.asp - | -
- - | -- error.asp - | -
- F - | -- |
- - | -- firephp.asp - | -
- G - | -- |
- - | -- genericView.asp - | -
- - | -- global.asa - - | -
- I - | -- |
- - | -- image.asp - | -
- - | -- inspect.asp - | -
- - | -- interface.asp - - | -
- J - | -- |
- - | -- json.asp - | -
- - | -- json2.asp - | -
- K - | -- |
- - | -- kernel.asp - | -
- L - | -- |
- - | -- list.asp - | -
- - | -- logger.asp - | -
- M - | -- |
- - | -- markdown.asp - | -
- - | -- md5.asp - | -
- O - | -- |
- - | -- orderly.asp - | -
- P - | -- |
- - | -- paginator.asp - | -
- R - | -- |
- - | -- recaptcha.asp - | -
- - | -- response.asp - | -
- - | -- rijndael.asp - | -
- - | -- rss.asp - | -
- S - | -- |
- - | -
- sessions. |
-
- - | -
- sessions. |
-
- - | -- sha256.asp - | -
- - | -
- shuttle. |
-
- - | -
- shuttle. |
-
- - | -
- singletons. |
-
- - | -
- singletons. |
-
- - | -- stringbuilder.asp - | -
- T - | -- |
- - | -- template.asp - | -
- - | -- text.asp - | -
- - | -- textile.asp - | -
- - | -- translator.asp - | -
- U - | -- |
- - | -- unittest.asp - | -
- - | -- upload.asp - | -
- X - | -- |
- - | -- xsession.asp - | -
- Z - | -- |
- - | -- zip.asp - | -
- $#! - | -- |
- - | -- [], Template - | -
- - | -- [_ε] - - | -
- - | -- [_μ], Logger_Adapter_FirePHP - | -
- - | -- [_ρ], Logger_Interface - | -
- - | -- [_compare] - - | -
- - | -- [_getBCC], Email_Adapter_CDO - | -
- - | -- [_getCC], Email_Adapter_CDO - | -
- - | -- [_getTo], Email_Adapter_CDO - | -
- - | -- [_isAcceptable], Logger - | -
- - | -- [addFilter], Logger_Interface - | -
- - | -- [isAcceptable], Logger_Interface - | -
- A - | -- |
- - | -- addAdapter, Logger - | -
- - | -- addAttachment, Email - | -
- - | -- addBCC, Email - | -
- - | -- addCC, Email - | -
- - | -- addFilter - - | -
- - | -- addHandler, CustomEvent - | -
- - | -- addTo, Email - | -
- - | -- alert, Logger - | -
- - | -- append, StringBuilder - | -
- - | -- Application_onStart - - | -
- - | -- arccos - | -
- - | -- arccosec - | -
- - | -- arccotan - | -
- - | -- arcsec - | -
- - | -- arcsin - | -
- - | -- assert, UnitTest - | -
- - | -- axeInfo - | -
- B - | -- |
- - | -- bytes2hex, Rijndael - | -
- - | -- bytes2string, Rijndael - | -
- C - | -- |
- - | -- cacheIndex, Kernel - | -
- - | -- camelize, Template - | -
- - | -- capitalize, Template - | -
- - | -- ceiling - | -
- - | -- charAt, Template - | -
- - | -- check, Interface - | -
- - | -- clean, Template - | -
- - | -- compile, Orderly - | -
- - | -- computeView, Kernel - | -
- - | -- contains, Template - | -
- - | -- cosec - | -
- - | -- cotan - | -
- - | -- createFile, Kernel - | -
- - | -- createLink, Kernel - | -
- - | -- critical, Logger - | -
- D - | -- |
- - | -- debug, Logger - | -
- - | -- dec2hex - | -
- - | -- decode, Base64 - | -
- - | -- decodedSize, Base64 - | -
- - | -- decryptData, Rijndael - | -
- - | -- dispatch, Kernel - | -
- E - | -- |
- - | -- emerg, Logger - | -
- - | -- encode, Base64 - | -
- - | -- encodedSize, Base64 - | -
- - | -- encryptData - - | -
- - | -- error, Logger - | -
- - | -- exception, Kernel - | -
- - | -- extract, Zip - | -
- - | -- extractWithoutFolders, Zip - | -
-Short hand name for substitute. --
-- -- --
-- -- public function []( - -- saArgs - -- ) - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Maps Logger types to FirePHP types. --
-- -- --
-- -- private function [_μ]( - -- tp - -- ) - -
-Accepts only protected calls --
-- -- private sub [_ρ]() - -
-Compares two numbers by an order operator. --
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
-Compares two numbers by an order operator. --
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
-Returns a csv version of blind carbon copy receivers collection collection. --
-- -- --
-- -- private function [_getBCC]( - -- Email - -- ) - -
-Returns a csv version of carbon copy receivers collection. --
-- -- --
-- -- private function [_getCC]( - -- Email - -- ) - -
-Returns a csv version of receivers collection. --
-- -- --
-- -- private function [_getTo]( - -- Email - -- ) - -
-Check with Filters if a message can be logged. --
-- -- --
-- -- private function [_isAcceptable]( - -- message, - -- -- - tp - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub [addFilter]( - -- mixed - -- ) : call [_ρ] - -
-Check with Filters if a message can be logged. --
-- -- --
-- -- public function [isAcceptable]( - -- message, - -- -- - tp - -- ) : call [_ρ] - -
-Pushes a new Logger_Interface adapter to Adapters list --
-- -- --
-- -- public sub addAdapter( - -- Adapter - -- ) - -
-Adds a fully qualified file name to the attachments collection. --
-- -- --
-- -- public sub addAttachment( - -- path - -- ) - -
-Adds an email to the blind carbon copy receivers collection. --
-- -- --
-- -- public sub addBCC( - -- email - -- ) - -
-Adds an email to the carbon copy receivers collection. --
-- -- --
-- -- public sub addCC( - -- email - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Adds a handler. --
-- -- --
-- -- public sub addHandler( - -- fn - -- ) - -
-Adds an email to the receivers collection. --
-- -- --
-- -- public sub addTo( - -- email - -- ) - -
-Logs an alert --
-- -- --
-- -- public sub alert( - -- message, - -- -- - arguments - -- ) - -
-Add the incoming data to the buffer. --
-- -- --
-- -- public sub append( - -- data - -- ) - -
-Define Application constants and load the config.xml data into application configuration. --
-- -- sub Application_onStart - -
-Inverse Cosine. --
-- -- --
-- -- public function arccos( - -- x - -- ) - -
-Inverse Cosecant. --
-- -- --
-- -- public function arccosec( - -- x - -- ) - -
-Inverse Cotangent. --
-- -- --
-- -- public function arccotan( - -- x - -- ) - -
-Inverse Secant. --
-- -- --
-- -- public function arcsec( - -- x - -- ) - -
-Inverse Sine. --
-- -- --
-- -- public function arcsin( - -- x - -- ) - -
-Tests if the coded function or method returns an equal value to the expected value. --
-- -- --
-- -- public function assert( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
-Prints information about the ASP Xtreme Evolution version and Server scripting engine. --
-- -- function axeInfo() - -
-Convert an array of bytes into it’s hex form. --
-- -- --
-- -- public function bytes2hex( - -- bytes - -- ) - -
-Convert an array of bytes into strings. --
-- -- --
-- -- public function bytes2string( - -- bytes - -- ) - -
-Informs the request page cache index --
-- -- --
-- -- public function cacheIndex( - -- sController, - -- -- - sAction - -- ) - -
-Compute the template and retrieve a camelized version of it’s value. --
-- -- --
-- -- public function camelize( - -- cSeparator, - -- -- - saArgs - -- ) - -
-Compute the template and retrieve a capitalized version of it’s value. --
-- -- --
-- -- public function capitalize( - -- cSeparator, - -- -- - saArgs - -- ) - -
-Returns the value of a number rounded upwards to the nearest integer. --
-- -- --
-- -- function ceiling( - -- n - -- ) - -
-Look up in the evaluated template for a character at the specified position. --
-- -- --
-- -- public function charAt( - -- i, - -- -- - saArgs - -- ) - -
-Performs a check in the Adapter for the Interface specifications. --
-- -- public function check() - -
-Removes all extraneous whitespace from a string and trims it. --
-- -- --
-- -- public function clean( - -- saArgs - -- ) - -
-Compute the requested view with the current data and return it’s source to be used inside the current process. --
-- -- public function computeView() - -
-Compute the template and look for the position of the first occurence of a specified fragment in the evaluated string. --
-- -- --
-- -- public function contains( - -- sFragment, - -- -- - saArgs - -- ) - -
-Cosecant. --
-- -- --
-- -- public function cosec( - -- x - -- ) - -
-Cotangent. --
-- -- --
-- -- public function cotan( - -- x - -- ) - -
-Create || Overwrite a file in the file system. --
-- -- --
-- -- public sub createFile( - -- sFilePath, - -- -- - sContent - -- ) - -
-Creates a friendly relative link to be used as an URL-Rewrite hyperlink reference. --
-- -- --
-- -- public function createLink( - -- sController, - -- -- - sAction - -- ) - -
-Logs a critical --
-- -- --
-- -- public sub critical( - -- message, - -- -- - arguments - -- ) - -
-Logs a debug --
-- -- --
-- -- public sub debug( - -- message, - -- -- - arguments - -- ) - -
-Converts a decimal number into a hexadecimal one. --
-- -- --
-- -- function dec2hex( - -- value - -- ) - -
-Converts base64 into a binary data. --
-- -- --
-- -- public function decode( - -- base64 - -- ) - -
-Computes the size of the binary data in Kilobytes (KB). --
-- -- --
-- -- public function decodedSize( - -- bin - -- ) - -
-Use this method to decrypt your data. --
-- -- --
-- -- public function decryptData( - -- bytIn, - -- -- - bytPassword - -- ) - -
-If no error exists, send the Output.value string to user. --
-- -- public function dispatch() - -
-Logs an emergency --
-- -- --
-- -- public sub emerg( - -- message, - -- -- - arguments - -- ) - -
-Converts a binary into a base64 data. --
-- -- --
-- -- public function encode( - -- bin - -- ) - -
-Computes the size of the base64 data in Kilobytes (KB). --
-- -- --
-- -- public function encodedSize( - -- base64 - -- ) - -
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- bytMessage, - -- -- - bytPassword - -- ) - -
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
-Logs an error --
-- -- --
-- -- public sub error( - -- message, - -- -- - arguments - -- ) - -
-Triggers a generic internal error exception with the given message. --
-- -- --
-- -- public sub exception( - -- message - -- ) - -
-Extract the files in the standard way. --
-- -- --
-- -- public sub extract( - -- sTargetPath - -- ) - -
-Extract the files without caring about their relative path inside the zip. --
-- -- --
-- -- public sub extractWithoutFolders( - -- sTargetPath - -- ) - -
- F - | -- |
- - | -- fileExists, Kernel - | -
- - | -- fileExt, Zip_File - | -
- - | -- fileName, Zip_File - | -
- - | -- fire, CustomEvent - | -
- - | -- floor - | -
- G - | -- |
- - | -- getBinary - - | -
- - | -- getChildNodes, Json - | -
- - | -- getElement, Json - | -
- - | -- getExif, Image - | -
- - | -- getFilename, Image - | -
- - | -- getMime, Image - | -
- - | -- getText - - | -
- - | -- getXmlNodeValues, Kernel - | -
- - | -- go - - | -
- H - | -- |
- - | -- harccos - | -
- - | -- harccosec - | -
- - | -- harccotan - | -
- - | -- harcsec - | -
- - | -- harcsin - | -
- - | -- harctan - | -
- - | -- hcos - | -
- - | -- hcosec - | -
- - | -- hcotan - | -
- - | -- hex2bytes(hex), Rijndael - | -
- - | -- hex2dec - | -
- - | -- hex2hsb, Color - | -
- - | -- hex2rgb, Color - | -
- - | -- hsb2hex, Color - | -
- - | -- hsb2rgb, Color - | -
- - | -- hsec - | -
- - | -- hsin - | -
- - | -- htan - | -
- - | -- hyphenate, Template - | -
- I - | -- |
- - | -- iif - | -
- - | -- indentedTransform, Kernel - | -
- - | -- info, Logger - | -
- - | -- initialize - - | -
- - | -- insert, ReCaptcha - | -
- - | -- inspect, Zip - | -
- - | -- invert, Color - | -
- - | -- isEven - | -
- - | -- isOdd - | -
- - | -- isSpam, Akismet - | -
- L - | -- |
- - | -- length, Template - | -
- - | -- loadCache - | -
- - | -- loadCommon - | -
- - | -- loadJson, Json - | -
- - | -- loadShuttle, Kernel - | -
- - | -- loadTextFile, Kernel - | -
- - | -- logN - | -
- M - | -- |
- - | -- make, Paginator - | -
- - | -- makeHtml, Markdown - | -
- - | -- max - | -
- - | -- min - | -
- - | -- mix, Color - | -
- N - | -- |
- - | -- new_JsonEngine, Json - | -
- - | -- notice, Logger - | -
- P - | -- |
- - | -- parse - - | -
- - | -- pop, List - | -
- - | -- printerFriendlyCode, Kernel - | -
- - | -- process, Kernel - | -
- - | -- push, List - | -
- R - | -- |
- - | -- remove, List - | -
- - | -- removeAttachment, Email - | -
- - | -- removeBCC, Email - | -
- - | -- removeCC, Email - | -
- - | -- removeElement, Json - | -
- - | -- removeHandler, CustomEvent - | -
- - | -- removeTo, Email - | -
- - | -- reset, StringBuilder - | -
- - | -- revealArguments, CustomEvent - | -
- - | -- rgb2hex, Color - | -
- - | -- rgb2hsb, Color - | -
-Checks if the file exists in the file system. --
-- -- --
-- -- public function fileExists( - -- sFilePath - -- ) - -
-Retrieve the file extension. --
-- -- public function fileExt() - -
-Retrieve the file name. --
-- -- public function fileName() - -
-Fires all handlers attached to this event. --
-- -- public sub fire() - -
-Returns the value of a number rounded downwards to the nearest integer. --
-- -- --
-- -- function floor( - -- n - -- ) - -
-Fetch for a binary in the given path and return its value as a Stream. --
-- -- --
-- -- public function getBinary( - -- path - -- ) - -
-Extract binary data from the Xml. --
-- -- public function getBinary() - -
-Look for all element child keys and enumerate them. --
-- -- --
-- -- public function getChildNodes( - -- sPath - -- ) - -
-This function takes a dot separated path and look for the element value in the JSON. --
-- -- --
-- -- public function getElement( - -- sPath - -- ) - -
-Extract EXIF(EXchangeable Image Format) data from the Xml. --
-- -- public function getExif() - -
-Extract filename from the imageinfo in Xml. --
-- -- public function getFilename() - -
-Extract MimeType from the Xml. --
-- -- public function getMime() - -
-Looks up a message in the current configuration. --
-- -- --
-- -- public default function getText( - -- message - -- ) : call [_ε] - -
-Fetch for the translation of the message in the right language. --
-- -- --
-- -- public default function getText( - -- lang, - -- -- - message - -- ) - -
-Creates a string array with the text of all nodes that match with the XPath. --
-- -- --
-- -- public function getXmlNodeValues( - -- Xml, - -- -- - sXPath - -- ) - -
-Executes the request to the application to retrieve the XML data. --
-- -- public sub go() - -
-Parses the zip file and create the Zip_File objects. --
-- -- public sub go() - -
-Inverse Hyperbolic Cosine. --
-- -- --
-- -- public function harccos( - -- x - -- ) - -
-Inverse Hyperbolic Cosecant. --
-- -- --
-- -- public function harccosec( - -- x - -- ) - -
-Inverse Hyperbolic Cotangent. --
-- -- --
-- -- public function harccotan( - -- x - -- ) - -
-Inverse Hyperbolic Secant. --
-- -- --
-- -- public function harcsec( - -- x - -- ) - -
-Inverse Hyperbolic Sine. --
-- -- --
-- -- public function harcsin( - -- x - -- ) - -
-Inverse Hyperbolic Tangent. --
-- -- --
-- -- public function harctan( - -- x - -- ) - -
-Hyperbolic Cosine. --
-- -- --
-- -- public function hcos( - -- x - -- ) - -
-Hyperbolic Cosecant. --
-- -- --
-- -- public function hcosec( - -- x - -- ) - -
-Hyperbolic Cotangent. --
-- -- --
-- -- public function hcotan( - -- x - -- ) - -
-Convert the hex form into an array of bytes --
-- -- --
-- -- public function hex2bytes( - -- hex - -- ) - -
-Converts a hexadecimal number into a decimal one. --
-- -- --
-- -- function hex2dec( - -- value - -- ) - -
-Converts HEX to HSB --
-- -- --
-- -- public function hex2hsb( - -- sharp - -- ) - -
-Converts HEX to RGB --
-- -- --
-- -- function hex2rgb( - -- sharp - -- ) - -
-Converts HSB to HEX --
-- -- --
-- -- public function hsb2hex( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
-Converts HSB to RGB --
-- -- --
-- -- function hsb2rgb( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
-Hyperbolic Secant. --
-- -- --
-- -- public function hsec( - -- x - -- ) - -
-Hyperbolic Sine. --
-- -- --
-- -- public function hsin( - -- x - -- ) - -
-Hyperbolic Tangent. --
-- -- --
-- -- public function htan( - -- x - -- ) - -
-Compute the template and retrieve a hyphenated version of it’s value. --
-- -- --
-- -- public function hyphenate( - -- cSeparator, - -- -- - saArgs - -- ) - -
---
-- -- --
-- -- function iif( - -- expr, - -- -- - truepart, - -- -- - falsepart - -- ) - -
-Since MSXML are very conservative about how much whitespace they put into serialized XSLT results when xsl:output indent=”yes”, we are properly indenting XML, without relying on the processor’s built-in indenting capability. --
-- -- --
-- -- public function indentedTransform( - -- Xml, - -- -- - Xslt, - -- -- - sOutput, - -- -- - sIndent - -- ) - -
-Logs a info --
-- -- --
-- -- public sub info( - -- message, - -- -- - arguments - -- ) - -
-ASP Classes doesn’t have a constructor, so you must initialize the class manually. --
-- -- --
-- -- public sub initialize( - -- key, - -- -- - uri - -- ) - -
-Initialize the application configuration, setup the (string)controller, (string)action and the (string[])argv sessions which will be used to run the MVC architecture. --
-- -- public function initialize() - -
-Use this subroutine in the document body to insert the reCAPTCHA in your page. --
-- -- public sub insert() - -
-Retrive a view from inside the zip. --
-- -- public function inspect() - -
-Inverts the color. --
-- -- --
-- -- public function invert( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
-Checks if a natural is even or not. --
-- -- --
-- -- function isEven( - -- n - -- ) - -
-Checks if a natural is odd or not. --
-- -- --
-- -- function isOdd( - -- n - -- ) - -
-Test for spam. --
-- -- public function isSpam() - -
-Compute the final length of an evaluated template with the given replacements. --
-- -- --
-- -- public function length( - -- saArgs - -- ) - -
-Configures cache life time and items to be cached. --
-- -- --
-- -- sub loadCache( - -- Xml - -- ) - -
-Loads common application configurations. --
-- -- --
-- -- sub loadCommon( - -- Xml - -- ) - -
-Since ASP Classes strangely doesn’t accept parameters at it’s initializa- tion. --
-- -- --
-- -- public sub loadJson( - -- sJson - -- ) - -
-A shuttle is needed to carry the user Session(“this”) information to the server Session(“this”) in order to the view be a document and not a variable. --
-- -- --
-- -- public function loadShuttle( - -- Sd - -- ) - -
-If the file exists, read it all and return the content. --
-- -- --
-- -- public function loadTextFile( - -- sFilePath - -- ) - -
-Logarithm to base N. --
-- -- --
-- -- public function logN( - -- x, - -- -- - N - -- ) - -
-Builds the index --
-- -- public function make() - -
-Converts Markdown into XHTML. --
-- -- --
-- -- public function makeHtml( - -- text - -- ) - -
-Returns the number with the highest value of an array. --
-- -- --
-- -- function max( - -- a - -- ) - -
-Returns the number with the lowest value of an array. --
-- -- --
-- -- function min( - -- a - -- ) - -
-Mix two or more colors. --
-- -- --
-- -- public function mix( - -- base, - -- -- - colors, - -- -- - percentage - -- ) - -
-Private function used to create a new instance of the JsonEngine Class. --
-- -- --
-- -- function new_JsonEngine( - -- sJson - -- ) - -
-Logs a notice --
-- -- --
-- -- public sub notice( - -- message, - -- -- - arguments - -- ) - -
-Removes and returns the last element of the list. --
-- -- public function pop() - -
-replaces { chr(60) , chr(62) } with their xhtml respectives. --
-- -- --
-- -- public function printerFriendlyCode( - -- sCode - -- ) - -
-Process the controller if it exists. --
-- -- public function process() - -
-Adds one element to the end of the list and returns the new length. --
-- -- --
-- -- public function push( - -- Node - -- ) - -
-Removes an element based on the result of the assert. --
-- -- --
-- -- public function remove( - -- assert - -- ) - -
-Removes a fully qualified file name to the attachments collection. --
-- -- --
-- -- public sub removeAttachment( - -- path - -- ) - -
-Removes an email from the blind carbon copy receivers collection. --
-- -- --
-- -- public sub removeBCC( - -- email - -- ) - -
-Removes an email from the carbon copy receivers collection. --
-- -- --
-- -- public sub removeCC( - -- email - -- ) - -
-This subroutine removes a node from the object. --
-- -- --
-- -- public sub removeElement( - -- sPath - -- ) - -
-description --
-- -- --
-- -- public sub removeHandler( - -- fn - -- ) - -
-Removes an email from the receivers collection. --
-- -- --
-- -- public sub removeTo( - -- email - -- ) - -
-Clear the string builder data. --
-- -- public function reset() - -
-Reveals the event arguments. --
-- -- public function revealArguments() - -
-Converts RGB to HEX. --
-- -- --
-- -- function rgb2hex( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
-Converts RGB to HSB. --
-- -- --
-- -- function rgb2hsb( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
- S - | -- |
- - | -- sanitize - | -
- - | -- saveToFile - - | -
- - | -- search, List - | -
- - | -- sec - | -
- - | -- send - - | -
- - | -- serialize, Json - | -
- - | -- Session_onStart - - | -
- - | -- setCommentAuthor, Akismet - | -
- - | -- setCommentAuthorEmail, Akismet - | -
- - | -- setCommentAuthorUrl, Akismet - | -
- - | -- setCommentContent, Akismet - | -
- - | -- setCommentType, Akismet - | -
- - | -- setElement, Json - | -
- - | -- setPermalink, Akismet - | -
- - | -- setValue, Template - | -
- - | -- shift, List - | -
- - | -- size, Upload_File - | -
- - | -- str2xml, Kernel - | -
- - | -- strictTransform, Kernel - | -
- - | -- string2bytes, Rijndael - | -
- - | -- stringify, JSON - | -
- - | -- strsubstitute - | -
- - | -- submitHam, Akismet - | -
- - | -- submitSpam, Akismet - | -
- - | -- substitute, Template - | -
- - | -- substr, Template - | -
- - | -- substring, Template - | -
- T - | -- |
- - | -- test - - | -
- - | -- toHTML - | -
- - | -- toJSON - | -
- - | -- toLowerCase, Template - | -
- - | -- toString - - | -
- - | -- toUpperCase, Template - | -
- - | -- toXML - - | -
- U - | -- |
- - | -- unloadShuttle, Kernel - | -
- - | -- unshift, List - | -
- V - | -- |
- - | -- verify, ReCaptcha - | -
- W - | -- |
- - | -- warn, Logger - | -
- - | -- write - - | -
-A generic sanitize function. --
-- -- --
-- -- public function sanitize( - -- value, - -- -- - placeholders, - -- -- - replacements - -- ) - -
-Saves the image to a path specified by path. --
-- -- --
-- -- public function saveToFile( - -- path, - -- -- - overwrite - -- ) - -
-Saves the binary in the hard drive. --
-- -- --
-- -- public function saveToFile( - -- sPath - -- ) - -
-Save the file to the hard drive. --
-- -- --
-- -- public function saveToFile( - -- sPath - -- ) - -
-Returns an element based on the result of the assert. --
-- -- --
-- -- public function search( - -- assert - -- ) - -
-Secant. --
-- -- --
-- -- public function sec( - -- x - -- ) - -
-Procedure send is used to send an Email. --
-- -- public sub send() : call [_ε] - -
-Sends an Email using CDO (Collaboration Data Objects), a Microsoft technology that simplify the creation of messaging applications. --
-- -- --
-- -- public sub sends( - -- Email - -- ) - -
-Procedure send is used to send an Email. --
-- -- --
-- -- public sub send( - -- Email - -- ) - -
-Converts the object into a JSON string. --
-- -- --
-- -- public function serialize( - -- path - -- ) - -
-In order to compute the execution time of a request, we need to start a timer. --
-- -- sub Session_onStart - -
-Set Akismet comment_author parameter. --
-- -- --
-- -- public sub setCommentAuthor( - -- value - -- ) - -
-Set Akismet comment_author_email parameter. --
-- -- --
-- -- public sub setCommentAuthorEmail( - -- value - -- ) - -
-Set Akismet comment_author_url parameter. --
-- -- --
-- -- public sub setCommentAuthorUrl( - -- value - -- ) - -
-Set Akismet comment_content parameter. --
-- -- --
-- -- public sub setCommentContent( - -- value - -- ) - -
-Set Akismet comment_type parameter. --
-- -- --
-- -- public sub setCommentType( - -- value - -- ) - -
-This subroutine augments the JSON by adding elements to it. --
-- -- --
-- -- public sub setElement( - -- sPath, - -- -- - value - -- ) - -
-Set Akismet permalink parameter. --
-- -- --
-- -- public sub setPermalink( - -- value - -- ) - -
-This is the class default method. --
-- -- --
-- -- public default function setValue( - -- s - -- ) - -
-Removes and returns the first element of the list. --
-- -- public function shift() - -
-Compute the file size. --
-- -- public function size() - -
-Creates a XML Document from a string with it’s source code. --
-- -- --
-- -- public function str2xml( - -- sXml - -- ) - -
-Applies the xslt transformation AS IT IS, in other words it relies only in the built-in parser to do exactly what your transformation requested. --
-- -- --
-- -- public function strictTransform( - -- Xml, - -- -- - Xslt - -- ) - -
-Convert strings into an array of bytes. --
-- -- --
-- -- public function string2bytes( - -- string - -- ) - -
-Mimics the string placeholders. --
-- -- --
-- -- function strsubstitute( - -- template, - -- -- - replacements - -- ) - -
-This call is intended for the marking of false positives, things that were incorrectly marked as spam. --
-- -- public function submitHam() - -
-This call is for submitting comments that weren’t marked as spam but should have been. --
-- -- public function submitSpam() - -
-Use this method to retrieve an evaluated version of the value with the given replacements. --
-- -- --
-- -- public function substitute( - -- saArgs - -- ) - -
-Extracts a specified number of characters in a evaluated template, from a start index. --
-- -- --
-- -- public function substr( - -- iStart, - -- -- - iLength, - -- -- - saArgs - -- ) - -
-Extracts the characters in a evaluated template between two specified indices. --
-- -- --
-- -- public function substring( - -- iStart, - -- -- - iStop, - -- -- - saArgs - -- ) - -
-Compute the template and search for a match between the value and a relular expression. --
-- -- --
-- -- public function test( - -- sPattern, - -- -- - bIgnoreCase, - -- -- - bGlobal, - -- -- - saArgs - -- ) - -
-Returns a friendly message of the test. --
-- -- --
-- -- public function test( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
-Returns a HTML representation of this model. --
-- -- public function toHTML() - -
-Returns a JSON representation of this model. --
-- -- public function toJSON() - -
-Compute the template and retrieve a lowercased version of it’s value. --
-- -- --
-- -- public function toLowerCase( - -- saArgs - -- ) - -
-Returns the RSS representation to be used inside channel. --
-- -- public function toString() - -
-Returns the category representation to be used inside channel or item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the cloud representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the enclosure representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the guid representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the image representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the item representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the skipDays representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the skipHours representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the source representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the textInput representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Reads the entire buffer and return it. --
-- -- public function toString() - -
-Compute the template and retrieve an uppercased version of it’s value. --
-- -- --
-- -- public function toUpperCase( - -- saArgs - -- ) - -
-Returns a XML representation of this model. --
-- -- public function toXML() - -
-Unload a POST string into the Session(“this”) scripting dictionary. --
-- -- public sub unloadShuttle() - -
-Adds one element to the beginning of the list and returns the new length. --
-- -- --
-- -- public function unshift( - -- Node - -- ) - -
-Contacts the reCAPTCHA service and get it’s response. --
-- -- --
-- -- public function verify( - -- sChallenge, - -- -- - sResponse - -- ) - -
-Logs a warning --
-- -- --
-- -- public sub warn( - -- message, - -- -- - arguments - -- ) - -
-Main writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - arguments, - -- -- - tp - -- ) : call [_ε] - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- byval - -- message, - -- -- - - -- tp - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
- $#! - | -- |
- - | -
- ${1: |
-
- - | -
- ${1: |
-
- - | -
- ${1: |
-
- - | -- [], Template - | -
- - | -- [_ε] - - | -
- - | -- [_ι], Logger_Adapter_FirePHP - | -
- - | -- [_μ], Logger_Adapter_FirePHP - | -
- - | -- [_ρ], Logger_Interface - | -
- - | -- [_τ], Logger - | -
- - | -- [_Adapters], Logger - | -
- - | -- [_compare] - - | -
- - | -- [_Filters] - - | -
- - | -- [_getBCC], Email_Adapter_CDO - | -
- - | -- [_getCC], Email_Adapter_CDO - | -
- - | -- [_getTo], Email_Adapter_CDO - | -
- - | -- [_isAcceptable], Logger - | -
- - | -- [addFilter], Logger_Interface - | -
- - | -- [isAcceptable], Logger_Interface - | -
- A - | -- |
- - | -- acl.asp - | -
- - | -- Adapter - - | -
- - | -- addAdapter, Logger - | -
- - | -- addAttachment, Email - | -
- - | -- addBCC, Email - | -
- - | -- addCC, Email - | -
- - | -- addFilter - - | -
- - | -- addHandler, CustomEvent - | -
- - | -- addTo, Email - | -
- - | -- Akismet - | -
- - | -- akismet.asp - | -
- - | -- alert, Logger - | -
- - | -- all, Paginator - | -
- - | -- anotherView.asp - | -
- - | -- append, StringBuilder - | -
- - | -
- application. |
-
- - | -- Application_onStart - - | -
- - | -- arccos - | -
- - | -- arccosec - | -
- - | -- arccotan - | -
- - | -- arcsec - | -
- - | -- arcsin - | -
- - | -- Arguments, CustomEvent - | -
- - | -- assert, UnitTest - | -
- - | -- atom.asp - | -
- - | -- Attachments, Email - | -
- - | -- auth.asp - | -
- - | -- author, RSS_Item - | -
- - | -- autoRotate, Image - | -
- - | -- axeInfo - | -
- B - | -- |
- - | -- base.asp - | -
- - | -
- base. |
-
- - | -- Base64 - | -
- - | -- base64.asp - | -
- - | -- Bccs, Email - | -
- - | -- bgColor, Image - | -
- - | -- blog, Akismet - | -
- - | -- body, Email - | -
- - | -- bytes2hex, Rijndael - | -
- - | -- bytes2string, Rijndael - | -
-Short hand name for substitute. --
-- -- --
-- -- public function []( - -- saArgs - -- ) - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Checks for an adapter assignment. --
-- -- private sub [_ε] - -
-Maps Logger types to FirePHP types. --
-- -- --
-- -- private function [_μ]( - -- tp - -- ) - -
-Accepts only protected calls --
-- -- private sub [_ρ]() - -
-Compares two numbers by an order operator. --
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
-Compares two numbers by an order operator. --
-- -- --
-- -- private function [_compare]( - -- a, - -- -- - b, - -- -- - op - -- ) - -
-Returns a csv version of blind carbon copy receivers collection collection. --
-- -- --
-- -- private function [_getBCC]( - -- Email - -- ) - -
-Returns a csv version of carbon copy receivers collection. --
-- -- --
-- -- private function [_getCC]( - -- Email - -- ) - -
-Returns a csv version of receivers collection. --
-- -- --
-- -- private function [_getTo]( - -- Email - -- ) - -
-Check with Filters if a message can be logged. --
-- -- --
-- -- private function [_isAcceptable]( - -- message, - -- -- - tp - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub [addFilter]( - -- mixed - -- ) : call [_ρ] - -
-Check with Filters if a message can be logged. --
-- -- --
-- -- public function [isAcceptable]( - -- message, - -- -- - tp - -- ) : call [_ρ] - -
-Pushes a new Logger_Interface adapter to Adapters list --
-- -- --
-- -- public sub addAdapter( - -- Adapter - -- ) - -
-Adds a fully qualified file name to the attachments collection. --
-- -- --
-- -- public sub addAttachment( - -- path - -- ) - -
-Adds an email to the blind carbon copy receivers collection. --
-- -- --
-- -- public sub addBCC( - -- email - -- ) - -
-Adds an email to the carbon copy receivers collection. --
-- -- --
-- -- public sub addCC( - -- email - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Add a filter that will be applied before writing the message in this adapter. --
-- -- --
-- -- public sub addFilter( - -- mixed - -- ) - -
-Adds a handler. --
-- -- --
-- -- public sub addHandler( - -- fn - -- ) - -
-Adds an email to the receivers collection. --
-- -- --
-- -- public sub addTo( - -- email - -- ) - -
-Logs an alert --
-- -- --
-- -- public sub alert( - -- message, - -- -- - arguments - -- ) - -
-Add the incoming data to the buffer. --
-- -- --
-- -- public sub append( - -- data - -- ) - -
-Define Application constants and load the config.xml data into application configuration. --
-- -- sub Application_onStart - -
-Inverse Cosine. --
-- -- --
-- -- public function arccos( - -- x - -- ) - -
-Inverse Cosecant. --
-- -- --
-- -- public function arccosec( - -- x - -- ) - -
-Inverse Cotangent. --
-- -- --
-- -- public function arccotan( - -- x - -- ) - -
-Inverse Secant. --
-- -- --
-- -- public function arcsec( - -- x - -- ) - -
-Inverse Sine. --
-- -- --
-- -- public function arcsin( - -- x - -- ) - -
-Tests if the coded function or method returns an equal value to the expected value. --
-- -- --
-- -- public function assert( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
-Prints information about the ASP Xtreme Evolution version and Server scripting engine. --
-- -- function axeInfo() - -
-Convert an array of bytes into it’s hex form. --
-- -- --
-- -- public function bytes2hex( - -- bytes - -- ) - -
-Convert an array of bytes into strings. --
-- -- --
-- -- public function bytes2string( - -- bytes - -- ) - -
-Informs the request page cache index --
-- -- --
-- -- public function cacheIndex( - -- sController, - -- -- - sAction - -- ) - -
-Compute the template and retrieve a camelized version of it’s value. --
-- -- --
-- -- public function camelize( - -- cSeparator, - -- -- - saArgs - -- ) - -
-Compute the template and retrieve a capitalized version of it’s value. --
-- -- --
-- -- public function capitalize( - -- cSeparator, - -- -- - saArgs - -- ) - -
-Returns the value of a number rounded upwards to the nearest integer. --
-- -- --
-- -- function ceiling( - -- n - -- ) - -
-Look up in the evaluated template for a character at the specified position. --
-- -- --
-- -- public function charAt( - -- i, - -- -- - saArgs - -- ) - -
-Performs a check in the Adapter for the Interface specifications. --
-- -- public function check() - -
-Removes all extraneous whitespace from a string and trims it. --
-- -- --
-- -- public function clean( - -- saArgs - -- ) - -
-Compute the requested view with the current data and return it’s source to be used inside the current process. --
-- -- public function computeView() - -
-Compute the template and look for the position of the first occurence of a specified fragment in the evaluated string. --
-- -- --
-- -- public function contains( - -- sFragment, - -- -- - saArgs - -- ) - -
-Cosecant. --
-- -- --
-- -- public function cosec( - -- x - -- ) - -
-Cotangent. --
-- -- --
-- -- public function cotan( - -- x - -- ) - -
-Create || Overwrite a file in the file system. --
-- -- --
-- -- public sub createFile( - -- sFilePath, - -- -- - sContent - -- ) - -
-Creates a friendly relative link to be used as an URL-Rewrite hyperlink reference. --
-- -- --
-- -- public function createLink( - -- sController, - -- -- - sAction - -- ) - -
-Logs a critical --
-- -- --
-- -- public sub critical( - -- message, - -- -- - arguments - -- ) - -
- D - | -- |
- - | -- data - - | -
- - | -- debug, Logger - | -
- - | -- dec2hex - | -
- - | -- decode, Base64 - | -
- - | -- decodedSize, Base64 - | -
- - | -- decryptData, Rijndael - | -
- - | -- default.asp - | -
- - | -- defaultController.asp - | -
- - | -- defaultModel.asp - | -
- - | -- defaultView.asp - | -
- - | -- description - - | -
- - | -- dispatch, Kernel - | -
- - | -- docs, RSS - | -
- - | -- domain - - | -
- - | -- domainName, ReCaptcha - | -
- E - | -- |
- - | -- Email - | -
- - | -- email.asp - | -
- - | -- Email_Adapter_CDO - | -
- - | -- Email_Interface - | -
- - | -- emerg, Logger - | -
- - | -- Enclosure, RSS_Item - | -
- - | -- encode, Base64 - | -
- - | -- encodedSize, Base64 - | -
- - | -- encoding - - | -
- - | -- encryptData - - | -
- - | -- error, Logger - | -
- - | -- error.asp - | -
- - | -- errorCode, Image - | -
- - | -- errorText - - | -
- - | -- exception, Kernel - | -
- - | -- extract, Zip - | -
- - | -- extractWithoutFolders, Zip - | -
- F - | -- |
- - | -- fileExists, Kernel - | -
- - | -- fileExt, Zip_File - | -
- - | -- fileName, Zip_File - | -
- - | -- Files - - | -
- - | -- fire, CustomEvent - | -
- - | -- firephp.asp - | -
- - | -- floor - | -
- - | -- Foot, List - | -
- - | -- forceNewCache, Image - | -
- - | -- Form, Upload - | -
- - | -- formName, Upload_File - | -
- - | -- from, Email - | -
- - | -
- Functions
-
- Global
-
-
- app\ AkismetBase64ColorCustomEventEmail_Adapter_CDOEmail_InterfaceImageInterfaceJsonJSONKernelListLoggerLogger_Adapter_FirePHPLogger_Adapter_ResponseLogger_Adapter_TextLogger_InterfaceMarkdownMD5OrderlyPaginatorReCaptchaRijndaelRSSRSS_CategoryRSS_CloudRSS_EnclosureRSS_GuidRSS_ImageRSS_ItemRSS_SkipDaysRSS_SkipHoursRSS_SourceRSS_TextInputSHA256StringBuilderTemplateTranslatorTranslator_InterfaceUnitTestUpload_FileZipZip_File
- |
-
- G - | -- |
- - | -- generator, RSS - | -
- - | -- genericView.asp - | -
- - | -- getBinary - - | -
- - | -- getChildNodes, Json - | -
- - | -- getElement, Json - | -
- - | -- getExif, Image - | -
- - | -- getFilename, Image - | -
- - | -- getMime, Image - | -
- - | -- getText - - | -
- - | -- getXmlNodeValues, Kernel - | -
- - | -- global.asa - - | -
- - | -- go - - | -
- - | -- Guid, RSS_Item - | -
-Logs a debug --
-- -- --
-- -- public sub debug( - -- message, - -- -- - arguments - -- ) - -
-Converts a decimal number into a hexadecimal one. --
-- -- --
-- -- function dec2hex( - -- value - -- ) - -
-Converts base64 into a binary data. --
-- -- --
-- -- public function decode( - -- base64 - -- ) - -
-Computes the size of the binary data in Kilobytes (KB). --
-- -- --
-- -- public function decodedSize( - -- bin - -- ) - -
-Use this method to decrypt your data. --
-- -- --
-- -- public function decryptData( - -- bytIn, - -- -- - bytPassword - -- ) - -
-If no error exists, send the Output.value string to user. --
-- -- public function dispatch() - -
-Logs an emergency --
-- -- --
-- -- public sub emerg( - -- message, - -- -- - arguments - -- ) - -
-Converts a binary into a base64 data. --
-- -- --
-- -- public function encode( - -- bin - -- ) - -
-Computes the size of the base64 data in Kilobytes (KB). --
-- -- --
-- -- public function encodedSize( - -- base64 - -- ) - -
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- bytMessage, - -- -- - bytPassword - -- ) - -
-Use this method to encrypt your data. --
-- -- --
-- -- public function encryptData( - -- sMessage - -- ) - -
-Logs an error --
-- -- --
-- -- public sub error( - -- message, - -- -- - arguments - -- ) - -
-Triggers a generic internal error exception with the given message. --
-- -- --
-- -- public sub exception( - -- message - -- ) - -
-Extract the files in the standard way. --
-- -- --
-- -- public sub extract( - -- sTargetPath - -- ) - -
-Extract the files without caring about their relative path inside the zip. --
-- -- --
-- -- public sub extractWithoutFolders( - -- sTargetPath - -- ) - -
-Checks if the file exists in the file system. --
-- -- --
-- -- public function fileExists( - -- sFilePath - -- ) - -
-Retrieve the file extension. --
-- -- public function fileExt() - -
-Retrieve the file name. --
-- -- public function fileName() - -
-Fires all handlers attached to this event. --
-- -- public sub fire() - -
-Returns the value of a number rounded downwards to the nearest integer. --
-- -- --
-- -- function floor( - -- n - -- ) - -
-Fetch for a binary in the given path and return its value as a Stream. --
-- -- --
-- -- public function getBinary( - -- path - -- ) - -
-Extract binary data from the Xml. --
-- -- public function getBinary() - -
-Look for all element child keys and enumerate them. --
-- -- --
-- -- public function getChildNodes( - -- sPath - -- ) - -
-This function takes a dot separated path and look for the element value in the JSON. --
-- -- --
-- -- public function getElement( - -- sPath - -- ) - -
-Extract EXIF(EXchangeable Image Format) data from the Xml. --
-- -- public function getExif() - -
-Extract filename from the imageinfo in Xml. --
-- -- public function getFilename() - -
-Extract MimeType from the Xml. --
-- -- public function getMime() - -
-Looks up a message in the current configuration. --
-- -- --
-- -- public default function getText( - -- message - -- ) : call [_ε] - -
-Fetch for the translation of the message in the right language. --
-- -- --
-- -- public default function getText( - -- lang, - -- -- - message - -- ) - -
-Creates a string array with the text of all nodes that match with the XPath. --
-- -- --
-- -- public function getXmlNodeValues( - -- Xml, - -- -- - sXPath - -- ) - -
-Executes the request to the application to retrieve the XML data. --
-- -- public sub go() - -
-Parses the zip file and create the Zip_File objects. --
-- -- public sub go() - -
- H - | -- |
- - | -- harccos - | -
- - | -- harccosec - | -
- - | -- harccotan - | -
- - | -- harcsec - | -
- - | -- harcsin - | -
- - | -- harctan - | -
- - | -- hasNext, List_Node - | -
- - | -- hasPrev, List_Node - | -
- - | -- hcos - | -
- - | -- hcosec - | -
- - | -- hcotan - | -
- - | -- Head, List - | -
- - | -- height - - | -
- - | -- hex2bytes(hex), Rijndael - | -
- - | -- hex2dec - | -
- - | -- hex2hsb, Color - | -
- - | -- hex2rgb, Color - | -
- - | -- hsb2hex, Color - | -
- - | -- hsb2rgb, Color - | -
- - | -- hsec - | -
- - | -- hsin - | -
- - | -- htan - | -
- - | -- hyphenate, Template - | -
- I - | -- |
- - | -- iif - | -
- - | -- image, Image - | -
- - | -- Image - - | -
- - | -- image.asp - | -
- - | -- imagerUri, Image - | -
- - | -- Implementation, Interface - | -
- - | -- indentedTransform, Kernel - | -
- - | -- info, Logger - | -
- - | -- initialize - - | -
- - | -- innerText - - | -
- - | -- insert, ReCaptcha - | -
- - | -- inspect, Zip - | -
- - | -- inspect.asp - | -
- - | -- Interface - | -
- - | -- interface.asp - - | -
- - | -- invert, Color - | -
- - | -- isEven - | -
- - | -- isFolder, Zip_File - | -
- - | -- isHTML, Email - | -
- - | -- isOdd - | -
- - | -- isPermaLink, RSS_Guid - | -
- - | -- isSpam, Akismet - | -
- - | -- Items, RSS - | -
- J - | -- |
- - | -- Json - | -
- - | -- JSON - | -
- - | -- json.asp - | -
- - | -- json2.asp - | -
- - | -- JsonEngine - | -
- K - | -- |
- - | -- Kernel - | -
- - | -- kernel.asp - | -
- L - | -- |
- - | -- lang, ReCaptcha - | -
- - | -
- language
-
- RSSTranslator
-
- |
-
- - | -- lastBuildDate, RSS - | -
- - | -- length - - | -
- - | -- link - - | -
- - | -- List - | -
- - | -- list.asp - | -
- - | -- List_Node - | -
- - | -- loadCache - | -
- - | -- loadCommon - | -
- - | -- loadJson, Json - | -
- - | -- loadShuttle, Kernel - | -
- - | -- loadTextFile, Kernel - | -
- - | -- Logger - | -
- - | -- logger.asp - | -
- - | -- Logger_Adapter_FirePHP - | -
- - | -- Logger_Adapter_Response - | -
- - | -- Logger_Adapter_Text - | -
- - | -- Logger_Interface - | -
- - | -- logN - | -
-Inverse Hyperbolic Cosine. --
-- -- --
-- -- public function harccos( - -- x - -- ) - -
-Inverse Hyperbolic Cosecant. --
-- -- --
-- -- public function harccosec( - -- x - -- ) - -
-Inverse Hyperbolic Cotangent. --
-- -- --
-- -- public function harccotan( - -- x - -- ) - -
-Inverse Hyperbolic Secant. --
-- -- --
-- -- public function harcsec( - -- x - -- ) - -
-Inverse Hyperbolic Sine. --
-- -- --
-- -- public function harcsin( - -- x - -- ) - -
-Inverse Hyperbolic Tangent. --
-- -- --
-- -- public function harctan( - -- x - -- ) - -
-Hyperbolic Cosine. --
-- -- --
-- -- public function hcos( - -- x - -- ) - -
-Hyperbolic Cosecant. --
-- -- --
-- -- public function hcosec( - -- x - -- ) - -
-Hyperbolic Cotangent. --
-- -- --
-- -- public function hcotan( - -- x - -- ) - -
-Convert the hex form into an array of bytes --
-- -- --
-- -- public function hex2bytes( - -- hex - -- ) - -
-Converts a hexadecimal number into a decimal one. --
-- -- --
-- -- function hex2dec( - -- value - -- ) - -
-Converts HEX to HSB --
-- -- --
-- -- public function hex2hsb( - -- sharp - -- ) - -
-Converts HEX to RGB --
-- -- --
-- -- function hex2rgb( - -- sharp - -- ) - -
-Converts HSB to HEX --
-- -- --
-- -- public function hsb2hex( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
-Converts HSB to RGB --
-- -- --
-- -- function hsb2rgb( - -- hue, - -- -- - saturation, - -- -- - brightness - -- ) - -
-Hyperbolic Secant. --
-- -- --
-- -- public function hsec( - -- x - -- ) - -
-Hyperbolic Sine. --
-- -- --
-- -- public function hsin( - -- x - -- ) - -
-Hyperbolic Tangent. --
-- -- --
-- -- public function htan( - -- x - -- ) - -
-Compute the template and retrieve a hyphenated version of it’s value. --
-- -- --
-- -- public function hyphenate( - -- cSeparator, - -- -- - saArgs - -- ) - -
---
-- -- --
-- -- function iif( - -- expr, - -- -- - truepart, - -- -- - falsepart - -- ) - -
-Since MSXML are very conservative about how much whitespace they put into serialized XSLT results when xsl:output indent=”yes”, we are properly indenting XML, without relying on the processor’s built-in indenting capability. --
-- -- --
-- -- public function indentedTransform( - -- Xml, - -- -- - Xslt, - -- -- - sOutput, - -- -- - sIndent - -- ) - -
-Logs a info --
-- -- --
-- -- public sub info( - -- message, - -- -- - arguments - -- ) - -
-ASP Classes doesn’t have a constructor, so you must initialize the class manually. --
-- -- --
-- -- public sub initialize( - -- key, - -- -- - uri - -- ) - -
-Initialize the application configuration, setup the (string)controller, (string)action and the (string[])argv sessions which will be used to run the MVC architecture. --
-- -- public function initialize() - -
-Use this subroutine in the document body to insert the reCAPTCHA in your page. --
-- -- public sub insert() - -
-Retrive a view from inside the zip. --
-- -- public function inspect() - -
-Inverts the color. --
-- -- --
-- -- public function invert( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
-Checks if a natural is even or not. --
-- -- --
-- -- function isEven( - -- n - -- ) - -
-Checks if a natural is odd or not. --
-- -- --
-- -- function isOdd( - -- n - -- ) - -
-Test for spam. --
-- -- public function isSpam() - -
-Compute the final length of an evaluated template with the given replacements. --
-- -- --
-- -- public function length( - -- saArgs - -- ) - -
-Configures cache life time and items to be cached. --
-- -- --
-- -- sub loadCache( - -- Xml - -- ) - -
-Loads common application configurations. --
-- -- --
-- -- sub loadCommon( - -- Xml - -- ) - -
-Since ASP Classes strangely doesn’t accept parameters at it’s initializa- tion. --
-- -- --
-- -- public sub loadJson( - -- sJson - -- ) - -
-A shuttle is needed to carry the user Session(“this”) information to the server Session(“this”) in order to the view be a document and not a variable. --
-- -- --
-- -- public function loadShuttle( - -- Sd - -- ) - -
-If the file exists, read it all and return the content. --
-- -- --
-- -- public function loadTextFile( - -- sFilePath - -- ) - -
-Logarithm to base N. --
-- -- --
-- -- public function logN( - -- x, - -- -- - N - -- ) - -
- M - | -- |
- - | -- make, Paginator - | -
- - | -- makeHtml, Markdown - | -
- - | -- managingEditor, RSS - | -
- - | -- Markdown - | -
- - | -- markdown.asp - | -
- - | -- max - | -
- - | -- MD5 - | -
- - | -- md5.asp - | -
- - | -- mime, RSS_Enclosure - | -
- - | -- min - | -
- - | -- mix, Color - | -
- N - | -- |
- - | -- name - - | -
- - | -- new_JsonEngine, Json - | -
- - | -- notice, Logger - | -
- - | -- nxt, Paginator - | -
- O - | -- |
- - | -- Orderly - | -
- - | -- orderly.asp - | -
- - | -- originalHeight, Image - | -
- - | -- originalWidth, Image - | -
- - | -- output, Image - | -
- - | -- Owner, CustomEvent - | -
- P - | -- |
- - | -- page, Paginator - | -
- - | -- pages, Paginator - | -
- - | -- Paginator - | -
- - | -- paginator.asp - | -
- - | -- parse - - | -
- - | -- path - - | -
- - | -- pNext, List_Node - | -
- - | -- pop, List - | -
- - | -- port, RSS_Cloud - | -
- - | -- pPrev, List_Node - | -
- - | -- printerFriendlyCode, Kernel - | -
- - | -- Priorities - - | -
- - | -- privateKey, ReCaptcha - | -
- - | -- procedure, RSS_Cloud - | -
- - | -- process, Kernel - | -
- - | -- processBinary, Image - | -
- - | -- processExif, Image - | -
- - | -
- Properties
-
- Global
- ${1:
- |
-
- - | -- Properties and Functions, Email - | -
- - | -- protocol, RSS_Cloud - | -
- - | -- prv, Paginator - | -
- - | -- pubDate - - | -
- - | -- publicKey, ReCaptcha - | -
- - | -- push, List - | -
- R - | -- |
- - | -- ReCaptcha - | -
- - | -- recaptcha.asp - | -
- - | -- remove, List - | -
- - | -- removeAttachment, Email - | -
- - | -- removeBCC, Email - | -
- - | -- removeCC, Email - | -
- - | -- removeElement, Json - | -
- - | -- removeHandler, CustomEvent - | -
- - | -- removeTo, Email - | -
- - | -- requireds, Interface - | -
- - | -- reset, StringBuilder - | -
- - | -- response.asp - | -
- - | -- revealArguments, CustomEvent - | -
- - | -- rgb2hex, Color - | -
- - | -- rgb2hsb, Color - | -
- - | -- Rijndael - | -
- - | -- rijndael.asp - | -
- - | -- rotation, Image - | -
- - | -- RSS - | -
- - | -- rss.asp - | -
- - | -- RSS_Category - | -
- - | -- RSS_Cloud - | -
- - | -- RSS_Enclosure - | -
- - | -- RSS_Guid - | -
- - | -- RSS_Image - | -
- - | -- RSS_Item - | -
- - | -- RSS_SkipDays - | -
- - | -- RSS_SkipHours - | -
- - | -- RSS_Source - | -
- - | -- RSS_TextInput - | -
-Builds the index --
-- -- public function make() - -
-Converts Markdown into XHTML. --
-- -- --
-- -- public function makeHtml( - -- text - -- ) - -
-Returns the number with the highest value of an array. --
-- -- --
-- -- function max( - -- a - -- ) - -
-Returns the number with the lowest value of an array. --
-- -- --
-- -- function min( - -- a - -- ) - -
-Mix two or more colors. --
-- -- --
-- -- public function mix( - -- base, - -- -- - colors, - -- -- - percentage - -- ) - -
-Private function used to create a new instance of the JsonEngine Class. --
-- -- --
-- -- function new_JsonEngine( - -- sJson - -- ) - -
-Logs a notice --
-- -- --
-- -- public sub notice( - -- message, - -- -- - arguments - -- ) - -
-Removes and returns the last element of the list. --
-- -- public function pop() - -
-replaces { chr(60) , chr(62) } with their xhtml respectives. --
-- -- --
-- -- public function printerFriendlyCode( - -- sCode - -- ) - -
-Process the controller if it exists. --
-- -- public function process() - -
-Adds one element to the end of the list and returns the new length. --
-- -- --
-- -- public function push( - -- Node - -- ) - -
-Removes an element based on the result of the assert. --
-- -- --
-- -- public function remove( - -- assert - -- ) - -
-Removes a fully qualified file name to the attachments collection. --
-- -- --
-- -- public sub removeAttachment( - -- path - -- ) - -
-Removes an email from the blind carbon copy receivers collection. --
-- -- --
-- -- public sub removeBCC( - -- email - -- ) - -
-Removes an email from the carbon copy receivers collection. --
-- -- --
-- -- public sub removeCC( - -- email - -- ) - -
-This subroutine removes a node from the object. --
-- -- --
-- -- public sub removeElement( - -- sPath - -- ) - -
-description --
-- -- --
-- -- public sub removeHandler( - -- fn - -- ) - -
-Removes an email from the receivers collection. --
-- -- --
-- -- public sub removeTo( - -- email - -- ) - -
-Clear the string builder data. --
-- -- public function reset() - -
-Reveals the event arguments. --
-- -- public function revealArguments() - -
-Converts RGB to HEX. --
-- -- --
-- -- function rgb2hex( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
-Converts RGB to HSB. --
-- -- --
-- -- function rgb2hsb( - -- red, - -- -- - green, - -- -- - blue - -- ) - -
- S - | -- |
- - | -- sanitize - | -
- - | -- saveToFile - - | -
- - | -- search, List - | -
- - | -- sec - | -
- - | -- send - - | -
- - | -- separator, Template - | -
- - | -- serialize, Json - | -
- - | -- Session_onStart - - | -
- - | -
- sessions. |
-
- - | -
- sessions. |
-
- - | -- setCommentAuthor, Akismet - | -
- - | -- setCommentAuthorEmail, Akismet - | -
- - | -- setCommentAuthorUrl, Akismet - | -
- - | -- setCommentContent, Akismet - | -
- - | -- setCommentType, Akismet - | -
- - | -- setElement, Json - | -
- - | -- setPermalink, Akismet - | -
- - | -- setValue, Template - | -
- - | -- SHA256 - | -
- - | -- sha256.asp - | -
- - | -- shift, List - | -
- - | -
- shuttle. |
-
- - | -
- shuttle. |
-
- - | -
- singletons. |
-
- - | -
- singletons. |
-
- - | -- size, Upload_File - | -
- - | -- skip - - | -
- - | -- SkipDays, RSS - | -
- - | -- SkipHours, RSS - | -
- - | -- Source, RSS_Item - | -
- - | -- status, ReCaptcha - | -
- - | -- str2xml, Kernel - | -
- - | -- strictTransform, Kernel - | -
- - | -- string2bytes, Rijndael - | -
- - | -- StringBuilder - | -
- - | -- stringbuilder.asp - | -
- - | -- stringify, JSON - | -
- - | -- strsubstitute - | -
- - | -- subject, Email - | -
- - | -- submitHam, Akismet - | -
- - | -- submitSpam, Akismet - | -
- - | -- substitute, Template - | -
- - | -- substr, Template - | -
- - | -- substring, Template - | -
- T - | -- |
- - | -- Template - | -
- - | -- template.asp - | -
- - | -- test - - | -
- - | -- text.asp - | -
- - | -- textile.asp - | -
- - | -- TextInput, RSS - | -
- - | -- theme, ReCaptcha - | -
- - | -- title - - | -
- - | -- toHTML - | -
- - | -- toJSON - | -
- - | -- toLowerCase, Template - | -
- - | -- Tos, Email - | -
- - | -- toString - - | -
- - | -- toUpperCase, Template - | -
- - | -- toXML - - | -
- - | -- Translator - | -
- - | -- translator.asp - | -
- - | -- Translator_Interface - | -
- - | -- ttl, RSS - | -
-A generic sanitize function. --
-- -- --
-- -- public function sanitize( - -- value, - -- -- - placeholders, - -- -- - replacements - -- ) - -
-Saves the image to a path specified by path. --
-- -- --
-- -- public function saveToFile( - -- path, - -- -- - overwrite - -- ) - -
-Saves the binary in the hard drive. --
-- -- --
-- -- public function saveToFile( - -- sPath - -- ) - -
-Save the file to the hard drive. --
-- -- --
-- -- public function saveToFile( - -- sPath - -- ) - -
-Returns an element based on the result of the assert. --
-- -- --
-- -- public function search( - -- assert - -- ) - -
-Secant. --
-- -- --
-- -- public function sec( - -- x - -- ) - -
-Procedure send is used to send an Email. --
-- -- public sub send() : call [_ε] - -
-Sends an Email using CDO (Collaboration Data Objects), a Microsoft technology that simplify the creation of messaging applications. --
-- -- --
-- -- public sub sends( - -- Email - -- ) - -
-Procedure send is used to send an Email. --
-- -- --
-- -- public sub send( - -- Email - -- ) - -
-Converts the object into a JSON string. --
-- -- --
-- -- public function serialize( - -- path - -- ) - -
-In order to compute the execution time of a request, we need to start a timer. --
-- -- sub Session_onStart - -
-Set Akismet comment_author parameter. --
-- -- --
-- -- public sub setCommentAuthor( - -- value - -- ) - -
-Set Akismet comment_author_email parameter. --
-- -- --
-- -- public sub setCommentAuthorEmail( - -- value - -- ) - -
-Set Akismet comment_author_url parameter. --
-- -- --
-- -- public sub setCommentAuthorUrl( - -- value - -- ) - -
-Set Akismet comment_content parameter. --
-- -- --
-- -- public sub setCommentContent( - -- value - -- ) - -
-Set Akismet comment_type parameter. --
-- -- --
-- -- public sub setCommentType( - -- value - -- ) - -
-This subroutine augments the JSON by adding elements to it. --
-- -- --
-- -- public sub setElement( - -- sPath, - -- -- - value - -- ) - -
-Set Akismet permalink parameter. --
-- -- --
-- -- public sub setPermalink( - -- value - -- ) - -
-This is the class default method. --
-- -- --
-- -- public default function setValue( - -- s - -- ) - -
-Removes and returns the first element of the list. --
-- -- public function shift() - -
-Compute the file size. --
-- -- public function size() - -
-Creates a XML Document from a string with it’s source code. --
-- -- --
-- -- public function str2xml( - -- sXml - -- ) - -
-Applies the xslt transformation AS IT IS, in other words it relies only in the built-in parser to do exactly what your transformation requested. --
-- -- --
-- -- public function strictTransform( - -- Xml, - -- -- - Xslt - -- ) - -
-Convert strings into an array of bytes. --
-- -- --
-- -- public function string2bytes( - -- string - -- ) - -
-Mimics the string placeholders. --
-- -- --
-- -- function strsubstitute( - -- template, - -- -- - replacements - -- ) - -
-This call is intended for the marking of false positives, things that were incorrectly marked as spam. --
-- -- public function submitHam() - -
-This call is for submitting comments that weren’t marked as spam but should have been. --
-- -- public function submitSpam() - -
-Use this method to retrieve an evaluated version of the value with the given replacements. --
-- -- --
-- -- public function substitute( - -- saArgs - -- ) - -
-Extracts a specified number of characters in a evaluated template, from a start index. --
-- -- --
-- -- public function substr( - -- iStart, - -- -- - iLength, - -- -- - saArgs - -- ) - -
-Extracts the characters in a evaluated template between two specified indices. --
-- -- --
-- -- public function substring( - -- iStart, - -- -- - iStop, - -- -- - saArgs - -- ) - -
-Compute the template and search for a match between the value and a relular expression. --
-- -- --
-- -- public function test( - -- sPattern, - -- -- - bIgnoreCase, - -- -- - bGlobal, - -- -- - saArgs - -- ) - -
-Returns a friendly message of the test. --
-- -- --
-- -- public function test( - -- fn, - -- -- - argv, - -- -- - expected - -- ) - -
-Returns a HTML representation of this model. --
-- -- public function toHTML() - -
-Returns a JSON representation of this model. --
-- -- public function toJSON() - -
-Compute the template and retrieve a lowercased version of it’s value. --
-- -- --
-- -- public function toLowerCase( - -- saArgs - -- ) - -
-Returns the RSS representation to be used inside channel. --
-- -- public function toString() - -
-Returns the category representation to be used inside channel or item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the cloud representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the enclosure representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the guid representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the image representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the item representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the skipDays representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the skipHours representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the source representation to be used inside item. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Returns the textInput representation to be used inside channel. --
-- -- --
-- -- public function toString( - -- indents - -- ) - -
-Reads the entire buffer and return it. --
-- -- public function toString() - -
-Compute the template and retrieve an uppercased version of it’s value. --
-- -- --
-- -- public function toUpperCase( - -- saArgs - -- ) - -
-Returns a XML representation of this model. --
-- -- public function toXML() - -
- U - | -- |
- - | -- uncompSize, Zip_File - | -
- - | -- UnitTest - | -
- - | -- unittest.asp - | -
- - | -- unloadShuttle, Kernel - | -
- - | -- unshift, List - | -
- - | -- Upload - | -
- - | -- upload.asp - | -
- - | -- Upload_File - | -
- - | -- uri, Zip_File - | -
- - | -- uriVerify, ReCaptcha - | -
- - | -- url - - | -
- - | -- useQueryString, Image - | -
- V - | -- |
- - | -- value, Template - | -
- - | -- verify, ReCaptcha - | -
- - | -- visibles, Paginator - | -
- W - | -- |
- - | -- warn, Logger - | -
- - | -- webMaster, RSS - | -
- - | -- whitespace, Image - | -
- - | -- width - - | -
- - | -- wpApiKey, Akismet - | -
- - | -- write - - | -
- X - | -- |
- - | -- Xml, Image - | -
- - | -- xsession.asp - | -
- Z - | -- |
- - | -- Zip - | -
- - | -- zip.asp - | -
- - | -- Zip_File - | -
- - | -- zipName, Zip - | -
-Unload a POST string into the Session(“this”) scripting dictionary. --
-- -- public sub unloadShuttle() - -
-Adds one element to the beginning of the list and returns the new length. --
-- -- --
-- -- public function unshift( - -- Node - -- ) - -
-Contacts the reCAPTCHA service and get it’s response. --
-- -- --
-- -- public function verify( - -- sChallenge, - -- -- - sResponse - -- ) - -
-Logs a warning --
-- -- --
-- -- public sub warn( - -- message, - -- -- - arguments - -- ) - -
-Main writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - arguments, - -- -- - tp - -- ) : call [_ε] - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- byval - -- message, - -- -- - - -- tp - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
-Adapter writing routine --
-- -- --
-- -- public sub write( - -- message, - -- -- - tp - -- ) - -
- I - | -- |
- - | -- Interface - | -
- $#! - | -- |
- - | -- [_ι], Logger_Adapter_FirePHP - | -
- - | -- [_τ], Logger - | -
- - | -- [_Adapters], Logger - | -
- - | -- [_Filters] - - | -
- A - | -- |
- - | -- Adapter - - | -
- - | -- all, Paginator - | -
- - | -- Arguments, CustomEvent - | -
- - | -- Attachments, Email - | -
- - | -- author, RSS_Item - | -
- - | -- autoRotate, Image - | -
- B - | -- |
- - | -- Bccs, Email - | -
- - | -- bgColor, Image - | -
- - | -- blog, Akismet - | -
- - | -- body, Email - | -
- C - | -- |
- - | -- Categories - - | -
- - | -- cbZipUri, Zip - | -
- - | -- Ccs, Email - | -
- - | -
- classType
-
- Global
- ${1:
- |
-
- - | -
- classVersion
-
- Global
- ${1:
- |
-
- - | -- Cloud, RSS - | -
- - | -- comment, Akismet - | -
- - | -- comments, RSS_Item - | -
- - | -- compMethod, Zip_File - | -
- - | -- compRatio, Zip_File - | -
- - | -- compression, Image - | -
- - | -- compSize, Zip_File - | -
- - | -- container, UnitTest - | -
- - | -- contentType, Upload_File - | -
- - | -- copyright, RSS - | -
- - | -- count, List - | -
- - | -- crc32, Zip_File - | -
- D - | -- |
- - | -- data - - | -
- - | -- description - - | -
- - | -- docs, RSS - | -
- - | -- domain - - | -
- - | -- domainName, ReCaptcha - | -
- E - | -- |
- - | -- Enclosure, RSS_Item - | -
- - | -- encoding - - | -
- - | -- errorCode, Image - | -
- - | -- errorText - - | -
- F - | -- |
- - | -- Files - - | -
- - | -- Foot, List - | -
- - | -- forceNewCache, Image - | -
- - | -- Form, Upload - | -
- - | -- formName, Upload_File - | -
- - | -- from, Email - | -
- G - | -- |
- - | -- generator, RSS - | -
- - | -- Guid, RSS_Item - | -
- H - | -- |
- - | -- hasNext, List_Node - | -
- - | -- hasPrev, List_Node - | -
- - | -- Head, List - | -
- - | -- height - - | -
- I - | -- |
- - | -- image, Image - | -
- - | -- Image, RSS - | -
- - | -- imagerUri, Image - | -
- - | -- Implementation, Interface - | -
- - | -- innerText - - | -
- - | -- isFolder, Zip_File - | -
- - | -- isHTML, Email - | -
- - | -- isPermaLink, RSS_Guid - | -
- - | -- Items, RSS - | -
- L - | -- |
- - | -- lang, ReCaptcha - | -
- - | -
- language
-
- RSSTranslator
-
- |
-
- - | -- lastBuildDate, RSS - | -
- - | -- length, RSS_Enclosure - | -
- - | -- link - - | -
- M - | -- |
- - | -- managingEditor, RSS - | -
- - | -- mime, RSS_Enclosure - | -
- N - | -- |
- - | -- name - - | -
- - | -- nxt, Paginator - | -
- O - | -- |
- - | -- originalHeight, Image - | -
- - | -- originalWidth, Image - | -
- - | -- output, Image - | -
- - | -- Owner, CustomEvent - | -
- P - | -- |
- - | -- page, Paginator - | -
- - | -- pages, Paginator - | -
- - | -- path - - | -
- - | -- pNext, List_Node - | -
- - | -- port, RSS_Cloud - | -
- - | -- pPrev, List_Node - | -
- - | -- Priorities - - | -
- - | -- privateKey, ReCaptcha - | -
- - | -- procedure, RSS_Cloud - | -
- - | -- processBinary, Image - | -
- - | -- processExif, Image - | -
- - | -- protocol, RSS_Cloud - | -
- - | -- prv, Paginator - | -
- - | -- pubDate - - | -
- - | -- publicKey, ReCaptcha - | -
- R - | -- |
- - | -- requireds, Interface - | -
- - | -- rotation, Image - | -
- S - | -- |
- - | -- separator, Template - | -
- - | -- skip - - | -
- - | -- SkipDays, RSS - | -
- - | -- SkipHours, RSS - | -
- - | -- Source, RSS_Item - | -
- - | -- status, ReCaptcha - | -
- - | -- subject, Email - | -
- T - | -- |
- - | -- TextInput, RSS - | -
- - | -- theme, ReCaptcha - | -
- - | -- title - - | -
- - | -- Tos, Email - | -
- - | -- ttl, RSS - | -
- U - | -- |
- - | -- uncompSize, Zip_File - | -
- - | -- uri, Zip_File - | -
- - | -- uriVerify, ReCaptcha - | -
- - | -- url - - | -
- - | -- useQueryString, Image - | -
- V - | -- |
- - | -- value, Template - | -
- - | -- visibles, Paginator - | -
- W - | -- |
- - | -- webMaster, RSS - | -
- - | -- whitespace, Image - | -
- - | -- width - - | -
- - | -- wpApiKey, Akismet - | -
- X - | -- |
- - | -- Xml, Image - | -
- Z - | -- |
- - | -- zipName, Zip - | -