1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php require_once("DataFeeder.php"); class DbFeederSQL extends DataFeeder { var $db = NULL; function DbFeederSQL($name_, $specific_) { parent::DataFeeder($name_, $specific_); } function Exploit() { global $LIBPATH; global $db_name; global $db_host; global $db_password; global $db_usrName; $test = parent::ParseGetPost($this->specific[3]); if($test) return $test; if($this->db == NULL) { $this->db = new DbMysql($db_host, $db_usrName, $db_password, $db_name); if(!$this->db->bConnected) return 2; } if(!array_key_exists(4, $this->specific)) { $this->specific[4] = array();
} $this->resultArr = $this->db->SelectSQL($this->specific[1], $this->specific[2], $this->specific[3], $this->specific[4]); return $this->resultArr; } } ?>
|