CC-4854: Remove SaaS checking from codebase

-fixed
This commit is contained in:
Martin Konecny 2013-01-16 14:31:43 -05:00
parent 9d8c9149fd
commit 8b12f692cd
6 changed files with 19 additions and 113 deletions

View file

@ -692,26 +692,24 @@ class ApiController extends Zend_Controller_Action
Application_Model_ServiceRegister::Register($component, $remoteAddr);
//send ip, subdomain
if (Application_Model_Preference::GetPlanLevel() != 'disabled'){
if ($component == "pypo"){
$split = explode('.', $_SERVER['SERVER_NAME']);
$subdomain = array();
foreach ($split as $value) {
if ($value == 'airtime') {
break;
} else {
$subdomain[] = $value;
}
if ($component == "pypo"){
$split = explode('.', $_SERVER['SERVER_NAME']);
$subdomain = array();
foreach ($split as $value) {
if ($value == 'airtime') {
break;
} else {
$subdomain[] = $value;
}
if (count($subdomain) > 0){
$subDomain = implode('.',$subdomain);
}
if (count($subdomain) > 0){
$subDomain = implode('.',$subdomain);
$md = array();
$md["sub_domain"] = $subDomain;
$md["pypo_ip"] = $remoteAddr;
$md = array();
$md["sub_domain"] = $subDomain;
$md["pypo_ip"] = $remoteAddr;
Application_Model_RabbitMq::SendMessageToHaproxyConfigDaemon($md);
}
Application_Model_RabbitMq::SendMessageToHaproxyConfigDaemon($md);
}
}
}