<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Delete recordings from FOP2 + permissions]]></title><description><![CDATA[<p dir="auto">Is it possible to have a little red X next to each recording on the recordings page so certain people can delete recordings with the GUI?</p>
<p dir="auto"><em><a href="https://img.skitch.com/20120210-fyfyfa8ufa3ekehk1ffn4rxd5h.png" rel="nofollow ugc">https://img.skitch.com/20120210-fyfyfa8ufa3ekehk1ffn4rxd5h.png</a></em></p>
]]></description><link>http://localhost:4567/topic/1042/delete-recordings-from-fop2-permissions</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 04:58:03 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1042.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Feb 2012 16:18:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Delete recordings from FOP2 + permissions on Wed, 22 Feb 2012 22:13:28 GMT]]></title><description><![CDATA[<p dir="auto">I found the file and it worked, Thanks for your help</p>
]]></description><link>http://localhost:4567/post/4654</link><guid isPermaLink="true">http://localhost:4567/post/4654</guid><dc:creator><![CDATA[rookie01]]></dc:creator><pubDate>Wed, 22 Feb 2012 22:13:28 GMT</pubDate></item><item><title><![CDATA[Reply to Delete recordings from FOP2 + permissions on Wed, 22 Feb 2012 19:12:55 GMT]]></title><description><![CDATA[<p dir="auto">You have to edit /var/www/html/fop2/recordings.php</p>
<p dir="auto">(not download.php)</p>
]]></description><link>http://localhost:4567/post/4653</link><guid isPermaLink="true">http://localhost:4567/post/4653</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 22 Feb 2012 19:12:55 GMT</pubDate></item><item><title><![CDATA[Reply to Delete recordings from FOP2 + permissions on Wed, 22 Feb 2012 00:50:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I looked at the /usr/src/fop2/html/download.php file but i couldnt find that line?</p>
<p dir="auto">We are using version 2.24</p>
<p dir="auto">here is what is in our file:</p>
<p dir="auto">++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p>
<p dir="auto">?php<br />
define("MYAP",  "FOP2");<br />
define("TITLE", "Flash Operator Panel 2");<br />
if(isset($_SERVER['PATH_INFO'])) {<br />
define("SELF",  substr($_SERVER['PHP_SELF'], 0, (strlen($_SERVER['PHP_SELF']) - @strlen($_SERVER['PATH_INFO']))));<br />
} else {<br />
define("SELF",  $_SERVER['PHP_SELF']);<br />
}</p>
<p dir="auto">// Session start<br />
session_start();</p>
<p dir="auto">if(!isset($_REQUEST['file'])) {<br />
die("No filename specified");<br />
}</p>
<p dir="auto">list ($getid,$filename2) = preg_split("/!/",$_REQUEST['file'],2);<br />
$filename2 = preg_replace("/../","",$filename2);<br />
$filename2 = preg_replace("/%2e/","",$filename2);<br />
$filename2 = preg_replace("//+/","/",$filename2);<br />
$file_extension = strtolower(substr(strrchr($filename2,"."),1));</p>
<p dir="auto">// required for IE, otherwise Content-disposition is ignored<br />
if(ini_get('zlib.output_compression')) {<br />
ini_set('zlib.output_compression', 'Off');<br />
}</p>
<p dir="auto">if(!isset($_SESSION[MYAP]['vpath'])) {<br />
die("unavailable");<br />
}</p>
<p dir="auto">if($_SESSION[MYAP]['vfile'] &lt;&gt; $filename2) {<br />
die("unavailable");<br />
}</p>
<p dir="auto">if(!stristr($_SESSION[MYAP]['vfile'],$_SESSION[MYAP]['vpath']) &amp;&amp; !stristr($_SESSION[MYAP]['vfile'],'/var/spool/asterisk/monitor/fop2')) {<br />
die("unavailable");<br />
}</p>
<p dir="auto">$realid=md5($_SESSION[MYAP]['key']);</p>
<p dir="auto">if($realid&lt;&gt;$getid) {<br />
die("invalid id");<br />
}</p>
<p dir="auto">if($file_extension&lt;&gt;"wav" &amp;&amp; $file_extension&lt;&gt;"WAV" &amp;&amp; $file_extension&lt;&gt;"gsm") {<br />
die("Only wav or gsm allowed");<br />
}</p>
<p dir="auto">if( $filename2 == "" ) {<br />
echo "ERROR: download file NOT SPECIFIED.";<br />
exit;<br />
} elseif ( ! file_exists( $filename2 ) ) {<br />
echo "ERROR: File not found.";<br />
exit;<br />
}</p>
<p dir="auto">header("Pragma: public"); // required<br />
header("Expires: 0");<br />
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");<br />
header("Cache-Control: private",false); // required for certain browsers<br />
header("Content-Type: application/octet-stream");<br />
header("Content-Disposition: attachment; filename="".basename($filename2)."";" );<br />
header("Content-Transfer-Encoding: binary");<br />
header("Content-Length: ".filesize($filename2));<br />
readfile("$filename2");<br />
exit();<br />
?&gt;<br />
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p>
]]></description><link>http://localhost:4567/post/4652</link><guid isPermaLink="true">http://localhost:4567/post/4652</guid><dc:creator><![CDATA[rookie01]]></dc:creator><pubDate>Wed, 22 Feb 2012 00:50:17 GMT</pubDate></item><item><title><![CDATA[Reply to Delete recordings from FOP2 + permissions on Wed, 22 Feb 2012 00:31:45 GMT]]></title><description><![CDATA[<p dir="auto">If you want to remove them from the GUI you have to find the record in the fop2recordings mysql table and delete it from there. There is an easy fix for removing database entries (but not the file itself), you can edit the recordings.php file and change the line that says:</p>
<pre><code>$grid-&gt;allow_delete(false);
</code></pre>
<p dir="auto">to</p>
<pre><code>$grid-&gt;allow_delete(true);
</code></pre>
<p dir="auto">The file itself will remain on disk when you remove the database entry.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/4651</link><guid isPermaLink="true">http://localhost:4567/post/4651</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 22 Feb 2012 00:31:45 GMT</pubDate></item><item><title><![CDATA[Reply to Delete recordings from FOP2 + permissions on Mon, 20 Feb 2012 23:34:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi Guys,</p>
<p dir="auto">We would also like to have this option.</p>
<p dir="auto">We look after about 10 different companies that use Fop2 and they have all asked for this feature to be able to delete either old recordings that are no longer needed or accidental recordings.</p>
<p dir="auto">If we remove the files for them from the command line they still show up in the GUI  but when you click on the file it says "ERROR: file not found" is the a way if you remove it from the command line to also remove it from the GUI?</p>
<p dir="auto">Regards,<br />
Kane</p>
]]></description><link>http://localhost:4567/post/4650</link><guid isPermaLink="true">http://localhost:4567/post/4650</guid><dc:creator><![CDATA[rookie01]]></dc:creator><pubDate>Mon, 20 Feb 2012 23:34:31 GMT</pubDate></item><item><title><![CDATA[Reply to Delete recordings from FOP2 + permissions on Sat, 11 Feb 2012 15:02:23 GMT]]></title><description><![CDATA[<p dir="auto">It would be possible, but also a potential security risk. Not sure if this is a feature I would like to implement. And it will only work on local file systems.</p>
]]></description><link>http://localhost:4567/post/4649</link><guid isPermaLink="true">http://localhost:4567/post/4649</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sat, 11 Feb 2012 15:02:23 GMT</pubDate></item></channel></rss>