ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
8 echo('<h1>OAuth Client Registry</h1>');
9 
10 echo('<p>Here you can register new OAuth Clients. You are successfully logged in as ' . htmlspecialchars($this->data['userid']) . '</p>');
11 
12 echo('<h2>Your clients</h2>');
13 echo('<table class="metalist" style="width: 100%">');
14 $i = 0; $rows = array('odd', 'even');
15 foreach($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 }
26 if ($i == 0) {
27  echo('<tr><td colspan="3">No entries registered</td></tr>');
28 }
29 echo('</table>');
30 
31 echo('<p><a href="registry.edit.php">Add new client</a></p>');
32 
33 echo('<h2>Other clients</h2>');
34 echo('<table class="metalist" style="width: 100%">');
35 $i = 0; $rows = array('odd', 'even');
36 foreach($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 }
45 if ($i == 0) {
46  echo('<tr><td colspan="3">No entries registered</td></tr>');
47 }
48 echo('</table>');
49 
50 $this->includeAtTemplateBase('includes/footer.php');
51 
$this data['jquery']
$rows
Create styles array
The data for the language used.