Permalink - http://pastebin.ws/1iq9h0 - PHP - 86.11.xx.xx - Posted January 11, 2009, 5:18 am
Validate HTML - Validate CSS
Reply tree
- 8nw1gj - 1 year, 6 months, 2 weeks, 6 days, 7 hours, 19 minutes ago - by 194.176.xx.xx
- 652f70 - 1 year, 6 months, 2 weeks, 5 days, 5 hours, 9 minutes ago - by 86.11.xx.xx
- 9bz0jr - 4 months, 3 weeks, 6 days, 14 hours, 2 minutes ago - by 123.125.xx.xx
- 1iq9h0 - 1 year, 6 months, 2 weeks, 5 days, 3 hours, 51 minutes ago - by 86.11.xx.xx
- cvv97m - 1 month, 1 day, 19 hours, 57 minutes ago - by 213.239.xx.xx
- 4dogix - 1 year, 5 months, 3 weeks, 5 days, 14 hours, 13 minutes ago - by 66.190.xx.xx
- 8h49bh - 7 months, 4 weeks, 22 hours, 53 minutes ago - by 99.3.xx.xx
- db4bf2 - 5 months, 3 weeks, 5 days, 8 hours, 35 minutes ago - by 94.224.xx.xx
- 5kp548 - 3 months, 3 weeks, 2 days, 18 hours, 19 minutes ago - by 94.228.xx.xx
- 19zbj1 - 3 months, 2 weeks, 5 days, 9 hours, 15 minutes ago - by 60.217.xx.xx
- mdmfn - 2 months, 2 days, 3 hours, 45 minutes ago - by 213.230.xx.xx
- 4amqey - 1 month, 3 weeks, 1 day, 3 hours, 42 minutes ago - by 95.220.xx.xx
- cud5b9 - 1 month, 1 week, 1 day, 10 hours, 4 minutes ago - by 189.74.xx.xx
- f30uj - 3 weeks, 5 days, 14 hours, 54 minutes ago - by 95.220.xx.xx
- 652f70 - 1 year, 6 months, 2 weeks, 5 days, 5 hours, 9 minutes ago - by 86.11.xx.xx
As extract($a) is used:
$a['post_slug'] = $post_slug
$a['title'] = $title
- <?php
- //*****************************************************************//
- // Pixie: The Small, Simple, Site Maker. //
- // ----------------------------------------------------------------//
- // Licence: GNU General Public License v3 //
- // Title: Display News. //
- //*****************************************************************//
- ?>
- <div id="block_news" class="block">
- <div class="block_header">
- <h4>News</h4>
- </div>
- <div class="block_body">
- <ul>
- <?php
- echo "\n";
- $page_name = "news";
- // how many news items to show
- $num = 10;
- $page_id = safe_field('page_id','pixie_core',"page_name='$page_name'");
- $rs = safe_rows_start("*", "pixie_dynamic_posts", "page_id = '$page_id' and public = 'yes' and posted < now() order by posted desc limit 0, $num");
- if ($rs) {
- while ($a = nextRow($rs)) {
- echo "\t\t\t\t\t\t\t<li><a href=\"".createURL($page_name, "permalink", $post_slug)."\" rel=\"bookmark\">$title</a></li>\n";
- }
- }
- ?>
- </ul>
- </div>
- <div class="block_footer">
- </div>
- </div>