From 3e621204f5afb4e6e36693f080b8165171c3f1da Mon Sep 17 00:00:00 2001 From: Holman Romero Date: Fri, 12 Sep 2014 16:51:45 +0200 Subject: [PATCH 01/20] Switch from GPL to AGPL --- LICENSE | 142 +++++++++++++++++++++++++------------------------------- 1 file changed, 64 insertions(+), 78 deletions(-) diff --git a/LICENSE b/LICENSE index 10926e87f..dba13ed2d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies @@ -7,17 +7,15 @@ Preamble - The GNU General Public License is a free, copyleft license for -software and other kinds of works. + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to +our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. +software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you @@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. The precise terms and conditions for copying, distribution and modification follow. @@ -72,7 +60,7 @@ modification follow. 0. Definitions. - "This License" refers to version 3 of the GNU General Public License. + "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. @@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - 13. Use with the GNU Affero General Public License. + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single +under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General +Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published +GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's +versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. @@ -635,41 +633,29 @@ the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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 + it under the terms of the GNU Affero 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. + GNU Affero General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see +For more information on this, and how to apply and follow the GNU AGPL, see . - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. - From 657a47a57606aba198c95c11c8a51b9fc3ba96e8 Mon Sep 17 00:00:00 2001 From: localizer Date: Mon, 22 Sep 2014 02:46:15 +0000 Subject: [PATCH 02/20] updated translation resources --- airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo | Bin 70215 -> 72271 bytes airtime_mvc/locale/ja/LC_MESSAGES/airtime.po | 18 +++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo index 43420a45045a96b40c134a459ca42cac2699e362..854f3925b86224bc096e877ecd155749e6e2845d 100644 GIT binary patch delta 19597 zcma*u2Y6M*zW4E!LWj^H^iA)*BS`O6kRm+|h=c@EC?al>(3^CmNs-v@LH%ztK0-#Y=%IkV3H;$DCE%{=~#9G=(w9H%Hg zF61~}{T=6gZABd?b8E+;=w!j17=RV9IF`k>*bzryCp?4&Fk>6XsfEQ*{dU9bI0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5hGi5F<|jC@wB(+{YTmjA$CwBbv%x9>v%cBX7J zsSx-2z9O@kq%RV>UOT)!RQ_%GQ{)ej4ubIVo?Aok&wDi^b~Ln-oL4?6{1wOeEIN4Wx2Z%p|2(Ay+OsNkAGw zoRV@~v(0}g`-OZnYdZ#uxF#N7{o=0f{C5iZR@9v(pNCW{u7)3wlDtSo>wdr8s6>A7zqhGGZn zo6zUAq``kAeMR0xszZJ<4eF8C9j+Th{SR zt9wt`9P-(*xZOXTcnA3bI2ymjFG=5$Z)(~O zqDi_=(>Rai|G^@5^HS<&lUk4lk|t629Cfv$O;zG1c-Ixh{kJdiK(!;KV65VlR-^1k zJ^#lk%t;W6x(d)>oy&UTDc?=1LTW|*A}fDHJ_GsOIFLGBUC8Ih!o>4PWk}CSk4ews zT5$HXIdAz{sDJJo_rFl6Nrf&yJYe~S+<40sd$q~ys%3R!EiOUX@0QPqzgS*vACPZN z`^&y;;is!HlZdS`XHsOx0;KGw$zi??G2$_7~Zk3Or2 zrGq~yJcS>w4#bIARVCWQBR`RfzN9~hdlNrVIq?MYt4O+HNVUlC#KF|Zr-43Wx{^v# z{tcF}w*Aq!nEwnT&7*N%97F?MOGq_I4;63?qCN@ri!dYU3Hfc9S~KAK*Wsz zyf&%z)UVv&S1BgNhLFZ7{WlD4dO7~o_N`NGn9%y~A{*vUAL*Z{V6iNPqDmGnz9Hui u4?{NG+R{7ThUMFHB~Jc$$1Ly0sD(F1?YJ>&rMKZ-Y|{E$a;Ni)i1&XbHDy5n diff --git a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po index 58a42bfb4..c4f558c80 100644 --- a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-09-17 23:48+0000\n" +"PO-Revision-Date: 2014-09-22 02:46+0000\n" "Last-Translator: Kazuhiro Shimbo \n" "Language-Team: Japanese (http://www.transifex.com/projects/p/airtime/language/ja/)\n" "MIME-Version: 1.0\n" @@ -1658,7 +1658,7 @@ msgstr "番組 %s は以前に更新されています。" msgid "" "Content in linked shows must be scheduled before or after any one is " "broadcasted" -msgstr "" +msgstr "同期された配信内容を配信中に変更することはできません。" #: airtime_mvc/application/models/Scheduler.php:200 #: airtime_mvc/application/models/Scheduler.php:289 @@ -2164,19 +2164,19 @@ msgid "" " every song. If you are using an OGG stream and your listeners do not " "require support for these audio players, then feel free to enable this " "option." -msgstr "" +msgstr "このオプションをチェックしてOGGストリームのメタデータを有効にしてください(ストリームメタデータとは、トラックタイトル、アーティスト、オーディオプレーヤーに表示される名前のことです)。メタデータ情報を有効にしてOGG/ Vorbisのストリームを再生すると、VLCとmplayerはすべての曲を再生した後にストリームから切断される重大なバグを発生させます。OGGストリームを使用していて、リスナーがこれらのオーディオプレーヤーのためのサポートを必要としない場合は、このオプションを有効にして下さい。" #: airtime_mvc/application/controllers/LocaleController.php:170 msgid "" "Check this box to automatically switch off Master/Show source upon source " "disconnection." -msgstr "" +msgstr "このボックスにチェックを入れると、ソースが切断された時に番組ソースに自動的に切り替わります。" #: airtime_mvc/application/controllers/LocaleController.php:171 msgid "" "Check this box to automatically switch on Master/Show source upon source " "connection." -msgstr "" +msgstr "このボックスをクリックすると、ソースが接続された時にマスターソースに自動的に切り替わります。" #: airtime_mvc/application/controllers/LocaleController.php:172 msgid "" @@ -2507,7 +2507,7 @@ msgstr "終了" #: airtime_mvc/application/controllers/LocaleController.php:266 msgid "Duration" -msgstr "" +msgstr "長さ" #: airtime_mvc/application/controllers/LocaleController.php:276 msgid "Show Empty" @@ -2867,7 +2867,7 @@ msgstr "エントリーを作成" #: airtime_mvc/application/controllers/LocaleController.php:390 msgid "Edit History Record" -msgstr "" +msgstr "配信履歴を編集" #: airtime_mvc/application/controllers/LocaleController.php:393 #, php-format @@ -3252,11 +3252,11 @@ msgstr "リピート間隔:" #: airtime_mvc/application/forms/AddShowRepeats.php:50 msgid "day of the month" -msgstr "" +msgstr "毎月特定日" #: airtime_mvc/application/forms/AddShowRepeats.php:50 msgid "day of the week" -msgstr "" +msgstr "毎月特定曜日" #: airtime_mvc/application/forms/AddShowRepeats.php:56 #: airtime_mvc/application/forms/DateRange.php:44 From ff16cefa622aa453a384cd46c963a9ed8e191a02 Mon Sep 17 00:00:00 2001 From: localizer Date: Mon, 29 Sep 2014 06:43:17 +0000 Subject: [PATCH 03/20] updated translation resources --- airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo | Bin 72271 -> 72359 bytes airtime_mvc/locale/ja/LC_MESSAGES/airtime.po | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo index 854f3925b86224bc096e877ecd155749e6e2845d..c9207fa8fd79079640bbca18df8ed08b3488f41d 100644 GIT binary patch delta 17935 zcmZwPb$nM<{KxUTF?u6L=LQTI-92J-cOxlMB8`N?7dHe1N$C=iMmi)V6i}3qk`70M zfTV=-d%eHsv)_+De)sV>JkRHI&pr3Vz2AL@acpzY@-0EW%b`ItJdUUYo|hHhWb(Wg zL7sQ9gtDGjw1(#qdc`m$mc~e|iMg>a*25WCAFpA0EL_v`ien8_ze6z?XJ7~}c6pz- z-WnXi)||MD-LYCN&#R5Au^2wZ!kC9-L2O~hpa!rG%i(Lxi>2zg0ky|u#H&yP*@9*8 z1O|IPPS*9jL?kj`63mV)hL_hYfPutCFc}uNd_^ok9F02vk>&eg81W!Xh|^IkGS|*; zz_i3$Fe&%<4y%HvP)l>!;`^u>J;#w)lxe2Mb*OgxP+M{gL-7h`z{i*wld&JVQEpVb z@~G?TqT07cpGNp0l@!z6&+NeW;~6gOPa03~l0hpAlC; zJu|yeH#mse$}?CEucEdtqN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)_#hWY2yFyPFt}1pQ=_+7#%8w^iq5MzDK=%R~M!>Id^I(vPGf)O}6tHfAH~DnR+9%X$ON zm&9~^Lb^=5+E`GZ|GL%@IF9E?KasXuM}4{JEcpOZF^f^{O(h_fnv&Wm89Xnl-tsv1F1dvL!?FI zk7H%p3@6`;ysl;Bb?u`3EBWi>8#H0M z>RNfZ1?$lGPx7~LGnT*>w5dyernQN)d-hnz3ZHwOr_V~{Cs>=QFF)7)bn%Iwqgl;?~T|W)sUr;CfHa|LGdrFQpD1@8!4LJ>!GgixZy4Qh;)qc7h{r}e~i#4I)rTSHr zeiUu@kZzNHw)nd^gStW3$6}&5ZH`$vi+=xwkao~;2*H_D7RB+DFIc1d#0pV9kGiHg z{D1DV*xME>O1t8uOq9#xDT}wn#+0kkeu&+pD*yTaVvQP7ahgU=@I7Lc$xp^xq&36} zU>uXx^#Vt@XL`vt6^2LN3iR;>m3DmX5KPYD+|N6>7K8yQDAs70`f76D-wKf;o e@OVh~JSmIE7A;=BWa$k_bGFvsQ0{ua(*Fm{LsRzv diff --git a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po index c4f558c80..aa1619960 100644 --- a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-09-22 02:46+0000\n" +"PO-Revision-Date: 2014-09-29 06:42+0000\n" "Last-Translator: Kazuhiro Shimbo \n" "Language-Team: Japanese (http://www.transifex.com/projects/p/airtime/language/ja/)\n" "MIME-Version: 1.0\n" @@ -3467,7 +3467,7 @@ msgstr "ステーション名 - 番組名" #: airtime_mvc/application/forms/StreamSetting.php:63 msgid "Off Air Metadata" -msgstr "" +msgstr "オフエアーメタデータ" #: airtime_mvc/application/forms/StreamSetting.php:69 msgid "Enable Replay Gain" From f0397bbc59f0b51b70ddba7d5ccddefc768bb72c Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Mon, 29 Sep 2014 18:22:10 +0000 Subject: [PATCH 04/20] PHP ini settings for cookies. --- airtime_mvc/public/index.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/airtime_mvc/public/index.php b/airtime_mvc/public/index.php index 7c6d5cfb4..5fcfa36d7 100644 --- a/airtime_mvc/public/index.php +++ b/airtime_mvc/public/index.php @@ -1,5 +1,15 @@ Date: Mon, 29 Sep 2014 22:48:52 +0000 Subject: [PATCH 05/20] Regenerate session ids. --- airtime_mvc/application/controllers/LoginController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airtime_mvc/application/controllers/LoginController.php b/airtime_mvc/application/controllers/LoginController.php index 84af7f954..5e9b70e31 100644 --- a/airtime_mvc/application/controllers/LoginController.php +++ b/airtime_mvc/application/controllers/LoginController.php @@ -56,6 +56,8 @@ class LoginController extends Zend_Controller_Action $result = $auth->authenticate($authAdapter); if ($result->isValid()) { + // Regenerate session id on login to prevent session fixation. + Zend_Session::regenerateId(); //all info about this user from the login table omit only the password $userInfo = $authAdapter->getResultRowObject(null, 'password'); From 2be4a5f9d051fcc0e04928079438f440a492960b Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Tue, 30 Sep 2014 23:09:27 +0000 Subject: [PATCH 06/20] Add form tokens to several forms. --- airtime_mvc/application/forms/EditUser.php | 4 ++++ airtime_mvc/application/forms/Login.php | 4 ++++ airtime_mvc/application/views/scripts/form/edit-user.phtml | 3 +++ airtime_mvc/application/views/scripts/form/login.phtml | 2 ++ airtime_mvc/public/js/libs/underscore-min.js | 1 - 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/forms/EditUser.php b/airtime_mvc/application/forms/EditUser.php index 8b8565fce..1ded293a4 100644 --- a/airtime_mvc/application/forms/EditUser.php +++ b/airtime_mvc/application/forms/EditUser.php @@ -22,6 +22,10 @@ class Application_Form_EditUser extends Zend_Form $this->setDecorators(array( array('ViewScript', array('viewScript' => 'form/edit-user.phtml', "currentUser" => $currentUser->getLogin())))); $this->setAttrib('id', 'current-user-form'); + + $this->addElement('hash', 'csrf', array( + 'salt' => 'unique' + )); $hidden = new Zend_Form_Element_Hidden('cu_user_id'); $hidden->setDecorators(array('ViewHelper')); diff --git a/airtime_mvc/application/forms/Login.php b/airtime_mvc/application/forms/Login.php index 02e942079..40f4da83f 100644 --- a/airtime_mvc/application/forms/Login.php +++ b/airtime_mvc/application/forms/Login.php @@ -10,6 +10,10 @@ class Application_Form_Login extends Zend_Form // Set the method for the display form to POST $this->setMethod('post'); + $this->addElement('hash', 'csrf', array( + 'salt' => 'unique' + )); + $this->setDecorators(array( array('ViewScript', array('viewScript' => 'form/login.phtml')) )); diff --git a/airtime_mvc/application/views/scripts/form/edit-user.phtml b/airtime_mvc/application/views/scripts/form/edit-user.phtml index 1cf55dba4..4b7d7cf53 100644 --- a/airtime_mvc/application/views/scripts/form/edit-user.phtml +++ b/airtime_mvc/application/views/scripts/form/edit-user.phtml @@ -157,6 +157,9 @@ + + element->getElement('csrf') ?> + diff --git a/airtime_mvc/application/views/scripts/form/login.phtml b/airtime_mvc/application/views/scripts/form/login.phtml index 34645f657..e8d80a84d 100644 --- a/airtime_mvc/application/views/scripts/form/login.phtml +++ b/airtime_mvc/application/views/scripts/form/login.phtml @@ -27,6 +27,8 @@
element->getElement('locale') ?>
+ + element->getElement('csrf') ?> diff --git a/airtime_mvc/public/js/libs/underscore-min.js b/airtime_mvc/public/js/libs/underscore-min.js index ef9ef9f40..15389262e 100644 --- a/airtime_mvc/public/js/libs/underscore-min.js +++ b/airtime_mvc/public/js/libs/underscore-min.js @@ -3,4 +3,3 @@ // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. !function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,v=e.reduce,h=e.reduceRight,d=e.filter,g=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Array.isArray,_=Object.keys,w=i.bind,j=function(n){return n instanceof j?n:this instanceof j?(this._wrapped=n,void 0):new j(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=j),exports._=j):n._=j,j.VERSION="1.5.1";var A=j.each=j.forEach=function(n,t,e){if(null!=n)if(s&&n.forEach===s)n.forEach(t,e);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(t.call(e,n[u],u,n)===r)return}else for(var a in n)if(j.has(n,a)&&t.call(e,n[a],a,n)===r)return};j.map=j.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(A(n,function(n,u,i){e.push(t.call(r,n,u,i))}),e)};var E="Reduce of empty array with no initial value";j.reduce=j.foldl=j.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)return e&&(t=j.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(A(n,function(n,i,a){u?r=t.call(e,r,n,i,a):(r=n,u=!0)}),!u)throw new TypeError(E);return r},j.reduceRight=j.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduceRight===h)return e&&(t=j.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=n.length;if(i!==+i){var a=j.keys(n);i=a.length}if(A(n,function(o,c,l){c=a?a[--i]:--i,u?r=t.call(e,r,n[c],c,l):(r=n[c],u=!0)}),!u)throw new TypeError(E);return r},j.find=j.detect=function(n,t,r){var e;return O(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},j.filter=j.select=function(n,t,r){var e=[];return null==n?e:d&&n.filter===d?n.filter(t,r):(A(n,function(n,u,i){t.call(r,n,u,i)&&e.push(n)}),e)},j.reject=function(n,t,r){return j.filter(n,function(n,e,u){return!t.call(r,n,e,u)},r)},j.every=j.all=function(n,t,e){t||(t=j.identity);var u=!0;return null==n?u:g&&n.every===g?n.every(t,e):(A(n,function(n,i,a){return(u=u&&t.call(e,n,i,a))?void 0:r}),!!u)};var O=j.some=j.any=function(n,t,e){t||(t=j.identity);var u=!1;return null==n?u:m&&n.some===m?n.some(t,e):(A(n,function(n,i,a){return u||(u=t.call(e,n,i,a))?r:void 0}),!!u)};j.contains=j.include=function(n,t){return null==n?!1:y&&n.indexOf===y?n.indexOf(t)!=-1:O(n,function(n){return n===t})},j.invoke=function(n,t){var r=o.call(arguments,2),e=j.isFunction(t);return j.map(n,function(n){return(e?t:n[t]).apply(n,r)})},j.pluck=function(n,t){return j.map(n,function(n){return n[t]})},j.where=function(n,t,r){return j.isEmpty(t)?r?void 0:[]:j[r?"find":"filter"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},j.findWhere=function(n,t){return j.where(n,t,!0)},j.max=function(n,t,r){if(!t&&j.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.max.apply(Math,n);if(!t&&j.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;a>e.computed&&(e={value:n,computed:a})}),e.value},j.min=function(n,t,r){if(!t&&j.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.min.apply(Math,n);if(!t&&j.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;ae||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.indexi;){var o=i+a>>>1;r.call(e,n[o])=0})})},j.difference=function(n){var t=c.apply(e,o.call(arguments,1));return j.filter(n,function(n){return!j.contains(t,n)})},j.zip=function(){for(var n=j.max(j.pluck(arguments,"length").concat(0)),t=new Array(n),r=0;n>r;r++)t[r]=j.pluck(arguments,""+r);return t},j.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},j.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=j.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}if(y&&n.indexOf===y)return n.indexOf(t,r);for(;u>e;e++)if(n[e]===t)return e;return-1},j.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=null!=r;if(b&&n.lastIndexOf===b)return e?n.lastIndexOf(t,r):n.lastIndexOf(t);for(var u=e?r:n.length;u--;)if(n[u]===t)return u;return-1},j.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=arguments[2]||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=0,i=new Array(e);e>u;)i[u++]=n,n+=r;return i};var M=function(){};j.bind=function(n,t){var r,e;if(w&&n.bind===w)return w.apply(n,o.call(arguments,1));if(!j.isFunction(n))throw new TypeError;return r=o.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(o.call(arguments)));M.prototype=n.prototype;var u=new M;M.prototype=null;var i=n.apply(u,r.concat(o.call(arguments)));return Object(i)===i?i:u}},j.partial=function(n){var t=o.call(arguments,1);return function(){return n.apply(this,t.concat(o.call(arguments)))}},j.bindAll=function(n){var t=o.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return A(t,function(t){n[t]=j.bind(n[t],n)}),n},j.memoize=function(n,t){var r={};return t||(t=j.identity),function(){var e=t.apply(this,arguments);return j.has(r,e)?r[e]:r[e]=n.apply(this,arguments)}},j.delay=function(n,t){var r=o.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},j.defer=function(n){return j.delay.apply(j,[n,1].concat(o.call(arguments,1)))},j.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var c=function(){o=r.leading===!1?0:new Date,a=null,i=n.apply(e,u)};return function(){var l=new Date;o||r.leading!==!1||(o=l);var f=t-(l-o);return e=this,u=arguments,0>=f?(clearTimeout(a),a=null,o=l,i=n.apply(e,u)):a||r.trailing===!1||(a=setTimeout(c,f)),i}},j.debounce=function(n,t,r){var e,u=null;return function(){var i=this,a=arguments,o=function(){u=null,r||(e=n.apply(i,a))},c=r&&!u;return clearTimeout(u),u=setTimeout(o,t),c&&(e=n.apply(i,a)),e}},j.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},j.wrap=function(n,t){return function(){var r=[n];return a.apply(r,arguments),t.apply(this,r)}},j.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length-1;r>=0;r--)t=[n[r].apply(this,t)];return t[0]}},j.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},j.keys=_||function(n){if(n!==Object(n))throw new TypeError("Invalid object");var t=[];for(var r in n)j.has(n,r)&&t.push(r);return t},j.values=function(n){var t=[];for(var r in n)j.has(n,r)&&t.push(n[r]);return t},j.pairs=function(n){var t=[];for(var r in n)j.has(n,r)&&t.push([r,n[r]]);return t},j.invert=function(n){var t={};for(var r in n)j.has(n,r)&&(t[n[r]]=r);return t},j.functions=j.methods=function(n){var t=[];for(var r in n)j.isFunction(n[r])&&t.push(r);return t.sort()},j.extend=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]=t[r]}),n},j.pick=function(n){var t={},r=c.apply(e,o.call(arguments,1));return A(r,function(r){r in n&&(t[r]=n[r])}),t},j.omit=function(n){var t={},r=c.apply(e,o.call(arguments,1));for(var u in n)j.contains(r,u)||(t[u]=n[u]);return t},j.defaults=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]===void 0&&(n[r]=t[r])}),n},j.clone=function(n){return j.isObject(n)?j.isArray(n)?n.slice():j.extend({},n):n},j.tap=function(n,t){return t(n),n};var S=function(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof j&&(n=n._wrapped),t instanceof j&&(t=t._wrapped);var u=l.call(n);if(u!=l.call(t))return!1;switch(u){case"[object String]":return n==String(t);case"[object Number]":return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object RegExp]":return n.source==t.source&&n.global==t.global&&n.multiline==t.multiline&&n.ignoreCase==t.ignoreCase}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]==n)return e[i]==t;var a=n.constructor,o=t.constructor;if(a!==o&&!(j.isFunction(a)&&a instanceof a&&j.isFunction(o)&&o instanceof o))return!1;r.push(n),e.push(t);var c=0,f=!0;if("[object Array]"==u){if(c=n.length,f=c==t.length)for(;c--&&(f=S(n[c],t[c],r,e)););}else{for(var s in n)if(j.has(n,s)&&(c++,!(f=j.has(t,s)&&S(n[s],t[s],r,e))))break;if(f){for(s in t)if(j.has(t,s)&&!c--)break;f=!c}}return r.pop(),e.pop(),f};j.isEqual=function(n,t){return S(n,t,[],[])},j.isEmpty=function(n){if(null==n)return!0;if(j.isArray(n)||j.isString(n))return 0===n.length;for(var t in n)if(j.has(n,t))return!1;return!0},j.isElement=function(n){return!(!n||1!==n.nodeType)},j.isArray=x||function(n){return"[object Array]"==l.call(n)},j.isObject=function(n){return n===Object(n)},A(["Arguments","Function","String","Number","Date","RegExp"],function(n){j["is"+n]=function(t){return l.call(t)=="[object "+n+"]"}}),j.isArguments(arguments)||(j.isArguments=function(n){return!(!n||!j.has(n,"callee"))}),"function"!=typeof/./&&(j.isFunction=function(n){return"function"==typeof n}),j.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},j.isNaN=function(n){return j.isNumber(n)&&n!=+n},j.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"==l.call(n)},j.isNull=function(n){return null===n},j.isUndefined=function(n){return n===void 0},j.has=function(n,t){return f.call(n,t)},j.noConflict=function(){return n._=t,this},j.identity=function(n){return n},j.times=function(n,t,r){for(var e=Array(Math.max(0,n)),u=0;n>u;u++)e[u]=t.call(r,u);return e},j.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};var I={escape:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}};I.unescape=j.invert(I.escape);var T={escape:new RegExp("["+j.keys(I.escape).join("")+"]","g"),unescape:new RegExp("("+j.keys(I.unescape).join("|")+")","g")};j.each(["escape","unescape"],function(n){j[n]=function(t){return null==t?"":(""+t).replace(T[n],function(t){return I[n][t]})}}),j.result=function(n,t){if(null==n)return void 0;var r=n[t];return j.isFunction(r)?r.call(n):r},j.mixin=function(n){A(j.functions(n),function(t){var r=j[t]=n[t];j.prototype[t]=function(){var n=[this._wrapped];return a.apply(n,arguments),z.call(this,r.apply(j,n))}})};var N=0;j.uniqueId=function(n){var t=++N+"";return n?n+t:t},j.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,B={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\t|\u2028|\u2029/g;j.template=function(n,t,r){var e;r=j.defaults({},r,j.templateSettings);var u=new RegExp([(r.escape||q).source,(r.interpolate||q).source,(r.evaluate||q).source].join("|")+"|$","g"),i=0,a="__p+='";n.replace(u,function(t,r,e,u,o){return a+=n.slice(i,o).replace(D,function(n){return"\\"+B[n]}),r&&(a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"),e&&(a+="'+\n((__t=("+e+"))==null?'':__t)+\n'"),u&&(a+="';\n"+u+"\n__p+='"),i=o+t.length,t}),a+="';\n",r.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{e=new Function(r.variable||"obj","_",a)}catch(o){throw o.source=a,o}if(t)return e(t,j);var c=function(n){return e.call(this,n,j)};return c.source="function("+(r.variable||"obj")+"){\n"+a+"}",c},j.chain=function(n){return j(n).chain()};var z=function(n){return this._chain?j(n).chain():n};j.mixin(j),A(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=e[n];j.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!=n&&"splice"!=n||0!==r.length||delete r[0],z.call(this,r)}}),A(["concat","join","slice"],function(n){var t=e[n];j.prototype[n]=function(){return z.call(this,t.apply(this._wrapped,arguments))}}),j.extend(j.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this); -//# sourceMappingURL=underscore-min.map \ No newline at end of file From dbed91546955cf641d888c9882c5fc8232939dd4 Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Wed, 1 Oct 2014 19:36:17 +0000 Subject: [PATCH 07/20] Tokens for preferences form. --- airtime_mvc/application/forms/Preferences.php | 8 ++++++++ .../application/views/scripts/form/preferences.phtml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/forms/Preferences.php b/airtime_mvc/application/forms/Preferences.php index e9e2edc9e..977cae355 100644 --- a/airtime_mvc/application/forms/Preferences.php +++ b/airtime_mvc/application/forms/Preferences.php @@ -15,6 +15,14 @@ class Application_Form_Preferences extends Zend_Form )); $general_pref = new Application_Form_GeneralPreferences(); + + $this->addElement('hash', 'csrf', array( + 'salt' => 'unique', + 'decorators' => array( + 'ViewHelper' + ) + )); + $this->addSubForm($general_pref, 'preferences_general'); $email_pref = new Application_Form_EmailServerPreferences(); diff --git a/airtime_mvc/application/views/scripts/form/preferences.phtml b/airtime_mvc/application/views/scripts/form/preferences.phtml index b9f2c34c0..afc324126 100644 --- a/airtime_mvc/application/views/scripts/form/preferences.phtml +++ b/airtime_mvc/application/views/scripts/form/preferences.phtml @@ -1,5 +1,5 @@
- + element->getElement('csrf') ?> element->getSubform('preferences_general') ?>

