ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
registry.list.php
Go to the documentation of this file.
1<?php
2
3$this->data['jquery'] = array('core' => TRUE, 'ui' => TRUE, 'css' => TRUE);
4$this->data['head'] = '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/oauth/resources/style.css" />' . "\n";
5$this->includeAtTemplateBase('includes/header.php');
6
7
8echo('<h1>OAuth Client Registry</h1>');
9
10echo('<p>Here you can register new OAuth Clients. You are successfully logged in as ' . htmlspecialchars($this->data['userid']) . '</p>');
11
12echo('<h2>Your clients</h2>');
13echo('<table class="metalist" style="width: 100%">');
14$i = 0; $rows = array('odd', 'even');
15foreach($this->data['entries']['mine'] AS $entryc ) {
16 $entry = $entryc['value'];
17 $i++;
18 echo('<tr class="' . $rows[$i % 2] . '">
19 <td>' . htmlspecialchars($entry['name']) . '</td>
20 <td><tt>' . htmlspecialchars($entry['key']) . '</tt></td>
21 <td>
22 <a href="registry.edit.php?editkey=' . urlencode($entry['key']) . '">edit</a>
23 <a href="registry.php?delete=' . urlencode($entry['key']) . '">delete</a>
24 </td></tr>');
25}
26if ($i == 0) {
27 echo('<tr><td colspan="3">No entries registered</td></tr>');
28}
29echo('</table>');
30
31echo('<p><a href="registry.edit.php">Add new client</a></p>');
32
33echo('<h2>Other clients</h2>');
34echo('<table class="metalist" style="width: 100%">');
35$i = 0; $rows = array('odd', 'even');
36foreach($this->data['entries']['others'] AS $entryc ) {
37 $entry = $entryc['value'];
38 $i++;
39 echo('<tr class="' . $rows[$i % 2] . '">
40 <td>' . htmlspecialchars($entry['name']) . '</td>
41 <td><tt>' . htmlspecialchars($entry['key']) . '</tt></td>
42 <td>' . (isset($entry['owner']) ? htmlspecialchars($entry['owner']) : 'No owner') . '
43 </td></tr>');
44}
45if ($i == 0) {
46 echo('<tr><td colspan="3">No entries registered</td></tr>');
47}
48echo('</table>');
49
50$this->includeAtTemplateBase('includes/footer.php');
51
An exception for terminatinating execution or to throw for unit testing.
$this data['jquery']
$rows