Changeset - r36:bc316cd848df
[Not reviewed]
default
0 1 0
root@mecki.wiedenmann-seile.de - 12 years ago 2013-06-17 13:34:11
root@mecki.wiedenmann-seile.de
* index.php: disable permission tests.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
index.php
Show inline comments
 
@@ -18,50 +18,50 @@
 
// along with this program. If not, see <http://www.gnu.org/licenses/>,
 
// or write to Wolfgang Scherer, <Wolfgang.Scherer at gmx.de>
 

	
 
// $_REQUEST['_DEBUG_'] = 1;
 

	
 
// --------------------------------------------------
 
// |||:sec:||| Configuration
 
// --------------------------------------------------
 
require_once(dirname(__FILE__) . '/lib/util.php');
 
require_once(dirname(__FILE__) . '/lib/template.php');
 

	
 
// _DEBUG_ = 1 normal debugging
 
// _DEBUG_ = 2 turn off administrator rights
 
// _DEBUG_ = 3 provoke error #1
 
// _DEBUG_ = 4 provoke error #2
 
if (isset($_REQUEST['_DEBUG_'])) {
 
    $_debug = $_REQUEST['_DEBUG_'];
 
    if (empty($_debug)) {
 
        $_debug = 1;
 
    }
 
} else {
 
    $_debug = 0;
 
}
 

	
 
file_put_contents('/tmp/xxxxxxx', 'check');
 
system('touch /tmp/xxxxxx1');
 
// file_put_contents('/tmp/xxxxxxx', 'check');
 
// system('touch /tmp/xxxxxx1');
 

	
 
// --------------------------------------------------
 
// |||:sec:||| Setup
 
// --------------------------------------------------
 

	
 
if (isset($_SERVER["REMOTE_USER"])) {
 
    $remote_user = $_SERVER["REMOTE_USER"];
 
} else {
 
    $remote_user = '';
 
}
 
if (isset($_REQUEST["user"])) {
 
    $request_user = $_REQUEST["user"];
 
} else {
 
    $request_user = '';
 
}
 

	
 
$is_admin = in_array($remote_user, $ADMIN_USERS);
 
if ($_debug > 1) {
 
    $is_admin = False;
 
}
 
// $is_admin = False;              // |:debug:|
 

	
 
$users = get_users();
 
$user_names = array_keys($users);
0 comments (0 inline, 0 general)