API - XOOPS 2.5.11 Beta 2
By monxoops.fr
browse.php File Reference

Namespaces

namespace  core
 

Variables

defined('DS') or define('DS' DIRECTORY_SEPARATOR
 
 defined ( 'NWLINE') or define( 'NWLINE'
 
 $xoopsOption ['nocommon'] = true
 
 $xoops = new xos_kernel_Xoops2()
 
if(!isset( $path) &&!empty( $_SERVER[ 'QUERY_STRING'])) if($path_type==='var') $file = realpath($xoops->path($path))
 
 $dir = realpath($xoops->paths[$path_type][0])
 
if(!file_exists($file)) $ext = substr($file, strrpos($file, '.') + 1)
 
 $types = include $xoops->path('include/mimetypes.inc.php')
 
if(!isset($types[$ext])) $expires = 60 * 60 * 24 * 15
 
 $handle = fopen($file, 'rb')
 

Variable Documentation

◆ $dir

$dir = realpath($xoops->paths[$path_type][0])

◆ $expires

if (!isset( $types[ $ext])) $expires = 60 * 60 * 24 * 15

◆ $ext

if (!file_exists( $file)) $ext = substr($file, strrpos($file, '.') + 1)

◆ $file

if(false===strpos($file, $dir)) if (empty( $file)||strpos( $file, '.php') !==false) $file = realpath($xoops->path($path))

◆ $handle

$handle = fopen($file, 'rb')

◆ $types

$types = include $xoops->path('include/mimetypes.inc.php')

◆ $xoops

$xoops = new xos_kernel_Xoops2()

◆ $xoopsOption

$xoopsOption[ 'nocommon'] = true

◆ defined

defined('NWLINE') or define('NWLINE' ( 'NWLINE'  )

◆ DIRECTORY_SEPARATOR

defined ( 'DS') or define( 'DS' DIRECTORY_SEPARATOR