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.local.php") (line 135)
 include ("config.after.php") (line 207)
 include_once ("config.php") (line 39)
 include_once ($contenido_path."includes/startup.php") (line 48)
 include_once ($contenido_path.'classes/class.security.php') (line 40)
 require_once ($cfg['path']['contenido'].$cfg['path']['includes'].'functions.includePluginConf.php') (line 63)
Constants
CON_FRAMEWORK = true (line 37)
Functions
_getRequest (line 699)

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 Mon, 08 Sep 2008 03:09:14 +0200 by phpDocumentor 1.4.0