File Manager
<?php
#CMS - CMS Made Simple
#(c)2004 by Ted Kulp (wishy@users.sf.net)
#This project's homepage is: http://www.cmsmadesimple.org
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#$Id: content.functions.php 7954 2012-04-27 21:49:30Z calguy1000 $
/**
* Handles content related functions
*
* @package CMS
*/
/**
* Loads all plugins into the system
*
* @since 0.5
* @param object The smarty object
* @return void
*/
/**
* A function to generate cross references between content types
* This function can be used to generate which global content blocks are used by which content object
*
* @ignore
* @access private
* @param int the parent object id (usually a page template id or a page id.
* @param string The parent object type
* @param string The test content
* @return void
*/
function do_cross_reference($parent_id, $parent_type, $content)
{
// functionality removed in 1.11
}
/**
* A convenience function to test if the site is marked as down according to the config panel.
* This method includes handling the preference that indicates that site-down behaviour should
* be disabled for certain IP address ranges.
*
* @return boolean
*/
function is_sitedown()
{
global $CMS_INSTALL_PAGE;
if( isset($CMS_INSTALL_PAGE) ) return TRUE;
if( get_site_preference('enablesitedownmessage') !== '1' ) return FALSE;
if( get_site_preference('sitedownexcludeadmins') )
{
$uid = get_userid(FALSE);
if( $uid ) return FALSE;
}
if( !isset($_SERVER['REMOTE_ADDR']) ) return TRUE;
$excludes = get_site_preference('sitedownexcludes','');
if( empty($excludes) ) return TRUE;
$tmp = explode(',',$excludes);
$ret = cms_ipmatches($_SERVER['REMOTE_ADDR'],$excludes);
if( $ret ) return FALSE;
return TRUE;
}
function cms_call_udt($params,&$smarty)
{
if( !isset($params['udt']) ) return;
$udt = $params['udt'];
unset($params['udt']);
return UserTagOperations::get_instance()->CallUserTag($udt,$params);
}
# vim:ts=4 sw=4 noet
?>
File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com