Base de conocimientos
1000 FAQ, 500 tutoriales y vídeos explicativos. ¡Aquí sólo hay soluciones!
Soporte de Webmediastats
Webmediastats / Web Radio Stats es compatible.
Accionesa realizar
Conéctese a su consola de administración
Vaya a Broadcast ->Radio -> la radio correspondiente -> botón Configuración de la emisión encuestión
Encontrará el Enlace de acceso a Webmediastats / Web RadioStats
Copie la línea (por ejemplo, http://statslive.infomaniak.ch/mediastats.php?radio=nyancat-real.mp3&password=xxxxxx)
Cree unarchivo PHP (por ejemplo, client.php) y copie el script siguiente:
<code><?php $sUrl = "mi enlace webmediastats"; $plaintext=""; $pass=md5("Tell me, O Muse,of the man of many devices, who wandered full many ways after he had sackedthe sacred citadel of Troy. Many were the men whose cities he saw and whosemind he learned, aye, and many the woes he suffered in his heart upon thesea, seeking to win his own life and the return of his comrades. Yet even sohe saved not his comrades, though he desired it sore, for through their ownblind folly they perished--fools, who devoured the kine of Helios Hyperion;but he took from them the day of their returning. Of these things, goddess,daughter of Zeus, beginning where thou wilt, tell thou even unto us."); $plaintext = file_get_contents($sUrl); functionEnDeCrypt($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>En la primeralínea del script ($sUrl = ....) reemplace "mi enlace webmediastats" por laURL copiada
Transfiera el archivo del script al sitio de su radio (quedebe ser compatible con PHP), por ejemplo en una carpeta "stats"
Sisu sitio se encuentra en Infomaniak, le rogamos que modifique el archivo .htaccess, que se encuentra en la raíz del sitioVerifique que el script funciona llamando a la URLen el navegador: (por ejemplo, http://dominio.xyz/stats/client.php)
Póngase en contacto con webmediastats siguiendo las instrucciones en ladirección http://www.webmediastats.com/. Puede comunicarles la URL y especificar que escliente de Infomaniak
Más información
Si hayvarias emisiones, se necesitan varios scripts.
Enlace a esta FAQ: