source: trunk/tests/browse.php @ 1184

Revision 852, 684 bytes checked in by cdleonard@…, 4 years ago (diff)

svn:eol-style native in trunk. Also svn:executable on all scripts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#! /usr/bin/env php
2<?php
3
4// This test looks around the website and catches casual html errors.
5
6require_once(dirname($argv[0]) . "/utilities.php");
7require_once(IA_ROOT_DIR."www/wiki/wiki.php");
8
9log_print("Passing the entire db through the wiki processor.");
10log_print("This might take a while. User pages are skipped.");
11
12// Do the monkey
13$field_list = '`name`, `title`, `text`';
14$res = db_query("SELECT $field_list FROM ia_textblock ".
15                "WHERE `name` NOT LIKE 'utilizator/%'");
16while ($tb = db_next_row($res)) {
17    log_print("Processing {$tb['name']} ({$tb['title']})");
18    wiki_process_text($tb['text']);
19}
20
21log_execution_stats();
22log_print("Browsing worked");
Note: See TracBrowser for help on using the repository browser.