XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
config.php
Go to the documentation of this file.
1
<?php
2
3
//------------------------------------------------------------------------------
4
// YOU CAN COPY AND CHANGE THESE VARIABLES IN FOLDERS config.php FILES
5
//------------------------------------------------------------------------------
6
// $image_max_width=0;
7
$image_max_width
=1000;
8
9
// XOOPS
10
global
$xoopsUser
;
11
// 1 : webmasters
12
// 2 : members
13
// 3 : anonymous
14
// 4 : your new group
15
$allowed_groups_upload
=array(1,2);
// id des groupes autorisés en upload
16
$allowed_groups_createfolder
=array(1);
// id des groupes autorisés create folder
17
if
(
$xoopsUser
) {
18
$usergroups =
$GLOBALS
[
'xoopsUser'
]->getGroups();
19
$result_upload = array_intersect($usergroups,
$allowed_groups_upload
);
20
if
($result_upload || $result_upload!=null) {
21
$upload_files
=
true
;
22
}
23
$result_createfolder = array_intersect($usergroups,
$allowed_groups_createfolder
);
24
if
($result_createfolder || $result_createfolder!=null) {
25
$create_folders
=
true
;
26
}
27
}
28
// XOOPS
29
30
31
32
33
?>
$upload_files
$upload_files
Definition:
config.php:124
$allowed_groups_upload
$allowed_groups_upload
Definition:
config.php:137
$image_max_width
$image_max_width
Definition:
config.php:93
$xoopsUser
global $xoopsUser
Definition:
config.php:132
$allowed_groups_createfolder
$allowed_groups_createfolder
Definition:
config.php:138
$GLOBALS
$GLOBALS['xoops']
Definition:
common.php:33
$create_folders
$create_folders
Definition:
config.php:122
usr64
htdocs
uploads
filemanager
media
depot-members
config.php
Generated on Fri May 22 2015 03:06:59 for XOOPS by
1.8.9.1