fixed owner permission bug
[mirrors/Kyberia-bloodline.git] / scripts / submissionthread.php
1 <?php
2 //requiring main config file with path/database etc. constants
3 require('../config/config.inc');
4
5 //connecting to database and creating universal $db object
6 require(SYSTEM_ROOT.'/inc/log.inc');
7 require(SYSTEM_ROOT.'/inc/database.inc');
8 require(SYSTEM_ROOT.'/inc/nodes.inc');
9 $db=new CLASS_DATABASE();
10
11 $q="select * from nodes where node_type='forum'";
12 $set=$db->query($q);
13
14 while ($set->next()) {
15 $forum_vector=$set->getString('node_thread_vector');
16 $forum_id=$set->getString('node_id');
17 $db->query("update nodes set node_thread_vector='$forum_vector;$forum_id' where node_parent='$forum_id'");
18 }
This page took 0.345565 seconds and 4 git commands to generate.