Ejemplo n.º 1
0
 function show()
 {
     $cache0 = new wra_cacheflow('history', true);
     if ($cache0->begin()) {
         $this->venues = wra_foursqvenues::get_listall(time());
         include WRA_Path . '/template/history.php';
     }
     $cache0->end();
 }
Ejemplo n.º 2
0
    function show()
    {
        $cache0 = new wra_cacheflow('sitemap', true);
        if ($cache0->begin()) {
            $this->items = wra_foursqvenues::get_listall();
            WRA::e('<?');
            ?>
xml version="1.0" encoding="UTF-8"<?php 
            WRA::e('?>');
            ?>

<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
      <loc><?php 
            WRA::e(WRA::base_url());
            ?>
</loc>
      <changefreq>hourly</changefreq>
  </url>
    <url>
      <loc><?php 
            WRA::e(WRA::base_url());
            ?>
history</loc>
      <changefreq>hourly</changefreq>
  </url>
<?php 
            foreach ($this->items as $a0) {
                ?>
  <url>
      <loc><?php 
                WRA::e($a0->getlink());
                ?>
</loc>
      <changefreq>yearly</changefreq>
  </url>
<?php 
            }
            ?>
  
</urlset><?php 
        }
        $cache0->end();
    }