| 33 |
* Needed by templates |
* Needed by templates |
| 34 |
*/ |
*/ |
| 35 |
function mosPathWay() { |
function mosPathWay() { |
| 36 |
$pathway = mosPathway::getInstance(); |
$pathway =& mosPathway::getInstance(); |
| 37 |
echo $pathway->makePathway(); |
echo $pathway->makePathway(); |
| 38 |
} |
} |
| 39 |
|
|
| 70 |
*/ |
*/ |
| 71 |
function mosChmodRecursive($path, $filemode=NULL, $dirmode=NULL) |
function mosChmodRecursive($path, $filemode=NULL, $dirmode=NULL) |
| 72 |
{ |
{ |
| 73 |
$fileman = mosFileManager::getInstance(); |
$fileman =& mosFileManager::getInstance(); |
| 74 |
return $fileman->mosChmodRecursive($path, $filemode, $dirmode); |
return $fileman->mosChmodRecursive($path, $filemode, $dirmode); |
| 75 |
} |
} |
| 76 |
|
|
| 83 |
*/ |
*/ |
| 84 |
function mosChmod($path) |
function mosChmod($path) |
| 85 |
{ |
{ |
| 86 |
$fileman = mosFileManager::getInstance(); |
$fileman =& mosFileManager::getInstance(); |
| 87 |
return $fileman->mosChmod($path); |
return $fileman->mosChmod($path); |
| 88 |
} // mosChmod |
} // mosChmod |
| 89 |
|
|
| 112 |
*/ |
*/ |
| 113 |
function mosStripslashes(&$value) |
function mosStripslashes(&$value) |
| 114 |
{ |
{ |
| 115 |
$database = mamboDatabase::getInstance(); |
$database =& mamboDatabase::getInstance(); |
| 116 |
return $database->mosStripslashes($value); |
return $database->mosStripslashes($value); |
| 117 |
} |
} |
| 118 |
|
|
| 125 |
* @param boolean |
* @param boolean |
| 126 |
*/ |
*/ |
| 127 |
function mosBindArrayToObject( $array, &$obj, $ignore='', $prefix=NULL, $checkSlashes=true ) { |
function mosBindArrayToObject( $array, &$obj, $ignore='', $prefix=NULL, $checkSlashes=true ) { |
| 128 |
$database = mamboDatabase::getInstance(); |
$database =& mamboDatabase::getInstance(); |
| 129 |
return $database->mosBindArrayToOBject($array, $obj, $ignore='', $prefix=NULL, $checkSlashes=true); |
return $database->mosBindArrayToOBject($array, $obj, $ignore='', $prefix=NULL, $checkSlashes=true); |
| 130 |
} |
} |
| 131 |
|
|
| 139 |
function mosReadDirectory( $path, $filter='.', $recurse=false, $fullpath=false ) { |
function mosReadDirectory( $path, $filter='.', $recurse=false, $fullpath=false ) { |
| 140 |
if (@is_dir($path)) { |
if (@is_dir($path)) { |
| 141 |
$dir =& new mosDirectory($path); |
$dir =& new mosDirectory($path); |
| 142 |
$arr = $dir->listFiles ($filter, $type='both', $recurse, $fullpath); |
$arr =& $dir->listFiles ($filter, $type='both', $recurse, $fullpath); |
| 143 |
} |
} |
| 144 |
else $arr = array(); |
else $arr = array(); |
| 145 |
return $arr; |
return $arr; |
| 162 |
* @param boolean Add trailing slash |
* @param boolean Add trailing slash |
| 163 |
*/ |
*/ |
| 164 |
function mosPathName($p_path,$p_addtrailingslash = true) { |
function mosPathName($p_path,$p_addtrailingslash = true) { |
| 165 |
$fileman = mosFileManager::getInstance(); |
$fileman =& mosFileManager::getInstance(); |
| 166 |
return $fileman->mosPathName($p_path,$p_addtrailingslash); |
return $fileman->mosPathName($p_path,$p_addtrailingslash); |
| 167 |
} |
} |
| 168 |
|
|
| 255 |
* @return boolean True if the visitor's group at least equal to the menu access |
* @return boolean True if the visitor's group at least equal to the menu access |
| 256 |
*/ |
*/ |
| 257 |
function mosMenuCheck( $Itemid, $menu_option, $task, $gid ) { |
function mosMenuCheck( $Itemid, $menu_option, $task, $gid ) { |
| 258 |
$menuhandler = mosMenuHandler::getInstance(); |
$menuhandler =& mosMenuHandler::getInstance(); |
| 259 |
return $menuhandler->menuCheck($Itemid, $menu_option, $task, $gid); |
return $menuhandler->menuCheck($Itemid, $menu_option, $task, $gid); |
| 260 |
} |
} |
| 261 |
|
|
| 288 |
* @returns current date |
* @returns current date |
| 289 |
*/ |
*/ |
| 290 |
function mosCurrentDate( $format="" ) { |
function mosCurrentDate( $format="" ) { |
| 291 |
$core = mamboCore::getMamboCore(); |
$core =& mamboCore::getMamboCore(); |
| 292 |
$offset = $core->language['offset']; |
$offset = $core->language['offset']; |
| 293 |
if ($format=="") { |
if ($format=="") { |
| 294 |
$format = $format = $core->language['dateformat']; |
$format = $format = $core->language['dateformat']; |
| 380 |
*/ |
*/ |
| 381 |
function mosMakePassword() { |
function mosMakePassword() { |
| 382 |
require_once(mamboCore::get('mosConfig_absolute_path').'/includes/authenticator.php'); |
require_once(mamboCore::get('mosConfig_absolute_path').'/includes/authenticator.php'); |
| 383 |
$authenticator = mamboAuthenticator::getInstance(); |
$authenticator =& mamboAuthenticator::getInstance(); |
| 384 |
return $authenticator->mosMakePassword(); |
return $authenticator->mosMakePassword(); |
| 385 |
} |
} |
| 386 |
|
|