Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

Reikalas 4 dienos
MaFetas 3 savaitės
ozzWANTED 4 savaitės
saulyzas 6 savaitės
TOMIJUS 8 savaitės
Jaunelis23 savaitės
lanis23 savaitės
And2s24 savaitės
Memento Mori29 savaitės
Quwqkibor31 savaitės
asirija35 savaitės
tomeem37 savaitės
weberiz40 savaitės
mRokass43 savaitės
kartoonas44 savaitės
grunskiz47 savaitės
Bruksnys47 savaitės
illusion47 savaitės
ordo48 savaitės
Jurgaila49 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.128.78.107
Naujienų: 529
Straipsnių: 235
Temų: 52,589
Postų: 522,538
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.

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

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. š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
Kaip įdėti panelę į header?
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems

Autorius: cztz360 Peržiūrų: 591      Spausdinti temą
2010 Gru. 17 20:12:28          1 žinutė iš 1
Spausdinti pranešimą
Kaip įdėti panelę į header, kad jinai būtų ant logo? nežino


theme.php


   <?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

$showLogInForm = TRUE;
$showBanner = false;
$logo = TRUE;   //FALSE for site logo, TRUE for theme logo
define("THEME_WIDTH", "1200px");      //site width!!!
define("NAVIGATION_WIDTH", "50%");   //set the navigation width!!!
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";
require_once THEME."core.php";

function render_page($license=false) {

   global $settings, $main_style, $logo, $showLogInForm, $showBanner, $locale;
/******MAIN*FRAME*******************************************/
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' border='0px'>
<tr>
   <td colspan='3'>
      <table cellpadding='0' cellspacing='0' width='100%' >
      <tr>
         <td class='left_top' align='left'>
            <div id='info'>".returnDate(mktime(),2)." &nbsp;&nbsp;&nbsp;<a href='http://www.solofm.too.lt' class='infol'>SoloFM</a> | <a href='".BASEDIR."news.php' class='infol'>Naujienos</a> | <a href='".BASEDIR."viewpage.php?page_id=5' class='infol'>Komanda</a></div>
         </td>
         <td class='top'><img src='".THEME."images/blank.png' width='10px' height='70px' alt='' style='border: 0px;'></td>
         <td class='right_top' align='right'>".showTools()."</td>
      </tr>
      </table>
   </td>
</tr>
<tr>
   <td valign='top' width='88px' height='530px' class='left_one_bg'>
      <table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='left_one'><img src='".THEME."images/blank.png' width='88px' height='430px' alt='' style='border: 0px;'></td>
      </tr>
      </table>
   </td>
   <td rowspan='2' class='main_content' valign='top'>";


/******MAIN*FRAME*******************************************/

/******HEADER*******************************************/





echo "<table cellpadding='0' cellspacing='0' width='100%' class='header'>
<tr>

   <td><a href='".BASEDIR."index.php' style='border: 0px;' alt='".$settings['sitename']."' title='".$settings['sitename']."'>".($logo ? "<img src='".THEME."logo.png' alt='' style='border: 0px;'>" : "<img src='".BASEDIR.$settings['sitebanner']."' alt='' style='border: 0px;'>")."</a></td><td> </td>
   ".showBanner($showBanner).showForm($showLogInForm)."



</tr>
</table>";
















/******HEADER*******************************************/

/******NAVIGATION*******************************************/
echo "<table cellpadding='0' cellspacing='0' width='100%' class='navigation'>
<tr>
   <td class='navi_l'></td>
   <td width='".NAVIGATION_WIDTH."' class='navi'>".navigacija()."</td>
   <td class='navi_k'></td>
   <td class='naviend'><img src='".THEME."images/blank.png' width='10px' height='30px' alt='' style='border: 0px;'></td>
</tr>
</table><p>";
/******NAVIGATION*******************************************/

/******CONTENT*******************************************/
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
/******CONTENT*******************************************/

/******FOOTER*******************************************/
echo "<div id='nogatop'>".showcounter()."<br>".showcopyright()."<br>Theme <i>Ambient</i> designed by <a href='http://www.solofm.too.lt'>Si Fusion</a>.</div>";
/******FOOTER*******************************************/

/******MAIN*FRAME*******************************************/
echo "</td>
   <td valign='top' width='88px' height='530px' class='right_one_bg'>
      <table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='right_one'><img src='".THEME."images/blank.png' width='88px' height='530px' alt='' style='border: 0px;'></td>
      </tr>
      </table>
   </td>
</tr>
<tr>
   <td valign='bottom' width='88px' class='left_half'>
      <table cellpadding='0' cellspacing='0' width='88px'>
      <tr>
         <td class='left_second' height='90px'><img src='".THEME."images/blank.png' width='88px' height='90px' alt='' style='border: 0px;'></td>
      </tr>
      </table>
   </td>
   <td valign='bottom' width='88px' class='right_half'>
      <table cellpadding='0' cellspacing='0' width='88px'>
      <tr>
         <td class='right_second' height='90px'><img src='".THEME."images/blank.png' width='88px' height='90px' alt='' style='border: 0px;'></td>
      </tr>
      </table>
   </td>
</tr>
<tr>
   <td colspan='3'>
      <table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='left_bottom' align='left'><img src='".THEME."images/blank.png' width='500px' height='100px' alt='' style='border: 0px;'></td>
         <td class='bottom'><img src='".THEME."images/blank.png' width='10px' height='88px' alt='' style='border: 0px;'></td>
         <td class='right_bottom' align='right'><img src='".THEME."images/blank.png' width='300px' height='100px' alt='' style='border: 0px;'></td>
      </tr>
      </table>
   </td>
</tr>
</table>";
/******MAIN*FRAME*******************************************/
}

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

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr' align='right'>".avtornovice($info)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body' colspan='2'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo opcijenovice($info).dodatno("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";
   echo hr();
}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr'></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";
   echo hr();
}

