psql db schema test
[mirrors/Kyberia-bloodline.git] / trash / savelib.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 $handle=opendir("/storage/system/www-kyberia/files");
12 while (($file = readdir($handle))!==false) {
13 if (is_numeric($file)) $files[]=$file;
14 }
15
16 foreach ($files as $file) {
17 $q="update nodes set node_type='12' where node_id='$file'";
18 $db->query($q);
19
20 //$set=$db->query("select * from tiamat");
21 }
22 /*
23 while ($set->next()) {
24 $tiamat_id=$set->getString('tiamat_id');
25
26
27 }
28 */
29
30
31 ?>
32
This page took 0.307934 seconds and 4 git commands to generate.