* finish task #1996.

This commit is contained in:
wangyidong
2014-12-15 02:04:19 +00:00
parent 0522f5426c
commit 6a1be06be6
4 changed files with 63 additions and 0 deletions
+14
View File
@@ -87,4 +87,18 @@ class api extends control
$this->view->filePath = $filePath;
$this->display();
}
/**
* Query sql;
*
* @param string $sql this sql is base64 encode.
* @access public
* @return void
*/
public function query($sql)
{
$sql = base64_decode($sql);
$this->view->results = $this->api->query($sql);
die($this->display());
}
}