Security cleanup (sqli)
[mirrors/Kyberia-bloodline.git] / trash / savelib.php
diff --git a/trash/savelib.php b/trash/savelib.php
new file mode 100644 (file)
index 0000000..29b9d68
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+//requiring main config file with path/database etc. constants
+require('../config/config.inc');
+
+//connecting to database and creating universal $db object
+require(SYSTEM_ROOT.'/inc/log.inc');
+require(SYSTEM_ROOT.'/inc/database.inc');
+require(SYSTEM_ROOT.'/inc/nodes.inc');
+$db=new CLASS_DATABASE();
+
+$handle=opendir("/storage/system/www-kyberia/files");
+while (($file = readdir($handle))!==false) {
+       if (is_numeric($file)) $files[]=$file;
+}
+
+foreach ($files as $file) {
+$q="update nodes set node_type='12' where node_id='$file'";
+$db->query($q);
+
+//$set=$db->query("select * from tiamat");
+}
+/*
+while ($set->next()) {
+       $tiamat_id=$set->getString('tiamat_id');
+
+
+}
+*/
+
+
+?>
+
This page took 0.110373 seconds and 4 git commands to generate.