示例#1
0
}
/*
function question($data)
{
	global $search;
//	preg_match_all('/(^| )a '.$search.'.+?\./',$data,$matches1,PREG_SET_ORDER);
	preg_match_all('/(^|\w|\s).*?\./',$data,$matches2,PREG_SET_ORDER);

//	echo count($matches1)."<br>";
	echo count($matches2)."<br>";
//	if(count($matches1)>count($matches2))
//		$matches=$matches1;
//	else
		$matches=$matches2;

	foreach($matches as $value){
		echo $value[0]."<br>";
	}
}*/
$result = to_text($result);
echo $result . "<br><br>";
file_put_contents("temp.txt", $result);
//echo question($result);
?>





</body></html>
示例#2
0
function afficher_podcast($podcast, $timecode, $visible)
{
    echo '<div id="podcast-p-' . str_replace(" ", "_", $timecode) . '" class="panel panel-default';
    if ($visible) {
        echo " selected";
    }
    echo '">';
    echo '<div class="entete-podcast panel-heading"><span class="glyphicon glyphicon-headphones"></span> <a href="' . get_player_url($timecode) . '">Podcast du ' . to_text($timecode) . ': ' . $podcast . '</a>';
    echo '</div>';
    echo '<div class="content-podcast panel-body"';
    $mp3 = get_mp3_url($timecode);
    echo '>';
    echo '<div class="list-group-horizontal">';
    echo '<a href="' . $mp3 . '" class="list-group-item pull-right"><span class="showopacity glyphicon glyphicon-download-alt"></span></a>';
    echo '<a href="#my-player-anchor" class="list-group-item pull-right play" id="p-' . str_replace(" ", "_", $timecode) . '"><span class="showopacity glyphicon glyphicon-play"></span></a>';
    echo '<a class="list-group-item pull-right pause hide" id="p-' . str_replace(" ", "_", $timecode) . '-pause"><span class="showopacity glyphicon glyphicon-pause"></span></a>';
    echo '</div>';
    echo '<div class="ecoute">';
    $ecoutes = load_ecoutes($timecode);
    $add = false;
    if ($ecoutes[0] != 0) {
        echo $ecoutes[0] . " écoute";
        $add = true;
        if ($ecoutes[0] > 1) {
            echo "s";
        }
    }
    if ($ecoutes[1] != 0) {
        if ($add) {
            echo "<br />";
        }
        echo $ecoutes[1] . " téléchargement";
        if ($ecoutes[1] > 1) {
            echo "s";
        }
    }
    // TODO
    echo '</div>';
    echo '<div class="playlist">';
    afficher_titres($timecode);
    echo '</div>';
    echo '</div>';
    echo '</div>';
}