registration fix fixed
[mirrors/Kyberia-bloodline.git] / scripts / threadizer.php
CommitLineData
b42b2bf9
H
1<?php
2//requiring main config file with path/database etc. constants
3require('../config/config.inc');
4
5//connecting to database and creating universal $db object
6require(SYSTEM_ROOT.'/inc/log.inc');
7require(SYSTEM_ROOT.'/inc/database.inc');
8require(SYSTEM_ROOT.'/inc/nodes.inc');
9$db=new CLASS_DATABASE();
10
11$bigset=$db->query("select * from nodes where node_type=3 order by node_id");
12while ($bigset->next()) {
13 $vector=$bigset->getString('node_thread_vector').";".$bigset->getString('node_id');
14 $forum_id=$bigset->getString('node_id');
15 $db->query("update nodes set node_thread_vector='$vector' where node_parent=$forum_id");
16 echo "<BR>";
17}
18
19/*
20$bigset=$db->query("select * from nodes where (node_type=5 or node_type=6) order by node_id");
21while ($bigset->next()) {
22 $vector_array[$bigset->getString('node_id')]=$bigset->getString('node_thread_vector').";".$bigset->getString('node_id');
23}
24
25$set=$db->query("select * from nodes where node_thread_vector=0 and node_type=4 order by node_id");
26while ($set->next()) {
27 $vector_array[$set->getString('node_id')]=$set->getString('node_thread_vector').";".$bigset->getString('node_parent');
28 $vector=$vector_array[$set->getString('node_parent')];
29 $id=$set->getString('node_id');
30 $db->query("update nodes set node_thread_vector='$vector' where node_parent=$id");
31 echo "<BR>";
32}
33
34*/
35?>
36
This page took 0.794612 seconds and 4 git commands to generate.