Knowledge base
1000 FAQ, 500 tutorial e video esplicativi. Qui ci sono delle soluzioni!
Supporto di Webmediastats
Webmediastats / Web Radio Stats è supportato.
Azioni daeffettuare
Connettersi alla console di amministrazione
Andare inBroadcast -> Radio -> la radio corrispondente -> pulsante Configurazione delflusso in questione
Andare al Link di accesso Webmediastats / Web RadioStats
Copiare la riga (ad es. http://statslive.infomaniak.ch/mediastats.php?radio=nyancat-real.mp3&password=xxxxxx)
Creare un file PHP (ades. client.php) e copiare il seguente script:
<code><?php $sUrl = "il mio link webmediastats"; $plaintext=""; $pass=md5("Tell me, O Muse, of the man of many devices, whowandered full many ways after he had sacked the sacred citadel of Troy. Manywere the men whose cities he saw and whose mind he learned, aye, and manythe woes he suffered in his heart upon the sea, seeking to win his own lifeand the return of his comrades. Yet even so he saved not his comrades, thoughhe desired it sore, for through their own blind folly they perished--fools,who devoured the kine of Helios Hyperion; but he took from them the day oftheir returning. Of these things, goddess, daughter of Zeus, beginning wherethou wilt, tell thou even unto us."); $plaintext =file_get_contents($sUrl); function EnDeCrypt($text, $password){ $sbox=array(); $key=array(); $i=0;$j=0; $cipher = ""; $intLength = strlen($password); for ($a=0;$a<=255;$a++){ $ctmp = substr($password,($a % $intLength), 1); $key[$a] = ord($ctmp);$sbox[$a] = $a; } $x = 0; for ($b = 0; $b<=255;$b++) { $x = ($x + $sbox[$b] + $key[$b])%256; $tempSwap = $sbox[$b]; $sbox[$b] = $sbox[$x]; $sbox[$x] = $tempSwap; } for ($a = 1;$a<=strlen($text);$a++) { $itmp = 0;$i = ($i + 1) % 256; $j = ($j + $sbox[$i]) % 256; $itmp = $sbox[$i]; $sbox[$i] = $sbox[$j]; $sbox[$j] = $itmp; $k = $sbox[($sbox[$i] +$sbox[$j]) % 256]; $ctmp = substr($text,($a - 1),1); $itmp = ord($ctmp); $cipherby = $itmp ^ $k; $cipher .= chr($cipherby); } return $cipher; } header("content-type:text/plain"); header("server:infomaniak-icecast"); $OutputEncryption=0;$OutputEncryption===1?$a=EnDecrypt($plaintext,$pass):$a=$plaintext;echo $a;?></code>Alla prima riga dello script ($sUrl= ....) sostituire "il mio link webmediastats" con l'URL copiato
Trasferire il file dello script sul sito della vostra radio (che deveessere compatibile con PHP) ad es. in una cartella "stats"
Se ilvostro sito si trova in Infomaniak, modificare il file .htaccess alla rootdel sitoVerificare che loscript funizoni chiamando l'URL nel browser:(ad es. http://domaine.xyz/stats/client.php)
Contattare webmediastats seguendo le istruzioniall'indirizzo http://www.webmediastats.com/. Potete comunicare loro l'URL esegnalare che siete clienti Infomaniak
Per maggioriinformazioni
Se ci sono diversi flussi, sono necessari più script.
Link a questa FAQ: