File/cms/mr_test.php

Description

Testscript for Advanced Mod Rewrite Plugin.

The goal of this testscript is to provide an easy way for a variance comparison of created SEO URLs against their resolved parts.

This testscript fetches the full category and article structure of actual Contenido installation, creates the SEO URLs for each existing category/article and resolves the generated URLs.

Usage: ------

  1. Install the Advanced Mod Rewrite Plugin
  2. Set your desired plugin settings by using the Advanced Mod Rewrite area in the Backend
  3. Copy this file to your client directory, it is normally named '/cms/'
  4. Exclude this file from rewriting, add following line in your .htaccess RewriteRule ^cms/mr_test.php.*$ - [L]
  5. Browse to http://host/cms/mr_test.php
  6. Disable the script after finished testing, see line 31

Classes
Class Description
 class ModRewriteTestActions Simple action controller.
 class ModRewriteTest Advanced Mod Rewrite test class.
Includes
 include ("config.after.php") (line 167)
 include ("config.local.php") (line 101)
 include_once ("config.php") (line 40)
 include_once ($contenido_path."includes/startup.php") (line 41)
 include_once ('../contenido/classes/class.security.php') (line 38)
 require_once ($cfg['path']['contenido'].$cfg['path']['includes'].'functions.includePluginConf.php') (line 56)
Functions
_getRequest (line 625)

Minimalistic'n simple way to get request variables.

Checks occurance in $_GET, then in $_POST. Uses trim() and strip_tags() to preclean data.

  • return: The value
mixed _getRequest (string $key, [mixed $default = null])
  • string $key: Name of var to get
  • mixed $default: Default value to return

Documentation generated on Tue, 12 Aug 2008 00:06:49 +0200 by phpDocumentor 1.4.0