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');
8 echo(
'<h1>OAuth Client Registry</h1>');
10 echo(
'<p>Here you can register new OAuth Clients. You are successfully logged in as ' . htmlspecialchars($this->
data[
'userid']) .
'</p>');
12 echo(
'<h2>Your clients</h2>');
13 echo(
'<table class="metalist" style="width: 100%">');
15 foreach($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>');
31 echo(
'<p><a href="registry.edit.php">Add new client</a></p>');
33 echo(
'<h2>Other clients</h2>');
34 echo(
'<table class="metalist" style="width: 100%">');
36 foreach($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');
Create styles array
The data for the language used.