Below are snippets for SecondV.

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

7
Date Submitted Mon. May. 21st, 2007 12:22 AM
Revision 1
Scripter SecondV
Tags "register globals" register_globals, | PHP
Comments 0 comments
This function will reverse the affects of register_globals
5
Date Submitted Sun. May. 20th, 2007 10:58 PM
Revision 1
Scripter SecondV
Tags allow | deny | DOMAIN | PHP | post
Comments 3 comments
This small snippet will not allow _POST requests from a 'foreign' domain. It relies on the HTTP_REFERER variable.
10
Date Submitted Sun. May. 20th, 2007 5:27 AM
Revision 1
Scripter SecondV
Tags Online | PHP | URL
Comments 1 comments
This simple function will check if a url is valid (going by parse_url()) and if it's 'online' - by seeing if it returns a 302, 301, or 200 status code.
7
Date Submitted Sun. May. 20th, 2007 5:17 AM
Revision 1
Scripter SecondV
Tags "extract keywords" | "search engine" | keywords
Comments 1 comments
This class can be used to retrieve the search words entered by an user in a search engine site that lead the user to the current page.

The class can parse the HTTP_REFERER variable if present. Then it can detect which search engine site lead the user to the current page, and extract the search words.

Currently the following engines are supported:

- Google
- Yahoo
- MSN
- AllTheWeb
- LookSmart
- AskJeeves
6
Date Submitted Sun. May. 20th, 2007 4:51 AM
Revision 1
Scripter SecondV
Tags "mysql class" | Database | mysql | SQL
Comments 0 comments
This class is a MySQL database access wrapper. It can:

- Connect to a MySQL server
- Execute SQL queries and retrieve single value results or return result rows into arrays
- Return the last inserted table row identifier, the number of result rows and the number of affected rows
- Count the number of executed queries
- Lock and unlock tables
- Escape text literal values or like patterns
- Retrieve database access errors
5
Date Submitted Sun. May. 20th, 2007 4:45 AM
Revision 1
Scripter SecondV
Tags engine | parser | template
Comments 1 comments
This class implements a simple template engine that works by replacing text.

It can read a template file into a string. Then it searches and replaces all occurrences of the template place holder marks with the values of one or more template arguments.