Esempio n. 1
0
                <li <?php 
if ($ID == 'facaParte') {
    setCurrent();
}
?>
><a href="?cod=facaParte">Faça Parte</a></li> <!-- html -->
                <li <?php 
if ($ID == 'contato') {
    setCurrent();
}
?>
><a href="?cod=contato">Contato</a></li> <!-- mandar por e-mail -->
                <div id="data">                 
                    <li <?php 
if ($ID == 'login') {
    setCurrent();
}
?>
><a href="?cod=login">Faça seu login</a></li>
                </div>
            </ul>
<?php 
// put your code here
?>
        </div> <!-- FIM do menu !-->
        <div id="leftside">
		<h2> Links Úteis</h2><br/>
		<a href='http://www.ufms.br' target= '_blank'><img src = 'images/left-side/logo-ufms.png'/>  </a><br/><br/><hr/>
		<a href='http://www.facom.ufms.br' target= '_blank'><img src = 'images/left-side/logo-facom.png'/>  </a><br/><br/><hr/>
		<a href='http://sigpet.mec.gov.br/' target= '_blank'><img src = 'images/left-side/sigpet_logo.png'/>  </a><br/><br/><hr/>
		<a href='http://www.del.ufms.br/pet/' target= '_blank'><img src = 'images/left-side/logo-engele.png'/>  </a><br/><br/><hr/>
Esempio n. 2
0
function play($file)
{
    $app = Slim\Slim::getInstance();
    $log = $app->getLog();
    $log->info("-> playFile: {$file}");
    $out = '';
    $info = pathinfo($file);
    $picture_extensions = array("jpg", "JPG", "png");
    $extension = $info['extension'];
    $title = basename($file, '.' . $extension);
    if (in_array($extension, $picture_extensions)) {
        //shell_exec ('cp ' . escapeshellarg($file) . ' /tmp/fim_current');
        $out = 'Not implemented';
    } else {
        exec('pgrep omxplayer.bin', $pids);
        if (empty($pids)) {
            @unlink(FIFO);
            posix_mkfifo(FIFO, 0777);
            chmod(FIFO, 0777);
            shell_exec('./etc/omx_runner.sh ' . escapeshellarg($file) . ' ' . getOmxplayerOptions());
            setCurrent($file);
            removeFile($file);
            setWatchdog('PLAY');
            $out = 'Now playing: ' . basename($title);
        } else {
            send('q');
            $out = play($file);
        }
    }
    return $out;
}