diff --git a/airtime_mvc/application/forms/AddShowRR.php b/airtime_mvc/application/forms/AddShowRR.php index 84b387b25..7eef2b438 100644 --- a/airtime_mvc/application/forms/AddShowRR.php +++ b/airtime_mvc/application/forms/AddShowRR.php @@ -7,7 +7,7 @@ class Application_Form_AddShowRR extends Zend_Form_SubForm { // Add record element $this->addElement('checkbox', 'add_show_record', array( - 'label' => 'Record?', + 'label' => 'Record from Line In?', 'required' => false, )); diff --git a/airtime_mvc/application/forms/AddUser.php b/airtime_mvc/application/forms/AddUser.php index 4ff63dc12..43b76495c 100644 --- a/airtime_mvc/application/forms/AddUser.php +++ b/airtime_mvc/application/forms/AddUser.php @@ -34,7 +34,6 @@ class Application_Form_AddUser extends Zend_Form $firstName = new Zend_Form_Element_Text('first_name'); $firstName->setLabel('Firstname:'); $firstName->setAttrib('class', 'input_text'); - $firstName->setRequired(true); $firstName->addFilter('StringTrim'); $firstName->addValidator('NotEmpty'); $this->addElement($firstName); @@ -42,7 +41,6 @@ class Application_Form_AddUser extends Zend_Form $lastName = new Zend_Form_Element_Text('last_name'); $lastName->setLabel('Lastname:'); $lastName->setAttrib('class', 'input_text'); - $lastName->setRequired(true); $lastName->addFilter('StringTrim'); $lastName->addValidator('NotEmpty'); $this->addElement($lastName); diff --git a/airtime_mvc/application/forms/WatchedDirPreferences.php b/airtime_mvc/application/forms/WatchedDirPreferences.php index 278a782d7..9e8021839 100644 --- a/airtime_mvc/application/forms/WatchedDirPreferences.php +++ b/airtime_mvc/application/forms/WatchedDirPreferences.php @@ -11,7 +11,7 @@ class Application_Form_WatchedDirPreferences extends Zend_Form_SubForm $this->addElement('text', 'storageFolder', array( 'class' => 'input_text', - 'label' => 'Airtime\'s Storage Folder:', + 'label' => 'Import Folder:', 'required' => false, 'filters' => array('StringTrim'), 'value' => '', @@ -22,7 +22,7 @@ class Application_Form_WatchedDirPreferences extends Zend_Form_SubForm $this->addElement('text', 'watchedFolder', array( 'class' => 'input_text', - 'label' => 'Choose a Watched Folder:', + 'label' => 'Watched Folders:', 'required' => false, 'filters' => array('StringTrim'), 'value' => '', diff --git a/airtime_mvc/application/models/RabbitMq.php b/airtime_mvc/application/models/RabbitMq.php index 83e188ba4..bc5eaa1f7 100644 --- a/airtime_mvc/application/models/RabbitMq.php +++ b/airtime_mvc/application/models/RabbitMq.php @@ -75,7 +75,7 @@ class Application_Model_RabbitMq $channel->exchange_declare($EXCHANGE, 'direct', false, true); $now = new DateTime("@".time()); - $end_timestamp = new DateTime("@".time() + 3600*2); + $end_timestamp = new DateTime("@".(time() + 3600*2)); $temp['event_type'] = $event_type; $temp['server_timezone'] = Application_Model_Preference::GetTimezone(); diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 0c7afa4a5..3c004b2d1 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -804,7 +804,7 @@ class Application_Model_Show { $utcStartDateTime->add(new DateInterval("P".$daysAdd."D")); } - if (is_null($endDateTime) || $utcStartDateTime->getTimestamp() <= $endDateTime->getTimestamp()) { + if (is_null($endDate) || $utcStartDateTime->getTimestamp() <= $endDateTime->getTimestamp()) { $showDay = new CcShowDays(); $showDay->setDbFirstShow($utcStartDateTime->format("Y-m-d")); $showDay->setDbLastShow($endDate); diff --git a/airtime_mvc/application/models/StreamSetting.php b/airtime_mvc/application/models/StreamSetting.php index 1febaf042..7d5c20cdd 100644 --- a/airtime_mvc/application/models/StreamSetting.php +++ b/airtime_mvc/application/models/StreamSetting.php @@ -83,15 +83,15 @@ class Application_Model_StreamSetting { $sql = "SELECT COUNT(*) FROM cc_stream_setting" ." WHERE keyname = '$keyname'"; $result = $CC_DBC->GetOne($sql); - if ($result == 1){ $sql = "UPDATE cc_stream_setting" - ." SET value = '$value'" + ." SET value = '$msg'" ." WHERE keyname = '$keyname'"; }else{ $sql = "INSERT INTO cc_stream_setting (keyname, value, type)" - ." VALUES ($keyname, '$msg', 'string')"; + ." VALUES ('$keyname', '$msg', 'string')"; } + $res = $CC_DBC->query($sql); } public static function getLiquidsoapError($stream_id){ diff --git a/airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml b/airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml index 001112d1a..f384eb752 100644 --- a/airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml +++ b/airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml @@ -16,7 +16,7 @@ -