parent
f2229e0427
commit
391e064e67
@ -0,0 +1,27 @@ |
||||
<?php |
||||
/** |
||||
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com> |
||||
* This file is licensed under the Affero General Public License version 3 or later. |
||||
* See the COPYING-README file. |
||||
*/ |
||||
|
||||
require_once('../lib/base.php'); |
||||
if( !OC_User::isLoggedIn()){ |
||||
header( "Location: ".OC_Helper::linkTo( "", "index.php" )); |
||||
exit(); |
||||
} |
||||
if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )){ |
||||
header( "Location: ".OC_Helper::linkTo( '', "index.php" )); |
||||
exit(); |
||||
} |
||||
|
||||
OC_Util::addStyle( "settings", "settings" ); |
||||
OC_App::setActiveNavigationEntry( "admin" ); |
||||
|
||||
$tmpl = new OC_Template( 'settings', 'admin', 'user'); |
||||
$forms=OC_App::getForms('admin'); |
||||
$tmpl->assign('forms',array()); |
||||
foreach($forms as $form){ |
||||
$tmpl->append('forms',$form); |
||||
} |
||||
$tmpl->printPage(); |
||||
@ -0,0 +1,23 @@ |
||||
<?php |
||||
/** |
||||
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com> |
||||
* This file is licensed under the Affero General Public License version 3 or later. |
||||
* See the COPYING-README file. |
||||
*/ |
||||
|
||||
require_once('../lib/base.php'); |
||||
if( !OC_User::isLoggedIn()){ |
||||
header( "Location: ".OC_Helper::linkTo( "", "index.php" )); |
||||
exit(); |
||||
} |
||||
|
||||
OC_Util::addStyle( "settings", "settings" ); |
||||
OC_App::setActiveNavigationEntry( "settings" ); |
||||
|
||||
$tmpl = new OC_Template( 'settings', 'settings', 'user'); |
||||
$forms=OC_App::getForms('settings'); |
||||
$tmpl->assign('forms',array()); |
||||
foreach($forms as $form){ |
||||
$tmpl->append('forms',$form); |
||||
} |
||||
$tmpl->printPage(); |
||||
@ -0,0 +1,9 @@ |
||||
<?php /** |
||||
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com> |
||||
* This file is licensed under the Affero General Public License version 3 or later. |
||||
* See the COPYING-README file. |
||||
*/?> |
||||
|
||||
<?php foreach($_['forms'] as $form){ |
||||
echo $form; |
||||
};?> |
||||
@ -0,0 +1,9 @@ |
||||
<?php /** |
||||
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com> |
||||
* This file is licensed under the Affero General Public License version 3 or later. |
||||
* See the COPYING-README file. |
||||
*/?> |
||||
|
||||
<?php foreach($_['forms'] as $form){ |
||||
echo $form; |
||||
};?> |
||||
Loading…
Reference in new issue