Cheetah
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
inc
classes
ChWsbIO.php
Go to the documentation of this file.
1
<?
php
2
8
class
ChWsbIO
9
{
10
// constructor
11
function
__construct
() {}
12
13
function
isExecutable
(
$sFile
)
14
{
15
clearstatcache();
16
17
$aPathInfo
= pathinfo(__FILE__);
18
$sFile
=
$aPathInfo
[
'dirname'
] .
'/../../'
.
$sFile
;
19
20
return
(is_file(
$sFile
) && is_executable(
$sFile
));
21
}
22
23
function
isWritable
(
$sFile
, $sPrePath =
'/../../'
)
24
{
25
clearstatcache();
26
27
$aPathInfo
= pathinfo(__FILE__);
28
$sFile
=
$aPathInfo
[
'dirname'
] .
'/../../'
.
$sFile
;
29
30
return
is_readable(
$sFile
) && is_writable(
$sFile
);
31
}
32
33
function
getPermissions
($sFileName)
34
{
35
$sPath =
$GLOBALS
[
'logged'
][
'admin'
] ==
true
? CH_DIRECTORY_PATH_ROOT :
'../'
;
36
37
clearstatcache();
38
$hPerms = @fileperms($sPath . $sFileName);
39
if
($hPerms ==
false
)
return
false
;
40
$sRet = substr( decoct( $hPerms ), -3 );
41
return
$sRet;
42
}
43
}
ChWsbIO
Definition:
ChWsbIO.php:9
$aPathInfo
$aPathInfo
Definition:
cmd.php:12
php
ChWsbIO\isWritable
isWritable($sFile, $sPrePath='/../../')
Definition:
ChWsbIO.php:23
$sFile
$sFile
Definition:
index.php:20
ChWsbIO\isExecutable
isExecutable($sFile)
Definition:
ChWsbIO.php:13
ChWsbIO\__construct
__construct()
Definition:
ChWsbIO.php:11
ChWsbIO\getPermissions
getPermissions($sFileName)
Definition:
ChWsbIO.php:33
$GLOBALS
$GLOBALS['iAdminPage']
Definition:
advanced_settings.php:10
Generated by
1.8.20