Initial import
This commit is contained in:
19
application/controllers/v1/su/Configemail.php
Normal file
19
application/controllers/v1/su/Configemail.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class Configemail extends CI_Controller
|
||||
{
|
||||
function config() {
|
||||
$this->db_onedev = $this->load->database("onedev", true);
|
||||
$sql = "select * from m_emailconfig where M_EmailConfigIsActive = 'Y'
|
||||
limit 0,1";
|
||||
$qry = $this->db_onedev->query($sql);
|
||||
if ($qry) {
|
||||
$rows = $qry->result_array();
|
||||
if (count($rows) > 0 ) {
|
||||
echo json_encode($rows[0]);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
echo json_encode( array());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user