2 //requiring main config file with path/database etc. constants
3 require('../config/config.inc');
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();
11 $handle=opendir("/storage/system/www-kyberia/files");
12 while (($file = readdir($handle))!==false) {
13 if (is_numeric($file)) $files[]=$file;
16 foreach ($files as $file) {
17 $q="update nodes set node_type='12' where node_id='$file'";
20 //$set=$db->query("select * from tiamat");
23 while ($set->next()) {
24 $tiamat_id=$set->getString('tiamat_id');
This page took 0.486657 seconds and 4 git commands to generate.