<?php require_once "prepend.php"; require_once "PagesGenerator.php"; require_once "JSON.php"; $json = new Services_JSON(); PagesGenerator::run($json->decode(file::load("data/config.ini")));
function run($config) { PagesGenerator::makeMain($config); $subcategory = DB_DataObject::factory("subcategory"); $subcategory->find(); while ($subcategory->fetch()) { PagesGenerator::makeCategory($config, $subcategory->toArray()); } }