diff options
author | Thomas Willingham <founder@kakste.com> | 2013-07-10 19:46:06 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-07-10 19:46:06 +0100 |
commit | 6b85e063e84359bf15140f59b24299eae459f09b (patch) | |
tree | ba0dfb8f83f772c15d8bb2c32f1124aa031ce609 /mod/webpages.php | |
parent | 3f2829a062c9a6bedf7ebdc59db15e064b5a7446 (diff) | |
download | volse-hubzilla-6b85e063e84359bf15140f59b24299eae459f09b.tar.gz volse-hubzilla-6b85e063e84359bf15140f59b24299eae459f09b.tar.bz2 volse-hubzilla-6b85e063e84359bf15140f59b24299eae459f09b.zip |
Let's use the right files, plus a typo
Diffstat (limited to 'mod/webpages.php')
-rw-r--r-- | mod/webpages.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mod/webpages.php b/mod/webpages.php new file mode 100644 index 000000000..48634551d --- /dev/null +++ b/mod/webpages.php @@ -0,0 +1,30 @@ +<?php +function webpages_content(&$a) { + + +$r = q("select * from item_id"); + +//print "<br /> <br /> <br /> <br />"; +//foreach ($r as $rr) { +//print '<a href="editwebpage/' . ($rr['iid']) .'">Edit</a>' . ' ' . ($rr['sid']) . '<br />'; +//} + + $pages = null; + + if($r) { + $pages = array(); + foreach($r as $rr) { + $pages[$rr['iid']][] = array('url' => $rr['iid'],'title' => $rr['sid']); + } + } + + logger('mod_profile: things: ' . print_r($pages,true), LOGGER_DATA); + + return replace_macros(get_markup_template("webpageslist.tpl"), array( + '$webpages' => $webpages + )); + } + + +return; +}
\ No newline at end of file |