Skip to content

Commit

Permalink
postgresql fix, wp theme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Feb 19, 2009
1 parent f997f2b commit 0965a9d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
7 changes: 7 additions & 0 deletions app/omb/plugins/wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,10 @@ function get_post_meta($pid=0,$field,$bool) {

}

function link_pages() {
echo "";
}

function wp_link_pages() {
echo "";
}
Expand Down Expand Up @@ -1725,6 +1729,7 @@ function comment_text() {

global $the_post;
global $db;
if ($the_post->id) {
$sql = "SELECT title from posts where parent_id = ".$the_post->id;

$result = $db->get_result($sql);
Expand All @@ -1734,7 +1739,9 @@ function comment_text() {
//echo "<h3>".$id->nickname." said:</h3>\n";
echo "<p>".$row['title']."</p>\n";
}
} else {

}

}

Expand Down
22 changes: 4 additions & 18 deletions app/omb/views/introspection/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,10 @@
</td></tr>
<tr><td>

<?php if (member_of('administrators')) : ?>

<table align="center" >
<tr><tr><p><b>Admin:</b></p></td></tr>
<?php $tabs = introspect_tables(); ?>
<?php foreach ( $tabs as $resource ) : ?>
<?php if (in_array($resource,array('groups','categories','identities','links','posts','pages'))) : ?>
<tr>
<td>
<a href="<?php url_for( $resource ); ?>">
<p><?php print ucwords($resource) . ""; ?></p>
</a>
</td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</table>

<?php if (member_of('administrators') && '' == environment('theme')) : ?>

<script type="text/javascript" src="<?php url_for(array('resource'=>'pages','action'=>'block.js')); ?>"></script>

<?php endif; ?>


Expand Down
3 changes: 2 additions & 1 deletion db/library/dbscript/mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ function Mapper() {
if (!(substr($this->path, -1) == "/"))
$this->path .= "/";

$this->domain = $this->values[2];
if (!($this->values[2] == 'localhost'))
$this->domain = $this->values[2];

if ($qp > $lenbase)
$this->params = explode( '/', substr($this->uri,$qp+1));
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/prologue-theme/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
?>

<li class="credits">
<p>Powered by <a href="http://dbscript.net/">dbscript</a></p>
<p>Powered by <a href="http://structal.net/">Structal</a></p>
<p>Theme by <a href="http://automattic.com/">Automattic</a></p>
</li>
</ul>
Expand Down

0 comments on commit 0965a9d

Please sign in to comment.