Login   Register  
PHP Classes
elePHPant
Icontem

File: function.acFormValidateCMS.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of invitro  >  Navelo CMS  >  function.acFormValidateCMS.php  >  Download  
File: function.acFormValidateCMS.php
Role: Auxiliary script
Content type: text/plain
Description: General function to validate for action
Class: Navelo CMS
A complete Content Management System
Author: By
Last change:
Date: 9 years ago
Size: 880 bytes
 

Contents

Class file image Download
<?php
// 2 ^ 8
function Validate255Chars$data )
{
    return ( 
strlen$data ) <= 255 ) ? true false;
}

// 2 ^ 16
function Validate65536Chars$data )
{
    return ( 
strlen$data ) <= 65536 ) ? true false;
}

// 2 ^ 24
function Validate16777216Chars$data )
{
    return ( 
strlen$data ) <= 16777216 ) ? true false;
}

// 2 ^ 32
function Validate4294967296Chars$data )
{
    return ( 
strlen$data ) <= 4294967296 ) ? true false;
}

function 
ValidateAddCategoryName$data )
{
    
$category_name = array( $data );
    return ( 
$GLOBALS['admin']->CheckCategoryName$GLOBALS['admin']->StripData$category_name ) ) > ) ? false true;
}

function 
ValidateUpdateCategoryName$data )
{
    
$category_name = array( $data );
    return ( 
$GLOBALS['admin']->CheckCategoryName$GLOBALS['admin']->StripData$category_name ) ) <= ) ? true false;
}

?>