Ticket #2390: reset.php

File reset.php, 461 bytes (added by woidrick, 10 years ago)

hack, sorry, cant use diff

Line 
1<?php
2
3/*
4
5Start from an empty database
6
7 */
8
9session_start(); // only so we get a unique log file
10
11include_once('preamble.php');
12
13$classes = array('named', 'node', 'options', 'placeindex', 
14                 'relation_node', 'relation_way', 'relation_relation', 
15                 'way_node', 'word', 'changeset');
16
17foreach ($classes as $class) {
18  include_once("{$class}.php");
19  echo "zapped {$class}\n";
20  $db->truncate($class);
21}
22
23?>