3 require('config/config.inc');
4 require(SYSTEM_ROOT
.'inc/database.inc');
6 $db=new CLASS_DATABASE();
8 $query = "select * from nodes where node_name = 'maart' and external_link = 'db://user'";
9 $set = $db->query($query);
11 $count = $set->getNumRows();
13 // echo "<b>Fixing ownership problems for $count users...</b><br><br>";
17 echo $set->getString('node_id')." :: ".$set->getString('node_name')."<br>";
18 $victims[] = $set->getString('node_id');
21 // foreach($victims as $target)
23 // $query = "update nodes set node_creator = '$target' where node_id = '$target'";
24 // $db->query($query);
25 // echo "User_id $target ownership problem fixed.<br>";
28 // echo "<br><br><b>Fix script finished!<br>U has to believe that nothing has fucked up ;o)!</b>";
This page took 0.356492 seconds and 4 git commands to generate.