Merge branch '2.5.x' of git://github.com/sourcefabric/Airtime into 2.5.x
Conflicts: debian/changelog debian/compat debian/control debian/copyright debian/etc/airtime.ini debian/etc/apache.vhost.tpl debian/install debian/po/templates.pot debian/postinst gen-snapshot.sh
This commit is contained in:
commit
f9a006e11b
|
@ -11,11 +11,13 @@ require_once __DIR__."/configs/constants.php";
|
|||
require_once 'Preference.php';
|
||||
require_once 'Locale.php';
|
||||
require_once "DateHelper.php";
|
||||
require_once "HTTPHelper.php";
|
||||
require_once "OsPath.php";
|
||||
require_once "Database.php";
|
||||
require_once "Timezone.php";
|
||||
require_once "Auth.php";
|
||||
require_once __DIR__.'/forms/helpers/ValidationTypes.php';
|
||||
require_once __DIR__.'/forms/helpers/CustomDecorators.php';
|
||||
require_once __DIR__.'/controllers/plugins/RabbitMqPlugin.php';
|
||||
|
||||
require_once (APPLICATION_PATH."/logging/Logging.php");
|
||||
|
|
|
@ -443,5 +443,59 @@ class Application_Common_DateHelper
|
|||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns date fields from give start and end teimstamp strings
|
||||
* if no start or end parameter is passed start will be set to 1
|
||||
* in the past and end to now
|
||||
*
|
||||
* @param string startTimestamp Y-m-d H:i:s
|
||||
* @param string endTImestamp Y-m-d H:i:s
|
||||
* @param string timezone (ex UTC) of the start and end parameters
|
||||
* @return array (start DateTime, end DateTime) in UTC timezone
|
||||
*/
|
||||
public static function getStartEnd($startTimestamp, $endTimestamp, $timezone)
|
||||
{
|
||||
$prefTimezone = Application_Model_Preference::GetTimezone();
|
||||
$utcTimezone = new DateTimeZone("UTC");
|
||||
$utcNow = new DateTime("now", $utcTimezone);
|
||||
|
||||
if (empty($timezone)) {
|
||||
$userTimezone = new DateTimeZone($prefTimezone);
|
||||
} else {
|
||||
$userTimezone = new DateTimeZone($timezone);
|
||||
}
|
||||
|
||||
// default to 1 day
|
||||
if (empty($startTimestamp) || empty($endTimestamp)) {
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
} else {
|
||||
|
||||
try {
|
||||
$startsDT = new DateTime($startTimestamp, $userTimezone);
|
||||
$startsDT->setTimezone($utcTimezone);
|
||||
|
||||
$endsDT = new DateTime($endTimestamp, $userTimezone);
|
||||
$endsDT->setTimezone($utcTimezone);
|
||||
|
||||
if ($startsDT > $endsDT) {
|
||||
throw new Exception("start greater than end");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return array($startsDT, $endsDT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
class Application_Common_HTTPHelper
|
||||
{
|
||||
/**
|
||||
* Returns start and end DateTime vars from given
|
||||
* HTTP Request object
|
||||
*
|
||||
* @param Request
|
||||
* @return array(start DateTime, end DateTime)
|
||||
*/
|
||||
public static function getStartEndFromRequest($request)
|
||||
{
|
||||
return Application_Common_DateHelper::getStartEnd(
|
||||
$request->getParam("start", null),
|
||||
$request->getParam("end", null),
|
||||
$request->getParam("timezone", null)
|
||||
);
|
||||
}
|
||||
}
|
|
@ -5,8 +5,17 @@ class ApiController extends Zend_Controller_Action
|
|||
|
||||
public function init()
|
||||
{
|
||||
$ignoreAuth = array("live-info", "live-info-v2", "week-info",
|
||||
"station-metadata", "station-logo");
|
||||
$ignoreAuth = array("live-info",
|
||||
"live-info-v2",
|
||||
"week-info",
|
||||
"station-metadata",
|
||||
"station-logo",
|
||||
"show-history-feed",
|
||||
"item-history-feed",
|
||||
"shows",
|
||||
"show-tracks",
|
||||
"show-schedules"
|
||||
);
|
||||
|
||||
$params = $this->getRequest()->getParams();
|
||||
if (!in_array($params['action'], $ignoreAuth)) {
|
||||
|
@ -274,10 +283,10 @@ class ApiController extends Zend_Controller_Action
|
|||
$utcTimeEnd = $end->format("Y-m-d H:i:s");
|
||||
|
||||
$result = array(
|
||||
"env" => APPLICATION_ENV,
|
||||
"schedulerTime" => $utcTimeNow,
|
||||
"currentShow" => Application_Model_Show::getCurrentShow($utcTimeNow),
|
||||
"nextShow" => Application_Model_Show::getNextShows($utcTimeNow, $limit, $utcTimeEnd)
|
||||
"env" => APPLICATION_ENV,
|
||||
"schedulerTime" => $utcTimeNow,
|
||||
"currentShow" => Application_Model_Show::getCurrentShow($utcTimeNow),
|
||||
"nextShow" => Application_Model_Show::getNextShows($utcTimeNow, $limit, $utcTimeEnd)
|
||||
);
|
||||
} else {
|
||||
$result = Application_Model_Schedule::GetPlayOrderRangeOld($limit);
|
||||
|
@ -484,9 +493,9 @@ class ApiController extends Zend_Controller_Action
|
|||
$shows,
|
||||
array("starts", "ends", "start_timestamp","end_timestamp"),
|
||||
$timezone
|
||||
);
|
||||
);
|
||||
|
||||
$result[$dow[$i]] = $shows;
|
||||
$result[$dow[$i]] = $shows;
|
||||
}
|
||||
|
||||
// XSS exploit prevention
|
||||
|
@ -1320,4 +1329,175 @@ class ApiController extends Zend_Controller_Action
|
|||
Application_Model_StreamSetting::SetListenerStatError($k, $v);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* display played items for a given time range and show instance_id
|
||||
*
|
||||
* @return json array
|
||||
*/
|
||||
public function itemHistoryFeedAction()
|
||||
{
|
||||
try {
|
||||
$request = $this->getRequest();
|
||||
$params = $request->getParams();
|
||||
$instance = $request->getParam("instance_id", null);
|
||||
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
$historyService = new Application_Service_HistoryService();
|
||||
$results = $historyService->getPlayedItemData($startsDT, $endsDT, $params, $instance);
|
||||
|
||||
$this->_helper->json->sendJson($results['history']);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* display show schedules for a given time range and show instance_id
|
||||
*
|
||||
* @return json array
|
||||
*/
|
||||
public function showHistoryFeedAction()
|
||||
{
|
||||
try {
|
||||
$request = $this->getRequest();
|
||||
$params = $request->getParams();
|
||||
$userId = $request->getParam("user_id", null);
|
||||
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
$historyService = new Application_Service_HistoryService();
|
||||
$shows = $historyService->getShowList($startsDT, $endsDT, $userId);
|
||||
|
||||
$this->_helper->json->sendJson($shows);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* display show info (without schedule) for given show_id
|
||||
*
|
||||
* @return json array
|
||||
*/
|
||||
public function showsAction()
|
||||
{
|
||||
try {
|
||||
$request = $this->getRequest();
|
||||
$params = $request->getParams();
|
||||
$showId = $request->getParam("show_id", null);
|
||||
$results = array();
|
||||
|
||||
if (empty($showId)) {
|
||||
$shows = CcShowQuery::create()->find();
|
||||
foreach($shows as $show) {
|
||||
$results[] = $show->getShowInfo();
|
||||
}
|
||||
} else {
|
||||
$show = CcShowQuery::create()->findPK($showId);
|
||||
$results[] = $show->getShowInfo();
|
||||
}
|
||||
|
||||
$this->_helper->json->sendJson($results);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* display show schedule for given show_id
|
||||
*
|
||||
* @return json array
|
||||
*/
|
||||
public function showSchedulesAction()
|
||||
{
|
||||
try {
|
||||
$request = $this->getRequest();
|
||||
$params = $request->getParams();
|
||||
$showId = $request->getParam("show_id", null);
|
||||
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
if ((!isset($showId)) || (!is_numeric($showId))) {
|
||||
//if (!isset($showId)) {
|
||||
$this->_helper->json->sendJson(
|
||||
array("jsonrpc" => "2.0", "error" => array("code" => 400, "message" => "missing invalid type for required show_id parameter. use type int.".$showId))
|
||||
);
|
||||
}
|
||||
|
||||
$shows = Application_Model_Show::getShows($startsDT, $endsDT, FALSE, $showId);
|
||||
|
||||
// is this a valid show?
|
||||
if (empty($shows)) {
|
||||
$this->_helper->json->sendJson(
|
||||
array("jsonrpc" => "2.0", "error" => array("code" => 204, "message" => "no content for requested show_id"))
|
||||
);
|
||||
}
|
||||
|
||||
$this->_helper->json->sendJson($shows);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* displays track listing for given instance_id
|
||||
*
|
||||
* @return json array
|
||||
*/
|
||||
public function showTracksAction()
|
||||
{
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$prefTimezone = Application_Model_Preference::GetTimezone();
|
||||
|
||||
$instanceId = $this->_getParam('instance_id');
|
||||
|
||||
if ((!isset($instanceId)) || (!is_numeric($instanceId))) {
|
||||
$this->_helper->json->sendJson(
|
||||
array("jsonrpc" => "2.0", "error" => array("code" => 400, "message" => "missing invalid type for required instance_id parameter. use type int"))
|
||||
);
|
||||
}
|
||||
|
||||
$showInstance = new Application_Model_ShowInstance($instanceId);
|
||||
$showInstanceContent = $showInstance->getShowListContent($prefTimezone);
|
||||
|
||||
// is this a valid show instance with content?
|
||||
if (empty($showInstanceContent)) {
|
||||
$this->_helper->json->sendJson(
|
||||
array("jsonrpc" => "2.0", "error" => array("code" => 204, "message" => "no content for requested instance_id"))
|
||||
);
|
||||
}
|
||||
|
||||
$result = array();
|
||||
$position = 0;
|
||||
foreach ($showInstanceContent as $track) {
|
||||
|
||||
$elementMap = array(
|
||||
'title' => isset($track['track_title']) ? $track['track_title'] : "",
|
||||
'artist' => isset($track['creator']) ? $track['creator'] : "",
|
||||
'position' => $position,
|
||||
'id' => ++$position,
|
||||
'mime' => isset($track['mime'])?$track['mime']:"",
|
||||
'starts' => isset($track['starts']) ? $track['starts'] : "",
|
||||
'length' => isset($track['length']) ? $track['length'] : "",
|
||||
'file_id' => ($track['type'] == 0) ? $track['item_id'] : $track['filepath']
|
||||
);
|
||||
|
||||
$result[] = $elementMap;
|
||||
}
|
||||
|
||||
$this->_helper->json($result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,49 +10,6 @@ class ListenerstatController extends Zend_Controller_Action
|
|||
->initContext();
|
||||
}
|
||||
|
||||
private function getStartEnd()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
|
||||
$utcTimezone = new DateTimeZone("UTC");
|
||||
$utcNow = new DateTime("now", $utcTimezone);
|
||||
|
||||
$start = $request->getParam("start");
|
||||
$end = $request->getParam("end");
|
||||
|
||||
if (empty($start) || empty($end)) {
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
}
|
||||
else {
|
||||
|
||||
try {
|
||||
$startsDT = new DateTime($start, $userTimezone);
|
||||
$startsDT->setTimezone($utcTimezone);
|
||||
|
||||
$endsDT = new DateTime($end, $userTimezone);
|
||||
$endsDT->setTimezone($utcTimezone);
|
||||
|
||||
if ($startsDT > $endsDT) {
|
||||
throw new Exception("start greater than end");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return array($startsDT, $endsDT);
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
@ -69,7 +26,7 @@ class ListenerstatController extends Zend_Controller_Action
|
|||
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
$userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
|
||||
$startsDT->setTimezone($userTimezone);
|
||||
$endsDT->setTimezone($userTimezone);
|
||||
|
@ -98,7 +55,7 @@ class ListenerstatController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
public function getDataAction(){
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($this->getRequest());
|
||||
|
||||
$data = Application_Model_ListenerStat::getDataPointsWithinRange($startsDT->format("Y-m-d H:i:s"), $endsDT->format("Y-m-d H:i:s"));
|
||||
$this->_helper->json->sendJson($data);
|
||||
|
|
|
@ -19,56 +19,13 @@ class PlayouthistoryController extends Zend_Controller_Action
|
|||
->initContext();
|
||||
}
|
||||
|
||||
private function getStartEnd()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
|
||||
$utcTimezone = new DateTimeZone("UTC");
|
||||
$utcNow = new DateTime("now", $utcTimezone);
|
||||
|
||||
$start = $request->getParam("start");
|
||||
$end = $request->getParam("end");
|
||||
|
||||
if (empty($start) || empty($end)) {
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
}
|
||||
else {
|
||||
|
||||
try {
|
||||
$startsDT = new DateTime($start, $userTimezone);
|
||||
$startsDT->setTimezone($utcTimezone);
|
||||
|
||||
$endsDT = new DateTime($end, $userTimezone);
|
||||
$endsDT->setTimezone($utcTimezone);
|
||||
|
||||
if ($startsDT > $endsDT) {
|
||||
throw new Exception("start greater than end");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return array($startsDT, $endsDT);
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($this->getRequest());
|
||||
|
||||
$userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
|
||||
$startsDT->setTimezone($userTimezone);
|
||||
$endsDT->setTimezone($userTimezone);
|
||||
|
@ -123,7 +80,7 @@ class PlayouthistoryController extends Zend_Controller_Action
|
|||
$params = $request->getParams();
|
||||
$instance = $request->getParam("instance_id", null);
|
||||
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
$historyService = new Application_Service_HistoryService();
|
||||
$r = $historyService->getFileSummaryData($startsDT, $endsDT, $params);
|
||||
|
@ -146,7 +103,7 @@ class PlayouthistoryController extends Zend_Controller_Action
|
|||
$params = $request->getParams();
|
||||
$instance = $request->getParam("instance_id", null);
|
||||
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
$historyService = new Application_Service_HistoryService();
|
||||
$r = $historyService->getPlayedItemData($startsDT, $endsDT, $params, $instance);
|
||||
|
@ -169,7 +126,7 @@ class PlayouthistoryController extends Zend_Controller_Action
|
|||
$params = $request->getParams();
|
||||
$instance = $request->getParam("instance_id", null);
|
||||
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
$historyService = new Application_Service_HistoryService();
|
||||
$shows = $historyService->getShowList($startsDT, $endsDT);
|
||||
|
|
|
@ -236,49 +236,6 @@ class ShowbuilderController extends Zend_Controller_Action
|
|||
$this->view->dialog = $this->view->render('showbuilder/builderDialog.phtml');
|
||||
}
|
||||
|
||||
private function getStartEnd()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
|
||||
$utcTimezone = new DateTimeZone("UTC");
|
||||
$utcNow = new DateTime("now", $utcTimezone);
|
||||
|
||||
$start = $request->getParam("start");
|
||||
$end = $request->getParam("end");
|
||||
|
||||
if (empty($start) || empty($end)) {
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
}
|
||||
else {
|
||||
|
||||
try {
|
||||
$startsDT = new DateTime($start, $userTimezone);
|
||||
$startsDT->setTimezone($utcTimezone);
|
||||
|
||||
$endsDT = new DateTime($end, $userTimezone);
|
||||
$endsDT->setTimezone($utcTimezone);
|
||||
|
||||
if ($startsDT > $endsDT) {
|
||||
throw new Exception("start greater than end");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
Logging::info($e->getMessage());
|
||||
|
||||
$startsDT = clone $utcNow;
|
||||
$startsDT->sub(new DateInterval("P1D"));
|
||||
$endsDT = clone $utcNow;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return array($startsDT, $endsDT);
|
||||
}
|
||||
|
||||
public function checkBuilderFeedAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
@ -287,7 +244,7 @@ class ShowbuilderController extends Zend_Controller_Action
|
|||
$timestamp = intval($request->getParam("timestamp", -1));
|
||||
$instances = $request->getParam("instances", array());
|
||||
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
$opts = array("myShows" => $my_shows, "showFilter" => $show_filter);
|
||||
$showBuilder = new Application_Model_ShowBuilder($startsDT, $endsDT, $opts);
|
||||
|
@ -307,7 +264,7 @@ class ShowbuilderController extends Zend_Controller_Action
|
|||
$show_instance_filter = intval($request->getParam("showInstanceFilter", 0));
|
||||
$my_shows = intval($request->getParam("myShows", 0));
|
||||
|
||||
list($startsDT, $endsDT) = $this->getStartEnd();
|
||||
list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($request);
|
||||
|
||||
$opts = array("myShows" => $my_shows,
|
||||
"showFilter" => $show_filter,
|
||||
|
|
|
@ -5,6 +5,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
|||
|
||||
public function init()
|
||||
{
|
||||
$maxLens = Application_Model_Show::getMaxLengths();
|
||||
|
||||
$notEmptyValidator = Application_Form_Helper_ValidationTypes::overrideNotEmptyValidator();
|
||||
$rangeValidator = Application_Form_Helper_ValidationTypes::overrideBetweenValidator(0, 59.9);
|
||||
|
@ -14,90 +15,90 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
|||
|
||||
$defaultFadeIn = Application_Model_Preference::GetDefaultFadeIn();
|
||||
$defaultFadeOut = Application_Model_Preference::GetDefaultFadeOut();
|
||||
|
||||
|
||||
//Station name
|
||||
$this->addElement('text', 'stationName', array(
|
||||
'class' => 'input_text',
|
||||
'label' => _('Station Name'),
|
||||
'required' => false,
|
||||
'filters' => array('StringTrim'),
|
||||
'class' => 'input_text',
|
||||
'label' => _('Station Name'),
|
||||
'required' => false,
|
||||
'filters' => array('StringTrim'),
|
||||
'value' => Application_Model_Preference::GetStationName(),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
));
|
||||
|
||||
//Default station fade in
|
||||
|
||||
// Station description
|
||||
$stationDescription = new Zend_Form_Element_Textarea("stationDescription");
|
||||
$stationDescription->setLabel(_('Station Description'));
|
||||
$stationDescription->setValue(Application_Model_Preference::GetStationDescription());
|
||||
$stationDescription->setRequired(false);
|
||||
$stationDescription->setValidators(array(array('StringLength', false, array(0, $maxLens['description']))));
|
||||
$stationDescription->setAttrib('rows', 4);
|
||||
$this->addElement($stationDescription);
|
||||
|
||||
//Default station crossfade duration
|
||||
$this->addElement('text', 'stationDefaultCrossfadeDuration', array(
|
||||
'class' => 'input_text',
|
||||
'label' => _('Default Crossfade Duration (s):'),
|
||||
'required' => true,
|
||||
'filters' => array('StringTrim'),
|
||||
'validators' => array(
|
||||
array(
|
||||
$rangeValidator,
|
||||
$notEmptyValidator,
|
||||
'regex', false, array('/^[0-9]{1,2}(\.\d{1})?$/', 'messages' => _('enter a time in seconds 0{.0}'))
|
||||
)
|
||||
),
|
||||
'value' => Application_Model_Preference::GetDefaultCrossfadeDuration(),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
'class' => 'input_text',
|
||||
'label' => _('Default Crossfade Duration (s):'),
|
||||
'required' => true,
|
||||
'filters' => array('StringTrim'),
|
||||
'validators' => array(
|
||||
$rangeValidator,
|
||||
$notEmptyValidator,
|
||||
array('regex', false, array('/^[0-9]+(\.\d+)?$/', 'messages' => _('Please enter a time in seconds (eg. 0.5)')))
|
||||
),
|
||||
'value' => Application_Model_Preference::GetDefaultCrossfadeDuration(),
|
||||
));
|
||||
|
||||
//Default station fade in
|
||||
$this->addElement('text', 'stationDefaultFadeIn', array(
|
||||
'class' => 'input_text',
|
||||
'label' => _('Default Fade In (s):'),
|
||||
'required' => true,
|
||||
'filters' => array('StringTrim'),
|
||||
'class' => 'input_text',
|
||||
'label' => _('Default Fade In (s):'),
|
||||
'required' => true,
|
||||
'filters' => array('StringTrim'),
|
||||
'validators' => array(
|
||||
array(
|
||||
$rangeValidator,
|
||||
$notEmptyValidator,
|
||||
'regex', false, array('/^[0-9]{1,2}(\.\d{1})?$/', 'messages' => _('enter a time in seconds 0{.0}'))
|
||||
)
|
||||
$rangeValidator,
|
||||
$notEmptyValidator,
|
||||
array('regex', false, array('/^[0-9]+(\.\d+)?$/', 'messages' => _('Please enter a time in seconds (eg. 0.5)')))
|
||||
),
|
||||
'value' => $defaultFadeIn,
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
));
|
||||
|
||||
|
||||
//Default station fade out
|
||||
$this->addElement('text', 'stationDefaultFadeOut', array(
|
||||
'class' => 'input_text',
|
||||
'label' => _('Default Fade Out (s):'),
|
||||
'required' => true,
|
||||
'filters' => array('StringTrim'),
|
||||
'validators' => array(
|
||||
array(
|
||||
$rangeValidator,
|
||||
$notEmptyValidator,
|
||||
'regex', false, array('/^[0-9]{1,2}(\.\d{1})?$/', 'messages' => _('enter a time in seconds 0{.0}'))
|
||||
)
|
||||
),
|
||||
'value' => $defaultFadeOut,
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
'class' => 'input_text',
|
||||
'label' => _('Default Fade Out (s):'),
|
||||
'required' => true,
|
||||
'filters' => array('StringTrim'),
|
||||
'validators' => array(
|
||||
$rangeValidator,
|
||||
$notEmptyValidator,
|
||||
array('regex', false, array('/^[0-9]+(\.\d+)?$/', 'messages' => _('Please enter a time in seconds (eg. 0.5)')))
|
||||
),
|
||||
'value' => $defaultFadeOut,
|
||||
));
|
||||
|
||||
$third_party_api = new Zend_Form_Element_Radio('thirdPartyApi');
|
||||
$third_party_api->setLabel(
|
||||
sprintf(_('Allow Remote Websites To Access "Schedule" Info?%s (Enable this to make front-end widgets work.)'), '<br>'));
|
||||
$third_party_api->setMultiOptions(array(_("Disabled"),
|
||||
_("Enabled")));
|
||||
$third_party_api->setLabel(_('Public Airtime API'));
|
||||
$third_party_api->setDescription(_('Required for embeddable schedule widget.'));
|
||||
$third_party_api->setMultiOptions(array(
|
||||
_("Disabled"),
|
||||
_("Enabled"),
|
||||
));
|
||||
$third_party_api->setValue(Application_Model_Preference::GetAllow3rdPartyApi());
|
||||
$third_party_api->setDecorators(array('ViewHelper'));
|
||||
$third_party_api->setDescription(_('Enabling this feature will allow Airtime to provide schedule data
|
||||
to external widgets that can be embedded in your website. Enable this
|
||||
feature to reveal the embeddable code.'));
|
||||
$third_party_api->setSeparator(' '); //No <br> between radio buttons
|
||||
//$third_party_api->addDecorator(new Zend_Form_Decorator_Label(array('tag' => 'dd', 'class' => 'radio-inline-list')));
|
||||
$third_party_api->addDecorator('HtmlTag', array('tag' => 'dd',
|
||||
'id'=>"thirdPartyApi-element",
|
||||
'class' => 'radio-inline-list',
|
||||
));
|
||||
$this->addElement($third_party_api);
|
||||
|
||||
$locale = new Zend_Form_Element_Select("locale");
|
||||
$locale->setLabel(_("Default Interface Language"));
|
||||
$locale->setLabel(_("Default Language"));
|
||||
$locale->setMultiOptions(Application_Model_Locale::getLocales());
|
||||
$locale->setValue(Application_Model_Preference::GetDefaultLocale());
|
||||
$locale->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($locale);
|
||||
|
||||
/* Form Element for setting the Timezone */
|
||||
|
@ -105,7 +106,6 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
|||
$timezone->setLabel(_("Station Timezone"));
|
||||
$timezone->setMultiOptions(Application_Common_Timezone::getTimezones());
|
||||
$timezone->setValue(Application_Model_Preference::GetDefaultTimezone());
|
||||
$timezone->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($timezone);
|
||||
|
||||
/* Form Element for setting which day is the start of the week */
|
||||
|
@ -113,7 +113,6 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
|||
$week_start_day->setLabel(_("Week Starts On"));
|
||||
$week_start_day->setMultiOptions($this->getWeekStartDays());
|
||||
$week_start_day->setValue(Application_Model_Preference::GetWeekStartDay());
|
||||
$week_start_day->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($week_start_day);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,6 @@ class Application_Form_LiveStreamingPreferences extends Zend_Form_SubForm
|
|||
$isStreamConfigable = Application_Model_Preference::GetEnableStreamConf() == "true";
|
||||
|
||||
$defaultFade = Application_Model_Preference::GetDefaultTransitionFade();
|
||||
if ($defaultFade == "") {
|
||||
$defaultFade = '00.000000';
|
||||
}
|
||||
|
||||
// automatic trasition on source disconnection
|
||||
$auto_transition = new Zend_Form_Element_Checkbox("auto_transition");
|
||||
|
@ -32,8 +29,8 @@ class Application_Form_LiveStreamingPreferences extends Zend_Form_SubForm
|
|||
$transition_fade = new Zend_Form_Element_Text("transition_fade");
|
||||
$transition_fade->setLabel(_("Switch Transition Fade (s)"))
|
||||
->setFilters(array('StringTrim'))
|
||||
->addValidator('regex', false, array('/^[0-9]{1,2}(\.\d{1,6})?$/',
|
||||
'messages' => _('enter a time in seconds 00{.000000}')))
|
||||
->addValidator('regex', false, array('/^[0-9]{1,2}(\.\d{1,3})?$/',
|
||||
'messages' => _('enter a time in seconds 0{.000}')))
|
||||
->setValue($defaultFade)
|
||||
->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($transition_fade);
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
|
|
@ -21,9 +21,9 @@
|
|||
$companySiteAnchor = "<a href='" . COMPANY_SITE_URL . "'>"
|
||||
. $company
|
||||
. "</a>";
|
||||
echo sprintf(_('%1$s copyright © %2$s All rights reserved.%3$s'
|
||||
. 'Maintained and distributed under the %4$s by %5$s'),
|
||||
PRODUCT_NAME, $company, "<br>",
|
||||
echo sprintf(_('%1$s copyright © %2$s All rights reserved.<br />'
|
||||
. 'Maintained and distributed under the %3$s by %4$s'),
|
||||
PRODUCT_NAME, $company,
|
||||
$licenseSiteAnchor,
|
||||
$companySiteAnchor);
|
||||
?>
|
||||
|
|
|
@ -263,7 +263,7 @@ class Application_Model_Preference
|
|||
|
||||
if ($fade === "") {
|
||||
// the default value of the fade is 00.5
|
||||
return "00.5";
|
||||
return "0.5";
|
||||
}
|
||||
|
||||
return $fade;
|
||||
|
@ -279,8 +279,8 @@ class Application_Model_Preference
|
|||
$fade = self::getValue("default_fade_out");
|
||||
|
||||
if ($fade === "") {
|
||||
// the default value of the fade is 00.5
|
||||
return "00.5";
|
||||
// the default value of the fade is 0.5
|
||||
return "0.5";
|
||||
}
|
||||
|
||||
return $fade;
|
||||
|
@ -291,33 +291,6 @@ class Application_Model_Preference
|
|||
self::setValue("default_fade", $fade);
|
||||
}
|
||||
|
||||
public static function GetDefaultFade()
|
||||
{
|
||||
$fade = self::getValue("default_fade");
|
||||
|
||||
if ($fade === "") {
|
||||
// the default value of the fade is 00.5
|
||||
return "00.5";
|
||||
}
|
||||
|
||||
// we need this function to work with 2.0 version on default_fade value in cc_pref
|
||||
// it has 00:00:00.000000 format where in 2.1 we have 00.000000 format
|
||||
if (preg_match("/([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6})/", $fade, $matches) == 1 && count($matches) == 5) {
|
||||
$out = 0;
|
||||
$out += intval($matches[1] * 3600);
|
||||
$out += intval($matches[2] * 60);
|
||||
$out += intval($matches[3]);
|
||||
$out .= ".$matches[4]";
|
||||
$fade = $out;
|
||||
}
|
||||
|
||||
$fade = number_format($fade, 1, '.', '');
|
||||
//fades need 2 leading zeros for DateTime conversion
|
||||
$fade = str_pad($fade, 4, "0", STR_PAD_LEFT);
|
||||
|
||||
return $fade;
|
||||
}
|
||||
|
||||
public static function SetDefaultTransitionFade($fade)
|
||||
{
|
||||
self::setValue("default_transition_fade", $fade);
|
||||
|
@ -330,7 +303,7 @@ class Application_Model_Preference
|
|||
public static function GetDefaultTransitionFade()
|
||||
{
|
||||
$transition_fade = self::getValue("default_transition_fade");
|
||||
return ($transition_fade == "") ? "00.000000" : $transition_fade;
|
||||
return ($transition_fade == "") ? "0.000" : $transition_fade;
|
||||
}
|
||||
|
||||
public static function SetStreamLabelFormat($type)
|
||||
|
|
|
@ -862,9 +862,11 @@ SQL;
|
|||
* In UTC time.
|
||||
* @param unknown_type $excludeInstance
|
||||
* @param boolean $onlyRecord
|
||||
* @param int $showId
|
||||
* limits the results to instances of a given showId only
|
||||
* @return array
|
||||
*/
|
||||
public static function getShows($start_timestamp, $end_timestamp, $onlyRecord=FALSE)
|
||||
public static function getShows($start_timestamp, $end_timestamp, $onlyRecord=FALSE, $showId=null)
|
||||
{
|
||||
self::createAndFillShowInstancesPastPopulatedUntilDate($end_timestamp);
|
||||
|
||||
|
@ -895,13 +897,21 @@ SQL;
|
|||
//only want shows that are starting at the time or later.
|
||||
$start_string = $start_timestamp->format("Y-m-d H:i:s");
|
||||
$end_string = $end_timestamp->format("Y-m-d H:i:s");
|
||||
|
||||
$params = array();
|
||||
|
||||
if ($showId) {
|
||||
$sql .= " AND (si1.show_id = :show_id)";
|
||||
$params[':show_id'] = $showId;
|
||||
}
|
||||
|
||||
if ($onlyRecord) {
|
||||
$sql .= " AND (si1.starts >= :start::TIMESTAMP AND si1.starts < :end::TIMESTAMP)";
|
||||
$sql .= " AND (si1.record = 1)";
|
||||
|
||||
return Application_Common_Database::prepareAndExecute( $sql,
|
||||
array( ':start' => $start_string,
|
||||
':end' => $end_string ), 'all');
|
||||
$params[':start'] = $start_string;
|
||||
$params[':end'] = $end_string;
|
||||
return Application_Common_Database::prepareAndExecute( $sql, $params, 'all');
|
||||
|
||||
} else {
|
||||
$sql .= " ". <<<SQL
|
||||
|
@ -910,15 +920,16 @@ AND ((si1.starts >= :start1::TIMESTAMP AND si1.starts < :end1::TIMESTAMP)
|
|||
OR (si1.starts <= :start3::TIMESTAMP AND si1.ends >= :end3::TIMESTAMP))
|
||||
ORDER BY si1.starts
|
||||
SQL;
|
||||
return Application_Common_Database::prepareAndExecute( $sql,
|
||||
array(
|
||||
$params = array_merge($params, array(
|
||||
'start1' => $start_string,
|
||||
'start2' => $start_string,
|
||||
'start3' => $start_string,
|
||||
'end1' => $end_string,
|
||||
'end2' => $end_string,
|
||||
'end3' => $end_string
|
||||
), 'all');
|
||||
)
|
||||
);
|
||||
return Application_Common_Database::prepareAndExecute( $sql, $params, 'all');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1013,10 +1024,10 @@ SQL;
|
|||
|
||||
//for putting the now playing icon on the show.
|
||||
if ($now > $startsDT && $now < $endsDT) {
|
||||
$event["nowPlaying"] = true;
|
||||
$event["nowPlaying"] = true;
|
||||
}
|
||||
else {
|
||||
$event["nowPlaying"] = false;
|
||||
$event["nowPlaying"] = false;
|
||||
}
|
||||
|
||||
//event colouring
|
||||
|
@ -1045,9 +1056,9 @@ SQL;
|
|||
**/
|
||||
private static function getPercentScheduled($p_starts, $p_ends, $p_time_filled)
|
||||
{
|
||||
$utcTimezone = new DatetimeZone("UTC");
|
||||
$startDt = new DateTime($p_starts, $utcTimezone);
|
||||
$endDt = new DateTime($p_ends, $utcTimezone);
|
||||
$utcTimezone = new DatetimeZone("UTC");
|
||||
$startDt = new DateTime($p_starts, $utcTimezone);
|
||||
$endDt = new DateTime($p_ends, $utcTimezone);
|
||||
$durationSeconds = intval($endDt->format("U")) - intval($startDt->format("U"));
|
||||
$time_filled = Application_Common_DateHelper::playlistTimeToSeconds($p_time_filled);
|
||||
if ($durationSeconds != 0) { //Prevent division by zero if the show duration somehow becomes zero.
|
||||
|
@ -1305,16 +1316,16 @@ SQL;
|
|||
$results['nextShow'][0] = array(
|
||||
"id" => $rows[$i]['id'],
|
||||
"instance_id" => $rows[$i]['instance_id'],
|
||||
"name" => $rows[$i]['name'],
|
||||
"name" => $rows[$i]['name'],
|
||||
"description" => $rows[$i]['description'],
|
||||
"url" => $rows[$i]['url'],
|
||||
"url" => $rows[$i]['url'],
|
||||
"start_timestamp" => $rows[$i]['start_timestamp'],
|
||||
"end_timestamp" => $rows[$i]['end_timestamp'],
|
||||
"starts" => $rows[$i]['starts'],
|
||||
"ends" => $rows[$i]['ends'],
|
||||
"record" => $rows[$i]['record'],
|
||||
"image_path" => $rows[$i]['image_path'],
|
||||
"type" => "show");
|
||||
"type" => "show");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1448,4 +1459,5 @@ SQL;
|
|||
|
||||
return array($start, $end);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -548,7 +548,7 @@ SQL;
|
|||
|
||||
}
|
||||
|
||||
public function getShowListContent()
|
||||
public function getShowListContent($timezone = null)
|
||||
{
|
||||
$con = Propel::getConnection();
|
||||
|
||||
|
@ -599,9 +599,14 @@ SQL;
|
|||
':instance_id2' => $this->_instanceId
|
||||
));
|
||||
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
$userTimezone = Application_Model_Preference::GetUserTimezone();
|
||||
$displayTimezone = new DateTimeZone($userTimezone);
|
||||
|
||||
if (isset($timezone)) {
|
||||
$displayTimezone = new DateTimeZone($timezone);
|
||||
} else {
|
||||
$userTimezone = Application_Model_Preference::GetUserTimezone();
|
||||
$displayTimezone = new DateTimeZone($userTimezone);
|
||||
}
|
||||
|
||||
$utcTimezone = new DateTimeZone("UTC");
|
||||
|
||||
foreach ($results as &$row) {
|
||||
|
|
|
@ -309,7 +309,7 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
|
|||
$media_url = self::getXspfUrl($url);
|
||||
} elseif (preg_match("/pls\+xml/", $mime) || preg_match("/x-scpls/", $mime)) {
|
||||
$media_url = self::getPlsUrl($url);
|
||||
} elseif (preg_match("/(mpeg|ogg|audio\/aacp)/", $mime)) {
|
||||
} elseif (preg_match("/(mpeg|ogg|audio\/aacp|audio\/aac)/", $mime)) {
|
||||
if ($content_length_found) {
|
||||
throw new Exception(_("Invalid webstream - This appears to be a file download."));
|
||||
}
|
||||
|
|
|
@ -304,4 +304,23 @@ class CcShow extends BaseCcShow {
|
|||
->filterByDbId($instanceId, Criteria::NOT_EQUAL)
|
||||
->find();
|
||||
}
|
||||
|
||||
public function getShowInfo()
|
||||
{
|
||||
$info = array();
|
||||
if ($this->getDbId() == null) {
|
||||
return $info;
|
||||
} else {
|
||||
$info['name'] = $this->getDbName();
|
||||
$info['id'] = $this->getDbId();
|
||||
$info['url'] = $this->getDbUrl();
|
||||
$info['genre'] = $this->getDbGenre();
|
||||
$info['description'] = $this->getDbDescription();
|
||||
$info['color'] = $this->getDbColor();
|
||||
$info['background_color'] = $this->getDbBackgroundColor();
|
||||
$info['linked'] = $this->getDbLinked();
|
||||
return $info;
|
||||
}
|
||||
|
||||
}
|
||||
} // CcShow
|
||||
|
|
|
@ -204,30 +204,34 @@ class Application_Service_HistoryService
|
|||
//------------------------------------------------------------------------
|
||||
//Using Datatables parameters to sort the data.
|
||||
|
||||
$numOrderColumns = $opts["iSortingCols"];
|
||||
$orderBys = array();
|
||||
if (empty($opts["iSortingCols"])) {
|
||||
$orderBys = array();
|
||||
} else {
|
||||
$numOrderColumns = $opts["iSortingCols"];
|
||||
$orderBys = array();
|
||||
|
||||
for ($i = 0; $i < $numOrderColumns; $i++) {
|
||||
for ($i = 0; $i < $numOrderColumns; $i++) {
|
||||
|
||||
$colNum = $opts["iSortCol_".$i];
|
||||
$key = $opts["mDataProp_".$colNum];
|
||||
$sortDir = $opts["sSortDir_".$i];
|
||||
$colNum = $opts["iSortCol_".$i];
|
||||
$key = $opts["mDataProp_".$colNum];
|
||||
$sortDir = $opts["sSortDir_".$i];
|
||||
|
||||
if (in_array($key, $required)) {
|
||||
if (in_array($key, $required)) {
|
||||
|
||||
$orderBys[] = "history_range.{$key} {$sortDir}";
|
||||
}
|
||||
else if (in_array($key, $filemd_keys)) {
|
||||
$orderBys[] = "history_range.{$key} {$sortDir}";
|
||||
}
|
||||
else if (in_array($key, $filemd_keys)) {
|
||||
|
||||
$orderBys[] = "file_info.{$key} {$sortDir}";
|
||||
}
|
||||
else if (in_array($key, $general_keys)) {
|
||||
$orderBys[] = "file_info.{$key} {$sortDir}";
|
||||
}
|
||||
else if (in_array($key, $general_keys)) {
|
||||
|
||||
$orderBys[] = "{$key}_filter.{$key} {$sortDir}";
|
||||
}
|
||||
else {
|
||||
//throw new Exception("Error: $key is not part of the template.");
|
||||
}
|
||||
$orderBys[] = "{$key}_filter.{$key} {$sortDir}";
|
||||
}
|
||||
else {
|
||||
//throw new Exception("Error: $key is not part of the template.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (count($orderBys) > 0) {
|
||||
|
@ -241,7 +245,7 @@ class Application_Service_HistoryService
|
|||
//---------------------------------------------------------------
|
||||
//using Datatables parameters to add limits/offsets
|
||||
|
||||
$displayLength = intval($opts["iDisplayLength"]);
|
||||
$displayLength = empty($opts["iDisplayLength"]) ? -1 : intval($opts["iDisplayLength"]);
|
||||
//limit the results returned.
|
||||
if ($displayLength !== -1) {
|
||||
$mainSqlQuery.=
|
||||
|
@ -275,14 +279,14 @@ class Application_Service_HistoryService
|
|||
foreach ($fields as $index=>$field) {
|
||||
|
||||
if ($field["type"] == TEMPLATE_BOOLEAN) {
|
||||
$boolCast[] = $field["name"];
|
||||
$boolCast[] = $field;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($rows as $index => &$result) {
|
||||
|
||||
foreach ($boolCast as $name) {
|
||||
$result[$name] = (bool) $result[$name];
|
||||
foreach ($boolCast as $field) {
|
||||
$result[$field['label']] = (bool) $result[$field['name']];
|
||||
}
|
||||
|
||||
//need to display the results in the station's timezone.
|
||||
|
@ -311,7 +315,7 @@ class Application_Service_HistoryService
|
|||
}
|
||||
|
||||
return array(
|
||||
"sEcho" => intval($opts["sEcho"]),
|
||||
"sEcho" => empty($opts["sEcho"]) ? null : intval($opts["sEcho"]),
|
||||
//"iTotalDisplayRecords" => intval($totalDisplayRows),
|
||||
"iTotalDisplayRecords" => intval($totalRows),
|
||||
"iTotalRecords" => intval($totalRows),
|
||||
|
@ -445,9 +449,13 @@ class Application_Service_HistoryService
|
|||
);
|
||||
}
|
||||
|
||||
public function getShowList($startDT, $endDT)
|
||||
public function getShowList($startDT, $endDT, $userId = null)
|
||||
{
|
||||
$user = Application_Model_User::getCurrentUser();
|
||||
if (empty($userId)) {
|
||||
$user = Application_Model_User::getCurrentUser();
|
||||
} else {
|
||||
$user = new Application_Model_User($userId);
|
||||
}
|
||||
$shows = Application_Model_Show::getShows($startDT, $endDT);
|
||||
|
||||
Logging::info($startDT->format("Y-m-d H:i:s"));
|
||||
|
@ -456,7 +464,7 @@ class Application_Service_HistoryService
|
|||
Logging::info($shows);
|
||||
|
||||
//need to filter the list to only their shows
|
||||
if ($user->isHost()) {
|
||||
if ((!empty($user)) && ($user->isHost())) {
|
||||
|
||||
$showIds = array();
|
||||
|
||||
|
@ -1524,4 +1532,4 @@ class Application_Service_HistoryService
|
|||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,138 +1,23 @@
|
|||
<fieldset class="padded">
|
||||
<dl class="zend_form">
|
||||
<dt id="stationName-label" class="block-display">
|
||||
<label class="required" for="stationName"><?php echo $this->element->getElement('stationName')->getLabel() ?>:
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="stationName-element" class="block-display">
|
||||
<?php echo $this->element->getElement('stationName') ?>
|
||||
<?php if($this->element->getElement('stationName')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('stationName')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="stationDefaultFadeIn-label" class="block-display">
|
||||
<label class="optional" for="stationDefaultFadeIn"><?php echo $this->element->getElement('stationDefaultFadeIn')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="stationDefaultFadeIn-element" class="block-display">
|
||||
<?php echo $this->element->getElement('stationDefaultFadeIn') ?>
|
||||
<?php if($this->element->getElement('stationDefaultFadeIn')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('stationDefaultFadeIn')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="stationDefaultFadeOut-label" class="block-display">
|
||||
<label class="optional" for="stationDefaultFadeOut"><?php echo $this->element->getElement('stationDefaultFadeOut')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="stationDefaultFadeOut-element" class="block-display">
|
||||
<?php echo $this->element->getElement('stationDefaultFadeOut') ?>
|
||||
<?php if($this->element->getElement('stationDefaultFadeOut')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('stationDefaultFadeOut')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="stationDefaultCrossfadeDuration-label" class="block-display">
|
||||
<label class="optional" for="stationDefaultCrossfadeDuration"><?php echo $this->element->getElement('stationDefaultCrossfadeDuration')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="stationDefaultCrossfadeDuration-element" class="block-display">
|
||||
<?php echo $this->element->getElement('stationDefaultCrossfadeDuration') ?>
|
||||
<?php if($this->element->getElement('stationDefaultCrossfadeDuration')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('stationDefaultCrossfadeDuration')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="thirdPartyApi-label" class="block-display">
|
||||
<label class="optional"><?php echo $this->element->getElement('thirdPartyApi')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="thirdPartyApi-element" class="block-display radio-inline-list">
|
||||
<?php $i=0;
|
||||
$value = $this->element->getElement('thirdPartyApi')->getValue();
|
||||
?>
|
||||
<?php foreach ($this->element->getElement('thirdPartyApi')->getMultiOptions() as $radio) : ?>
|
||||
<label for="thirdPartyApi-<?php echo $i ?>">
|
||||
<input type="radio" value="<?php echo $i ?>" id="thirdPartyApi-<?php echo $i ?>" name="thirdPartyApi" <?php if($i == $value){echo 'checked="checked"';}?>>
|
||||
<?php echo $radio ?>
|
||||
</input>
|
||||
</label>
|
||||
<?php $i = $i + 1; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php if($this->element->getElement('thirdPartyApi')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('thirdPartyApi')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
|
||||
<dt id="locale-label" class="block-display">
|
||||
<label class="required" for="locale"><?php echo $this->element->getElement('locale')->getLabel() ?>:
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="locale-element" class="block-display">
|
||||
<?php echo $this->element->getElement('locale') ?>
|
||||
<?php if($this->element->getElement('locale')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('locale')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php echo $this->element->getElement('stationName')->render() ?>
|
||||
|
||||
<dt id="timezone-label" class="block-display">
|
||||
<label class="required" for="timezone"><?php echo $this->element->getElement('timezone')->getLabel() ?>:
|
||||
<span class="info-text-small"><?php _("(Required)") ?></span>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="timezone-element" class="block-display">
|
||||
<?php echo $this->element->getElement('timezone') ?>
|
||||
<?php if($this->element->getElement('timezone')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('timezone')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php echo $this->element->getElement('stationDescription')->render() ?>
|
||||
|
||||
<!-- Week Start Day option -->
|
||||
<dt id="weekStartDay-label" class="block-display">
|
||||
<label class="required" for="timezone"><?php echo $this->element->getElement('weekStartDay')->getLabel() ?>:
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="weekStartDay-element" class="block-display">
|
||||
<?php $i=0;
|
||||
$value = $this->element->getElement('weekStartDay')->getValue();
|
||||
?>
|
||||
<select id="weekStartDay" name="weekStartDay">
|
||||
<?php foreach ($this->element->getElement('weekStartDay')->getMultiOptions() as $option) : ?>
|
||||
<option value="<?php echo $i ?>" <?php if($i == $value){echo 'selected="selected"';}?> >
|
||||
<?php echo $option ?>
|
||||
</option>
|
||||
<?php $i = $i + 1; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php echo $this->element->getElement('locale')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('timezone')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('weekStartDay')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationDefaultFadeIn')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationDefaultFadeOut')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationDefaultCrossfadeDuration')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('thirdPartyApi')->render() ?>
|
||||
|
||||
<?php if($this->element->getElement('weekStartDay')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('weekStartDay')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<fieldset>
|
||||
<dl class="zend_form">
|
||||
<dt class="block-display info-text">
|
||||
<?php echo sprintf(_('Help %1$s improve by letting us know how you are using it. This info '
|
||||
.'will be collected regularly in order to enhance your user experience.%2$s'
|
||||
.'Click \'Yes, help %1$s\' and we\'ll make sure the features you use are '
|
||||
.'constantly improving.'), PRODUCT_NAME, "<br /><br />") ?>
|
||||
<?php echo sprintf(_("Help improve %s by letting us know how you're using it. This information"
|
||||
." will be collected regularly in order to enhance your user experience.<br />"
|
||||
."Click the box below and we'll make sure the features you use are constantly improving."),
|
||||
PRODUCT_NAME)?>
|
||||
</dt>
|
||||
<dd id="SupportFeedback-element" class="block-display">
|
||||
<label class="optional" for="SupportFeedback">
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<dl class="zend_form">
|
||||
<dd id="SupportFeedback-element" style="width:90%;">
|
||||
<div class="info-text">
|
||||
<?php echo sprintf(_("Help %s improve by letting %s know how you are using it. This information"
|
||||
." will be collected regularly in order to enhance your user experience.%s"
|
||||
."Click the 'Send support feedback' box and we'll make sure the features you use are constantly improving."),
|
||||
PRODUCT_NAME, COMPANY_NAME, "<br />")?>
|
||||
<?php echo sprintf(_("Help improve %s by letting us know how you're using it. This information"
|
||||
." will be collected regularly in order to enhance your user experience.<br />"
|
||||
."Click the box below and we'll make sure the features you use are constantly improving."),
|
||||
PRODUCT_NAME)?>
|
||||
</div>
|
||||
<label class="optional" for="SupportFeedback">
|
||||
<?php echo $this->element->getElement('SupportFeedback') ?>
|
||||
|
|
|
@ -136,9 +136,13 @@
|
|||
<column name="is_linkable" phpName="DbIsLinkable" type="BOOLEAN" required="true" defaultValue="true" />
|
||||
<!-- A show is_linkable if it has never been linked before. Once a show becomes unlinked
|
||||
it can not be linked again -->
|
||||
<column name="image_path" phpName="DbImagePath" type="VARCHAR" size="255" required="false" defaultValue=""/>
|
||||
<!-- Fully qualified path for the image associated with this show.
|
||||
Default is /path/to/stor/dir/:ownerId/show-images/:showId/imageName -->
|
||||
</table>
|
||||
<table name="cc_show_instances" phpName="CcShowInstances">
|
||||
<column name="id" phpName="DbId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
|
||||
<column name="description" phpName="DbDescription" type="VARCHAR" size="512" required="false" defaultValue=""/>
|
||||
<column name="starts" phpName="DbStarts" type="TIMESTAMP" required="true"/>
|
||||
<column name="ends" phpName="DbEnds" type="TIMESTAMP" required="true"/>
|
||||
<column name="show_id" phpName="DbShowId" type="INTEGER" required="true"/>
|
||||
|
|
|
@ -158,6 +158,7 @@ CREATE TABLE "cc_show"
|
|||
"live_stream_pass" VARCHAR(255),
|
||||
"linked" BOOLEAN default 'f' NOT NULL,
|
||||
"is_linkable" BOOLEAN default 't' NOT NULL,
|
||||
"image_path" VARCHAR(255),
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
|
@ -175,6 +176,7 @@ DROP TABLE "cc_show_instances" CASCADE;
|
|||
CREATE TABLE "cc_show_instances"
|
||||
(
|
||||
"id" serial NOT NULL,
|
||||
"description" VARCHAR(512),
|
||||
"starts" TIMESTAMP NOT NULL,
|
||||
"ends" TIMESTAMP NOT NULL,
|
||||
"show_id" INTEGER NOT NULL,
|
||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ msgstr ""
|
|||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-13 13:55-0500\n"
|
||||
"PO-Revision-Date: 2014-12-05 10:32+0000\n"
|
||||
"PO-Revision-Date: 2015-01-15 11:11+0000\n"
|
||||
"Last-Translator: Daniel James <daniel@64studio.com>\n"
|
||||
"Language-Team: Azerbaijani (http://www.transifex.com/projects/p/airtime/language/az/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
|
Binary file not shown.
|
@ -10,7 +10,7 @@ msgstr ""
|
|||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-13 13:55-0500\n"
|
||||
"PO-Revision-Date: 2014-12-05 10:32+0000\n"
|
||||
"PO-Revision-Date: 2015-01-15 11:11+0000\n"
|
||||
"Last-Translator: Daniel James <daniel@64studio.com>\n"
|
||||
"Language-Team: German (Austria) (http://www.transifex.com/projects/p/airtime/language/de_AT/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
|
Binary file not shown.
|
@ -11,7 +11,7 @@ msgstr ""
|
|||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-13 13:55-0500\n"
|
||||
"PO-Revision-Date: 2014-12-05 10:32+0000\n"
|
||||
"PO-Revision-Date: 2015-01-15 11:11+0000\n"
|
||||
"Last-Translator: Daniel James <daniel@64studio.com>\n"
|
||||
"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/airtime/language/en_GB/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
|
Binary file not shown.
|
@ -10,8 +10,8 @@ msgstr ""
|
|||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-13 13:55-0500\n"
|
||||
"PO-Revision-Date: 2014-11-14 09:58+0000\n"
|
||||
"Last-Translator: Daniel James <daniel@64studio.com>\n"
|
||||
"PO-Revision-Date: 2014-12-23 10:11+0000\n"
|
||||
"Last-Translator: AlbertFR <albert.bruc.ab@gmail.com>\n"
|
||||
"Language-Team: French (France) (http://www.transifex.com/projects/p/airtime/language/fr_FR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
|
@ -79,7 +79,7 @@ msgstr "Fondu en Sorti"
|
|||
msgid ""
|
||||
"%1$s copyright © %2$s All rights reserved.%3$sMaintained and "
|
||||
"distributed under the %4$s by %5$s"
|
||||
msgstr ""
|
||||
msgstr "%1$s copyright © %2$s Tous droits réservés.%3$sMaintenue et distribuée sous %4$s by %5$s"
|
||||
|
||||
#: airtime_mvc/application/layouts/scripts/livestream.phtml:9
|
||||
#: airtime_mvc/application/views/scripts/dashboard/stream-player.phtml:2
|
||||
|
@ -1096,13 +1096,13 @@ msgstr "Envoyez vos remarques au support"
|
|||
#: airtime_mvc/application/forms/RegisterAirtime.php:126
|
||||
#, php-format
|
||||
msgid "Promote my station on %s"
|
||||
msgstr ""
|
||||
msgstr "Promouvoir station sur %s"
|
||||
|
||||
#: airtime_mvc/application/forms/SupportSettings.php:150
|
||||
#: airtime_mvc/application/forms/RegisterAirtime.php:151
|
||||
#, php-format
|
||||
msgid "By checking this box, I agree to %s's %sprivacy policy%s."
|
||||
msgstr ""
|
||||
msgstr "En cochant cette case , je accepte la %s's %s de politique de confidentialité %s ."
|
||||
|
||||
#: airtime_mvc/application/forms/SupportSettings.php:174
|
||||
#: airtime_mvc/application/forms/RegisterAirtime.php:169
|
||||
|
@ -1141,7 +1141,7 @@ msgstr "Rediffusion?"
|
|||
#: airtime_mvc/application/forms/AddShowLiveStream.php:10
|
||||
#, php-format
|
||||
msgid "Use %s Authentication:"
|
||||
msgstr ""
|
||||
msgstr "Utilisez l'authentification %s :"
|
||||
|
||||
#: airtime_mvc/application/forms/AddShowLiveStream.php:16
|
||||
msgid "Use Custom Authentication:"
|
||||
|
@ -2613,7 +2613,7 @@ msgstr "Vous n'êtes pas autorisé à acceder à cette ressource."
|
|||
#: airtime_mvc/application/controllers/ApiController.php:803
|
||||
#, php-format
|
||||
msgid "File does not exist in %s"
|
||||
msgstr ""
|
||||
msgstr "Le fichier n'existe pas dans %s"
|
||||
|
||||
#: airtime_mvc/application/controllers/ApiController.php:854
|
||||
msgid "Bad request. no 'mode' parameter passed."
|
||||
|
@ -2824,7 +2824,7 @@ msgstr "Mémoire"
|
|||
#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:14
|
||||
#, php-format
|
||||
msgid "%s Version"
|
||||
msgstr ""
|
||||
msgstr "%s Version"
|
||||
|
||||
#: airtime_mvc/application/views/scripts/systemstatus/index.phtml:30
|
||||
msgid "Disk Space"
|
||||
|
@ -2909,13 +2909,13 @@ msgid ""
|
|||
" collected regularly in order to enhance your user experience.%2$sClick "
|
||||
"'Yes, help %1$s' and we'll make sure the features you use are constantly "
|
||||
"improving."
|
||||
msgstr ""
|
||||
msgstr "Aidez %1$s nous à l'améliorer en nous faisant savoir comment vous l'utilisez. Cette information sera recueillie régulièrement afin d'améliorer votre expérience utilisateur.\n%2$s Cliquez Oui, aider %1$s et nous vous assurerons que les fonctions que vous utilisez seront en constante amélioration."
|
||||
|
||||
#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:29
|
||||
#: airtime_mvc/application/views/scripts/form/support-setting.phtml:29
|
||||
#, php-format
|
||||
msgid "Click the box below to promote your station on %s."
|
||||
msgstr ""
|
||||
msgstr "Cliquez sur la case ci-dessous pour promouvoir votre station sur %s ."
|
||||
|
||||
#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:67
|
||||
#: airtime_mvc/application/views/scripts/form/register-dialog.phtml:81
|
||||
|
@ -2961,7 +2961,7 @@ msgstr "Répertoire d'Import en Cours:"
|
|||
msgid ""
|
||||
"Rescan watched directory (This is useful if it is network mount and may be "
|
||||
"out of sync with %s)"
|
||||
msgstr ""
|
||||
msgstr "Rescanner le répertoire surveillé (Ce qui peut être utile si il est sur le réseau et est peut être désynchronisé de %s)"
|
||||
|
||||
#: airtime_mvc/application/views/scripts/form/preferences_watched_dirs.phtml:44
|
||||
msgid "Remove watched directory"
|
||||
|
@ -3016,7 +3016,7 @@ msgid ""
|
|||
"will be collected regularly in order to enhance your user experience.%sClick"
|
||||
" the 'Send support feedback' box and we'll make sure the features you use "
|
||||
"are constantly improving."
|
||||
msgstr ""
|
||||
msgstr "Aidez %s à améliorer le logiciel en nous faisant savoir comment vous l'utilisez %s. Cette information sera recueillie régulièrement afin d'améliorer votre expérience utilisateur.\n%s Cliquez la case \"Envoyer des rapports d'utilisation» et nous nous assurerons que les fonctions que vous utilisez seront en constante amélioration."
|
||||
|
||||
#: airtime_mvc/application/views/scripts/form/support-setting.phtml:46
|
||||
msgid ""
|
||||
|
@ -3279,12 +3279,12 @@ msgstr "Nombre d'auditeur au fil du temps"
|
|||
#: airtime_mvc/application/views/scripts/dashboard/help.phtml:3
|
||||
#, php-format
|
||||
msgid "Welcome to %s!"
|
||||
msgstr ""
|
||||
msgstr "Bienvenue à %s !"
|
||||
|
||||
#: airtime_mvc/application/views/scripts/dashboard/help.phtml:4
|
||||
#, php-format
|
||||
msgid "Here's how you can get started using %s to automate your broadcasts: "
|
||||
msgstr ""
|
||||
msgstr "Voici comment vous pouvez commencer à utiliser %s pour automatiser vos émissions:"
|
||||
|
||||
#: airtime_mvc/application/views/scripts/dashboard/help.phtml:7
|
||||
msgid ""
|
||||
|
@ -3333,12 +3333,12 @@ msgstr "Selection du Flux:"
|
|||
msgid ""
|
||||
"%1$s %2$s, the open radio software for scheduling and remote station "
|
||||
"management."
|
||||
msgstr ""
|
||||
msgstr "%1$s %2$s, le logiciel ouvert de gestion et de programmation pour vos stations distantes."
|
||||
|
||||
#: airtime_mvc/application/views/scripts/dashboard/about.phtml:22
|
||||
#, php-format
|
||||
msgid "%1$s %2$s is distributed under the %3$s"
|
||||
msgstr ""
|
||||
msgstr "%1$s %2$s est distribué sous %3$s"
|
||||
|
||||
#: airtime_mvc/application/views/scripts/login/password-change.phtml:3
|
||||
msgid "New password"
|
||||
|
@ -3371,7 +3371,7 @@ msgstr "Retour à l'écran de connexion"
|
|||
msgid ""
|
||||
"Welcome to the %s demo! You can log in using the username 'admin' and the "
|
||||
"password 'admin'."
|
||||
msgstr ""
|
||||
msgstr "Bienvenue à la démo %s ! Vous pouvez vous connecter en utilisant le nom d'utilisateur «admin» et le mot de passe «admin» ."
|
||||
|
||||
#: airtime_mvc/application/views/scripts/partialviews/header.phtml:3
|
||||
msgid "Previous:"
|
||||
|
@ -3416,7 +3416,7 @@ msgstr "Votre période d'éssai expire dans"
|
|||
#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9
|
||||
#, php-format
|
||||
msgid "Purchase your copy of %s"
|
||||
msgstr ""
|
||||
msgstr "Achetez votre copie d' %s"
|
||||
|
||||
#: airtime_mvc/application/views/scripts/partialviews/trialBox.phtml:9
|
||||
msgid "My Account"
|
||||
|
@ -3732,7 +3732,7 @@ msgstr "Le contenu des émissions liés doit être programmé avant ou après sa
|
|||
|
||||
#: airtime_mvc/application/models/Scheduler.php:195
|
||||
msgid "Cannot schedule a playlist that contains missing files."
|
||||
msgstr ""
|
||||
msgstr "Vous ne pouvez pas programmer une liste de lecture qui contient des fichiers manquants "
|
||||
|
||||
#: airtime_mvc/application/models/Scheduler.php:216
|
||||
#: airtime_mvc/application/models/Scheduler.php:305
|
||||
|
@ -3807,7 +3807,7 @@ msgstr "Bonjour %s, \n\nCliquez sur ce lien pour réinitialiser votre mot de pa
|
|||
#: airtime_mvc/application/models/Auth.php:36
|
||||
#, php-format
|
||||
msgid "%s Password Reset"
|
||||
msgstr ""
|
||||
msgstr "%s Réinitialisation du mot de passe"
|
||||
|
||||
#: airtime_mvc/application/services/CalendarService.php:50
|
||||
msgid "Record file doesn't exist"
|
||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ msgstr ""
|
|||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-13 13:55-0500\n"
|
||||
"PO-Revision-Date: 2014-12-05 10:32+0000\n"
|
||||
"PO-Revision-Date: 2015-01-15 11:11+0000\n"
|
||||
"Last-Translator: Daniel James <daniel@64studio.com>\n"
|
||||
"Language-Team: Armenian (Armenia) (http://www.transifex.com/projects/p/airtime/language/hy_AM/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ msgstr ""
|
|||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-13 13:55-0500\n"
|
||||
"PO-Revision-Date: 2014-12-05 10:32+0000\n"
|
||||
"PO-Revision-Date: 2015-01-15 11:11+0000\n"
|
||||
"Last-Translator: Daniel James <daniel@64studio.com>\n"
|
||||
"Language-Team: Georgian (http://www.transifex.com/projects/p/airtime/language/ka/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
|
Binary file not shown.
|
@ -11,7 +11,7 @@ msgstr ""
|
|||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-11-13 13:55-0500\n"
|
||||
"PO-Revision-Date: 2014-12-05 10:32+0000\n"
|
||||
"PO-Revision-Date: 2015-01-15 11:11+0000\n"
|
||||
"Last-Translator: Felipe Thomaz Pedroni\n"
|
||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/airtime/language/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
|
|
@ -13,7 +13,7 @@ html, body {
|
|||
}
|
||||
|
||||
#login-page {
|
||||
background: #1f1f1f url(images/login_page_bg.png) no-repeat center 0;`
|
||||
background: #1f1f1f url(images/login_page_bg.png) no-repeat center 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height:100%;
|
||||
|
@ -1002,7 +1002,28 @@ input[type="checkbox"] {
|
|||
display:block;
|
||||
}
|
||||
|
||||
dt.block-display, dd.block-display {
|
||||
#pref_form dt, #pref_form dd,
|
||||
#pref_form textarea {
|
||||
display:block;
|
||||
float:none;
|
||||
margin-left:0;
|
||||
padding-left:0;
|
||||
width: 100%;
|
||||
}
|
||||
#pref_form textarea {
|
||||
width: 98.5%;
|
||||
}
|
||||
#pref_form select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#pref_form p.description {
|
||||
color: #3b3b3b;
|
||||
font-size: 12px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
dt.block-display, dd.block-display {
|
||||
display:block;
|
||||
float:none;
|
||||
margin-left:0;
|
||||
|
|
|
@ -1,394 +0,0 @@
|
|||
airtime (2.5.2-1) unstable; urgency=low
|
||||
|
||||
* Nightly development snapshot of Airtime 2.5.x series
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 17 Dec 2014 12:06:33 +0000
|
||||
|
||||
airtime (2.5.1-6) unstable; urgency=low
|
||||
|
||||
* Newer Ubuntu distros use a real directory instead of a symlink for
|
||||
/etc/php5/apache2/conf.d/ - thanks Mathieu
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 17 Dec 2014 12:06:32 +0000
|
||||
|
||||
airtime (2.5.1-5) unstable; urgency=low
|
||||
|
||||
* Don't set SSL compression to off, it is now the default, for backwards
|
||||
compatibility with versions of Apache before 2.2.24 or 2.4.3
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 16 Dec 2014 16:42:26 +0000
|
||||
|
||||
airtime (2.5.1-4) unstable; urgency=low
|
||||
|
||||
* Fix installation of Apache 2.4 file
|
||||
* Disable SSLv3 and compression by default
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Thu, 06 Nov 2014 15:15:21 +0000
|
||||
|
||||
airtime (2.5.1-3) unstable; urgency=low
|
||||
|
||||
* Don't force https access in case of SSL issues
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Fri, 18 Jul 2014 10:04:30 +0100
|
||||
|
||||
airtime (2.5.1-2) unstable; urgency=low
|
||||
|
||||
* Upstream 2.5.1a security release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 15 Jul 2014 11:14:01 +0100
|
||||
|
||||
airtime (2.5.1-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.5.1-ga release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 17 Dec 2013 11:02:35 +0000
|
||||
|
||||
airtime (2.5.0-3) unstable; urgency=low
|
||||
|
||||
* Added dependency on php5-json for newer distros
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 05 Nov 2013 13:33:10 +0000
|
||||
|
||||
airtime (2.5.0-2) unstable; urgency=low
|
||||
|
||||
* Fixed error in upgrade handling
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Thu, 24 Oct 2013 11:17:42 +0100
|
||||
|
||||
airtime (2.5.0-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.5.0-ga release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 23 Oct 2013 14:56:21 +0100
|
||||
|
||||
airtime (2.4.1-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.4.1-ga release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 28 Aug 2013 11:53:10 +0100
|
||||
|
||||
airtime (2.4.0-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.4.0-ga release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 25 Jun 2013 14:26:55 +0100
|
||||
|
||||
airtime (2.3.1-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.3.1 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 20 Mar 2013 09:43:15 +0000
|
||||
|
||||
airtime (2.3.0-2) unstable; urgency=low
|
||||
|
||||
* Don't run the airtime-install script if the user has chosen not to
|
||||
set up Apache
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 19 Mar 2013 16:39:23 +0000
|
||||
|
||||
airtime (2.3.0-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.3.0 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 12 Feb 2013 11:44:57 +0000
|
||||
|
||||
airtime (2.2.1-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.2.1 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 04 Dec 2012 11:10:37 +0000
|
||||
|
||||
airtime (2.2.0-2) unstable; urgency=low
|
||||
|
||||
* Added dependency on flac package for metaflac support
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 05 Nov 2012 10:54:49 +0000
|
||||
|
||||
airtime (2.2.0-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.2.0 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Fri, 26 Oct 2012 10:44:06 +0100
|
||||
|
||||
airtime (2.1.3-2) unstable; urgency=low
|
||||
|
||||
* Use a debconf question to set storage directory (CC-3576)
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 24 Jul 2012 14:55:13 +0100
|
||||
|
||||
airtime (2.1.3-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.1.3 release
|
||||
* Prompt user to answer No to set Icecast passwords manually (CC-4013)
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Thu, 05 Jul 2012 17:01:20 +0100
|
||||
|
||||
airtime (2.1.2-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.1.2 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 18 Jun 2012 10:01:43 +0100
|
||||
|
||||
airtime (2.1.1-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.1.1 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Thu, 14 Jun 2012 09:56:38 +0100
|
||||
|
||||
airtime (2.1.0-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.1.0 release
|
||||
* Test the symlink to the Liquidsoap binary
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 04 June 2012 18:25:11 +0100
|
||||
|
||||
airtime (2.0.3-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.0.3 release
|
||||
* Added Apache license to copyright file
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 04 Apr 2012 11:11:15 +0100
|
||||
|
||||
airtime (2.0.2-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.0.2 release
|
||||
* Strip install_full scripts from tarball
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 29 Feb 2012 10:34:35 +0000
|
||||
|
||||
airtime (2.0.1-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.0.1 release
|
||||
* Strip ZFDebug library from tarball
|
||||
* Depend on distro's package of Zend
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 15 Feb 2012 12:57:23 +0000
|
||||
|
||||
airtime (2.0.0-5) unstable; urgency=low
|
||||
|
||||
* Strip phing library from tarball
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 01 Feb 2012 15:50:18 +0000
|
||||
|
||||
airtime (2.0.0-4) unstable; urgency=low
|
||||
|
||||
* Fix for overbooked shows longer than 24 hours
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 25 Jan 2012 10:11:33 +0000
|
||||
|
||||
airtime (2.0.0-3) unstable; urgency=low
|
||||
|
||||
* Upstream 2.0.0 final release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Fri, 20 Jan 2012 12:03:55 +0000
|
||||
|
||||
airtime (2.0.0-2) unstable; urgency=low
|
||||
|
||||
* Upstream 2.0.0-RC1 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 16 Jan 2012 15:41:15 +0000
|
||||
|
||||
airtime (2.0.0-1) unstable; urgency=low
|
||||
|
||||
* Upstream 2.0.0-beta2 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Thu, 05 Jan 2012 17:15:07 +0000
|
||||
|
||||
airtime (1.9.5-3) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.5-RC5 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 14 Nov 2011 10:34:51 +0000
|
||||
|
||||
airtime (1.9.5-2) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.5-RC2 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 09 Nov 2011 17:09:07 +0000
|
||||
|
||||
airtime (1.9.5-1) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.5-RC1 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 07 Nov 2011 16:16:57 +0000
|
||||
|
||||
airtime (1.9.4-13) unstable; urgency=low
|
||||
|
||||
* Increase PHP memory limit to more than post_max_size
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 03 Oct 2011 17:29:05 +0100
|
||||
|
||||
airtime (1.9.4-12) unstable; urgency=low
|
||||
|
||||
* Use invoke-rc.d rather than wwwconfig-common
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Fri, 30 Sep 2011 16:52:28 +0100
|
||||
|
||||
airtime (1.9.4-11) unstable; urgency=low
|
||||
|
||||
* Insist on python-virtualenv 1.4.9 or later
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 28 Sep 2011 14:45:19 +0100
|
||||
|
||||
airtime (1.9.4-10) unstable; urgency=low
|
||||
|
||||
* Install python-virtualenv as a Pre-Depends
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 27 Sep 2011 11:04:29 +0100
|
||||
|
||||
airtime (1.9.4-9) unstable; urgency=low
|
||||
|
||||
* Add dependency on ed, configure monit without asking
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 26 Sep 2011 10:55:09 +0100
|
||||
|
||||
airtime (1.9.4-8) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.4-RC9 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Fri, 23 Sep 2011 14:37:15 +0100
|
||||
|
||||
airtime (1.9.4-7) unstable; urgency=low
|
||||
|
||||
* Don't depend on Ruby packages
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Thu, 22 Sep 2011 15:51:42 +0100
|
||||
|
||||
airtime (1.9.4-6) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.4-RC8 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 21 Sep 2011 16:22:57 +0100
|
||||
|
||||
airtime (1.9.4-5) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.4-RC7 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 20 Sep 2011 20:12:24 +0100
|
||||
|
||||
airtime (1.9.4-4) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.4-RC6 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 20 Sep 2011 11:48:38 +0100
|
||||
|
||||
airtime (1.9.4-3) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.4-RC3 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Thu, 15 Sep 2011 10:28:22 +0100
|
||||
|
||||
airtime (1.9.4-2) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.4-RC2 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 14 Sep 2011 15:18:20 +0100
|
||||
|
||||
airtime (1.9.4-1) unstable; urgency=low
|
||||
|
||||
* Upstream 1.9.4-RC1 release
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 13 Sep 2011 14:50:02 +0100
|
||||
|
||||
airtime (1.9.3-4) unstable; urgency=low
|
||||
|
||||
* Improvements to package error logging
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 05 Sep 2011 16:02:21 +0100
|
||||
|
||||
airtime (1.9.3-3) unstable; urgency=low
|
||||
|
||||
* Updated dependency list
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Sat, 03 Sep 2011 11:29:26 +0100
|
||||
|
||||
airtime (1.9.3-2) unstable; urgency=low
|
||||
|
||||
* Fixed reconfigure action so that airtime-install does not run again
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 30 Aug 2011 17:48:49 +0100
|
||||
|
||||
airtime (1.9.3-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.9.3
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Sat, 27 Aug 2011 12:58:46 +0100
|
||||
|
||||
airtime (1.9.2-2) unstable; urgency=low
|
||||
|
||||
* upstream 1.9.2
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Wed, 24 Aug 2011 12:26:57 +0100
|
||||
|
||||
airtime (1.9.2-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.9.2-RC1
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Tue, 23 Aug 2011 15:49:31 +0100
|
||||
|
||||
airtime (1.9.1-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.9.1
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Mon, 22 Aug 2011 11:04:33 +0100
|
||||
|
||||
airtime (1.9.0-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.9.0
|
||||
|
||||
-- Daniel James <daniel@64studio.com> Fri, 12 Aug 2011 14:11:21 +0100
|
||||
|
||||
airtime (1.8.2-4) unstable; urgency=low
|
||||
|
||||
* upstream 1.8.2-RC4
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Tue, 07 Jun 2011 21:45:55 +0200
|
||||
|
||||
airtime (1.8.2-3) unstable; urgency=low
|
||||
|
||||
* upstream 1.8.2-RC3
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Tue, 07 Jun 2011 02:56:12 +0200
|
||||
|
||||
airtime (1.8.2-2) unstable; urgency=low
|
||||
|
||||
* fixed postinst
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Wed, 01 Jun 2011 20:48:29 +0200
|
||||
|
||||
airtime (1.8.2-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.8.2-RC2 release
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Wed, 01 Jun 2011 16:21:40 +0200
|
||||
|
||||
airtime (1.8.1-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.8.1 release
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Wed, 11 May 2011 22:50:03 +0200
|
||||
|
||||
airtime (1.8.0-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.8.0 release
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Tue, 19 Apr 2011 15:44:40 +0200
|
||||
|
||||
airtime (1.7.0-2) unstable; urgency=low
|
||||
|
||||
* fixed few lintian warnings
|
||||
* allow to de-install apache 000default
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Tue, 05 Apr 2011 20:45:52 +0200
|
||||
|
||||
airtime (1.7.0-1) unstable; urgency=low
|
||||
|
||||
* upstream 1.7.0-GA release
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Mon, 04 Apr 2011 21:19:56 +0200
|
||||
|
||||
airtime (1.6.1-1) unstable; urgency=low
|
||||
|
||||
* initial package
|
||||
|
||||
-- Robin Gareus <robin@gareus.org> Sat, 02 Apr 2011 22:48:35 +0200
|
|
@ -1 +0,0 @@
|
|||
9
|
|
@ -1,46 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Debconf config script for airtime
|
||||
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
db_input high airtime/apache-setup || true
|
||||
db_go ||true
|
||||
|
||||
db_get airtime/apache-setup
|
||||
if [ "$RET" = "dedicated v-host" ]; then
|
||||
db_input high airtime/apache-servername || true
|
||||
db_go ||true
|
||||
db_input high airtime/apache-serveradmin || true
|
||||
db_go ||true
|
||||
db_input high airtime/apache-deldefault || true
|
||||
db_go ||true
|
||||
fi
|
||||
|
||||
db_input high airtime/icecast-setup || true
|
||||
db_go ||true
|
||||
|
||||
db_get airtime/icecast-setup
|
||||
if [ "$RET" = "true" ]; then
|
||||
db_input high airtime/icecast-hostname || true
|
||||
db_go ||true
|
||||
db_input high airtime/icecast-sourcepw || true
|
||||
db_go ||true
|
||||
db_input high airtime/icecast-relaypw || true
|
||||
db_go ||true
|
||||
db_input high airtime/icecast-adminpw || true
|
||||
db_go ||true
|
||||
fi
|
||||
|
||||
# Only ask for storage directory and admin password on clean installs
|
||||
if [ ! -e /var/log/airtime/pypo/pypo.log ]; then
|
||||
db_input high airtime/storage-directory || true
|
||||
db_go ||true
|
||||
db_input high airtime/admin-password || true
|
||||
db_go ||true
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -1,80 +0,0 @@
|
|||
Source: airtime
|
||||
Section: web
|
||||
Priority: optional
|
||||
Maintainer: Daniel James <daniel@64studio.com>
|
||||
Build-Depends: debhelper (>= 9.20120909), po-debconf
|
||||
Standards-Version: 3.9.3
|
||||
Homepage: http://www.sourcefabric.org/en/airtime/
|
||||
|
||||
Package: airtime
|
||||
Architecture: all
|
||||
Pre-Depends: postgresql, python-virtualenv (>= 1.4.9)
|
||||
Depends: apache2,
|
||||
coreutils (>= 7.5) | timeout,
|
||||
curl,
|
||||
ecasound,
|
||||
flac,
|
||||
gzip (>= 1.3.12),
|
||||
libapache2-mod-php5,
|
||||
liquidsoap (>= 1.1.1~),
|
||||
liquidsoap-plugin-alsa,
|
||||
liquidsoap-plugin-ao,
|
||||
liquidsoap-plugin-faad,
|
||||
liquidsoap-plugin-flac,
|
||||
liquidsoap-plugin-icecast,
|
||||
liquidsoap-plugin-lame,
|
||||
liquidsoap-plugin-mad,
|
||||
liquidsoap-plugin-ogg,
|
||||
liquidsoap-plugin-opus,
|
||||
liquidsoap-plugin-portaudio,
|
||||
liquidsoap-plugin-pulseaudio,
|
||||
liquidsoap-plugin-taglib,
|
||||
liquidsoap-plugin-voaacenc,
|
||||
liquidsoap-plugin-vorbis,
|
||||
locales,
|
||||
lsof,
|
||||
monit,
|
||||
mp3gain,
|
||||
multitail,
|
||||
php5-cli,
|
||||
php5-curl,
|
||||
php5-gd,
|
||||
php5-json,
|
||||
php5-pgsql,
|
||||
php-apc,
|
||||
php-pear,
|
||||
pwgen,
|
||||
python,
|
||||
rabbitmq-server,
|
||||
silan (>= 0.3.1~),
|
||||
ssl-cert,
|
||||
sudo,
|
||||
sysv-rc,
|
||||
tar (>= 1.22),
|
||||
unzip,
|
||||
vorbisgain,
|
||||
vorbis-tools,
|
||||
zendframework | libzend-framework-php,
|
||||
${misc:Depends},
|
||||
${perl:Depends}
|
||||
Recommends: icecast2
|
||||
Suggests: airtime-audio-samples, alsa-utils
|
||||
Description: open broadcast software for scheduling and station management.
|
||||
Airtime is an open source application that provides remote automation
|
||||
of a broadcast station.
|
||||
.
|
||||
Major features:
|
||||
.
|
||||
Web-based remote station management. Authorized personnel can add
|
||||
program material, create playlists, and schedule programming all via
|
||||
a web interface.
|
||||
.
|
||||
Automation. Airtime has a scheduler function that enables users to
|
||||
set shows with playlists for playback at a date and time of their choosing.
|
||||
Playlists can be played back multiple times.
|
||||
.
|
||||
Solid, fast playback. Airtime uses the open source Liquidsoap
|
||||
multimedia framework for clean, reliable, fast playback.
|
||||
.
|
||||
Open, extensible architecture. Stations are free to extend and alter
|
||||
all parts of the program code.
|
|
@ -1,157 +0,0 @@
|
|||
Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=200
|
||||
Upstream-Name: airtime
|
||||
Upstream-Contact: Sourcefabric <airtime-dev@lists.sourcefabric.org>
|
||||
Source: http://sourceforge.net/projects/airtime/files/
|
||||
|
||||
Files: *
|
||||
Copyright:
|
||||
2010-2014 Sourcefabric z.ú.
|
||||
2004-2009 Media Development Loan Fund
|
||||
License: GPL-3
|
||||
|
||||
Files: python_apps/pypo/*
|
||||
Copyright:
|
||||
Jonas Ohrstrom
|
||||
Paul Baranowski
|
||||
Martin Konecny
|
||||
License: GPL-3+
|
||||
|
||||
Files: airtime_mvc/library/doctrine/migrations/*
|
||||
Copyright: No copyright holders
|
||||
License: LGPL-2.1
|
||||
Comment:
|
||||
This software consists of voluntary contributions made by many individuals
|
||||
and is licensed under the LGPL. For more information, see
|
||||
<http://www.doctrine-project.org>
|
||||
|
||||
Files: airtime_mvc/library/soundcloud-api/*
|
||||
Copyright: 2010-2011 Anton Lindqvist <anton@qvister.se>
|
||||
License: Expat
|
||||
|
||||
Files: airtime_mvc/library/php-amqplib/*
|
||||
Copyright:
|
||||
Barry Pederson
|
||||
Vadim Zaliva
|
||||
taavi013@gmail.com
|
||||
Sean Murphy
|
||||
spiderbill
|
||||
License: LGPL-2.1
|
||||
|
||||
Files: airtime_mvc/library/propel/*
|
||||
Copyright: 2005-2011 Hans Lellelid, David Zuelke, Francois Zaninotto, William Durand
|
||||
License: Expat
|
||||
|
||||
Files: airtime_mvc/library/propel/test/etc/xsl/*
|
||||
Copyright: 2001-2004 The Apache Software Foundation
|
||||
License: Apache-2.0
|
||||
|
||||
Files: airtime_mvc/public/js/flot/*
|
||||
Copyright: 2007-2009 IOLA and Ole Laursen
|
||||
License: Expat
|
||||
|
||||
Files: debian/*
|
||||
Copyright:
|
||||
2013-2014 Daniel James <daniel@64studio.com>
|
||||
2012 Alessio Treglia <alessio@debian.org>
|
||||
2011 Robin Gareus <robin@gareus.org>
|
||||
License: GPL-2+
|
||||
|
||||
License: Expat
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the “Software”),
|
||||
to deal in the Software without restriction, including without limitation the
|
||||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
License: GPL-3
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 3 as
|
||||
published by the Free Software Foundation.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
Comment:
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General Public
|
||||
License can be found in `/usr/share/common-licenses/GPL-3'.
|
||||
|
||||
License: GPL-3+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
Comment:
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General Public
|
||||
License can be found in `/usr/share/common-licenses/GPL-3'.
|
||||
|
||||
License: LGPL-2.1
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License version 2.1 as published by the Free Software Foundation.
|
||||
.
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
Comment:
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General Public
|
||||
License can be found in `/usr/share/common-licenses/LGPL-2.1'.
|
||||
|
||||
License: GPL-2+
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
Comment:
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General Public
|
||||
License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
License: Apache-2.0
|
||||
Copyright 2001-2004 The Apache Software Foundation
|
||||
.
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -1,4 +0,0 @@
|
|||
airtime/README
|
||||
airtime/CREDITS
|
||||
airtime/LICENSE_3RD_PARTY
|
||||
airtime/changelog
|
|
@ -1,7 +0,0 @@
|
|||
[PHP]
|
||||
memory_limit = 512M
|
||||
magic_quotes_gpc = Off
|
||||
file_uploads = On
|
||||
upload_tmp_dir = /tmp
|
||||
apc.write_lock = 1
|
||||
apc.slam_defense = 0
|
|
@ -1,11 +0,0 @@
|
|||
Alias /airtime /usr/share/airtime/public
|
||||
|
||||
SetEnv APPLICATION_ENV "development"
|
||||
|
||||
<Directory /usr/share/airtime/public>
|
||||
DirectoryIndex index.php
|
||||
Options -Indexes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
|
@ -1,40 +0,0 @@
|
|||
<VirtualHost *:443>
|
||||
SSLEngine on
|
||||
SSLProtocol All -SSLv2 -SSLv3
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
Header always set Strict-Transport-Security "max-age=31536000"
|
||||
|
||||
ServerName __SERVER_NAME__
|
||||
#ServerAlias www.example.com
|
||||
|
||||
ServerAdmin __SERVER_ADMIN__
|
||||
|
||||
DocumentRoot /usr/share/airtime/public
|
||||
DirectoryIndex index.php
|
||||
|
||||
<Directory /usr/share/airtime/public>
|
||||
Options -Indexes FollowSymLinks MultiViews
|
||||
AllowOverride all
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName __SERVER_NAME__
|
||||
|
||||
ServerAdmin __SERVER_ADMIN__
|
||||
|
||||
DocumentRoot /usr/share/airtime/public
|
||||
Redirect permanent /login https://__SERVER_NAME__/login
|
||||
|
||||
SetEnv APPLICATION_ENV "production"
|
||||
|
||||
<Directory /usr/share/airtime/public>
|
||||
Options -Indexes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
|
@ -1,37 +0,0 @@
|
|||
<VirtualHost *:443>
|
||||
SSLEngine on
|
||||
SSLProtocol all -SSLv2
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
Header always set Strict-Transport-Security "max-age=31536000"
|
||||
|
||||
ServerName __SERVER_NAME__
|
||||
#ServerAlias www.example.com
|
||||
|
||||
ServerAdmin __SERVER_ADMIN__
|
||||
|
||||
DocumentRoot /usr/share/airtime/public
|
||||
DirectoryIndex index.php
|
||||
|
||||
<Directory /usr/share/airtime/public>
|
||||
AllowOverride all
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName __SERVER_NAME__
|
||||
|
||||
ServerAdmin __SERVER_ADMIN__
|
||||
|
||||
DocumentRoot /usr/share/airtime/public
|
||||
DirectoryIndex index.php
|
||||
Redirect permanent /login https://__SERVER_NAME__/login
|
||||
|
||||
SetEnv APPLICATION_ENV "production"
|
||||
|
||||
<Directory /usr/share/airtime/public>
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
|
@ -1,3 +0,0 @@
|
|||
[DEFAULT]
|
||||
pristine-tar = True
|
||||
sign-tags = True
|
|
@ -1,17 +0,0 @@
|
|||
airtime/airtime_mvc var/lib/airtime/tmp/
|
||||
airtime/install_minimal var/lib/airtime/tmp/
|
||||
airtime/python_apps var/lib/airtime/tmp/
|
||||
airtime/utils var/lib/airtime/tmp/
|
||||
|
||||
airtime/widgets usr/share/doc/airtime/examples/
|
||||
|
||||
debian/etc/airtime.ini /etc/airtime/
|
||||
debian/etc/apache.vhost.tpl /etc/airtime/
|
||||
debian/etc/apache24.vhost.tpl /etc/airtime/
|
||||
|
||||
debian/usr/bin/airtime-launch-browser /usr/bin/
|
||||
debian/usr/share/applications/airtime.desktop /usr/share/applications/
|
||||
debian/usr/share/man/man1 /usr/share/man/
|
||||
debian/usr/share/menu/airtime /usr/share/menu
|
||||
debian/usr/share/pixmaps/airtime.xpm /usr/share/pixmaps/
|
||||
|
|
@ -1 +0,0 @@
|
|||
[type: gettext/rfc822deb] templates
|
|
@ -1,252 +0,0 @@
|
|||
# Debconf translation strings for Airtime.
|
||||
# Copyright (C) 2012 Airtime contributors
|
||||
# This file is distributed under the same license as the Airtime package.
|
||||
#
|
||||
# Translators:
|
||||
# AlbertFR <albert.bruc.ab@gmail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Airtime\n"
|
||||
"Report-Msgid-Bugs-To: contact@sourcefabric.org\n"
|
||||
"POT-Creation-Date: 2012-07-05 16:49+0100\n"
|
||||
"PO-Revision-Date: 2014-11-11 17:40+0000\n"
|
||||
"Last-Translator: AlbertFR <albert.bruc.ab@gmail.com>\n"
|
||||
"Language-Team: French (France) (http://www.transifex.com/projects/p/airtime/language/fr_FR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr_FR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:1001
|
||||
msgid "dedicated v-host"
|
||||
msgstr "v-host dédié"
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:1001
|
||||
msgid "no thanks"
|
||||
msgstr "non merci"
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid "Create apache2 config:"
|
||||
msgstr "Création de la configuration d'Apache2 :"
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid ""
|
||||
"This setup script can perform Apache web server configuration so that you "
|
||||
"can connect to Airtime directly after this installation."
|
||||
msgstr "Ce script d'installation peut effectuer la configuration du serveur Web Apache de sorte que vous pouvez vous connecter à Airtime directement après cette installation."
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid ""
|
||||
"Production systems should choose \"dedicated v-host\". This option will ask "
|
||||
"for a server hostname (FQDN) and will create a minimal Apache virtual host "
|
||||
"configuration that you can adapt."
|
||||
msgstr "Les systèmes en production doivent choisir \"dedicated v-host\". Cette option vous demandera un nom d'hôte pour le du serveur (FQDN) et créera une configuration d'hôte virtuel Apache minimal que vous pourrez adapter."
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid ""
|
||||
"\"no, thanks\": no problem. You're welcome to set it up however you like. "
|
||||
"Note that the files in /etc/airtime/ may come in handy doing so."
|
||||
msgstr "\"Non, merci\": pas de problème. Vous êtes invités à configurer comme bon vous semble. Notez que les fichiers dans /etc/airtime/ peuvent être utiles à modifier..."
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:2001
|
||||
msgid "remove default"
|
||||
msgstr "Retirer défaut"
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:2001
|
||||
msgid "no change"
|
||||
msgstr "aucun changement"
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:2002
|
||||
msgid "Remove 000-default apache config:"
|
||||
msgstr "Supprimer 000-default de la configuration d'Apache :"
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:2002
|
||||
msgid ""
|
||||
"By default the Apache webserver is configured to send all virtual hosts to "
|
||||
"the /var/www/ directory."
|
||||
msgstr "Par défaut, le serveur Web Apache est configuré pour envoyer tous les hôtes virtuels vers le répertoire / var / www /."
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:2002
|
||||
msgid ""
|
||||
"This option will invoke `sudo a2dissite default` and is recommended when "
|
||||
"using a virtual host for Airtime."
|
||||
msgstr "Cette option invoque `sudo a2dissite default` et est recommandé lorsque vous utilisez un hôte virtuel pour Airtime."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid "FQDN - Apache virtual host ServerName:"
|
||||
msgstr "Nom de domaine complet - Nom de l'hôte virtuel du serveur Apache :"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid ""
|
||||
"Enter the main hostname of the web server. The DNS of this name must resolve"
|
||||
" to the Apache server running on this machine."
|
||||
msgstr "Entrez le nom d'hôte principal du serveur web. Le DNS de ce nom doit être résolu par le serveur web Apache en cours d'exécution sur cette machine."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid "e.g. \"example.com\" or \"www.example.com\" (without the quotes)"
|
||||
msgstr "ex. \"exemple.fr\" ou \"www.exemple.fr\" (sans les guillemets) "
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid ""
|
||||
"You can customize /etc/apache2/sites-enabled/airtime.vhost afterward and add"
|
||||
" ServerAliases and further custom configuration."
|
||||
msgstr "Vous pouvez personnaliser /etc/apache2/sites-enabled/airtime.vhost et ajouter des ServerAliases et autres configurations personnalisées."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:4001
|
||||
msgid "Email of the ServerAdmin:"
|
||||
msgstr "Courriel de l'administrateur du serveur :"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:4001
|
||||
msgid "An email address is required for the virtual host configuration."
|
||||
msgstr "Une adresse de courriel est requise pour la configuration de l'hôte virtuel."
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid "Enable Icecast2 and set passwords automatically?"
|
||||
msgstr "Activer Icecast2 et mettre les mots de passe automatiquement ?"
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid ""
|
||||
"This option enables a local Icecast streaming media server to start on boot,"
|
||||
" and configures passwords for both the Icecast server and Airtime."
|
||||
msgstr "Cette option permet à un serveur Icecast local de s'activer au démarrage, et configure les mots de passe pour le serveur Icecast et Airtime."
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid ""
|
||||
"Note: these settings are here for convenience only. Strictly speaking they "
|
||||
"should be done during Icecast installation - not Airtime installation."
|
||||
msgstr "Remarque : ces paramètres sont ici pour plus de commodité seulement. Strictement parlant, ils doivent être effectués lors de l'installation d'Icecast - pas pendant l'installation d'Airtime."
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid ""
|
||||
"If you wish to set Icecast server passwords manually, you should answer No "
|
||||
"here."
|
||||
msgstr "Si vous souhaitez saisir manuellement les mots de passe du serveur Icecast, vous devez répondre Non ici."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:6001
|
||||
msgid "Icecast2 hostname:"
|
||||
msgstr "Nom de l'hote d'Icecast2 :"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:6001
|
||||
msgid ""
|
||||
"Specify the hostname of the Icecast server. Depending on your setup, this "
|
||||
"might be the same as the Airtime ServerName. For testing purposes, you can "
|
||||
"use the default of 'localhost'."
|
||||
msgstr "Spécifier le nom d'hôte du serveur Icecast. Dépend de vos réglages, celui-ci peut être le même que le nom du serveur Airtime. A des fins de tests, vous pouvez utiliser par défaut 'localhost'."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:7001
|
||||
msgid "Icecast2 Source Password:"
|
||||
msgstr "Mot de passe Source Icecast 2 : "
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:7001
|
||||
msgid "Specify a password to send A/V sources to Icecast"
|
||||
msgstr "Spécifier un mot de passe pour envoyer les sources A/V à Icecast"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:8001
|
||||
msgid "Icecast2 Relay Password:"
|
||||
msgstr "Mot de passe Relai d'Icecast2 :"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:8001
|
||||
msgid ""
|
||||
"Specify a password for stream relay access. This is not needed by Airtime, "
|
||||
"however you should change it from the default to lock down your system."
|
||||
msgstr "Indiquez un mot de passe pour l'accès flux relais. Ce n'est pas nécessaire par Airtime, mais vous pouvez changer la valeur par défaut pour verrouiller votre système."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:9001
|
||||
msgid "Icecast2 Admin Password:"
|
||||
msgstr "Mot de passe administrateur Icecast2 :"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:9001
|
||||
msgid ""
|
||||
"Specify the admin password for Icecast. You can access icecast2's admin "
|
||||
"interface via http://localhost:8000/ - and both monitor connection as well "
|
||||
"as block users."
|
||||
msgstr "Spécifiez le mot de passe admin pour Icecast. Vous pouvez accéder à l'interface d'administration de icecast2 via http://localhost:8000/ - et surveiller les utilisateurs et flux."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:10001
|
||||
msgid "Airtime Admin Password:"
|
||||
msgstr "Mot de passe administrateur Airtime :"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:10001
|
||||
msgid ""
|
||||
"Specify a secure admin password for Airtime. You can access the Airtime "
|
||||
"administration interface at http://localhost/ to set up other user accounts,"
|
||||
" upload media, create playlists and schedule shows."
|
||||
msgstr "Indiquez un mot de passe admin sécurisé pour Airtime. Vous pouvez accéder à l'interface d'administration d'Airtime à l'adresse http://localhost/ pour configurer d'autres comptes d'utilisateurs, télécharger des médias, créer des playlists et gérer vos horaires d'émissions."
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:11001
|
||||
msgid "Airtime Storage Directory:"
|
||||
msgstr "Dossier de stockage Airtime :"
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:11001
|
||||
msgid ""
|
||||
"Specify the main storage path which Airtime will use, ending with a slash. "
|
||||
"You can also specify watched folders in the Airtime administration "
|
||||
"interface."
|
||||
msgstr "Indiquez le chemin de stockage principal que va utiliser d'Airtime, se terminant par une barre oblique. Vous pouvez également spécifier des dossiers surveillés dans l'interface d'administration d'Airtime."
|
|
@ -1,249 +0,0 @@
|
|||
# Debconf translation strings for Airtime.
|
||||
# Copyright (C) 2012 Airtime contributors
|
||||
# This file is distributed under the same license as the Airtime package.
|
||||
# Daniel James <daniel@64studio.com>, 2012.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Airtime 2.5.1\n"
|
||||
"Report-Msgid-Bugs-To: contact@sourcefabric.org\n"
|
||||
"POT-Creation-Date: 2012-07-05 16:49+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Airtime Localization <contact@sourcefabric.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:1001
|
||||
msgid "dedicated v-host"
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:1001
|
||||
msgid "no thanks"
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid "Create apache2 config:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid ""
|
||||
"This setup script can perform Apache web server configuration so that you "
|
||||
"can connect to Airtime directly after this installation."
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid ""
|
||||
"Production systems should choose \"dedicated v-host\". This option will ask "
|
||||
"for a server hostname (FQDN) and will create a minimal Apache virtual host "
|
||||
"configuration that you can adapt."
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:1002
|
||||
msgid ""
|
||||
"\"no, thanks\": no problem. You're welcome to set it up however you like. "
|
||||
"Note that the files in /etc/airtime/ may come in handy doing so."
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:2001
|
||||
msgid "remove default"
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Choices
|
||||
#: ../templates:2001
|
||||
msgid "no change"
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:2002
|
||||
msgid "Remove 000-default apache config:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:2002
|
||||
msgid ""
|
||||
"By default the Apache webserver is configured to send all virtual hosts to "
|
||||
"the /var/www/ directory."
|
||||
msgstr ""
|
||||
|
||||
#. Type: select
|
||||
#. Description
|
||||
#: ../templates:2002
|
||||
msgid ""
|
||||
"This option will invoke `sudo a2dissite default` and is recommended when "
|
||||
"using a virtual host for Airtime."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid "FQDN - Apache virtual host ServerName:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid ""
|
||||
"Enter the main hostname of the web server. The DNS of this name must resolve "
|
||||
"to the Apache server running on this machine."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid "e.g. \"example.com\" or \"www.example.com\" (without the quotes)"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:3001
|
||||
msgid ""
|
||||
"You can customize /etc/apache2/sites-enabled/airtime.vhost afterward and add "
|
||||
"ServerAliases and further custom configuration."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:4001
|
||||
msgid "Email of the ServerAdmin:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:4001
|
||||
msgid "An email address is required for the virtual host configuration."
|
||||
msgstr ""
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid "Enable Icecast2 and set passwords automatically?"
|
||||
msgstr ""
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid ""
|
||||
"This option enables a local Icecast streaming media server to start on boot, "
|
||||
"and configures passwords for both the Icecast server and Airtime."
|
||||
msgstr ""
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid ""
|
||||
"Note: these settings are here for convenience only. Strictly speaking they "
|
||||
"should be done during Icecast installation - not Airtime installation."
|
||||
msgstr ""
|
||||
|
||||
#. Type: boolean
|
||||
#. Description
|
||||
#: ../templates:5001
|
||||
msgid ""
|
||||
"If you wish to set Icecast server passwords manually, you should answer No "
|
||||
"here."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:6001
|
||||
msgid "Icecast2 hostname:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:6001
|
||||
msgid ""
|
||||
"Specify the hostname of the Icecast server. Depending on your setup, this "
|
||||
"might be the same as the Airtime ServerName. For testing purposes, you can "
|
||||
"use the default of 'localhost'."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:7001
|
||||
msgid "Icecast2 Source Password:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:7001
|
||||
msgid "Specify a password to send A/V sources to Icecast"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:8001
|
||||
msgid "Icecast2 Relay Password:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:8001
|
||||
msgid ""
|
||||
"Specify a password for stream relay access. This is not needed by Airtime, "
|
||||
"however you should change it from the default to lock down your system."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:9001
|
||||
msgid "Icecast2 Admin Password:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:9001
|
||||
msgid ""
|
||||
"Specify the admin password for Icecast. You can access icecast2's admin "
|
||||
"interface via http://localhost:8000/ - and both monitor connection as well "
|
||||
"as block users."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:10001
|
||||
msgid "Airtime Admin Password:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:10001
|
||||
msgid ""
|
||||
"Specify a secure admin password for Airtime. You can access the Airtime "
|
||||
"administration interface at http://localhost/ to set up other user accounts, "
|
||||
"upload media, create playlists and schedule shows."
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:11001
|
||||
msgid "Airtime Storage Directory:"
|
||||
msgstr ""
|
||||
|
||||
#. Type: string
|
||||
#. Description
|
||||
#: ../templates:11001
|
||||
msgid ""
|
||||
"Specify the main storage path which Airtime will use, ending with a slash. "
|
||||
"You can also specify watched folders in the Airtime administration interface."
|
||||
msgstr ""
|
|
@ -1,306 +0,0 @@
|
|||
#!/bin/bash
|
||||
#postinst script for airtime
|
||||
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
if [ "$DPKG_DEBUG" = "developer" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
wwwdir="/usr/share/airtime"
|
||||
tmpdir="/var/lib/airtime/tmp"
|
||||
configdir="/etc/airtime"
|
||||
a2tplfile="${configdir}/apache.vhost.tpl"
|
||||
a24tplfile="${configdir}/apache24.vhost.tpl"
|
||||
phpinifile="${configdir}/airtime.ini"
|
||||
OLDVERSION="$2"
|
||||
NEWVERSION="2.5.1"
|
||||
POSTGRESRUNNING=$(invoke-rc.d postgresql status | grep main || true)
|
||||
|
||||
case "$1" in
|
||||
configure|reconfigure)
|
||||
|
||||
webserver="apache2"
|
||||
php="php5"
|
||||
|
||||
# this file in 1.8.2 is a directory path in 1.9.3
|
||||
if [ -f /var/www/airtime/utils/airtime-import ]; then
|
||||
rm -f /var/www/airtime/utils/airtime-import
|
||||
fi
|
||||
|
||||
# do we set up a virtual host?
|
||||
db_get airtime/apache-setup
|
||||
APACHESETUP=$RET
|
||||
if [ "${APACHESETUP}" == "no thanks" ]; then
|
||||
echo "Not setting up ${webserver} and ${php}..."
|
||||
|
||||
elif [ "${APACHESETUP}" == "dedicated v-host" ]; then
|
||||
echo "Setting up ${webserver}..."
|
||||
|
||||
# create the document root if it doesn't exist
|
||||
if [ ! -d $wwwdir/public/ ]; then
|
||||
install -d -m755 $wwwdir/public/
|
||||
fi
|
||||
|
||||
# temporarily disable an existing virtual host
|
||||
if [ -f /etc/$webserver/sites-available/airtime-vhost ]; then
|
||||
a2dissite airtime-vhost
|
||||
elif [ -f /etc/$webserver/sites-available/airtime-vhost.conf ]; then
|
||||
a2dissite airtime-vhost.conf
|
||||
fi
|
||||
|
||||
db_get airtime/apache-servername
|
||||
SN=$RET
|
||||
db_get airtime/apache-serveradmin
|
||||
SA=$RET
|
||||
|
||||
# create the config directory if it doesn't exist
|
||||
if [ ! -d /etc/$webserver/sites-available/ ]; then
|
||||
install -d -m755 /etc/$webserver/sites-available/
|
||||
fi
|
||||
|
||||
# check for apache version 2.4, virtualhost syntax is different
|
||||
APACHEVERSION=$(dpkg-query -f '${Version}' -W 'apache2' | cut -c 1-3)
|
||||
|
||||
if [ "$APACHEVERSION" = "2.4" ] ; then
|
||||
echo "Apache 2.4 detected, using newer access configuration..."
|
||||
sed -e "s/__SERVER_ADMIN__/${SA}/g;s/__SERVER_NAME__/${SN}/g" \
|
||||
${a24tplfile} > /etc/$webserver/sites-available/airtime-vhost.conf
|
||||
|
||||
else
|
||||
sed -e "s/__SERVER_ADMIN__/${SA}/g;s/__SERVER_NAME__/${SN}/g" \
|
||||
${a2tplfile} > /etc/$webserver/sites-available/airtime-vhost.conf
|
||||
fi
|
||||
|
||||
command -v a2ensite > /dev/null
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ]; then
|
||||
a2ensite airtime-vhost.conf
|
||||
fi
|
||||
|
||||
# insert a specific hostname, if provided, into API configuration
|
||||
if [ "${SN}" != "localhost" ]; then
|
||||
|
||||
# new installs
|
||||
if [ -f /var/lib/airtime/tmp/airtime_mvc/build/airtime.conf -a -f /var/lib/airtime/tmp/python_apps/api_clients/api_client.cfg ]; then
|
||||
sed -i "s/base_url = localhost/base_url = ${SN}/" /var/lib/airtime/tmp/airtime_mvc/build/airtime.conf
|
||||
sed -i "s/host = 'localhost'/host = '${SN}'/" /var/lib/airtime/tmp/python_apps/api_clients/api_client.cfg
|
||||
fi
|
||||
|
||||
# upgrades
|
||||
if [ -f /etc/airtime/airtime.conf -a -f /etc/airtime/api_client.cfg ]; then
|
||||
sed -i "s/base_url = localhost/base_url = ${SN}/" /etc/airtime/airtime.conf
|
||||
sed -i "s/host = 'localhost'/host = '${SN}'/" /etc/airtime/api_client.cfg
|
||||
fi
|
||||
fi
|
||||
|
||||
# enable the alias, headers, rewrite and ssl modules
|
||||
command -v a2enmod > /dev/null
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ]; then
|
||||
a2enmod alias headers rewrite ssl
|
||||
fi
|
||||
|
||||
# remove the default site, if requested to
|
||||
db_get airtime/apache-deldefault
|
||||
if [ "$RET" == "remove default" ]; then
|
||||
if [ -f /etc/apache2/sites-available/default ]; then
|
||||
a2dissite default
|
||||
elif [ -f /etc/apache2/sites-available/000-default.conf ]; then
|
||||
a2dissite 000-default.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
# PHP config
|
||||
echo "Configuring php5..."
|
||||
if [ ! -d /etc/$php/conf.d/ ]; then
|
||||
install -d -m755 /etc/$php/conf.d/
|
||||
fi
|
||||
|
||||
# Newer Ubuntu distros use a real directory instead of a symlink for /etc/php5/apache2/conf.d/ - thanks Mathieu!
|
||||
if [ ! -d /etc/$php/$webserver/conf.d/ ]; then
|
||||
install -d -m755 /etc/$php/$webserver/conf.d/
|
||||
fi
|
||||
|
||||
if [ ! -e /etc/$php/conf.d/airtime.ini ]; then
|
||||
ln -s ${phpinifile} /etc/$php/conf.d/airtime.ini
|
||||
fi
|
||||
|
||||
# Newer style configuration
|
||||
if [ ! -e /etc/$php/$webserver/conf.d/airtime.ini ]; then
|
||||
ln -s ${phpinifile} /etc/$php/$webserver/conf.d/airtime.ini
|
||||
fi
|
||||
|
||||
# restart apache
|
||||
invoke-rc.d apache2 restart
|
||||
fi
|
||||
|
||||
# XXX ICECAST XXX
|
||||
db_get airtime/icecast-setup
|
||||
if [ "$RET" == "true" ]; then
|
||||
if [ -f /etc/default/icecast2 -a -f /etc/icecast2/icecast.xml ]; then
|
||||
echo "Setting up icecast2..."
|
||||
sed -i "s:ENABLE=.*:ENABLE=true:g" /etc/default/icecast2
|
||||
db_get airtime/icecast-sourcepw
|
||||
ICESOURCE=$RET
|
||||
sed -i "s:<source-password>.*<\/source-password>:<source-password>$ICESOURCE<\/source-password>:g" /etc/icecast2/icecast.xml
|
||||
db_get airtime/icecast-relaypw
|
||||
ICERELAY=$RET
|
||||
sed -i "s:<relay-password>.*<\/relay-password>:<relay-password>$ICERELAY<\/relay-password>:g" /etc/icecast2/icecast.xml
|
||||
db_get airtime/icecast-adminpw
|
||||
ICEADMIN=$RET
|
||||
sed -i "s:<admin-password>.*<\/admin-password>:<admin-password>$ICEADMIN<\/admin-password>:g" /etc/icecast2/icecast.xml
|
||||
db_get airtime/icecast-hostname
|
||||
ICEHOST=$RET
|
||||
sed -i "s:<hostname>.*<\/hostname>:<hostname>$ICEHOST<\/hostname>:g" /etc/icecast2/icecast.xml
|
||||
|
||||
# restart icecast server
|
||||
invoke-rc.d icecast2 restart || true
|
||||
|
||||
# save icecast hostname and source-password in airtime
|
||||
db_get airtime/icecast-hostname
|
||||
ICEHOST=$RET
|
||||
sed -i "s:'s1_host', '127.0.0.1', 'string':'s1_host', '$ICEHOST', 'string':g" ${tmpdir}/airtime_mvc/build/sql/defaultdata.sql
|
||||
|
||||
db_get airtime/icecast-sourcepw
|
||||
ICESOURCE=$RET
|
||||
sed -i "s:'s1_pass', 'hackme', 'string':'s1_pass', '$ICESOURCE', 'string':g" ${tmpdir}/airtime_mvc/build/sql/defaultdata.sql
|
||||
|
||||
db_get airtime/icecast-adminpw
|
||||
ICEADMIN=$RET
|
||||
sed -i "s:'s1_admin_user', '', 'string':'s1_admin_user', 'admin', 'string':g" ${tmpdir}/airtime_mvc/build/sql/defaultdata.sql
|
||||
sed -i "s:'s1_admin_pass', '', 'string':'s1_admin_pass', '$ICEADMIN', 'string':g" ${tmpdir}/airtime_mvc/build/sql/defaultdata.sql
|
||||
|
||||
else
|
||||
echo "The icecast2 package does not appear to be installed on this server."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Monit setup
|
||||
if [ -f /etc/default/monit ]; then
|
||||
echo "Setting up monit configuration..."
|
||||
sed -i 's:startup=.*:startup=1:g' /etc/default/monit
|
||||
sed -i 's:START=.*:START=yes:g' /etc/default/monit
|
||||
|
||||
MONITCONFIGURED=$(grep "include /etc/monit/conf.d" /etc/monit/monitrc || true)
|
||||
if [ -z "$MONITCONFIGURED" ]; then
|
||||
echo "include /etc/monit/conf.d/*" >> /etc/monit/monitrc
|
||||
fi
|
||||
|
||||
invoke-rc.d monit restart
|
||||
else
|
||||
echo "The monit package does not appear to be installed on this server."
|
||||
fi
|
||||
|
||||
# get airtime admin password on new installs
|
||||
if [ ! -e /var/log/airtime/pypo/pypo.log ]; then
|
||||
db_get airtime/admin-password
|
||||
AIRTIMEADMIN=$RET
|
||||
sed -i "1s:md5('admin'):md5('$AIRTIMEADMIN'):g" ${tmpdir}/airtime_mvc/build/sql/defaultdata.sql
|
||||
fi
|
||||
|
||||
# get the main storage directory specified by the user
|
||||
db_get airtime/storage-directory
|
||||
AIRTIMESTORAGE=$RET
|
||||
if [ "$AIRTIMESTORAGE" != "/srv/airtime/stor/" ]; then
|
||||
sed -i "1s:/srv/airtime/stor/:$AIRTIMESTORAGE:g" ${tmpdir}/install_minimal/include/airtime-install.ini
|
||||
fi
|
||||
|
||||
# stop debconf so daemons started by the install script cannot hold open the pipe
|
||||
db_stop
|
||||
|
||||
# start rabbitmq if it isn't running
|
||||
if [ -f /etc/init.d/rabbitmq-server ]; then
|
||||
RABBITMQSTOPPED=$(invoke-rc.d rabbitmq-server status | grep no_nodes_running || true)
|
||||
if [ -n "$RABBITMQSTOPPED" ]; then
|
||||
invoke-rc.d rabbitmq-server start
|
||||
fi
|
||||
|
||||
# Warn if rabbitmq is installed but not set to start on boot
|
||||
RABBITMQSTARTONBOOT=$(ls /etc/rc2.d/ | grep rabbitmq || true)
|
||||
if [ -z "$RABBITMQSTARTONBOOT" ]; then
|
||||
echo "Warning: rabbitmq-server is not configured to start after a reboot!"
|
||||
echo "Fix Default-Start and Default-Stop lines in /etc/init.d/rabbitmq-server"
|
||||
echo "then run this command as root: update-rc.d rabbitmq-server defaults"
|
||||
fi
|
||||
else
|
||||
echo "The rabbitmq-server package does not appear to be installed on this server."
|
||||
fi
|
||||
|
||||
# fix the Liquidsoap symlink if it doesn't point to standard location
|
||||
if [ -h /usr/bin/airtime-liquidsoap ]; then
|
||||
SYMLINK_TARGET=`readlink /usr/bin/airtime-liquidsoap`
|
||||
if [ "$SYMLINK_TARGET" != "/usr/bin/liquidsoap" ]; then
|
||||
echo "Liquidsoap symlink points to the wrong place, fixing it!"
|
||||
rm /usr/bin/airtime-liquidsoap
|
||||
ln -s /usr/bin/liquidsoap /usr/bin/airtime-liquidsoap
|
||||
fi
|
||||
|
||||
if [ "$SYMLINK_TARGET" == "/usr/bin/liquidsoap" ]; then
|
||||
echo "Liquidsoap symlink points to the right place!"
|
||||
fi
|
||||
fi
|
||||
|
||||
# symlink the Liquidsoap path to standard location, if symlink doesn't exist
|
||||
if [ ! -h /usr/bin/airtime-liquidsoap ]; then
|
||||
echo "Creating symlink for Liquidsoap..."
|
||||
ln -s /usr/bin/liquidsoap /usr/bin/airtime-liquidsoap
|
||||
fi
|
||||
|
||||
# don't run airtime-install if the user is doing a dpkg-reconfigure
|
||||
if [ "$1" = "reconfigure" ] || [ -n "$DEBCONF_RECONFIGURE" ] ; then
|
||||
echo "Reconfiguration complete."
|
||||
|
||||
# exit here if the current install is too old to be upgraded
|
||||
elif [ -n "$OLDVERSION" ] && [[ "${OLDVERSION:0:3}" < "2.3" ]]; then
|
||||
echo "Upgrades from Airtime versions before 2.3.0 are not supported. Please back up your files and perform a clean install."
|
||||
|
||||
# has the user chosen not to configure the web server? If so, don't run airtime-install
|
||||
elif [ "${APACHESETUP}" == "no thanks" ]; then
|
||||
echo "Please run the ${tmpdir}/install_minimal/airtime-install script with the -d option after you have set up the web server."
|
||||
|
||||
# should postgres not be running yet, don't run airtime-install
|
||||
elif [ -z "${POSTGRESRUNNING}" ]; then
|
||||
echo "Please run the ${tmpdir}/install_minimal/airtime-install script with the -d option after you have started the database server."
|
||||
|
||||
else
|
||||
|
||||
mkdir -p /var/log/airtime
|
||||
cd $tmpdir/install_minimal/
|
||||
|
||||
if [ "${OLDVERSION:0:5}" == "${NEWVERSION}" ] ; then
|
||||
echo "Reinstallation detected..."
|
||||
echo | ./airtime-install --disable-deb-check -rp 2> /var/log/airtime/reinstallation-errors.log
|
||||
|
||||
if [ -f /etc/init.d/icecast2 ] ; then
|
||||
invoke-rc.d icecast2 restart || true
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
./airtime-install --disable-deb-check 2> /var/log/airtime/installation-errors.log
|
||||
|
||||
fi
|
||||
|
||||
# Update the desktop menu to show Airtime
|
||||
if test -x /usr/bin/update-menus; then
|
||||
update-menus;
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -1,130 +0,0 @@
|
|||
#!/bin/bash
|
||||
#postrm script for airtime
|
||||
|
||||
set -e
|
||||
|
||||
if [ -f /usr/share/debconf/confmodule ]; then
|
||||
. /usr/share/debconf/confmodule
|
||||
fi
|
||||
|
||||
if [ "$DPKG_DEBUG" = "developer" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
package_name="airtime"
|
||||
datadir="/srv/airtime"
|
||||
wwwdir="/usr/share/airtime"
|
||||
tmpdir="/var/lib/airtime/tmp"
|
||||
configdir="/etc/airtime"
|
||||
|
||||
webserver="apache2"
|
||||
php="php5"
|
||||
|
||||
case "$1" in
|
||||
purge|remove)
|
||||
|
||||
# airtime uninstaller does not remove these
|
||||
|
||||
if [ -L /var/lib/airtime/airtime_mvc ]; then
|
||||
rm -rf /var/lib/airtime/ || true
|
||||
fi
|
||||
|
||||
if [ -f /var/lib/airtime/.htaccess ]; then
|
||||
rm -f /var/lib/airtime/.htaccess || true
|
||||
fi
|
||||
|
||||
if [ -f ${tmpdir}/install_minimal/distribute-0.6.10.tar.gz ]; then
|
||||
rm -f ${tmpdir}/install_minimal/distribute-0.6.10.tar.gz || true
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/python-virtualenv/distribute-0.6.10.tar.gz ]; then
|
||||
rm -f /usr/share/python-virtualenv/distribute-0.6.10.tar.gz || true
|
||||
fi
|
||||
|
||||
if [ -d ${tmpdir}/python_apps/pypo/liquidsoap_bin ]; then
|
||||
rm -f ${tmpdir}/python_apps/pypo/liquidsoap_bin/* || true
|
||||
rm -rf ${tmpdir}/python_apps/pypo/liquidsoap_bin || true
|
||||
fi
|
||||
|
||||
if [ -d /var/lib/airtime/python_apps/pypo/liquidsoap ]; then
|
||||
rm -rf /var/lib/airtime/python_apps/pypo/liquidsoap || true
|
||||
fi
|
||||
|
||||
if [ -d ${tmpdir}/install_minimal/upgrades/airtime-1.9.0/airtimefilemonitor ]; then
|
||||
rm -rf ${tmpdir}/install_minimal/upgrades/airtime-1.9.0/airtimefilemonitor || true
|
||||
fi
|
||||
|
||||
if [ -f ${tmpdir}/install_minimal/upgrades/airtime-1.9.0/storDump.txt ]; then
|
||||
rm -f ${tmpdir}/install_minimal/upgrades/airtime-1.9.0/storDump.txt || true
|
||||
fi
|
||||
|
||||
if [ -L /usr/bin/airtime-clean-storage ]; then
|
||||
rm -f /usr/bin/airtime-clean-storage || true
|
||||
fi
|
||||
|
||||
if [ -L /usr/bin/airtime-user ]; then
|
||||
rm -f /usr/bin/airtime-user || true
|
||||
fi
|
||||
|
||||
if [ -L /usr/bin/airtime-log ]; then
|
||||
rm -f /usr/bin/airtime-log || true
|
||||
fi
|
||||
|
||||
# Un-configure webservers
|
||||
if [ -L /etc/$webserver/conf.d/airtime.conf ]; then
|
||||
rm -f /etc/$webserver/conf.d/airtime.conf || true
|
||||
restart="$webserver $restart"
|
||||
fi
|
||||
|
||||
if [ -L /etc/$php/conf.d/airtime.ini ]; then
|
||||
rm -f /etc/$php/conf.d/airtime.ini || true
|
||||
restart="$webserver $restart"
|
||||
fi
|
||||
|
||||
if [ -f /etc/$webserver/sites-available/airtime-vhost ]; then
|
||||
a2dissite airtime-vhost &>/dev/null || true
|
||||
elif [ -f /etc/$webserver/sites-available/airtime-vhost.conf ]; then
|
||||
a2dissite airtime-vhost.conf &>/dev/null || true
|
||||
# TODO: if airtime-vhost is not modified -> delete it
|
||||
restart="$webserver $restart"
|
||||
fi
|
||||
|
||||
servers="apache2"
|
||||
# may not exist if package was manually installed
|
||||
if [ -r /usr/share/wwwconfig-common/restart.sh ]; then
|
||||
. /usr/share/wwwconfig-common/restart.sh || true
|
||||
echo $error
|
||||
fi
|
||||
|
||||
# Remove Airtime menu entry and icon
|
||||
if test -x /usr/bin/update-menus; then
|
||||
update-menus;
|
||||
fi
|
||||
|
||||
# Remove legacy permission overrides
|
||||
dpkg-statoverride --list $datadir &>/dev/null && \
|
||||
dpkg-statoverride --remove $datadir || true
|
||||
|
||||
# Only remove settings if purge is called as an argument
|
||||
if [ "$1" = "purge" ]; then
|
||||
echo "Removing configuration files from /etc/airtime/" >&2
|
||||
rm -rf /etc/airtime || true
|
||||
echo "Purging Airtime settings from debconf database" >&2
|
||||
db_purge || true
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -1,33 +0,0 @@
|
|||
#!/bin/bash
|
||||
#preinst script for airtime
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$DPKG_DEBUG" = "developer" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
install|upgrade)
|
||||
|
||||
# Remove liquidsoap binary from old installs
|
||||
if [ -f /var/lib/airtime/python_apps/pypo/liquidsoap/liquidsoap ]; then
|
||||
echo "Removing old Liquidsoap binary..." >&2
|
||||
rm -f /var/lib/airtime/python_apps/pypo/liquidsoap/liquidsoap
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
abort-upgrade)
|
||||
echo "Upgrade aborting..." >&2
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "preinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -1,25 +0,0 @@
|
|||
#!/bin/bash
|
||||
#prerm script for airtime
|
||||
|
||||
set -e
|
||||
|
||||
package_name="airtime"
|
||||
datadir="/var/lib/${package_name}/tmp"
|
||||
|
||||
case "$1" in
|
||||
remove|purge)
|
||||
cd $datadir/install_minimal/ && ./airtime-uninstall || true
|
||||
;;
|
||||
|
||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
#override_dh_shlibdeps:
|
||||
# dh_makeshlibs
|
||||
# -dh_shlibdeps -- --ignore-missing-info
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
@ -1 +0,0 @@
|
|||
3.0 (quilt)
|
|
@ -1,5 +0,0 @@
|
|||
debian/usr/share/man/man1/airtime-import.1.gz
|
||||
debian/usr/share/man/man1/airtime-launch-browser.1.gz
|
||||
debian/usr/share/man/man1/airtime-log.1.gz
|
||||
debian/usr/share/man/man1/airtime-test-soundcard.1.gz
|
||||
debian/usr/share/man/man1/airtime-test-stream.1.gz
|
|
@ -1,109 +0,0 @@
|
|||
Template: airtime/apache-setup
|
||||
Type: select
|
||||
__Choices: dedicated v-host, no thanks
|
||||
Choices-de.UTF-8: v-host einrichten, nein danke
|
||||
Default: dedicated v-host
|
||||
_Description: Create apache2 config:
|
||||
This setup script can perform Apache web server configuration
|
||||
so that you can connect to Airtime directly after this installation.
|
||||
.
|
||||
Production systems should choose "dedicated v-host". This option
|
||||
will ask for a server hostname (FQDN) and will create a minimal Apache
|
||||
virtual host configuration that you can adapt.
|
||||
.
|
||||
"no, thanks": no problem. You're welcome to set it up however you like.
|
||||
Note that the files in /etc/airtime/ may come in handy doing so.
|
||||
Description-de.UTF-8: Erzeugen einer apache2 konfiuration:
|
||||
.
|
||||
|
||||
Template: airtime/apache-deldefault
|
||||
Type: select
|
||||
__Choices: remove default, no change
|
||||
Default: no change
|
||||
_Description: Remove 000-default apache config:
|
||||
By default the Apache webserver is configured to send all virtual hosts
|
||||
to the /var/www/ directory.
|
||||
.
|
||||
This option will invoke `sudo a2dissite default` and is recommended
|
||||
when using a virtual host for Airtime.
|
||||
|
||||
Template: airtime/apache-servername
|
||||
Type: string
|
||||
Default: localhost
|
||||
_Description: FQDN - Apache virtual host ServerName:
|
||||
Enter the main hostname of the web server.
|
||||
The DNS of this name must resolve to the Apache server running on this
|
||||
machine.
|
||||
.
|
||||
e.g. "example.com" or "www.example.com" (without the quotes)
|
||||
.
|
||||
You can customize /etc/apache2/sites-enabled/airtime.vhost afterward
|
||||
and add ServerAliases and further custom configuration.
|
||||
|
||||
Template: airtime/apache-serveradmin
|
||||
Type: string
|
||||
Default: root@localhost
|
||||
_Description: Email of the ServerAdmin:
|
||||
An email address is required for the virtual host configuration.
|
||||
|
||||
Template: airtime/icecast-setup
|
||||
Type: boolean
|
||||
Default: false
|
||||
_Description: Enable Icecast2 and set passwords automatically?
|
||||
This option enables a local Icecast streaming media server to start
|
||||
on boot, and configures passwords for both the Icecast server and Airtime.
|
||||
.
|
||||
Note: these settings are here for convenience only. Strictly speaking
|
||||
they should be done during Icecast installation - not Airtime installation.
|
||||
.
|
||||
If you wish to set Icecast server passwords manually,
|
||||
you should answer No here.
|
||||
|
||||
Template: airtime/icecast-hostname
|
||||
Type: string
|
||||
Default: localhost
|
||||
_Description: Icecast2 hostname:
|
||||
Specify the hostname of the Icecast server. Depending on your
|
||||
setup, this might be the same as the Airtime ServerName. For
|
||||
testing purposes, you can use the default of 'localhost'.
|
||||
|
||||
Template: airtime/icecast-sourcepw
|
||||
Type: string
|
||||
Default: hackme
|
||||
_Description: Icecast2 Source Password:
|
||||
Specify a password to send A/V sources to Icecast
|
||||
|
||||
Template: airtime/icecast-relaypw
|
||||
Type: string
|
||||
Default: hackme
|
||||
_Description: Icecast2 Relay Password:
|
||||
Specify a password for stream relay access.
|
||||
This is not needed by Airtime, however you should
|
||||
change it from the default to lock down your system.
|
||||
|
||||
Template: airtime/icecast-adminpw
|
||||
Type: string
|
||||
Default: hackme
|
||||
_Description: Icecast2 Admin Password:
|
||||
Specify the admin password for Icecast.
|
||||
You can access icecast2's admin interface via
|
||||
http://localhost:8000/ - and both monitor connection as
|
||||
well as block users.
|
||||
|
||||
Template: airtime/admin-password
|
||||
Type: string
|
||||
Default: admin
|
||||
_Description: Airtime Admin Password:
|
||||
Specify a secure admin password for Airtime.
|
||||
You can access the Airtime administration interface
|
||||
at http://localhost/ to set up other user accounts,
|
||||
upload media, create playlists and schedule shows.
|
||||
|
||||
Template: airtime/storage-directory
|
||||
Type: string
|
||||
Default: /srv/airtime/stor/
|
||||
_Description: Airtime Storage Directory:
|
||||
Specify the main storage path which Airtime will use,
|
||||
ending with a slash.
|
||||
You can also specify watched folders in the Airtime
|
||||
administration interface.
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/bash
|
||||
#-------------------------------------------------------------------------------
|
||||
# Copyright (c) 2012 Sourcefabric O.P.S.
|
||||
#
|
||||
# This file is part of the Airtime project.
|
||||
# http://airtime.sourcefabric.org/
|
||||
#
|
||||
# Airtime is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Airtime is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Airtime; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
#-------------------------------------------------------------------------------
|
||||
# This script opens the default graphical web browser on the Airtime login page.
|
||||
|
||||
/usr/bin/x-www-browser http://localhost/ || exit 1
|
|
@ -1,8 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=Airtime
|
||||
GenericName=Broadcast automation system
|
||||
Icon=/usr/share/pixmaps/airtime.xpm
|
||||
Exec=/usr/bin/airtime-launch-browser
|
||||
Categories=AudioVideo;Audio;
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +0,0 @@
|
|||
?package(airtime):\
|
||||
needs="X11"\
|
||||
section="Applications/Sound"\
|
||||
title="Airtime"\
|
||||
command="/usr/bin/airtime-launch-browser"\
|
||||
icon="/usr/share/pixmaps/airtime.xpm"
|
|
@ -1,50 +0,0 @@
|
|||
/* XPM */
|
||||
static char * airtime_xpm[] = {
|
||||
"32 32 15 1",
|
||||
" c None",
|
||||
". c #FFE1D5",
|
||||
"+ c #FFA47F",
|
||||
"@ c #FF7137",
|
||||
"# c #FF5D1A",
|
||||
"$ c #FF7B45",
|
||||
"% c #FFB89B",
|
||||
"& c #FF9062",
|
||||
"* c #FFCDB8",
|
||||
"= c #FF6728",
|
||||
"- c #FFC3AA",
|
||||
"; c #FF9A70",
|
||||
"> c #FFD7C6",
|
||||
", c #FF8653",
|
||||
"' c #FFAE8D",
|
||||
" .+@+. ",
|
||||
" .+@#####$% ",
|
||||
" .+@###########&* ",
|
||||
" %$################=+ ",
|
||||
" $######################$- ",
|
||||
" %$#######################;.",
|
||||
" .+=#####################>",
|
||||
" *&##################, ",
|
||||
" %@###############> ",
|
||||
" .;=###########, ",
|
||||
" -@#########> ",
|
||||
" =########, ",
|
||||
" -#########> ",
|
||||
" ,########$ ",
|
||||
" #########- ",
|
||||
" %########@ ",
|
||||
" @########- ",
|
||||
" .########@ ",
|
||||
" ;########- ",
|
||||
" =#######@ ",
|
||||
" -#######,. ",
|
||||
" &#####@* ",
|
||||
" ####=' ",
|
||||
" %###; ",
|
||||
" $#,. ",
|
||||
" .@- ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
|
@ -1,2 +0,0 @@
|
|||
version=3
|
||||
http://sf.net/airtime/airtime-([\d\.]+)-ga\.tar\.gz
|
|
@ -1,61 +0,0 @@
|
|||
#/bin/sh
|
||||
# Script for generating nightly Airtime snapshot packages
|
||||
# Run from the directory containg the files checked out from git
|
||||
|
||||
VERSION=2.5.2~$(date "+%Y%m%d")
|
||||
BUILDDEST=/tmp/airtime-${VERSION}/
|
||||
DEBDIR=`pwd`/debian
|
||||
|
||||
git checkout $(git branch | grep "^*" | cut -d' ' -f 2)
|
||||
git pull
|
||||
|
||||
echo "cleaning up previous build..."
|
||||
|
||||
rm -rf /tmp/airtime*
|
||||
mkdir -p ${BUILDDEST}airtime
|
||||
|
||||
echo "copying files to temporary directory..."
|
||||
|
||||
cp -a * ${BUILDDEST}airtime || exit
|
||||
cp -a $DEBDIR ${BUILDDEST}debian || exit
|
||||
|
||||
cd ${BUILDDEST} || exit
|
||||
|
||||
# Set the version of the snapshot package
|
||||
|
||||
sed -i "1s:(2.5.2-1):(${VERSION}):g" debian/changelog
|
||||
|
||||
# FIXES for 2.5.2 #############
|
||||
|
||||
# these are all moved to debian/copyright
|
||||
rm airtime/python_apps/pypo/LICENSE
|
||||
rm airtime/airtime_mvc/library/php-amqplib/LICENSE
|
||||
rm airtime/airtime_mvc/library/phing/LICENSE
|
||||
rm airtime/airtime_mvc/library/propel/LICENSE
|
||||
rm airtime/airtime_mvc/library/soundcloud-api/README.md
|
||||
|
||||
# Remove Liquidsoap binary
|
||||
rm -r airtime/python_apps/pypo/liquidsoap_bin/
|
||||
|
||||
#Remove phing library
|
||||
rm -r airtime/airtime_mvc/library/phing/
|
||||
|
||||
#Remove ZFDebug
|
||||
rm -r airtime/airtime_mvc/library/ZFDebug/
|
||||
|
||||
#Strip un-needed install scripts
|
||||
rm -r airtime/install_full/
|
||||
|
||||
#Remove dev tools and files
|
||||
rm -r airtime/dev_tools/
|
||||
rm -r airtime/docs/
|
||||
rm airtime/.gitignore
|
||||
rm airtime/.zfproject.xml
|
||||
|
||||
#############################
|
||||
|
||||
echo "running the build..."
|
||||
|
||||
debuild -b -uc -us $@ || exit
|
||||
|
||||
cp /tmp/airtime_${VERSION}* /var/www/apt/snapshots/
|
Loading…
Reference in New Issue