function opentable($title) {

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

}

function closetable() {

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

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
   <td class='l_z'><img src='".THEME."images/blank.png' width='7px' height='25px' alt='' style='border: 0px;'></td>
   <td class='z'>".$title."</td><td class='z' align='right'>";
   if ($collapse == true){
      $boxname = str_replace(" ", "", $title);
      echo panelbutton($state,$boxname);
   }
   echo "</td>
   <td class='d_z'><img src='".THEME."images/blank.png' width='7px' height='25px' alt='' style='border: 0px;'></td>
</tr>
<tr>
   <td class='l'></td>
   <td colspan='2' class='side-body'>";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {
   global $panel_collapse;
   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>
   <td class='d'></td>
</tr>
<tr>
   <td class='l_s'><img src='".THEME."images/blank.png' width='7px' height='7px' alt='' style='border: 0px;'></td>
   <td colspan='2' class='s'></td>
   <td class='d_s'><img src='".THEME."images/blank.png' width='7px' height='7px' alt='' style='border: 0px;'></td>
</tr>
</table>";
   echo hr();
}
?>






Pirma panelė kurią reikia uždėt ant header'io


<?php

error_reporting(0);
$scdef = "Serversi neveikia";
$scip = "xxxx";
$scport = "xxxx";
$scpass = "xxxx";
$maxusers = "xxxx";

//End configuration

error_reporting(0);
$scsuccs = NULL;
$page = NULL;
include('config_radio.php');
$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);
}

//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

//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 'Dj_decolor': $aimlogo = "decolor"; break;

case 'Vardas': $aimlogo = "Vardas"; break;
default:  $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;

echo'<table cellpadding="0" cellspacing="0" width="400"  style="padding-top: 0px">
<tr>
<td>
<font face="Tahoma" style="font-size: 11px; font-weight: bold; color:#c70067;">Eteryje skamba: </font><marquee><b>'.$daina.'</b></marquee>
</td>
</tr>
</table>';
}

?>






Antra panelė kurią reikia uždėt ant header'io



<?php

error_reporting(0);
$scdef = "Serversi neveikia";
$scip = "xxxx";
$scport = "xxxx";
$scpass = "xxxx";
$maxusers = "xxxx";

//End configuration

error_reporting(0);
$scsuccs = NULL;
$page = NULL;
include('config_radio.php');
$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);
}

//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

//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 'Dj_decolor': $aimlogo = "decolor"; break;

case 'Vardas': $aimlogo = "Vardas"; break;
default:  $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;

echo'<table cellpadding="0" cellspacing="0" width="212"  style="padding-top: 0px">
<tr>
<td>
<center><span style="padding-right:0px;"><a href="/komanda.php"><img border="0" src="/komanda/'.$aim.'.jpg" width="100" heigth="100"></a></span></center><br>
<center><font face="Tahoma" style="font-size: 11px; font-weight: bold; color:#c70067;">Prie eterio mikrofono: </font><b>'.$aim.'</b></center>
</td>
</tr>
</table>';
}

?>




Peršokti į forumą: