Merge branch 'saas-dev' into saas-landing-page
This commit is contained in:
commit
0796f58878
|
@ -102,7 +102,6 @@ class UserController extends Zend_Controller_Action
|
|||
public function getHostsAction()
|
||||
{
|
||||
$search = $this->_getParam('term');
|
||||
$res = Application_Model_User::getHosts($search);
|
||||
$this->view->hosts = Application_Model_User::getHosts($search);
|
||||
}
|
||||
|
||||
|
|
|
@ -268,6 +268,7 @@ SQL;
|
|||
$nextMedia = CcScheduleQuery::create()
|
||||
->filterByDbStarts($currentMedia["starts"], Criteria::GREATER_THAN)
|
||||
->filterByDbId($currentMedia["id"], Criteria::NOT_EQUAL)
|
||||
->filterByDbPlayoutStatus(0, Criteria::GREATER_THAN)
|
||||
->orderByDbStarts(Criteria::ASC)
|
||||
->findOne();
|
||||
if (isset($nextMedia)) {
|
||||
|
|
|
@ -75,8 +75,13 @@ class Application_Model_StreamSetting
|
|||
$host = $streamData[$prefix."host"];
|
||||
$port = $streamData[$prefix."port"];
|
||||
$mount = $streamData[$prefix."mount"];
|
||||
if ($streamData[$prefix."output"] == "shoutcast") {
|
||||
$url = "http://$host:$port/";
|
||||
} else { //Icecast
|
||||
$url = "http://$host:$port/$mount";
|
||||
}
|
||||
$streams[$id] = Array(
|
||||
"url" => "http://$host:$port/$mount",
|
||||
"url" => $url,
|
||||
"codec" => $streamData[$prefix."type"],
|
||||
"bitrate" => $streamData[$prefix."bitrate"],
|
||||
"mobile" => $streamData[$prefix."mobile"]
|
||||
|
|
|
@ -282,7 +282,6 @@ class Application_Model_User
|
|||
$con = Propel::getConnection();
|
||||
|
||||
$sql_gen = "SELECT login AS value, login AS label, id as index FROM cc_subjs ";
|
||||
$sql = $sql_gen;
|
||||
|
||||
$types = array();
|
||||
$params = array();
|
||||
|
@ -296,13 +295,8 @@ class Application_Model_User
|
|||
|
||||
$sql = $sql_gen ." WHERE (". $sql_type.") ";
|
||||
|
||||
if (!is_null($search)) {
|
||||
//need to use addslashes for 'LIKE' values
|
||||
$search = addslashes($search);
|
||||
$like = "login ILIKE '%{$search}%'";
|
||||
|
||||
$sql = $sql . " AND ".$like;
|
||||
}
|
||||
$sql .= " AND login ILIKE :search";
|
||||
$params[":search"] = "%$search%";
|
||||
|
||||
$sql = $sql ." ORDER BY login";
|
||||
|
||||
|
|
Loading…
Reference in New Issue