Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,957
Naujausias narys: keistuole

Naujausi straipsniai

Paskutiniai nariai

Žmogus 1 savaitė
Bruksnys 5 savaitės
Darexs 7 savaitės
Nepas 8 savaitės
keistuole10 savaitės
Gizmis12 savaitės
Reikalas12 savaitės
Rytis21 savaitės
MaFetas25 savaitės
ozzWANTED27 savaitės
saulyzas29 savaitės
TOMIJUS30 savaitės
Jaunelis45 savaitės
lanis45 savaitės
And2s46 savaitės
Memento Mori51 savaitės
Quwqkibor53 savaitės
asirija57 savaitės
tomeem59 savaitės
weberiz63 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.216.94
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.

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Nepas
2025 Bal. 9 17:04:13
drovus

Nepas
2025 Bal. 9 17:04:08
drovus

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

Š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
Mano profilis
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems

Autorius: iSty Peržiūrų: 1700      Spausdinti temą
2009 Bal. 12 11:04:26          1 žinutė iš 7
Spausdinti pranešimą
Vėl man nutiko bėda..





Paspaudus Mano proflis, turėtu parodyti MANO PROFILĮ iš šalies, o man kai ant jo paspaudžiu išmeta: news.php
Kur reikia nukreipt tą adresą?
Header.php , theme.php ?


Header.php:

<?php
error_reporting(0);
$scdef = ""; // Default station name to display when server or stream is down
$scip = "shoutcast.volna.lt"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "8050"; // port of shoutcast server
$scpass = "kaniukai"; // password to shoutcast server
$maxusers = "100"; //Kiek vienu sykiu klausosi zmoniu
$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);
   }
   $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "AIM", "ICQ");
   $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));
   fclose($scfp);
}

//display stats
if($streamstatus == "1"){
switch ($aim) {
   case 'WiNALL': $aimlogo = "Serveris"; break;
   case 'Serveris': $aimlogo = "Serveris"; break;
   case 'Bakkaz': $aimlogo = "Bakkaz"; break;
   case 'Dj_Tadydass': $aimlogo = "Dj_Tadydass"; break;
   case 'Dj Destiny': $aimlogo = "Dj Destiny"; break;
   case 'Dj Destiny': $aimlogo = "Dj Destiny"; break;
   case 'Laurynas' : $aimlogo = "Laurynas"; break;
default:  $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;
echo "               <table cellpadding='0' cellspacing='0' width='1'>
                  <tr>
                     <td height='17' valign='middle' >
                        <table cellpadding='0' cellspacing='0' width='130' align='center'>
                           <tr>
                              <td height='17'>
                                 <p align='center'>
                                    <font face='Tahoma' style='font-size: 8pt' color='#FFFFFF'><b>Laida:</b></font>
                                    <font face='Tahoma' style='font-size: 8pt' color='#FFFFFF'>".$icq."</font><br>
                                    <font face='Tahoma' style='font-size: 8pt' color='#FFFFFF'><b>Eteryje:</b></font>
                                    <font face='Tahoma' style='font-size: 8pt' color='#FFFFFF'>".$aim."</font>
                                 </p>
                              </td>
                           </tr>
                           <tr>
                              <td height='17'>
                                 <p align='center'>
                                    <marquee behavior='right'> <font face='Arial' style='font-size: 8pt' color='#000000'>".$daina."</font></marquee>
                                 </p>
                              </td>
                           </tr>
                        </table>
                     </td>
                  </tr>
         </table>\n";
}
if($streamstatus == "0"){
echo "<table cellpadding='0' cellspacing='0' align='center><tr><td><font size='2' face='tahoma' color='#6C6D7B'>Technine profilaktika.</font></td></tr></table>";
}

$pavadinimas = ""; //pavadinimas
echo "                  <center><b>".$pavadinimas."</b>
                  <font size='1'><center></font>
                  
               </td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
</table>\n";
closeside_panel();
?>




Theme.php:

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

// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "100%";
$theme_width_l = "215";
$theme_width_r = "215";

function render_header($header_content) {

global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellpadding='0' cellspacing='0' width='850' class='paneles'>\n<tr>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='850'>
<tr>
<td align='center' style='padding-left: 400px; padding-top: -40px;' width='0'>";
include THEME."user_info_panel.php";
echo "</td>
<td align='center' style='padding-right: 30px; padding-top: 0px;' width='0'>";
include THEME."header.php";
echo "</td>
</tr>
</table><br>\n";


echo "<table cellpadding='0' align='center' cellspacing='0' width='990'>\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%' class='footer'>
<tr>
<td width='73' align='left' style='padding-left: 6px;padding-top: 13px;'>  <a href='http://www.mmw.too.lt/' target='_blank'><img src='".THEME."images/42.png' border='0'></a></td>
<td width='446'></td>
<td width='247' align='right' class='f_text'>TVS: <a href='http://www.php-fusion.co.uk' target='_blank' style='color:#000;'>PHP-Fusion</a> | 2008-2009</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
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>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

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

}

function closetable() {

echo "</td>
</tr>
<tr><td><img src='".THEME."images/news_foot.gif'></td></tr>
</table>\n";

}

function openside_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";

}

function closeside_header() {

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

}

function openside_panel($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0' width='150'>
<tr>
<td class='side-body-panel'>\n";

}

function closeside_panel() {

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

}

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";

}
?>




www.styGRAFIKA.tk - Grafikos Studija!
Redagavo iSty 2009 Bal. 12 12:04:32
2009 Bal. 12 12:04:07          2 žinutė iš 7
Spausdinti pranešimą
duok user_info_panel.php kodą, nes ten yra includintas user_info_panel.php failas

2009 Bal. 12 12:04:45          3 žinutė iš 7
Spausdinti pranešimą
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if (iMEMBER) {
   openside_panel($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprasymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Zinutes</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
   openside_panel($locale['060']);
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."<br>\n";
   }
   echo $locale['065']."
</div>\n";
}
closeside_panel();
?>





Štai.

www.styGRAFIKA.tk - Grafikos Studija!
2009 Bal. 12 12:04:44          4 žinutė iš 7
Spausdinti pranešimą
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION"merkia akį) { header("Location:../../index.php"merkia akį; exit; }

if (iMEMBER) {
   openside_panel($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'"merkia akį;
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprasymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Zinutes</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C"merkia akį) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
   openside_panel($locale['060']);
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : ""merkia akį."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."<br>\n";
   }
   echo $locale['065']."
</div>\n";
}
closeside_panel();
?>





Turi veikti nežino

2009 Bal. 12 12:04:15          5 žinutė iš 7
Spausdinti pranešimą
Langas, ne neturi veikt, nes čia reikia theme.php prie global prirašyti, kad rodytu profilį..
2009 Bal. 12 12:04:37          6 žinutė iš 7
Spausdinti pranešimą
Manau vistiek neveiks nes includinant nei profilio nerodys nei avataro, bet visalaik yra, "bet" yra būdas juos apeiti pasinaudojus redirect ;]]

2009 Bal. 12 14:04:17          7 žinutė iš 7
Spausdinti pranešimą
Tai kaip man pataisyti tą klaidą? šypsosi

www.styGRAFIKA.tk - Grafikos Studija!
Peršokti į forumą: