Todo List
Copyright (c) 2008 creatics
Project owner: creatics, Olaf Gleba 50939 Köln, Germany http://www.creatics.de
This file is licensed under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE v3 http://www.opensource.org/licenses/agpl-v3.html
$Id: cnc.class.php 40 2006-06-18 12:05:47Z andreas $
static mixed filterRequest( &$var, $regex)
Function to check if request vars (GPC etc.) match the given regex. You can pass undefined variables without getting a notice. When everything's fine, the function will return the input. Otherwise it will return NULL.
static mixed ifsetor( mixed &$var, mixed $alt)
Userspace implementation of ifsetor. Short hand version of if ... else ... check for unitialized vars.
static bool removeSlashesArray( array &$array)
stripslashes() replacement for multidimensional arrays, if magic_quotes_gpc is true, it will be applied twice.
static bool removeSlashesString( string &$str)
Replacement for stripslashes(), that takes care of the actual magic_quotes_gpc setting.
static string removeTrailingSlash( string $dir)
Removes the trailing slash from a path to a directory
static bool testArrayForNumericKeys( array &$array)
static bool testArrayForNumericValues( array &$array)
static string uniqueId( [int $length = 40])
Creates unique id using rand() and sha1() or md5(). Two different id lengths are supported:
string randomString( int $length)
Generates random string consisting of chars and numbers.