[geeklog-cvs] Geeklog-1.x/public_html/admin configuration.php, 1.1, 1.2
Dirk Haun
dhaun at qs1489.pair.com
Sun Sep 23 04:28:41 EDT 2007
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin
In directory qs1489.pair.com:/tmp/cvs-serv20615/public_html/admin
Modified Files:
configuration.php
Log Message:
Source code cosmetics
Index: configuration.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/configuration.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** configuration.php 29 Aug 2007 03:25:12 -0000 1.1
--- configuration.php 23 Sep 2007 08:28:39 -0000 1.2
***************
*** 3,7 ****
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Geeklog 1.4 |
// +---------------------------------------------------------------------------+
// | configuration.php |
--- 3,7 ----
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Geeklog 1.5 |
// +---------------------------------------------------------------------------+
// | configuration.php |
***************
*** 11,15 ****
// | Copyright (C) 2007 by the following authors: |
// | |
! // | Authors: Aaron Blankstein kantai at gmail.com |
// +---------------------------------------------------------------------------+
// | |
--- 11,15 ----
// | Copyright (C) 2007 by the following authors: |
// | |
! // | Authors: Aaron Blankstein - kantai AT gmail DOT com |
// +---------------------------------------------------------------------------+
// | |
***************
*** 30,56 ****
// +---------------------------------------------------------------------------+
//
! require_once('../lib-common.php');
$config = config::create(array_key_exists('conf_group', $_POST) ?
! $_POST['conf_group'] : 'Core');
! if(array_key_exists('set_action', $_POST)){
if (SEC_inGroup('Root')) {
! if($_POST['set_action'] == 'restore')
$config->restore_param($_POST['name']);
! else if($_POST['set_action'] == 'unset')
$config->unset_param($_POST['name']);
}
}
! if(array_key_exists('form_submit', $_POST)){
! $result = null;
! if(! array_key_exists('form_reset', $_POST))
! $result = $config->updateConfig($_POST);
! print $config->get_ui($_POST['sub_group'], $result );
! }else{
! print $config->get_ui(array_key_exists('subgroup', $_POST) ?
! $_POST['subgroup'] : null);
}
! ?>
\ No newline at end of file
--- 30,61 ----
// +---------------------------------------------------------------------------+
//
+ // $Id$
! require_once '../lib-common.php';
! require_once 'auth.inc.php';
$config = config::create(array_key_exists('conf_group', $_POST) ?
! $_POST['conf_group'] : 'Core');
! if (array_key_exists('set_action', $_POST)){
if (SEC_inGroup('Root')) {
! if ($_POST['set_action'] == 'restore') {
$config->restore_param($_POST['name']);
! } elseif ($_POST['set_action'] == 'unset') {
$config->unset_param($_POST['name']);
+ }
}
}
! if (array_key_exists('form_submit', $_POST)) {
! $result = null;
! if (! array_key_exists('form_reset', $_POST)) {
! $result = $config->updateConfig($_POST);
! }
! echo $config->get_ui($_POST['sub_group'], $result);
! } else {
! echo $config->get_ui(array_key_exists('subgroup', $_POST) ?
! $_POST['subgroup'] : null);
}
!
! ?>
More information about the geeklog-cvs
mailing list