From 29b05343bdfa30da442bafb06ad2787e0ec3538a Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Wed, 1 Oct 2014 19:36:36 +0000 Subject: [PATCH 08/20] Tokens for add User. --- airtime_mvc/application/forms/AddUser.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airtime_mvc/application/forms/AddUser.php b/airtime_mvc/application/forms/AddUser.php index 1d3835ae7..24d311bde 100644 --- a/airtime_mvc/application/forms/AddUser.php +++ b/airtime_mvc/application/forms/AddUser.php @@ -21,6 +21,10 @@ class Application_Form_AddUser extends Zend_Form $hidden->setDecorators(array('ViewHelper')); $this->addElement($hidden); + $this->addElement('hash', 'csrf', array( + 'salt' => 'unique' + )); + $login = new Zend_Form_Element_Text('login'); $login->setLabel(_('Username:')); $login->setAttrib('class', 'input_text'); From 5c69eda010241e075c26c02c7064164a388d575d Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Wed, 1 Oct 2014 20:55:07 +0000 Subject: [PATCH 09/20] Tokens for Stream Settings page. --- airtime_mvc/application/controllers/PreferenceController.php | 4 ++++ .../application/views/scripts/preference/stream-setting.phtml | 1 + 2 files changed, 5 insertions(+) diff --git a/airtime_mvc/application/controllers/PreferenceController.php b/airtime_mvc/application/controllers/PreferenceController.php index 183cada01..84718c66d 100644 --- a/airtime_mvc/application/controllers/PreferenceController.php +++ b/airtime_mvc/application/controllers/PreferenceController.php @@ -201,6 +201,10 @@ class PreferenceController extends Zend_Controller_Action $num_of_stream = intval(Application_Model_Preference::GetNumOfStreams()); $form = new Application_Form_StreamSetting(); + $form->addElement('hash', 'csrf', array( + 'salt' => 'unique' + )); + $form->setSetting($setting); $form->startFrom(); diff --git a/airtime_mvc/application/views/scripts/preference/stream-setting.phtml b/airtime_mvc/application/views/scripts/preference/stream-setting.phtml index 058ec4ac9..29fbc6756 100644 --- a/airtime_mvc/application/views/scripts/preference/stream-setting.phtml +++ b/airtime_mvc/application/views/scripts/preference/stream-setting.phtml @@ -4,6 +4,7 @@ enable_stream_conf == "true"){?> + form->getElement('csrf') ?>
statusMsg;?> From feff7f4343541c958bc09c17ff67da75bb3f690e Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Thu, 2 Oct 2014 02:04:03 +0000 Subject: [PATCH 10/20] tokens for multipart data upload. --- .../controllers/PluploadController.php | 26 ++++++++++++++++--- .../views/scripts/plupload/index.phtml | 1 + .../public/js/airtime/library/plupload.js | 5 +++- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/airtime_mvc/application/controllers/PluploadController.php b/airtime_mvc/application/controllers/PluploadController.php index 9698b163a..42e64c8d6 100644 --- a/airtime_mvc/application/controllers/PluploadController.php +++ b/airtime_mvc/application/controllers/PluploadController.php @@ -24,15 +24,33 @@ class PluploadController extends Zend_Controller_Action $this->view->headScript()->appendFile($baseUrl.'js/plupload/i18n/'.$locale.'.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headLink()->appendStylesheet($baseUrl.'css/plupload.queue.css?'.$CC_CONFIG['airtime_version']); + + $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); + $csrf_namespace->setExpirationSeconds(900); + $csrf_namespace->authtoken = sha1(uniqid(rand(),1)); + + $csrf_element = new Zend_Form_Element_Hidden('csrf'); + $csrf_element->setValue($csrf_namespace->authtoken)->setRequired('true')->removeDecorator('HtmlTag')->removeDecorator('Label'); + $csrf_form = new Zend_Form(); + $csrf_form->addElement($csrf_element); + $this->view->form = $csrf_form; } public function uploadAction() { - $upload_dir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload"; - $tempFilePath = Application_Model_StoredFile::uploadFile($upload_dir); - $tempFileName = basename($tempFilePath); + $current_namespace = new Zend_Session_Namespace('csrf_namespace'); + $observed_csrf_token = $this->_getParam('csrf_token'); + $expected_csrf_token = $current_namespace->authtoken; - $this->_helper->json->sendJson(array("jsonrpc" => "2.0", "tempfilepath" => $tempFileName)); + if($observed_csrf_token == $expected_csrf_token){ + $upload_dir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload"; + $tempFilePath = Application_Model_StoredFile::uploadFile($upload_dir); + $tempFileName = basename($tempFilePath); + + $this->_helper->json->sendJson(array("jsonrpc" => "2.0", "tempfilepath" => $tempFileName)); + }else{ + $this->_helper->json->sendJson(array("jsonrpc" => "2.0", "valid" => false, "error" => "CSRF token did not match.")); + } } public function copyfileAction() diff --git a/airtime_mvc/application/views/scripts/plupload/index.phtml b/airtime_mvc/application/views/scripts/plupload/index.phtml index cf236b8d6..47187c63e 100644 --- a/airtime_mvc/application/views/scripts/plupload/index.phtml +++ b/airtime_mvc/application/views/scripts/plupload/index.phtml @@ -4,6 +4,7 @@ } + form->getElement('csrf') ?>
diff --git a/airtime_mvc/public/js/airtime/library/plupload.js b/airtime_mvc/public/js/airtime/library/plupload.js index 2d76b3383..2e7f0b56f 100644 --- a/airtime_mvc/public/js/airtime/library/plupload.js +++ b/airtime_mvc/public/js/airtime/library/plupload.js @@ -11,7 +11,10 @@ $(document).ready(function() { multiple_queues : 'true', filters : [ {title: "Audio Files", extensions: "ogg,mp3,oga,flac,wav,m4a,mp4,opus"} - ] + ], + multipart_params : { + "csrf_token" : $("#csrf").attr('value'), + } }); uploader = $("#plupload_files").pluploadQueue(); From 185d84dc0173f3fae5725fbaceb526dadf55c0a4 Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Fri, 3 Oct 2014 02:18:04 +0000 Subject: [PATCH 11/20] Increase the time token is valid for in case of long uploads. --- airtime_mvc/application/controllers/PluploadController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/PluploadController.php b/airtime_mvc/application/controllers/PluploadController.php index 42e64c8d6..4fdaa131b 100644 --- a/airtime_mvc/application/controllers/PluploadController.php +++ b/airtime_mvc/application/controllers/PluploadController.php @@ -26,7 +26,7 @@ class PluploadController extends Zend_Controller_Action $this->view->headLink()->appendStylesheet($baseUrl.'css/plupload.queue.css?'.$CC_CONFIG['airtime_version']); $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); - $csrf_namespace->setExpirationSeconds(900); + $csrf_namespace->setExpirationSeconds(5*60*60); $csrf_namespace->authtoken = sha1(uniqid(rand(),1)); $csrf_element = new Zend_Form_Element_Hidden('csrf'); From cf1d65363c5cd6e0dc17ff76438b2181c490b240 Mon Sep 17 00:00:00 2001 From: localizer Date: Fri, 3 Oct 2014 05:39:12 +0000 Subject: [PATCH 12/20] updated translation resources --- airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo | Bin 72359 -> 73271 bytes airtime_mvc/locale/ja/LC_MESSAGES/airtime.po | 22 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo index c9207fa8fd79079640bbca18df8ed08b3488f41d..f56f50eecda66d3cbd32982c40ddae660a0ce024 100644 GIT binary patch delta 18694 zcmb{3b#zw8zwhy#kOT;xkRX8&Ja{0u1@|JswK$|W1TF9oQXEQfE7l?iJDHIA6 zDN-N=DMgFxeSe-A?&6$#*IBV$rdGR@FLRsrL zjxTwWYjeuTdG)Rw=;0>mDSuKGf#`@%3A z7DsPvg4&T*w!R;xCmx8&8Q+N~94*ReywTnR=$yD^i#h3wq zMo!T=jv6Qt)$R@IKHo1)`;6$)3=5D+jYUx_tc2RCx~LAj<9Hl}T1oQyro#~2L>z|d zClR%i_fb3X6jR{~R6kw~9H%{IK}~E#1NL7XPNzUCTZOuDC#u7}7=?$h1Quy%9;z-F zPCOS=;|WZOmoWw2MfLLxHKA9S20xS-U2nqdrTYiDC9 zuCkuN7~;36XJ$mC8DK2xC}(3;T!K2fTd4j!H8$MFMTy&CL5xGKY&ZJjK}?SqZTtX(i9MQ{qYOdyR{?WlbF7T65w>72>Zwh{?C9N$ z!7wjsMPpH~XB^VEa}W1C6Ul`ESO)bBG(a6`TWcpg!}v}V8LhZ{ zE7KqbwWZ@w1IJnCqaMy>sE*g620DbA@Sm6#-yz5Bq-t&Ab{In32X%iOs^10fnDbvw zCJzPcQBVB^>od$soUVRCS7M8>u zY;UOE|CVHu;%L;$C!%IL19irWZ259jyS1nlY(Wk5i!Hy3fy9ZZEq{l)-}g)NaHg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/airtime/language/ja/)\n" "MIME-Version: 1.0\n" @@ -1007,11 +1007,11 @@ msgstr "オリジナルの長さ:" #: airtime_mvc/application/views/scripts/playlist/update.phtml:54 msgid "Expand Static Block" -msgstr "" +msgstr "スマート・ブロックの拡張" #: airtime_mvc/application/views/scripts/playlist/update.phtml:59 msgid "Expand Dynamic Block" -msgstr "" +msgstr "自動生成スマート・ブロックを拡張する" #: airtime_mvc/application/views/scripts/playlist/update.phtml:135 msgid "Empty smart block" @@ -1275,11 +1275,11 @@ msgstr "ウェブ配信" #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:46 msgid "Dynamic Smart Block" -msgstr "" +msgstr "自動生成スマート・ブロック" #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:47 msgid "Static Smart Block" -msgstr "" +msgstr "スマート・ブロック" #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:48 msgid "Audio Track" @@ -1291,11 +1291,11 @@ msgstr "プレイリストの内容:" #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:65 msgid "Static Smart Block Contents: " -msgstr "" +msgstr "スマート・ブロックの内容:" #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:104 msgid "Dynamic Smart Block Criteria: " -msgstr "" +msgstr "自動生成スマート・ブロックの基準:" #: airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml:137 msgid "Limit to " @@ -2015,7 +2015,7 @@ msgstr "お使いのブラウザはこのファイル形式の再生に対応し #: airtime_mvc/application/controllers/LocaleController.php:117 msgid "Dynamic block is not previewable" -msgstr "" +msgstr "自動生成スマート・ブロックはプレビューできません" #: airtime_mvc/application/controllers/LocaleController.php:118 msgid "Limit to: " @@ -2956,7 +2956,7 @@ msgstr "%sの古いバージョンを閲覧しています。" #: airtime_mvc/application/controllers/PlaylistController.php:123 msgid "You cannot add tracks to dynamic blocks." -msgstr "" +msgstr "自動生成スマート・ブロックにトラックを追加することはできません。" #: airtime_mvc/application/controllers/PlaylistController.php:144 #, php-format @@ -3636,11 +3636,11 @@ msgstr "スマートブロックの形式:" #: airtime_mvc/application/forms/SmartBlockCriteria.php:170 msgid "Static" -msgstr "" +msgstr "スマート・ブロック" #: airtime_mvc/application/forms/SmartBlockCriteria.php:171 msgid "Dynamic" -msgstr "" +msgstr "自動生成スマート・ブロック" #: airtime_mvc/application/forms/SmartBlockCriteria.php:285 msgid "Allow Repeat Tracks:" From b8613759596fc31293565c85d9f147f26d9e0533 Mon Sep 17 00:00:00 2001 From: localizer Date: Tue, 7 Oct 2014 13:42:14 +0000 Subject: [PATCH 13/20] updated translation resources --- .../locale/en_GB/LC_MESSAGES/airtime.mo | Bin 62418 -> 62418 bytes .../locale/en_GB/LC_MESSAGES/airtime.po | 2 +- .../locale/fr_FR/LC_MESSAGES/airtime.mo | Bin 69654 -> 69654 bytes .../locale/fr_FR/LC_MESSAGES/airtime.po | 2 +- .../locale/hu_HU/LC_MESSAGES/airtime.mo | Bin 68139 -> 68139 bytes .../locale/hu_HU/LC_MESSAGES/airtime.po | 2 +- airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo | Bin 73271 -> 73271 bytes airtime_mvc/locale/ja/LC_MESSAGES/airtime.po | 2 +- .../locale/pt_BR/LC_MESSAGES/airtime.mo | Bin 61996 -> 61996 bytes .../locale/pt_BR/LC_MESSAGES/airtime.po | 2 +- 10 files changed, 5 insertions(+), 5 deletions(-) diff --git a/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.mo index 6c893cf8726413c845bd6deb3e7d0118a97d59ab..d3300108325592382cbad70caf5919f2368d7b06 100644 GIT binary patch delta 25 hcmccgocYpo<_#0(a2Xot8kj2>8e5rco;AlJ8~~0r3BCXT delta 25 hcmccgocYpo<_#0(a2c5E8XGDY8dw=_o;AlJ8~~0$3A+FQ diff --git a/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po b/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po index a4ec0c8e3..c2d254564 100644 --- a/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/en_GB/LC_MESSAGES/airtime.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-07-31 10:11+0000\n" +"PO-Revision-Date: 2014-10-07 13:41+0000\n" "Last-Translator: Daniel James \n" "Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/airtime/language/en_GB/)\n" "MIME-Version: 1.0\n" diff --git a/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.mo index 518936b1c8e6f768c3176c7690aa9d2e7a195994..30bcc6fde6941b0a8c32194c4236d37cc280a4e0 100644 GIT binary patch delta 26 icmbQXfMwbOmJJi;a2p!v8kj2>8e5qdZk|1-x)=a|00~S0 delta 26 icmbQXfMwbOmJJi;a2r_a8X77XSXvnyZ=OA;x)=a|Z3$HX diff --git a/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po b/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po index 0751fb7ea..e3bb4213c 100644 --- a/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/fr_FR/LC_MESSAGES/airtime.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-09-11 09:33+0000\n" +"PO-Revision-Date: 2014-10-07 13:41+0000\n" "Last-Translator: AlbertFR \n" "Language-Team: French (France) (http://www.transifex.com/projects/p/airtime/language/fr_FR/)\n" "MIME-Version: 1.0\n" diff --git a/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.mo index a8ca831a01d67d54c5b69f899216ac8f0421278d..9679f72141ffa7493b64da4bcf35229e00be5005 100644 GIT binary patch delta 25 hcmZ2Ig=O^=mJJi;a2Xot8kj2>8e5rco;7D;E&zFG2|EA) delta 25 hcmZ2Ig=O^=mJJi;a2Z(W8W}1Wnphcbo;7D;E&zFz2|NG* diff --git a/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po b/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po index 770d8e84a..a06b95684 100644 --- a/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/hu_HU/LC_MESSAGES/airtime.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-08-21 14:11+0000\n" +"PO-Revision-Date: 2014-10-07 13:41+0000\n" "Last-Translator: Daniel James \n" "Language-Team: Hungarian (Hungary) (http://www.transifex.com/projects/p/airtime/language/hu_HU/)\n" "MIME-Version: 1.0\n" diff --git a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.mo index f56f50eecda66d3cbd32982c40ddae660a0ce024..d964292cdb7b8bae067d5f801d2a824b01b17bc8 100644 GIT binary patch delta 17 ZcmdnKhh_U7mJMvPnM@2ebIjIn1^_}H2Ce`A delta 17 ZcmdnKhh_U7mJMvPnT#zrbIjIn1^_}$2DShI diff --git a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po index 1093731ff..16d549711 100644 --- a/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/ja/LC_MESSAGES/airtime.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-10-03 05:39+0000\n" +"PO-Revision-Date: 2014-10-03 05:40+0000\n" "Last-Translator: Kazuhiro Shimbo \n" "Language-Team: Japanese (http://www.transifex.com/projects/p/airtime/language/ja/)\n" "MIME-Version: 1.0\n" diff --git a/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.mo index 8673325898c6070f3c1250e39c130ca0657edb4f..8ac337070b792fcb8799e26ebe17220e13e3b980 100644 GIT binary patch delta 25 hcmZ4Ugn7*q<_*Uua2Xot8kj2>8e5rczBnN|5dezL3GV;^ delta 25 hcmZ4Ugn7*q<_*Uua2Z(W8W}1WnphcbzBnN|5dez&3Ge^_ diff --git a/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po b/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po index 77d89954d..f8208013d 100644 --- a/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/pt_BR/LC_MESSAGES/airtime.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-08-21 14:11+0000\n" +"PO-Revision-Date: 2014-10-07 13:41+0000\n" "Last-Translator: Daniel James \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/airtime/language/pt_BR/)\n" "MIME-Version: 1.0\n" From 736acda14e2b075a6b8f04671878dbc5f627caac Mon Sep 17 00:00:00 2001 From: localizer Date: Thu, 9 Oct 2014 04:27:12 +0000 Subject: [PATCH 14/20] updated translation resources --- .../locale/es_ES/LC_MESSAGES/airtime.mo | Bin 63191 -> 63208 bytes .../locale/es_ES/LC_MESSAGES/airtime.po | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.mo b/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.m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657B diff --git a/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po b/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po index 945546f7f..318e50e00 100644 --- a/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po +++ b/airtime_mvc/locale/es_ES/LC_MESSAGES/airtime.po @@ -10,8 +10,8 @@ msgstr "" "Project-Id-Version: Airtime\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-13 12:58-0500\n" -"PO-Revision-Date: 2014-07-29 09:55+0000\n" -"Last-Translator: Daniel James \n" +"PO-Revision-Date: 2014-10-09 04:26+0000\n" +"Last-Translator: Víctor Carranza \n" "Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/airtime/language/es_ES/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" From 874adf0fb35319e185964749186c0359587636a4 Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Fri, 10 Oct 2014 15:49:56 +0000 Subject: [PATCH 15/20] Disable exit on error when checking if apache2.4 is installed. --- install_full/ubuntu/airtime-full-install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install_full/ubuntu/airtime-full-install b/install_full/ubuntu/airtime-full-install index 2a2fa824c..5b0522f73 100755 --- a/install_full/ubuntu/airtime-full-install +++ b/install_full/ubuntu/airtime-full-install @@ -29,8 +29,10 @@ echo "----------------------------------------------------" dist=`lsb_release -is` code=`lsb_release -cs` +set +e apache2 -v | grep "2\.4" > /dev/null apacheversion=$? +set -e #enable squeeze backports to get lame packages if [ "$dist" = "Debian" -a "$code" = "squeeze" ]; then From f29f30e3ac937d0649d34601e92ce44935f3a50c Mon Sep 17 00:00:00 2001 From: Robert Elder Date: Wed, 22 Oct 2014 14:37:47 +0000 Subject: [PATCH 16/20] Include base_dir in session namespaces. --- airtime_mvc/application/models/Auth.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Auth.php b/airtime_mvc/application/models/Auth.php index 37b9cae2e..fd39e0407 100644 --- a/airtime_mvc/application/models/Auth.php +++ b/airtime_mvc/application/models/Auth.php @@ -111,8 +111,11 @@ class Application_Model_Auth */ public static function pinSessionToClient($auth) { + $CC_CONFIG = Config::getConfig(); + $serverName = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : ""; $remoteAddr = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ""; - $auth->setStorage(new Zend_Auth_Storage_Session('Airtime' . $serverName . $remoteAddr . Application_Model_Preference::GetClientId())); + $sessionIdentifier = 'Airtime' . '-' . $serverName . '-' . $remoteAddr . '-' . Application_Model_Preference::GetClientId() . '-' . $CC_CONFIG["baseDir"]; + $auth->setStorage(new Zend_Auth_Storage_Session($sessionIdentifier)); } } From 598b18b65a0bdd068f9f5f231e8bc30874f5928c Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Fri, 24 Oct 2014 15:11:27 -0400 Subject: [PATCH 17/20] Added live-info-v2 and station metadata api calls --- airtime_mvc/application/common/DateHelper.php | 192 ++++++--- airtime_mvc/application/common/OsPath.php | 13 + .../application/controllers/ApiController.php | 371 ++++++++++++++---- airtime_mvc/application/models/Schedule.php | 92 +++-- airtime_mvc/application/models/Show.php | 222 ++++++++--- 5 files changed, 669 insertions(+), 221 deletions(-) diff --git a/airtime_mvc/application/common/DateHelper.php b/airtime_mvc/application/common/DateHelper.php index 07ef3bd18..ba280d285 100644 --- a/airtime_mvc/application/common/DateHelper.php +++ b/airtime_mvc/application/common/DateHelper.php @@ -70,18 +70,18 @@ class Application_Common_DateHelper public static function getUserTimezoneOffset() { - $userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); - $now = new DateTime("now", $userTimezone); - - return $now->format("Z"); + $userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); + $now = new DateTime("now", $userTimezone); + + return $now->format("Z"); } public static function getStationTimezoneOffset() { - $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); - $now = new DateTime("now", $stationTimezone); - - return $now->format("Z"); + $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); + $now = new DateTime("now", $stationTimezone); + + return $now->format("Z"); } /** @@ -90,12 +90,12 @@ class Application_Common_DateHelper */ public static function getTodayStationStartDateTime() { - $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); - $now = new DateTime("now", $stationTimezone); - - $now->setTime(0, 0, 0); - - return $now; + $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); + $now = new DateTime("now", $stationTimezone); + + $now->setTime(0, 0, 0); + + return $now; } /** @@ -104,13 +104,13 @@ class Application_Common_DateHelper */ public static function getTodayStationEndDateTime() { - $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); - $now = new DateTime("now", $stationTimezone); - - $now->add(new DateInterval("P1D")); - $now->setTime(0, 0, 0); - - return $now; + $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); + $now = new DateTime("now", $stationTimezone); + + $now->add(new DateInterval("P1D")); + $now->setTime(0, 0, 0); + + return $now; } /** @@ -119,17 +119,17 @@ class Application_Common_DateHelper */ public static function getWeekStartDateTime() { - $now = self::getTodayStationStartDateTime(); - + $now = self::getTodayStationStartDateTime(); + // our week starts on monday, but php week starts on sunday. $day = $now->format('w'); if ($day == 0) { - $day = 7; + $day = 7; } $dayDiff = $day - 1; if ($dayDiff > 0) { - $now->sub(new DateInterval("P{$dayDiff}D")); + $now->sub(new DateInterval("P{$dayDiff}D")); } return $now; @@ -250,13 +250,13 @@ class Application_Common_DateHelper * @return string in $format default Y-m-d H:i:s in station timezone */ public static function UTCStringToStationTimezoneString($datetime, $format="Y-m-d H:i:s") { - $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); - $utcTimezone = new DateTimeZone("UTC"); - - $d = new DateTime($datetime, $utcTimezone); - $d->setTimezone($stationTimezone); - - return $d->format($format); + $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); + $utcTimezone = new DateTimeZone("UTC"); + + $d = new DateTime($datetime, $utcTimezone); + $d->setTimezone($stationTimezone); + + return $d->format($format); } /* @@ -265,13 +265,13 @@ class Application_Common_DateHelper * @return string Y-m-d H:i:s in user's timezone */ public static function UTCStringToUserTimezoneString($datetime, $format="Y-m-d H:i:s") { - $userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); - $utcTimezone = new DateTimeZone("UTC"); - - $d = new DateTime($datetime, $utcTimezone); - $d->setTimezone($userTimezone); - - return $d->format($format); + $userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); + $utcTimezone = new DateTimeZone("UTC"); + + $d = new DateTime($datetime, $utcTimezone); + $d->setTimezone($userTimezone); + + return $d->format($format); } /* @@ -280,13 +280,13 @@ class Application_Common_DateHelper * @return string Y-m-d H:i:s in UTC timezone */ public static function UserTimezoneStringToUTCString($datetime, $format="Y-m-d H:i:s") { - $userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); - $utcTimezone = new DateTimeZone("UTC"); - - $d = new DateTime($datetime, $userTimezone); - $d->setTimezone($utcTimezone); + $userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); + $utcTimezone = new DateTimeZone("UTC"); + + $d = new DateTime($datetime, $userTimezone); + $d->setTimezone($utcTimezone); - return $d->format($format); + return $d->format($format); } /** @@ -299,19 +299,99 @@ class Application_Common_DateHelper */ public static function convertTimestamps(&$rows, $columnsToConvert, $domain="station") { - if (!is_array($rows)) { - return; - } - - $converter = "UTCStringTo".ucfirst($domain)."TimezoneString"; - - foreach ($rows as &$row) { - foreach ($columnsToConvert as $column) { - $row[$column] = self::$converter($row[$column]); - } - } + if (!is_array($rows)) { + return; + } + + $converter = "UTCStringTo".ucfirst($domain)."TimezoneString"; + + foreach ($rows as &$row) { + foreach ($columnsToConvert as $column) { + $row[$column] = self::$converter($row[$column]); + } + } } + /** + * Convert the columns given in the array $columnsToConvert in the + * database result $rows to local timezone. + * + * @param array $rows arrays of arrays containing database query result + * @param array $columnsToConvert array of column names to convert + * @param string $timezone convert to the given timezone. + * @param string $format time format to convert to + */ + public static function convertTimestampsToTimezone(&$rows, $columnsToConvert, $timezone, $format="Y-m-d H:i:s") + { + $timezone = strtolower($timezone); + // Check that the timezone is valid and rows is an array + if (!is_array($rows)) { + return; + } + + foreach ($rows as &$row) { + if (is_array($row)) { + foreach ($columnsToConvert as $column) { + if (array_key_exists($column, $row)) { + $newTimezone = new DateTimeZone($timezone); + $utcTimezone = new DateTimeZone("UTC"); + + $d = new DateTime($row[$column], $utcTimezone); + $d->setTimezone($newTimezone); + $row[$column] = $d->format($format); + } + } + self::convertTimestampsToTimezone($row, $columnsToConvert, $timezone, $format); + } + } + } + + /** + * Return the end date time in the given timezone + * + * @return DateTime + */ + public static function getEndDateTime($timezoneString, $days) + { + $timezone = new DateTimeZone($timezoneString); + $now = new DateTime("now", $timezone); + + $now->add(new DateInterval("P".$days."D")); + $now->setTime(0, 0, 0); + + return $now; + } + + /** + * Return a formatted string representing the + * given datetime in the given timezone + * + * @param unknown $datetime the time to convert + * @param unknown $timezone the timezone to convert to + * @param string $format the formatted string + */ + public static function UTCStringToTimezoneString($datetime, $timezone, $format="Y-m-d H:i:s") { + $d = new DateTime($datetime, new DateTimeZone("UTC")); + $timezone = strtolower($timezone); + $newTimezone = new DateTimeZone($timezone); + $d->setTimezone($newTimezone); + + return $d->format($format); + } + + /** + * Return the timezone offset in seconds for the given timezone + * + * @param unknown $userDefinedTimezone the timezone used to determine the offset + */ + public static function getTimezoneOffset($userDefinedTimezone) { + $now = new DateTimeZone($userDefinedTimezone); + + $d = new DateTime("now", $now); + return $d->format("Z"); + } + + /** * This function is used for calculations! Don't modify for display purposes! * diff --git a/airtime_mvc/application/common/OsPath.php b/airtime_mvc/application/common/OsPath.php index f052187ba..0921b773e 100644 --- a/airtime_mvc/application/common/OsPath.php +++ b/airtime_mvc/application/common/OsPath.php @@ -80,4 +80,17 @@ class Application_Common_OsPath{ return $baseUrl; } + + public static function formatDirectoryWithDirectorySeparators($dir) + { + if ($dir[0] != "/") { + $dir = "/".$dir; + } + + if ($dir[strlen($dir) -1] != "/") { + $dir = $dir."/"; + } + + return $dir; + } } diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 4ce7a5583..4001f7d50 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -5,7 +5,8 @@ class ApiController extends Zend_Controller_Action public function init() { - $ignoreAuth = array("live-info", "week-info"); + $ignoreAuth = array("live-info", "live-info-v2", "week-info", + "station-metadata", "station-logo"); $params = $this->getRequest()->getParams(); if (!in_array($params['action'], $ignoreAuth)) { @@ -245,77 +246,198 @@ class ApiController extends Zend_Controller_Action // disable the view and the layout $this->view->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); - + + $request = $this->getRequest(); + $utcTimeNow = gmdate("Y-m-d H:i:s"); $utcTimeEnd = ""; // if empty, getNextShows will use interval instead of end of day - - $request = $this->getRequest(); + + // default to the station timezone + $timezone = Application_Model_Preference::GetDefaultTimezone(); + $userDefinedTimezone = strtolower($request->getParam('timezone')); + $upcase = false; // only upcase the timezone abbreviations + $this->checkTimezone($userDefinedTimezone, $timezone, $upcase); + $type = $request->getParam('type'); - /* This is some *extremely* lazy programming that needs to bi fixed. For some reason + $limit = $request->getParam('limit'); + if ($limit == "" || !is_numeric($limit)) { + $limit = "5"; + } + /* This is some *extremely* lazy programming that needs to be fixed. For some reason * we are using two entirely different codepaths for very similar functionality (type = endofday * vs type = interval). Needs to be fixed for 2.3 - MK */ if ($type == "endofday") { - $limit = $request->getParam('limit'); - if ($limit == "" || !is_numeric($limit)) { - $limit = "5"; - } - + // make getNextShows use end of day $end = Application_Common_DateHelper::getTodayStationEndDateTime(); $end->setTimezone(new DateTimeZone("UTC")); $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); } - else { - $result = Application_Model_Schedule::GetPlayOrderRange(); - - // XSS exploit prevention - $result["previous"]["name"] = htmlspecialchars($result["previous"]["name"]); - $result["current"]["name"] = htmlspecialchars($result["current"]["name"]); - $result["next"]["name"] = htmlspecialchars($result["next"]["name"]); - } - + // XSS exploit prevention - foreach ($result["currentShow"] as &$current) { - $current["name"] = htmlspecialchars($current["name"]); - } - foreach ($result["nextShow"] as &$next) { - $next["name"] = htmlspecialchars($next["name"]); - } + $this->convertSpecialChars($result, array("name", "url")); + // apply user-defined timezone, or default to station + Application_Common_DateHelper::convertTimestampsToTimezone( + $result['currentShow'], + array("starts", "ends", "start_timestamp","end_timestamp"), + $timezone + ); + Application_Common_DateHelper::convertTimestampsToTimezone( + $result['nextShow'], + array("starts", "ends", "start_timestamp","end_timestamp"), + $timezone + ); - //For consistency, all times here are being sent in the station timezone, which - //seems to be what we've normalized everything to. - - //Convert the UTC scheduler time ("now") to the station timezone. - $result["schedulerTime"] = Application_Common_DateHelper::UTCStringToStationTimezoneString($result["schedulerTime"]); - $result["timezone"] = Application_Common_DateHelper::getStationTimezoneAbbreviation(); - $result["timezoneOffset"] = Application_Common_DateHelper::getStationTimezoneOffset(); - - //Convert from UTC to station time for Web Browser. - Application_Common_DateHelper::convertTimestamps($result["currentShow"], - array("starts", "ends", "start_timestamp", "end_timestamp"), - "station"); - Application_Common_DateHelper::convertTimestamps($result["nextShow"], - array("starts", "ends", "start_timestamp", "end_timestamp"), - "station"); - - //used by caller to determine if the airtime they are running or widgets in use is out of date. + //Convert the UTC scheduler time ("now") to the user-defined timezone. + $result["schedulerTime"] = Application_Common_DateHelper::UTCStringToTimezoneString($result["schedulerTime"], $timezone); + $result["timezone"] = $upcase ? strtoupper($timezone) : $timezone; + $result["timezoneOffset"] = Application_Common_DateHelper::getTimezoneOffset($timezone); + + // used by caller to determine if the airtime they are running or widgets in use is out of date. $result['AIRTIME_API_VERSION'] = AIRTIME_API_VERSION; header("Content-Type: application/json"); - + + if (version_compare(phpversion(), '5.4.0', '<')) { + $js = json_encode($result); + } else { + $js = json_encode($result, JSON_PRETTY_PRINT); + } // If a callback is not given, then just provide the raw JSON. - echo isset($_GET['callback']) ? $_GET['callback'].'('.json_encode($result).')' : json_encode($result); + echo isset($_GET['callback']) ? $_GET['callback'].'('.$js.')' : $js; } else { header('HTTP/1.0 401 Unauthorized'); print _('You are not allowed to access this resource. '); exit; } } + + /** + * Retrieve the currently playing show as well as upcoming shows. + * Number of shows returned and the time interval in which to + * get the next shows can be configured as GET parameters. + * + * Possible parameters: + * days - How many days to retrieve. + * Default is 2 (today + tomorrow). + * shows - How many shows to retrieve + * Default is 5. + * timezone - The timezone to send the times in + * Defaults to the station timezone + */ + public function liveInfoV2Action() + { + if (Application_Model_Preference::GetAllow3rdPartyApi()) { + // disable the view and the layout + $this->view->layout()->disableLayout(); + $this->_helper->viewRenderer->setNoRender(true); + + $request = $this->getRequest(); + + $utcTimeNow = gmdate("Y-m-d H:i:s"); + $utcTimeEnd = ""; // if empty, getNextShows will use interval instead of end of day + + // default to the station timezone + $timezone = Application_Model_Preference::GetDefaultTimezone(); + $userDefinedTimezone = strtolower($request->getParam('timezone')); + $upcase = false; // only upcase the timezone abbreviations + $this->checkTimezone($userDefinedTimezone, $timezone, $upcase); + + $daysToRetrieve = $request->getParam('days'); + $showsToRetrieve = $request->getParam('shows'); + if ($daysToRetrieve == "" || !is_numeric($daysToRetrieve)) { + $daysToRetrieve = "2"; + } + if ($showsToRetrieve == "" || !is_numeric($showsToRetrieve)) { + $showsToRetrieve = "5"; + } + + // set the end time to the day's start n days from now. + // days=1 will return shows until the end of the current day, + // days=2 will return shows until the end of tomorrow, etc. + $end = Application_Common_DateHelper::getEndDateTime($timezone, $daysToRetrieve); + $end->setTimezone(new DateTimeZone("UTC")); + $utcTimeEnd = $end->format("Y-m-d H:i:s"); + + $result = Application_Model_Schedule::GetPlayOrderRange($utcTimeEnd, $showsToRetrieve); + + // XSS exploit prevention + $this->convertSpecialChars($result, array("name", "url")); + // apply user-defined timezone, or default to station + $this->applyLiveTimezoneAdjustments($result, $timezone, $upcase); + + // used by caller to determine if the airtime they are running or widgets in use is out of date. + $result["station"]["AIRTIME_API_VERSION"] = AIRTIME_API_VERSION; + header("Content-Type: application/json"); + + if (version_compare(phpversion(), '5.4.0', '<')) { + $js = json_encode($result); + } else { + $js = json_encode($result, JSON_PRETTY_PRINT); + } + // If a callback is not given, then just provide the raw JSON. + echo isset($_GET['callback']) ? $_GET['callback'].'('.$js.')' : $js; + } else { + header('HTTP/1.0 401 Unauthorized'); + print _('You are not allowed to access this resource. '); + exit; + } + } + + /** + * Check that the value for the timezone the user gave is valid. + * If it is, override the default (station) timezone. + * If it's an abbreviation (pst, edt) we upcase the output. + * + * @param string $userDefinedTimezone the requested timezone value + * @param string $timezone the default timezone + * @param boolean $upcase whether the timezone output should be upcased + */ + private function checkTimezone($userDefinedTimezone, &$timezone, &$upcase) + { + $delimiter = "/"; + // if the user passes in a timezone in standard form ("Continent/City") + // we need to fix the downcased string by upcasing each word delimited by a / + if (strpos($userDefinedTimezone, $delimiter) !== false) { + $userDefinedTimezone = implode($delimiter, array_map('ucfirst', explode($delimiter, $userDefinedTimezone))); + } + // if the timezone defined by the user exists, use that + if (array_key_exists($userDefinedTimezone, timezone_abbreviations_list())) { + $timezone = $userDefinedTimezone; + $upcase = true; + } else if (in_array($userDefinedTimezone, timezone_identifiers_list())) { + $timezone = $userDefinedTimezone; + } + } + + /** + * If the user passed in a timezone parameter, adjust timezone-dependent + * variables in the result to reflect the given timezone. + * + * @param object $result reference to the object to send back to the user + * @param string $timezone the user's timezone parameter value + * @param boolean $upcase whether the timezone output should be upcased + */ + private function applyLiveTimezoneAdjustments(&$result, $timezone, $upcase) + { + Application_Common_DateHelper::convertTimestampsToTimezone( + $result, + array("starts", "ends", "start_timestamp","end_timestamp"), + $timezone + ); + + //Convert the UTC scheduler time ("now") to the user-defined timezone. + $result["station"]["schedulerTime"] = Application_Common_DateHelper::UTCStringToTimezoneString($result["station"]["schedulerTime"], $timezone); + $result["station"]["timezone"] = $upcase ? strtoupper($timezone) : $timezone; + } public function weekInfoAction() { @@ -328,50 +450,55 @@ class ApiController extends Zend_Controller_Action $weekStartDateTime = Application_Common_DateHelper::getWeekStartDateTime(); $dow = array("monday", "tuesday", "wednesday", "thursday", "friday", - "saturday", "sunday", "nextmonday", "nexttuesday", "nextwednesday", - "nextthursday", "nextfriday", "nextsaturday", "nextsunday"); + "saturday", "sunday", "nextmonday", "nexttuesday", "nextwednesday", + "nextthursday", "nextfriday", "nextsaturday", "nextsunday"); $result = array(); + + // default to the station timezone + $timezone = Application_Model_Preference::GetDefaultTimezone(); + $userDefinedTimezone = strtolower($this->getRequest()->getParam("timezone")); + // if the timezone defined by the user exists, use that + if (array_key_exists($userDefinedTimezone, timezone_abbreviations_list())) { + $timezone = $userDefinedTimezone; + } $utcTimezone = new DateTimeZone("UTC"); - $stationTimezone = new DateTimeZone(Application_Model_Preference::GetDefaultTimezone()); - + $weekStartDateTime->setTimezone($utcTimezone); $utcDayStart = $weekStartDateTime->format("Y-m-d H:i:s"); for ($i = 0; $i < 14; $i++) { - - //have to be in station timezone when adding 1 day for daylight savings. - $weekStartDateTime->setTimezone($stationTimezone); - $weekStartDateTime->add(new DateInterval('P1D')); - - //convert back to UTC to get the actual timestamp used for search. - $weekStartDateTime->setTimezone($utcTimezone); - + + //have to be in station timezone when adding 1 day for daylight savings. + $weekStartDateTime->setTimezone(new DateTimeZone($timezone)); + $weekStartDateTime->add(new DateInterval('P1D')); + + //convert back to UTC to get the actual timestamp used for search. + $weekStartDateTime->setTimezone($utcTimezone); + $utcDayEnd = $weekStartDateTime->format("Y-m-d H:i:s"); $shows = Application_Model_Show::getNextShows($utcDayStart, "ALL", $utcDayEnd); $utcDayStart = $utcDayEnd; - Application_Common_DateHelper::convertTimestamps( - $shows, + // convert to user-defined timezone, or default to station + Application_Common_DateHelper::convertTimestampsToTimezone( + $shows, array("starts", "ends", "start_timestamp","end_timestamp"), - "station" - ); + $timezone + ); - $result[$dow[$i]] = $shows; + $result[$dow[$i]] = $shows; } // XSS exploit prevention - foreach ($dow as $d) { - foreach ($result[$d] as &$show) { - $show["name"] = htmlspecialchars($show["name"]); - $show["url"] = htmlspecialchars($show["url"]); - } - } - + $this->convertSpecialChars($result, array("name", "url")); + //used by caller to determine if the airtime they are running or widgets in use is out of date. $result['AIRTIME_API_VERSION'] = AIRTIME_API_VERSION; header("Content-type: text/javascript"); + + $js = json_encode($result, JSON_PRETTY_PRINT); // If a callback is not given, then just provide the raw JSON. - echo isset($_GET['callback']) ? $_GET['callback'].'('.json_encode($result).')' : json_encode($result); + echo isset($_GET['callback']) ? $_GET['callback'].'('.$js.')' : $js; } else { header('HTTP/1.0 401 Unauthorized'); print _('You are not allowed to access this resource. '); @@ -427,6 +554,94 @@ class ApiController extends Zend_Controller_Action $this->_helper->json->sendJson(array("status"=>1, "message"=>"")); } + + /** + * Go through a given array and sanitize any potentially exploitable fields + * by passing them through htmlspecialchars + * + * @param unknown $arr the array to sanitize + * @param unknown $keys indexes of values to be sanitized + */ + private function convertSpecialChars(&$arr, $keys) + { + foreach ($arr as &$a) { + if (is_array($a)) { + foreach ($keys as &$key) { + if (array_key_exists($key, $a)) { + $a[$key] = htmlspecialchars($a[$key]); + } + } + $this->convertSpecialChars($a, $keys); + } + } + } + + /** + * API endpoint to provide station metadata + */ + public function stationMetadataAction() + { + if (Application_Model_Preference::GetAllow3rdPartyApi()) { + // disable the view and the layout + $this->view->layout()->disableLayout(); + $this->_helper->viewRenderer->setNoRender(true); + + $CC_CONFIG = Config::getConfig(); + $baseDir = Application_Common_OsPath::formatDirectoryWithDirectorySeparators($CC_CONFIG['baseDir']); + $path = 'http://'.$_SERVER['HTTP_HOST'].$baseDir."api/station-logo"; + + $result["name"] = Application_Model_Preference::GetStationName(); + $result["logo"] = $path; + $result["description"] = Application_Model_Preference::GetStationDescription(); + $result["timezone"] = Application_Model_Preference::GetDefaultTimezone(); + $result["locale"] = Application_Model_Preference::GetDefaultLocale(); + + // used by caller to determine if the airtime they are running or widgets in use is out of date. + $result['AIRTIME_API_VERSION'] = AIRTIME_API_VERSION; + header("Content-type: text/javascript"); + + $js = json_encode($result, JSON_PRETTY_PRINT); + // If a callback is not given, then just provide the raw JSON. + echo isset($_GET['callback']) ? $_GET['callback'].'('.$js.')' : $js; + } else { + header('HTTP/1.0 401 Unauthorized'); + print _('You are not allowed to access this resource. '); + exit; + } + } + + /** + * API endpoint to display the current station logo + */ + public function stationLogoAction() + { + if (Application_Model_Preference::GetAllow3rdPartyApi()) { + // disable the view and the layout + $this->view->layout()->disableLayout(); + $this->_helper->viewRenderer->setNoRender(true); + + $logo = Application_Model_Preference::GetStationLogo(); + // if there's no logo, just die - redirects to a 404 + if (!$logo || $logo === '') { + return; + } + + // we're passing this as an image instead of using it in a data uri, so decode it + $blob = base64_decode($logo); + + // use finfo to get the mimetype from the decoded blob + $f = finfo_open(); + $mime_type = finfo_buffer($f, $blob, FILEINFO_MIME_TYPE); + finfo_close($f); + + header("Content-type: " . $mime_type); + echo $blob; + } else { + header('HTTP/1.0 401 Unauthorized'); + print _('You are not allowed to access this resource. '); + exit; + } + } public function recordedShowsAction() { @@ -1043,8 +1258,8 @@ class ApiController extends Zend_Controller_Action if (!is_null($media_id) && $media_id > 0) { if (isset($data_arr->title)) { - - $data_title = substr($data_arr->title, 0, 1024); + + $data_title = substr($data_arr->title, 0, 1024); $previous_metadata = CcWebstreamMetadataQuery::create() ->orderByDbStartTime('desc') @@ -1060,9 +1275,9 @@ class ApiController extends Zend_Controller_Action } if ($do_insert) { - - $startDT = new DateTime("now", new DateTimeZone("UTC")); - + + $startDT = new DateTime("now", new DateTimeZone("UTC")); + $webstream_metadata = new CcWebstreamMetadata(); $webstream_metadata->setDbInstanceId($media_id); $webstream_metadata->setDbStartTime($startDT); diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 669cb6e2b..7dd3943fd 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -56,43 +56,79 @@ SQL; return $real_streams; } + /** * Returns data related to the scheduled items. - * - * @param int $p_prev - * @param int $p_next - * @return date */ - public static function GetPlayOrderRange($p_prev = 1, $p_next = 1) + public static function GetPlayOrderRange($utcTimeEnd = null, $showsToRetrieve = 5) { - //Everything in this function must be done in UTC. You will get a swift kick in the pants if you mess that up. - - if (!is_int($p_prev) || !is_int($p_next)) { - //must enter integers to specify ranges - Logging::info("Invalid range parameters: $p_prev or $p_next"); + // Everything in this function must be done in UTC. You will get a swift kick in the pants if you mess that up. - return array(); + // when timeEnd is unspecified, return to the default behaviour - set a range of 48 hours from current time + if (!$utcTimeEnd) { + $end = new DateTime(); + $end->add(new DateInterval("P2D")); // Add 2 days + $end->setTimezone(new DateTimeZone("UTC")); + $utcTimeEnd = $end->format("Y-m-d H:i:s"); } $utcNow = new DateTime("now", new DateTimeZone("UTC")); - - $shows = Application_Model_Show::getPrevCurrentNext($utcNow); + + $shows = Application_Model_Show::getPrevCurrentNext($utcNow, $utcTimeEnd, $showsToRetrieve); + $previousShowID = count($shows['previousShow'])>0?$shows['previousShow'][0]['instance_id']:null; + $currentShowID = count($shows['currentShow'])>0?$shows['currentShow']['instance_id']:null; + $nextShowID = count($shows['nextShow'])>0?$shows['nextShow'][0]['instance_id']:null; + $results = self::GetPrevCurrentNext($previousShowID, $currentShowID, $nextShowID, $utcNow); + + $range = array( + "station" => array ( + "env" => APPLICATION_ENV, + "schedulerTime" => $utcNow->format("Y-m-d H:i:s") + ), + //Previous, current, next songs! + "tracks" => array( + "previous" => $results['previous'], + "current" => $results['current'], + "next" => $results['next'] + ), + //Current and next shows + "shows" => array ( + "previous" => $shows['previousShow'], + "current" => $shows['currentShow'], + "next" => $shows['nextShow'] + ) + ); + + return $range; + } + + /** + * Old version of the function for backwards compatibility + */ + public static function GetPlayOrderRangeOld() + { + // Everything in this function must be done in UTC. You will get a swift kick in the pants if you mess that up. + + $utcNow = new DateTime("now", new DateTimeZone("UTC")); + + $shows = Application_Model_Show::getPrevCurrentNextOld($utcNow); $previousShowID = count($shows['previousShow'])>0?$shows['previousShow'][0]['instance_id']:null; $currentShowID = count($shows['currentShow'])>0?$shows['currentShow'][0]['instance_id']:null; $nextShowID = count($shows['nextShow'])>0?$shows['nextShow'][0]['instance_id']:null; $results = self::GetPrevCurrentNext($previousShowID, $currentShowID, $nextShowID, $utcNow); - - $range = array("env"=>APPLICATION_ENV, - "schedulerTime"=> $utcNow->format("Y-m-d H:i:s"), - //Previous, current, next songs! - "previous"=>$results['previous'] !=null?$results['previous']:(count($shows['previousShow'])>0?$shows['previousShow'][0]:null), - "current"=>$results['current'] !=null?$results['current']:((count($shows['currentShow'])>0 && $shows['currentShow'][0]['record'] == 1)?$shows['currentShow'][0]:null), - "next"=> $results['next'] !=null?$results['next']:(count($shows['nextShow'])>0?$shows['nextShow'][0]:null), - //Current and next shows - "currentShow"=>$shows['currentShow'], - "nextShow"=>$shows['nextShow'], + + $range = array( + "env" => APPLICATION_ENV, + "schedulerTime" => $utcNow->format("Y-m-d H:i:s"), + //Previous, current, next songs! + "previous"=>$results['previous'] !=null?$results['previous']:(count($shows['previousShow'])>0?$shows['previousShow'][0]:null), + "current"=>$results['current'] !=null?$results['current']:((count($shows['currentShow'])>0 && $shows['currentShow'][0]['record'] == 1)?$shows['currentShow'][0]:null), + "next"=> $results['next'] !=null?$results['next']:(count($shows['nextShow'])>0?$shows['nextShow'][0]:null), + //Current and next shows + "currentShow"=>$shows['currentShow'], + "nextShow"=>$shows['nextShow'] ); - + return $range; } @@ -111,7 +147,7 @@ SQL; $timeZone = new DateTimeZone("UTC"); //This function works entirely in UTC. assert(get_class($utcNow) === "DateTime"); assert($utcNow->getTimeZone() == $timeZone); - + if ($p_previousShowID == null && $p_currentShowID == null && $p_nextShowID == null) { return; } @@ -170,15 +206,15 @@ SQL; $results['next'] = null; for ($i = 0; $i < $numberOfRows; ++$i) { - + // if the show is overbooked, then update the track end time to the end of the show time. if ($rows[$i]['ends'] > $rows[$i]["show_ends"]) { $rows[$i]['ends'] = $rows[$i]["show_ends"]; } - + $curShowStartTime = new DateTime($rows[$i]['starts'], $timeZone); $curShowEndTime = new DateTime($rows[$i]['ends'], $timeZone); - + if (($curShowStartTime <= $utcNow) && ($curShowEndTime >= $utcNow)) { if ($i - 1 >= 0) { $results['previous'] = array("name"=>$rows[$i-1]["artist_name"]." - ".$rows[$i-1]["track_title"], diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 61ebb8888..1f7452adf 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -1106,14 +1106,14 @@ SQL; } /** - * Gets the current show, previous and next with an 2day window from - * the given timeNow, so timeNow-2days and timeNow+2days. + * Gets the current show, previous and next with an n-day window from + * the given timeNow, so timeNow-2days and timeNow+$daysToRetrieve days. * * @param $utcNow A DateTime object containing the current time in UTC. - * @return An array (with stupid sub-arrays) containing the previous show id, - * current show id, and next show id. + * @return An array containing the previous show, + * current show, and next show. */ - public static function getPrevCurrentNext($utcNow) + public static function getPrevCurrentNext($utcNow, $utcEndStr, $showsToRetrieve) { $timeZone = new DateTimeZone("UTC"); //This function works entirely in UTC. assert(get_class($utcNow) === "DateTime"); @@ -1121,16 +1121,108 @@ SQL; $CC_CONFIG = Config::getConfig(); $con = Propel::getConnection(); - // + + // This will fetch the currently playing show first, then any + // upcoming shows within our interval, and finally move on to + // previous shows in the past 2 days. + $sql = <<= :timeNow::timestamp - INTERVAL '2 days' + AND si.starts < :timeEnd::timestamp + AND modified_instance != TRUE +ORDER BY + CASE + WHEN si.ends > :timeNow::timestamp + AND si.starts < :timeNow::timestamp THEN 1 + WHEN si.starts > :timeNow::timestamp THEN 2 + ELSE 3 + END +LIMIT :lim +SQL; + + $stmt = $con->prepare($sql); + + $utcNowStr = $utcNow->format("Y-m-d H:i:s"); + $stmt->bindValue(':timeNow', $utcNowStr); + $stmt->bindValue(':timeEnd', $utcEndStr); + $stmt->bindValue(':lim', $showsToRetrieve); + + if ($stmt->execute()) { + // use PDO::FETCH_ASSOC to only get the associative values + // note that fetchAll() defaults to PDO::FETCH_BOTH, which we don't want + $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); + } else { + $msg = implode(',', $stmt->errorInfo()); + throw new Exception("Error: $msg"); + } + + $numberOfRows = count($rows); + + $results['previousShow'] = array(); + $results['currentShow'] = null; + $results['nextShow'] = array(); + + for ($i = 0; $i < $numberOfRows; ++$i) { + // all shows start/end times are stored in the database as UTC. + $showStartTime = new DateTime($rows[$i]['starts'], $timeZone); + $showEndTime = new DateTime($rows[$i]['ends'], $timeZone); + + // Find the show that is within the current time. + if (($showStartTime <= $utcNow) && ($showEndTime > $utcNow)) { + $results['currentShow'] = $rows[$i]; + } else if ($showEndTime < $utcNow ) { + array_push($results['previousShow'], $rows[$i]); + } else if ($showStartTime > $utcNow) { + array_push($results['nextShow'], $rows[$i]); + } + } + + return $results; + } + + /** + * Gets the current show, previous and next with an 2day window from + * the given timeNow, so timeNow-2days and timeNow+2days. + * + * @param $utcNow A DateTime object containing the current time in UTC. + * @return An array (with stupid sub-arrays) containing the previous show id, + * current show id, and next show id. + */ + public static function getPrevCurrentNextOld($utcNow) + { + $timeZone = new DateTimeZone("UTC"); //This function works entirely in UTC. + assert(get_class($utcNow) === "DateTime"); + assert($utcNow->getTimeZone() == $timeZone); + + $CC_CONFIG = Config::getConfig(); + $con = Propel::getConnection(); + //TODO, returning starts + ends twice (once with an alias). Unify this after the 2.0 release. --Martin $sql = <<prepare($sql); - + $utcNowStr = $utcNow->format("Y-m-d H:i:s"); $stmt->bindValue(':timeNow1', $utcNowStr); $stmt->bindValue(':timeNow2', $utcNowStr); - + if ($stmt->execute()) { - $rows = $stmt->fetchAll(); + $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); } else { $msg = implode(',', $stmt->errorInfo()); throw new Exception("Error: $msg"); } - + $numberOfRows = count($rows); - + $results['previousShow'] = array(); $results['currentShow'] = array(); $results['nextShow'] = array(); - + for ($i = 0; $i < $numberOfRows; ++$i) { //All shows start/end times are stored in the database as UTC. $showStartTime = new DateTime($rows[$i]['starts'], $timeZone); $showEndTime = new DateTime($rows[$i]['ends'], $timeZone); - + //Find the show that is within the current time. - if (($showStartTime <= $utcNow) && ($showEndTime > $utcNow)) - { + if (($showStartTime <= $utcNow) && ($showEndTime > $utcNow)) + { if ($i-1 >= 0) { $results['previousShow'][0] = array( - "id" => $rows[$i-1]['id'], - "instance_id" => $rows[$i-1]['instance_id'], - "name" => $rows[$i-1]['name'], - "url" => $rows[$i-1]['url'], - "start_timestamp" => $rows[$i-1]['start_timestamp'], - "end_timestamp" => $rows[$i-1]['end_timestamp'], - "starts" => $rows[$i-1]['starts'], - "ends" => $rows[$i-1]['ends'], - "record" => $rows[$i-1]['record'], - "type" => "show"); + "id" => $rows[$i-1]['id'], + "instance_id" => $rows[$i-1]['instance_id'], + "instance_description" => $rows[$i-1]['instance_description'], + "name" => $rows[$i-1]['name'], + "description" => $rows[$i-1]['description'], + "url" => $rows[$i-1]['url'], + "start_timestamp" => $rows[$i-1]['start_timestamp'], + "end_timestamp" => $rows[$i-1]['end_timestamp'], + "starts" => $rows[$i-1]['starts'], + "ends" => $rows[$i-1]['ends'], + "record" => $rows[$i-1]['record'], + "image_path" => $rows[$i-1]['image_path'], + "type" => "show"); } - + $results['currentShow'][0] = $rows[$i]; - + if (isset($rows[$i+1])) { $results['nextShow'][0] = array( - "id" => $rows[$i+1]['id'], - "instance_id" => $rows[$i+1]['instance_id'], - "name" => $rows[$i+1]['name'], - "url" => $rows[$i+1]['url'], - "start_timestamp" => $rows[$i+1]['start_timestamp'], - "end_timestamp" => $rows[$i+1]['end_timestamp'], - "starts" => $rows[$i+1]['starts'], - "ends" => $rows[$i+1]['ends'], - "record" => $rows[$i+1]['record'], - "type" => "show"); + "id" => $rows[$i+1]['id'], + "instance_id" => $rows[$i+1]['instance_id'], + "instance_description" => $rows[$i+1]['instance_description'], + "name" => $rows[$i+1]['name'], + "description" => $rows[$i+1]['description'], + "url" => $rows[$i+1]['url'], + "start_timestamp" => $rows[$i+1]['start_timestamp'], + "end_timestamp" => $rows[$i+1]['end_timestamp'], + "starts" => $rows[$i+1]['starts'], + "ends" => $rows[$i+1]['ends'], + "record" => $rows[$i+1]['record'], + "image_path" => $rows[$i+1]['image_path'], + "type" => "show"); } break; } @@ -1208,34 +1306,40 @@ SQL; //if we hit this we know we've gone to far and can stop looping. if ($showStartTime > $utcNow) { $results['nextShow'][0] = array( - "id" => $rows[$i]['id'], - "instance_id" => $rows[$i]['instance_id'], - "name" => $rows[$i]['name'], - "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'], - "type" => "show"); + "id" => $rows[$i]['id'], + "instance_id" => $rows[$i]['instance_id'], + "instance_description" => $rows[$i]['instance_description'], + "name" => $rows[$i]['name'], + "description" => $rows[$i]['description'], + "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"); break; } } //If we didn't find a a current show because the time didn't fit we may still have //found a previous show so use it. if (count($results['previousShow']) == 0 && isset($previousShowIndex)) { - $results['previousShow'][0] = array( - "id" => $rows[$previousShowIndex]['id'], - "instance_id" => $rows[$previousShowIndex]['instance_id'], - "name" => $rows[$previousShowIndex]['name'], - "start_timestamp" => $rows[$previousShowIndex]['start_timestamp'], - "end_timestamp" => $rows[$previousShowIndex]['end_timestamp'], - "starts" => $rows[$previousShowIndex]['starts'], - "ends" => $rows[$previousShowIndex]['ends'], - "record" => $rows[$previousShowIndex]['record'], - "type" => "show"); + $results['previousShow'][0] = array( + "id" => $rows[$previousShowIndex]['id'], + "instance_id" => $rows[$previousShowIndex]['instance_id'], + "instance_description" => $rows[$previousShowIndex]['instance_description'], + "name" => $rows[$previousShowIndex]['name'], + "description" => $rows[$previousShowIndex]['description'], + "start_timestamp" => $rows[$previousShowIndex]['start_timestamp'], + "end_timestamp" => $rows[$previousShowIndex]['end_timestamp'], + "starts" => $rows[$previousShowIndex]['starts'], + "ends" => $rows[$previousShowIndex]['ends'], + "record" => $rows[$previousShowIndex]['record'], + "image_path" => $rows[$previousShowIndex]['image_path'], + "type" => "show"); } - + return $results; } From d467714f84b46d650fd8df37c04f94efbc8d1588 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Mon, 27 Oct 2014 15:42:30 -0400 Subject: [PATCH 18/20] Fixed bug where timezone wasn't adjusting correctly when adding or editing a show --- airtime_mvc/public/js/airtime/schedule/add-show.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airtime_mvc/public/js/airtime/schedule/add-show.js b/airtime_mvc/public/js/airtime/schedule/add-show.js index 5e0ad5b37..0d22188c4 100644 --- a/airtime_mvc/public/js/airtime/schedule/add-show.js +++ b/airtime_mvc/public/js/airtime/schedule/add-show.js @@ -346,6 +346,8 @@ function setAddShowEvents(form) { startTimeField.val(json.start.time); endDateField.val(json.end.date); endTimeField.val(json.end.time); + // Change the timezone now that we've updated the times + currentTimezone = newTimezone; }); }); From e6cf1c7cb9a1f5987ac6df215bc812f16dda1b25 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Mon, 27 Oct 2014 15:52:14 -0400 Subject: [PATCH 19/20] Updated occurrence of GetPlayOrderRange to use old version for backwards compatibility --- airtime_mvc/application/controllers/ScheduleController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index a430e15e5..99a17f19a 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -261,7 +261,7 @@ class ScheduleController extends Zend_Controller_Action public function getCurrentPlaylistAction() { - $range = Application_Model_Schedule::GetPlayOrderRange(); + $range = Application_Model_Schedule::GetPlayOrderRangeOld(); $show = Application_Model_Show::getCurrentShow(); /* Convert all UTC times to localtime before sending back to user. */ From d4e8eed51d8845a9475685b4b1e68caac818f447 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Mon, 27 Oct 2014 15:52:58 -0400 Subject: [PATCH 20/20] Marked old functions for API calls as deprecated --- airtime_mvc/application/models/Schedule.php | 1 + airtime_mvc/application/models/Show.php | 1 + 2 files changed, 2 insertions(+) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 7dd3943fd..334aac4f1 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -104,6 +104,7 @@ SQL; /** * Old version of the function for backwards compatibility + * @deprecated */ public static function GetPlayOrderRangeOld() { diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 1f7452adf..b0507dba6 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -1201,6 +1201,7 @@ SQL; * @param $utcNow A DateTime object containing the current time in UTC. * @return An array (with stupid sub-arrays) containing the previous show id, * current show id, and next show id. + * @deprecated */ public static function getPrevCurrentNextOld($utcNow) {