4 * This file is (c) Copyright 2010 by Olivier BERGER, Madhumita DHAR, Institut TELECOM
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * This program has been developed in the frame of the COCLICO
21 * project with financial support of its funders.
25 require_once '../../env.inc.php';
26 require_once $gfwww.'include/pre.php';
27 require_once 'checks.php';
29 $pluginname = 'oauthprovider';
31 oauthprovider_CheckForgeAdminExit();
33 session_require_global_perm('forge_admin');
35 $f_consumer_id = getIntFromGet( 'consumer_id' );
37 $t_consumer = OauthAuthzConsumer::load( $f_consumer_id );
43 <table class="width75" align="center" cellspacing="1">
46 <td class="form-title" colspan="2"><?php echo _('Manage Consumer') ?></td>
49 print util_make_link('/plugins/'.$pluginname.'/consumer.php' , _('Back'));
54 <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
56 <td class="category"><?php echo _('Name') ?></td>
57 <td colspan="2"><?php echo ( $t_consumer->getName() ) ?></td>
60 <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
61 <td class="category"><?php echo _('URL') ?></td>
62 <td colspan="2"><?php echo ( $t_consumer->getUrl() ) ?></td>
65 <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
66 <td class="category"><?php echo _('Description') ?></td>
67 <td colspan="2"><?php echo ( $t_consumer->getDesc() ) ?></td>
70 <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
71 <td class="category"><?php echo _('Email') ?></td>
72 <td colspan="2"><?php echo ( $t_consumer->getEmail() ) ?></td>
75 <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
76 <td class="category"><?php echo _('Key') ?></td>
77 <td colspan="2"><?php echo ( $t_consumer->key ) ?></td>
80 <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
81 <td class="category"><?php echo _('Secret') ?></td>
82 <td colspan="2"><?php echo ( $t_consumer->secret ) ?></td>
93 <form action="<?php echo 'consumer_update_page.php?consumer_id=' . $t_consumer->getId() ?>" method="post">
94 <input type="submit" value="<?php echo _('Update Consumer') ?>"/>
98 <form action="<?php echo 'consumer_delete.php?consumer_id=' . $t_consumer->getId() ?>" method="post">
99 <?php echo '<input type="hidden" name="plugin_oauthprovider_consumer_delete_token" value="'.form_generate_key().'"/>' ?>
100 <input type="submit" value="<?php echo _('Delete Consumer') ?>"/>
108 //html_page_bottom1( __FILE__ );
109 site_project_footer(array());