PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Piotrek M   My Sitemap Generator   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: My Sitemap Generator
Generate a sitemap from lists of URLs
Author: By
Last change:
Date: 12 years ago
Size: 2,203 bytes
 

 

Contents

Class file image Download
<?php
require_once 'sitemap.class.php';

$sitemap = new Sitemap_Generator;
$sitemap -> set_last_mod_static(date('Y-m-d'));
$sitemap -> set_base_url('http://yarknin.pl/');

$sitemap -> addSite('rejestracja.html', array('changefreq' => 'never'));
$sitemap -> addSite('logowanie.html', array('changefreq' => 'never'));
$sitemap -> addSite('pomoc.html', array('changefreq' => 'never'));
$sitemap -> addSite('stworz-fiszki.html', array('changefreq' => 'never'));
$sitemap -> addSite('jak-dodawac-fiszki.html', array('changefreq' => 'never'));

$sitemap -> addSite('tagi.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/angielski.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/niemiecki.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/francuski.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/wloski.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/lacina.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/historia.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/polski.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/WOS.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/prawo.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/religia-i-etyka.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/historia-sztuki.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/geografia.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/biologia.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/medycyna.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/chemia.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/fizyka.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/matematyka.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/hobby.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/design.html', array('changefreq' => 'hourly'));
$sitemap -> addSite('tag/prawo-jazdy.html', array('changefreq' => 'hourly'));

echo
$sitemap -> generate();
#$sitemap -> download();