Archive for May, 2009
Test Please Delete
Sunday, May 31st, 2009
Please delete cuz i haven't finished the code yet classes, rss, snippets
Snippets, Uncategorized | No Comments »
Friendly CAPTCHA
Saturday, May 30th, 2009
There is a base class that can display a text message to tell the user what he needs to input.
A math subclass generates an expression with a random math operation between two number values.
The user must enter the result of the operation to pass the CAPTCHA validation. The correct answer is stored in session variables for posterior validation.
classes
Uncategorized | No Comments »
HTML Image Tag
Friday, May 29th, 2009
It can automatically compute the image size to fill the width and height attributes for images defined from locally accessible files.
The class can also generate an image tag with a special source URL that contains the actual image data defined according to RFC 2397. This way it, the image can be embedded in your HTML documents, making it possible to display the HTML documents without requiring external image files.
The data for embedded images may be supplied from a locally accessible file or from a string that contains the image file binary data.
classes
Uncategorized | No Comments »
Signature
Thursday, May 28th, 2009

It can determine serveral details that identify the current user like it browser, operating system, IP address among others, and generates hash that can be used to determine if the user is the same in subsequent accesses.
classes
Uncategorized | No Comments »
[New] Free Web Hosting Control Panel Software
Thursday, May 28th, 2009
If you are setting up your own web server, or having to manage a bare-bones dedicated server or virtual private server (VPS), the software listed on this page may interest you. These free (and often open source) web hosting control panel software let you manage the server from your web browser. They let you configure the web server, email, FTP, databases, DNS, user accounts, domains, and so forth without having to resort to manual editing of server configuration files.
classes
Uncategorized | No Comments »
SPaging
Wednesday, May 27th, 2009
It is based on another class originally written by Ashish Vishwakarma.
This version changes the style of presentation of the pagination links.
classes
Uncategorized | No Comments »
Cup Scheduler
Wednesday, May 27th, 2009
It takes as input an array with the names of teams of a league. The number of teams must be even.
The class shuffles the array and displays a list of matches with teams that play against each other.
classes
Uncategorized | No Comments »
Security Filter for Request HTTP Data
Tuesday, May 26th, 2009
It can traverse the $_GET, $_POST, $_REQUEST and $_COOKIE request super-global array variables and reset the entries that match certain regular expressions that identify potential dangerous values.
Currently filter values that contain SQL retrieval queries, cross-site scripting attacks, hexadecimal values, calls to base64_decode and system functions.
classes
Uncategorized | No Comments »
Easy Image DB Management
Tuesday, May 26th, 2009
classes
Uncategorized | No Comments »
Safe Upload
Monday, May 25th, 2009
It checks a given uploaded file and performs several checks before processing it like: checking the file name against a black list of banned names, check if the file already exists in a target directory, check whether the file size is not zero nor exceeds and given limit, check the MIME type against a list of accepted types, check the file name extension against a list of accepted extensions.
Then the class processes the file by moving it to a target directory. If it succeeds, the class returns an array with several details about the file.