removing warning messages and not working rss
[mirrors/Kyberia-bloodline.git] / trash / delete_rss.php
CommitLineData
ae9f7457 1#!/usr/bin/php
b42b2bf9
H
2<?php
3require('../config/config.inc');
4//connecting to database and creating universal $db object
a3be90c6 5require(INCLUDE_DIR.'/log.inc');
6require(INCLUDE_DIR.'/database.inc');
7require(INCLUDE_DIR.'/nodes.inc');
b42b2bf9
H
8$db=new CLASS_DATABASE();
9
10$set=$db->query("select node_id from nodes where node_type='13'");
11
12while ($set->next()) {
13 $id=$set->getString('node_id');
14 if (is_numeric($id)) {
15 $q="delete from node_content where node_id='$id'";
16 $db->query($q);
17 $q="delete from nodes where node_id='$id'";
18 $db->query($q);
19 }
20}
21
a3be90c6 22?>
This page took 0.234087 seconds and 4 git commands to generate.