Navigacija

Vartotojų tinkle

Prisijungusių svečių: 383
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,957
Naujausias narys: keistuole

Naujausi straipsniai

Paskutiniai nariai

keistuole 5 dienos
Gizmis 2 savaitės
Reikalas 2 savaitės
Rytis11 savaitės
MaFetas15 savaitės
ozzWANTED17 savaitės
saulyzas19 savaitės
TOMIJUS20 savaitės
Jaunelis35 savaitės
lanis35 savaitės
And2s36 savaitės
Memento Mori41 savaitės
Quwqkibor43 savaitės
asirija47 savaitės
tomeem49 savaitės
weberiz53 savaitės
mRokass55 savaitės
kartoonas56 savaitės
grunskiz59 savaitės
Bruksnys59 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.145.104.11
Naujienų: 529
Straipsnių: 235
Temų: 52,589
Postų: 522,539
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

Gizmis
2025 Kov. 15 14:03:50
OMG, smagu matyt sita puslapi veikianti

ozzWANTED
2024 Lap. 30 15:11:14
Taip, vis dar up šypsosi

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Radijos panelė
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: PGG Peržiūrų: 985      Spausdinti temą
2009 Vas. 15 10:02:24          1 žinutė iš 2
Spausdinti pranešimą
Sveiki, iškilo man viena tokia problema, turiu temą ir noriu padaryti taip, kad tos temos viršuje būtu radijos panelė. Jei kas žinot kaip reikia įterpti padėkit.

theme.php(Vieta kurioje norėčiau, kad būtu radijos panelė, išryškinta Juodai)

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#3B3A41";
$body_bg = "#5C5C5C";
$theme_width = "62%"; // daily theme plotis procentais arba pixeliais
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td align='left' class='header'>
<img src='".THEME."logo.png' border='0'>
</td>
</tr>
</table>";

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='sub-header' valign='middle'>".showsublinks("","white")."</td>
</tr>
<tr>
<td class='body_top' align='center'>
<table class='ads'>
<tr>
<td><img src='".THEME."images/ads.png'></td>
<td><img src='".stripslashes($settings['description'])."'></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='title'>".$settings['sitename']."</td></td>
</tr>
</table>\n";


echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='footer-left'><a href='http://www.php-fusion.co.uk/' target='_blank'>PHP-Fusion</a> | ".stripslashes($settings['footer'])."</td>
<td align='right' class='footer-right'><img src='".THEME."images/made_by.png'>&nbsp;&nbsp;<a href='http://www.emotive.in/' target='_blank'><img src='".THEME."images/emotive.png' border='0'></a></td>
</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

global $aidlink,$item_type;
$res = "";

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$info['news_id']."'>
<td class='news-footer'>Para&#240;&#235; - <a href='profile.php?lookup=".$info['user_id']."' style='color:#8C8B8F;'>".$info['user_name']."</a> | <a href='news.php?readmore=".$info['news_id']."' style='color:#8C8B8F;'>Pla&#232;iau!</a> ";
    if (iADMIN && checkrights(N)) {
echo "| <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();' style='color:#8C8B8F;'>Redaguoti</a>";
}

echo "</td>
</form>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {

global $aidlink,$item_type;
$res = "";
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<form name='editarticle".$item_id."' method='post' action='".ADMIN."articles.php".$aidlink."&amp;article_id=".$item_id."'>
<td class='news-footer'>Para&#240;&#235; - <a href='profile.php?lookup=".$info['user_id']."' style='color:#8C8B8F;'>".$info['user_name']."</a> | <a href='print.php?type=A&amp;item_id=".$info['article_id']."' style='color:#8C8B8F;'>Spausdinti</a> ";
    if (iADMIN && checkrights(A)) {
echo "| <input type='hidden' name='edit' value='edit'><a href='javascript:document.editarticle".$info['articles_id'].".submit();' style='color:#8C8B8F;'>Redaguoti</a>";
}

echo "</td>
</form>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>






Radijos panelė:

openside("Eteris");

error_reporting(0);
$scdef = "Serversi neveikia";               // Default station name to display when server or stream is down
$scip = "ip"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "port";                   // port of shoutcast server
$scpass = "pass";                 // password to shoutcast server
$maxusers = "100"; //Kiek vienu sykiu klausosi zmoniu
//End configuration
error_reporting(0);
$scsuccs = NULL;
$page = NULL;
include('config_radio.php');  //you may edit this path to fit your server environment otherwise leave it alone
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
 if(!$scfp) {
  $scsuccs=1;
echo''.$scdef.' ';
 }
if ($scsuccs != 1) {
 fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
 while(!feof($scfp)) {
  $page .= fgets($scfp, 1000);
 }
######################################################################################################################
/////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//define  xml elements
 $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "AIM");
 $y=0;
 while (isset($loop[$y])) {
  $pageed = ereg_replace(".*<$loop[$y]>", "", $page);
  $scphp = strtolower($loop[$y]);
  $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
  if (($loop[$y] == "SERVERGENRE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "SONGTITLE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "aim"))
   $$scphp = urldecode($$scphp);

// uncomment the next line to see all variables
// echo'$'.$scphp.' = '.$$scphp.'<br>';
  $y++;
 }
//end intro xml elements
######################################################################################################################
######################################################################################################################
/////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//get song info and history
 $pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
 $pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
 $songatime = explode("<SONG>", $pageed);
 $r=1;
 while (isset($songatime[$r])) {
  $t=$r-1;
  $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
  $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
  $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
  $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
  $song[$t] = urldecode($song[$t]);
  $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
  $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
 }
 $daina = str_replace('_',' ',substr ($song[0],0,90));
//end song info

fclose($scfp);
}

//display stats
if($streamstatus == "1"){
switch ($aim) {
    case 'WiNALL': $aimlogo = "Serveris"; break;
 case 'Serveris': $aimlogo = "Serveris"; break;
case 'DJ_Deivis': $aimlogo = "deivis"; break;
case 'DjGintulis': $aimlogo = "DjGintulis"; break;


case 'Saulius': $aimlogo = "Saulius"; break;
 default:  $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;
echo'<div align="center">
 <table cellpadding="0" cellspacing="0" width="1">
  <!-- MSTa*keiksmai*ype="nolayout" -->
  <tr>
   <td height="36" bgcolor="">
   <p align="center">
   <a href="/viewpage.php?page_id=1"><img border="0" src="/komanda/'.$aim.'.jpg" width="140" heigth="100"></a></td>
  </tr>
  <tr>
   <td height="17" valign="bottom">
   <div align="center">
    <table cellpadding="0" cellspacing="0" width="130">
     <tr>
   <td height="17">
   <p align="center">
   <font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje:</b></font>
   <font face="Tahoma" style="font-size: 9px" color="#666666">'.$aim.'</font></td>
  </tr>
  <tr>
   <td height="17">
   <p align="center">
   <font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje groja:</b></font>














  <marquee behavior="right"> <font face="Arial" style="font-size: 8pt" color="#8a8a8a">'.$daina.'</font></td></marquee></p>

  </tr>
  </tr>
  </table>
                 </div>
   </td>
  </tr>
  <tr>
   <td>
   </td>
  </tr>
 </table>
</div>';
}
if($streamstatus == "0")
{
echo'<font size="2" face="tahoma" color="#000">&#208;iuo metu radija yra i&#240;jungta.</font>';
}

/*
* Procentai isreiksti grafiskai
* Pavyzdys: Internetines radijos dabartiniai klausytojai
* Yra maksimalus leistinas klausytoju skaicius ir dabar besiklausanciu procentali israiska grafiskai
*/
$pavadinimas = ""; //pavadinimas
$ko = "<b>Klausytoju: </b>"; //1vienetas (pvz: Lt.)



//paveiksleliu nustatymai
$bg_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //fono paveiksliukas (neaktyvi zona)
$nulis_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //rodomoas paveiksliukas jei rezultatas lygus 0% (pvz jei nera klausytoju)
$mazas_pic = "http://img340.imageshack.us/img340/456/loadbargreenyk1.gif"; //uzsidengiantis paveiksliukas (zalia)
$vidutinis_pic = "http://img230.imageshack.us/img230/3815/loadbaryellowue2.gif"; //Kai vidutine procentu israiska (geltona)
$didelis_pic = "http://img403.imageshack.us/img403/8008/loadbarreduh0.gif"; //Kai arti arba lygu 100 procentu (raudona)


//pagrindiniai veiksmai
$procentai = (int)round((100 * $currentlisteners) / $maxusers);
$width = $procentai; //paveiksliuko plotis procentaliai
if ($procentai <= 1) {$pic = $nulis_pic; $width = "100";}


//atvaziduojam lentele su rezultatais
echo "<center><b><br>$ko ".$currentlisteners."/100
<br><br>
<b>Klausyti:</b>
<br>
<br>
<center><a href='mms://shoutcast.vpservers.lt:8090/'><img src='http://s1.imageapple.net/img/lrfogsvao/media_player.jpg' border='0'></a><a href='http://shoutcast.vpservers.lt:8090/listen.pls'><img src='http://s1.imageapple.net/img/c2h3r9bsu/Winamp.jpg' border='0'></a><br>Media player////Winamp</center>
";




?>
<html><center>
<br>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=325,height=53');");
}
// End -->
</script>
</html>
<?

closeside();



2009 Vas. 15 11:02:13          2 žinutė iš 2
Spausdinti pranešimą
Niekas nežinot? drovus
Peršokti į forumą: