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');
8echo(
'<h1>OAuth Client Registry</h1>');
10echo(
'<p>Here you can register new OAuth Clients. You are successfully logged in as ' . htmlspecialchars($this->
data[
'userid']) .
'</p>');
12echo(
'<h2>Your clients</h2>');
13echo(
'<table class="metalist" style="width: 100%">');
15foreach($this->
data[
'entries'][
'mine'] AS $entryc ) {
16 $entry = $entryc[
'value'];
18 echo(
'<tr class="' .
$rows[
$i % 2] .
'">
19 <td>' . htmlspecialchars($entry[
'name']) .
'</td>
20 <td><tt>' . htmlspecialchars($entry[
'key']) .
'</tt></td>
22 <a href="registry.edit.php?editkey=' . urlencode($entry[
'key']) .
'">edit</a>
23 <a href="registry.php?delete=' . urlencode($entry[
'key']) .
'">delete</a>
27 echo(
'<tr><td colspan="3">No entries registered</td></tr>');
31echo(
'<p><a href="registry.edit.php">Add new client</a></p>');
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'];
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') .
'
46 echo(
'<tr><td colspan="3">No entries registered</td></tr>');
50$this->includeAtTemplateBase(
'includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.