Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

saulyzas 2 dienos
MaFetas 5 dienos
TOMIJUS 1 savaitė
ozzWANTED 1 savaitė
Reikalas10 savaitės
Jaunelis16 savaitės
lanis17 savaitės
And2s17 savaitės
Memento Mori22 savaitės
Quwqkibor25 savaitės
asirija29 savaitės
tomeem31 savaitės
weberiz34 savaitės
mRokass36 savaitės
kartoonas37 savaitės
grunskiz40 savaitės
Bruksnys41 savaitės
illusion41 savaitės
ordo42 savaitės
Jurgaila42 savaitės

Informacija:


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

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

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Š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
PHP: Bartelio Klausimai
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Kiti PHP, HTML, MySQL klausimai

Autorius: kael Peržiūrų: 6034      Spausdinti temą
2010 Bal. 29 18:04:17          1 žinutė iš 27
Spausdinti pranešimą
Sveiki, užeikite į http://explosion.wu.lt ir pasižiūrėkite į naujienas.
Po kekviena iš naujienų nėra užrašo[ Pwz... Skaityti daugiau..]
Kur ir ką reikia rašyti, kad atsirastu Skaityti daugiau nežino

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 29 18:04:29          2 žinutė iš 27
Spausdinti pranešimą
Man atrodo kad tu čia tik pareklaminti nori,daugiau nieko blogai

///M3
2010 Bal. 29 18:04:54          3 žinutė iš 27
Spausdinti pranešimą
Kažin..
Man labiau dabar reikia pagalbos , o ne reklamos.
Kaip reklaminsiu tai aiškiai matysis.

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 29 18:04:16          4 žinutė iš 27
Spausdinti pranešimą
Sveiki, užeikite į http://explosion.wu.lt ir pasižiūrėkite



Aiškiai matosi akinanti šypsen

///M3
2010 Bal. 29 18:04:57          5 žinutė iš 27
Spausdinti pranešimą
Na kam kaip atrodo... Jai tu tokiu būdu reklamini savo tinklalapį tai neprikišinėk kitiems. šypsosi
Laukiu pagalbos.merkia akį

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 29 18:04:42          6 žinutė iš 27
Spausdinti pranešimą
kazka jau programuoji akinanti šypsen
Parse error: syntax error, unexpected '>' in /home/bartelis/domains/explosion.wu.lt/public_html/themes/csasilas/theme.php on line 78

www.smilez360.com
www.thevideowars.com
www.pigiau.biz
2010 Bal. 29 18:04:14          7 žinutė iš 27
Spausdinti pranešimą
Na mėginu bet nieko nesigauna akinanti šypsen

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 29 19:04:43          8 žinutė iš 27
Spausdinti pranešimą
bandįk iš kitų dizainų nu kopijuoti, arba jai moki koduot tai pasidaryk šypsosi
2010 Bal. 29 20:04:28          9 žinutė iš 27
Spausdinti pranešimą
Tai mėginau kelti bet atsiranda kitos spalvos laukelis ir ten parašo skaityti daugiau... galvoja

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 29 20:04:18          10 žinutė iš 27
Spausdinti pranešimą
Nu... Tada nukopinti styles.css faile esančias eilutes, kurios nurodo stilių to laukelio ir pakeiti viską.

www.creatium.lt
2010 Bal. 29 20:04:34          11 žinutė iš 27
Spausdinti pranešimą
Mėginau ir taip ber error'a meta... šypsosi
nesu aš koduotojas geras.

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 29 21:04:06          12 žinutė iš 27
Spausdinti pranešimą
themes.php duok

http://androider.info/
2010 Bal. 29 21:04:05          13 žinutė iš 27
Spausdinti pranešimą
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#FFFFFF";
$body_bg = "#6A635A";
$theme_width = "863";
$theme_width_l = "235";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width, $userdata, $aidlink, $settings, $db_prefix;

echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>
<tr>
<td class='header'>

<div id='plotas'>

<div id='serveriai'><a href='".BASEDIR."/serveriai'><img src='".THEME."images/blank.gif' width='40' height='7' border='0' alt=''></a></div>
<div id='reklama'><a href='".BASEDIR."reklama.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='kontaktai'><a href='".BASEDIR."contacts.php'><img src='".THEME."images/blank.gif' width='42' height='7' border='0' alt=''></a></div>
<div id='nariams'>\n"; include THEME."user_info_panel.php"; echo "</div>
<div id='pamokos'><a href='".BASEDIR."articles.php'><img src='".THEME."images/blank.gif' width='41' height='7' border='0' alt=''></a></div>
<div id='naujausia'>\n"; include THEME."latest_downloads_panel.php"; echo "</div>
<div id='paieska'><form name='search' action='search.php?stype=n' method='post'><input type='text' name='stext' class='searchbox' value='Paie&#240;kos tekstas...' onfocus=\"if(this.value=='Paie&#240;kos tekstas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Paie&#240;kos tekstas...';}\">&nbsp;<input type='submit' value='Ie&#240;koti' name='option' class='button-ok'></form></div>
<div id='pagrindinis'><a href='".BASEDIR."news.php'><img src='".THEME."images/blank.gif' width='54' height='10' border='0' alt=''></a></div>
<div id='forumas'><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='siuntiniai'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/blank.gif' width='44' height='7' border='0' alt=''></a><div>


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

echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>\n<tr>\n";

}



function render_footer() {
global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' height='74' align='center' class='them-footer'>
<tr>
<td style='padding-left: 30px;'>
<span style='color: #ffffff;'>Dizainas:</span> <a href='http://estel.huh.lt'><span style='color: #ffffff;'>estel</span></a><br>
<span style='color: #ffffff;'>Programavimas:</span> <a href='http://cs.asilas.lt'><span style='color: #ffffff;'>Dyaz</span></a><br>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>

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


}

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

echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain-left'>\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
   echo "<a href='news.php?readmore=".$info['news_id']."' style='text-decoration: none'>$subject</a>\n";
} else {
   echo $subject;
}
echo "</td>

</tr>
<tr>
<td class='main-body' colspan='2'>$news</td>
</tr>
<tr>
<td class='news-footer' colspan='2'></td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

function opentable($title) {

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

}

function closetable() {

echo "</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

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

}

function closeside() {

echo "</td>
</tr>
<tr>
<td class='side-footer'></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' align='center'>$title<img src='".THEME."images/blank.gif' width='10' height='0' alt=''>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
<tr>
<td class='side-footer'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}
?>




Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.

Redagavo sniuff 2010 Bal. 30 06:04:56
2010 Bal. 30 08:04:57          14 žinutė iš 27
Spausdinti pranešimą
Niekas nepasikeitė... galvoja

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 30 16:04:56          15 žinutė iš 27
Spausdinti pranešimą
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#FFFFFF";
$body_bg = "#6A635A";
$theme_width = "863";
$theme_width_l = "235";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width, $userdata, $aidlink, $settings, $db_prefix;

echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>
<tr>
<td class='header'>

<div id='plotas'>

<div id='serveriai'><a href='".BASEDIR."/serveriai'><img src='".THEME."images/blank.gif' width='40' height='7' border='0' alt=''></a></div>
<div id='reklama'><a href='".BASEDIR."reklama.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='kontaktai'><a href='".BASEDIR."contacts.php'><img src='".THEME."images/blank.gif' width='42' height='7' border='0' alt=''></a></div>
<div id='nariams'>\n"; include THEME."user_info_panel.php"; echo "</div>
<div id='pamokos'><a href='".BASEDIR."articles.php'><img src='".THEME."images/blank.gif' width='41' height='7' border='0' alt=''></a></div>
<div id='naujausia'>\n"; include THEME."latest_downloads_panel.php"; echo "</div>
<div id='paieska'><form name='search' action='search.php?stype=n' method='post'><input type='text' name='stext' class='searchbox' value='Paie&#240;kos tekstas...' onfocus=\"if(this.value=='Paie&#240;kos tekstas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Paie&#240;kos tekstas...';}\">&nbsp;<input type='submit' value='Ie&#240;koti' name='option' class='button-ok'></form></div>
<div id='pagrindinis'><a href='".BASEDIR."news.php'><img src='".THEME."images/blank.gif' width='54' height='10' border='0' alt=''></a></div>
<div id='forumas'><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='siuntiniai'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/blank.gif' width='44' height='7' border='0' alt=''></a><div>


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

echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>\n<tr>\n";

}



function render_footer() {
global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' height='74' align='center' class='them-footer'>
<tr>
<td style='padding-left: 30px;'>
<span style='color: #ffffff;'>Dizainas:</span> <a href='http://estel.huh.lt'><span style='color: #ffffff;'>estel</span></a><br>
<span style='color: #ffffff;'>Programavimas:</span> <a href='http://cs.asilas.lt'><span style='color: #ffffff;'>Dyaz</span></a><br>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>

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


}

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

echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain-left'>\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
   echo "<a href='news.php?readmore=".$info['news_id']."' style='text-decoration: none'>".$info['news_subject']."</a>\n";
} else {
   echo $subject;
}
echo "</td>

</tr>
<tr>
<td class='main-body' colspan='2'>$news</td>
</tr>
<tr>
<td class='news-footer' colspan='2'><a href='news.php?readmore=".$info['news_id']."'>".$info['news_subject']."</a></td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

function opentable($title) {

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

}

function closetable() {

echo "</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

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

}

function closeside() {

echo "</td>
</tr>
<tr>
<td class='side-footer'></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' align='center'>$title<img src='".THEME."images/blank.gif' width='10' height='0' alt=''>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
<tr>
<td class='side-footer'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}
?>





www.MAFIACLUB.lt
2010 Bal. 30 16:04:20          16 žinutė iš 27
Spausdinti pranešimą
Nieko man atrodo tu nukopinai ta ką aš buvau idėjas akinanti šypsen

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 30 16:04:56          17 žinutė iš 27
Spausdinti pranešimą
ne, news.php dar duok

www.MAFIACLUB.lt
2010 Bal. 30 16:04:45          18 žinutė iš 27
Spausdinti pranešimą
neleidžia idėt rašo viršytas 18 smailu limitas akinanti šypsen

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 30 16:04:56          19 žinutė iš 27
Spausdinti pranešimą
tai išjunk tuos smailus..

www.MAFIACLUB.lt
2010 Bal. 30 16:04:48          20 žinutė iš 27
Spausdinti pranešimą
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 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
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

if (isset($readmore) && !isNum($readmore)) fallback(FUSION_SELF);

// Predefined variables, do not edit these values
if ($settings['news_style'] == "1") { $i = 0; $rc = 0; $ncount = 1; $ncolumn = 1; $news_[0] = ""; $news_[1] = ""; $news_[2] = ""; } else { $i = 1; }

// This number should be an odd number to keep layout tidy
$items_per_page = 11;

if (!isset($readmore)) {
$rows = dbcount("(news_id)", "news", groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$result = dbquery(
"SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_sticky DESC, news_datestamp DESC LIMIT $rowstart,$items_per_page"
);
$numrows = dbrows($result);
if ($settings['news_style'] == "1") $nrows = round((dbrows($result) - 1) / 2);
while ($data = dbarray($result)) {
$news_cat_image = "";
$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);
if ($data['news_cat_image']) {
$news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";
} else {
$news_cat_image = "";
}
$news_news = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']);
if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
if ($settings['news_style'] == "1") {
if ($rows <= 2 || $ncount == 1) {
$news_[0] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
$news_[0] .= "<tr>\n<td class='tbl2'><b>$news_subject</b></td>\n</tr>\n";
$news_[0] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$news_news</td>\n</tr>\n";
$news_[0] .= "<tr>\n<td align='center' class='tbl2'>\n";
if (iSUPERADMIN && checkrights("N")) $news_[0] .= "<form name='editnews".$news_info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$news_info['news_id']."'>\n";
$news_[0] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['041'].showdate("longdate", $news_info['news_date'])." &middot;\n";
if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> &middot;\n" : "";
$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> &middot;\n" : "";
$news_[0] .= $news_info['news_reads'].$locale['044']." &middot;\n";
}
$news_[0] .= "<a href='print.php?type=N&amp;item_id=".$news_info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>";
if (iSUPERADMIN && checkrights("N")) { $news_[0] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$news_info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $news_[0] .= "</span>\n"; }
$news_[0] .= "</td>\n</tr>\n</table>\n";
if ($ncount != $rows) $news_[0] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
} else {
if ($i == $nrows && $ncolumn != 2) { $ncolumn = 2; $i = 0; }
$row_color = ($rc % 2 == 0 ? "tbl2" : "tbl1");
$news_[$ncolumn] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
$news_[$ncolumn] .= "<tr>\n<td class='tbl2'><b>$news_subject</b></td>\n</tr>\n";
$news_[$ncolumn] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$news_news</td>\n</tr>\n";
$news_[$ncolumn] .= "<tr>\n<td align='center' class='tbl2'>\n";
if (iSUPERADMIN && checkrights("N")) $news_[$ncolumn] .= "<form name='editnews".$news_info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$news_info['news_id']."'>\n";
$news_[$ncolumn] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['041'].showdate("longdate", $news_info['news_date']);
if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
$news_[$ncolumn] .= "<br>\n";
$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> &middot;\n" : "";
$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> &middot;\n" : "";
$news_[$ncolumn] .= $news_info['news_reads'].$locale['044']." &middot;\n";
} else {
$news_[$ncolumn] .= " &middot;\n";
}
$news_[$ncolumn] .= "<a href='print.php?type=N&amp;item_id=".$news_info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>\n";
if (iSUPERADMIN && checkrights("N")) { $news_[$ncolumn] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$news_info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $news_[$ncolumn] .= "</span>\n"; }
$news_[$ncolumn] .= "</td>\n</tr>\n</table>\n";
if ($ncolumn == 1 && $i < ($nrows - 1)) $news_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
if ($ncolumn == 2 && $i < (dbrows($result) - $nrows - 2)) $news_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
$i++; $rc++;
}
$ncount++;
} else {
render_news($news_subject, $news_news, $news_info);
if ($i != $numrows) { tablebreak(); } $i++;
}
}
if ($settings['news_style'] == "1") {
opentable($locale['046']);
echo "<table cellpadding='0' cellspacing='0' style='width:100%'>\n<tr>\n<td colspan='3' style='width:100%'>\n";
echo $news_[0];
echo "</td>\n</tr>\n<tr>\n<td style='width:50%;vertical-align:top;'>\n";
echo $news_[1];
echo "</td>\n<td style='width:10px'><img src='".THEME."images/blank.gif' alt='' width='10' height='1'></td>\n<td style='width:50%;vertical-align:top;'>\n";
echo $news_[2];
echo "</td>\n</tr>\n</table>\n";
closetable();
}
if ($rows > $items_per_page) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows,3)."\n</div>\n";
} else {
opentable($locale['046']);
echo "<center><br>\n".$locale['047']."<br><br>\n</center>\n";
closetable();
}
} else {
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result = dbquery(
"SELECT tn.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
WHERE news_id='$readmore'"
);
if (dbrows($result)!=0) {
$data = dbarray($result);
if (checkgroup($data['news_visibility'])) {
$news_cat_image = "";
if (!isset($_POST['post_comment']) && !isset($_POST['post_rating'])) {
$result2 = dbquery("UPDATE ".$db_prefix."news SET news_reads=news_reads+1 WHERE news_id='$readmore'");
$data['news_reads']++;
}
$news_subject = $data['news_subject'];
if ($data['news_cat'] != 0) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data['news_cat']."'");
if (dbrows($result2)) {
$data2 = dbarray($result2);
$news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";
}
}
$news_news = stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news']);
if ($data['news_breaks'] == "y") { $news_news = nl2br($news_news); }
if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
render_news($news_subject, $news_news, $news_info);
if ($data['news_allow_comments']) showcomments("N","news","news_id",$readmore,FUSION_SELF."?readmore=$readmore");
if ($data['news_allow_ratings']) showratings("N",$readmore,FUSION_SELF."?readmore=$readmore");
} else {
redirect(FUSION_SELF);
}
} else {
redirect(FUSION_SELF);
}
}

require_once "side_right.php";
require_once "footer.php";
?>

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 30 16:04:21          21 žinutė iš 27
Spausdinti pranešimą
isidėk ta mano duota theme.php ir sita news.php:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 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
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

if (isset($readmore) && !isNum($readmore)) fallback(FUSION_SELF);

// Predefined variables, do not edit these values
if ($settings['news_style'] == "1") { $i = 0; $rc = 0; $ncount = 1; $ncolumn = 1; $news_[0] = ""; $news_[1] = ""; $news_[2] = ""; } else { $i = 1; }

// This number should be an odd number to keep layout tidy
$items_per_page = 11;

if (!isset($readmore)) {
$rows = dbcount("(news_id)", "news", groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$result = dbquery(
"SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_sticky DESC, news_datestamp DESC LIMIT $rowstart,$items_per_page"
);
$numrows = dbrows($result);
if ($settings['news_style'] == "1") $nrows = round((dbrows($result) - 1) / 2);
while ($data = dbarray($result)) {
$news_cat_image = "";
$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);
if ($data['news_cat_image']) {
$news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";
} else {
$news_cat_image = "";
}
$news_news = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']);
if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_subject" => $data['news_subject'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
if ($settings['news_style'] == "1") {
if ($rows <= 2 || $ncount == 1) {
$news_[0] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
$news_[0] .= "<tr>\n<td class='tbl2'><b>$news_subject</b></td>\n</tr>\n";
$news_[0] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$news_news</td>\n</tr>\n";
$news_[0] .= "<tr>\n<td align='center' class='tbl2'>\n";
if (iSUPERADMIN && checkrights("N")) $news_[0] .= "<form name='editnews".$news_info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$news_info['news_id']."'>\n";
$news_[0] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['041'].showdate("longdate", $news_info['news_date'])." &middot;\n";
if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> &middot;\n" : "";
$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> &middot;\n" : "";
$news_[0] .= $news_info['news_reads'].$locale['044']." &middot;\n";
}
$news_[0] .= "<a href='print.php?type=N&amp;item_id=".$news_info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>";
if (iSUPERADMIN && checkrights("N")) { $news_[0] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$news_info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $news_[0] .= "</span>\n"; }
$news_[0] .= "</td>\n</tr>\n</table>\n";
if ($ncount != $rows) $news_[0] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
} else {
if ($i == $nrows && $ncolumn != 2) { $ncolumn = 2; $i = 0; }
$row_color = ($rc % 2 == 0 ? "tbl2" : "tbl1");
$news_[$ncolumn] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
$news_[$ncolumn] .= "<tr>\n<td class='tbl2'><b>$news_subject</b></td>\n</tr>\n";
$news_[$ncolumn] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$news_news</td>\n</tr>\n";
$news_[$ncolumn] .= "<tr>\n<td align='center' class='tbl2'>\n";
if (iSUPERADMIN && checkrights("N")) $news_[$ncolumn] .= "<form name='editnews".$news_info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$news_info['news_id']."'>\n";
$news_[$ncolumn] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['041'].showdate("longdate", $news_info['news_date']);
if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
$news_[$ncolumn] .= "<br>\n";
$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> &middot;\n" : "";
$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> &middot;\n" : "";
$news_[$ncolumn] .= $news_info['news_reads'].$locale['044']." &middot;\n";
} else {
$news_[$ncolumn] .= " &middot;\n";
}
$news_[$ncolumn] .= "<a href='print.php?type=N&amp;item_id=".$news_info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>\n";
if (iSUPERADMIN && checkrights("N")) { $news_[$ncolumn] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$news_info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $news_[$ncolumn] .= "</span>\n"; }
$news_[$ncolumn] .= "</td>\n</tr>\n</table>\n";
if ($ncolumn == 1 && $i < ($nrows - 1)) $news_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
if ($ncolumn == 2 && $i < (dbrows($result) - $nrows - 2)) $news_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
$i++; $rc++;
}
$ncount++;
} else {
render_news($news_subject, $news_news, $news_info);
if ($i != $numrows) { tablebreak(); } $i++;
}
}
if ($settings['news_style'] == "1") {
opentable($locale['046']);
echo "<table cellpadding='0' cellspacing='0' style='width:100%'>\n<tr>\n<td colspan='3' style='width:100%'>\n";
echo $news_[0];
echo "</td>\n</tr>\n<tr>\n<td style='width:50%;vertical-align:top;'>\n";
echo $news_[1];
echo "</td>\n<td style='width:10px'><img src='".THEME."images/blank.gif' alt='' width='10' height='1'></td>\n<td style='width:50%;vertical-align:top;'>\n";
echo $news_[2];
echo "</td>\n</tr>\n</table>\n";
closetable();
}
if ($rows > $items_per_page) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows,3)."\n</div>\n";
} else {
opentable($locale['046']);
echo "<center><br>\n".$locale['047']."<br><br>\n</center>\n";
closetable();
}
} else {
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result = dbquery(
"SELECT tn.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
WHERE news_id='$readmore'"
);
if (dbrows($result)!=0) {
$data = dbarray($result);
if (checkgroup($data['news_visibility'])) {
$news_cat_image = "";
if (!isset($_POST['post_comment']) && !isset($_POST['post_rating'])) {
$result2 = dbquery("UPDATE ".$db_prefix."news SET news_reads=news_reads+1 WHERE news_id='$readmore'");
$data['news_reads']++;
}
$news_subject = $data['news_subject'];
if ($data['news_cat'] != 0) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data['news_cat']."'");
if (dbrows($result2)) {
$data2 = dbarray($result2);
$news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";
}
}
$news_news = stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news']);
if ($data['news_breaks'] == "y") { $news_news = nl2br($news_news); }
if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_subject" => $data['news_subject'],
"news_ext" => "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
render_news($news_subject, $news_news, $news_info);
if ($data['news_allow_comments']) showcomments("N","news","news_id",$readmore,FUSION_SELF."?readmore=$readmore");
if ($data['news_allow_ratings']) showratings("N",$readmore,FUSION_SELF."?readmore=$readmore");
} else {
redirect(FUSION_SELF);
}
} else {
redirect(FUSION_SELF);
}
}

require_once "side_right.php";
require_once "footer.php";
?>




www.MAFIACLUB.lt
2010 Bal. 30 16:04:42          22 žinutė iš 27
Spausdinti pranešimą
Hmmm atsityko keistas dalykas ;DD
Toj vietoj kur turi būti skaityti daugaiu parašytas pavadinimas kurį paspaudus atidaro skaityti daugaiu...
Pasižiūrėk. nežino

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Bal. 30 16:04:58          23 žinutė iš 27
Spausdinti pranešimą
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#FFFFFF";
$body_bg = "#6A635A";
$theme_width = "863";
$theme_width_l = "235";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width, $userdata, $aidlink, $settings, $db_prefix;

echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>
<tr>
<td class='header'>

<div id='plotas'>

<div id='serveriai'><a href='".BASEDIR."/serveriai'><img src='".THEME."images/blank.gif' width='40' height='7' border='0' alt=''></a></div>
<div id='reklama'><a href='".BASEDIR."reklama.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='kontaktai'><a href='".BASEDIR."contacts.php'><img src='".THEME."images/blank.gif' width='42' height='7' border='0' alt=''></a></div>
<div id='nariams'>\n"; include THEME."user_info_panel.php"; echo "</div>
<div id='pamokos'><a href='".BASEDIR."articles.php'><img src='".THEME."images/blank.gif' width='41' height='7' border='0' alt=''></a></div>
<div id='naujausia'>\n"; include THEME."latest_downloads_panel.php"; echo "</div>
<div id='paieska'><form name='search' action='search.php?stype=n' method='post'><input type='text' name='stext' class='searchbox' value='Paie&#240;kos tekstas...' onfocus=\"if(this.value=='Paie&#240;kos tekstas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Paie&#240;kos tekstas...';}\">&nbsp;<input type='submit' value='Ie&#240;koti' name='option' class='button-ok'></form></div>
<div id='pagrindinis'><a href='".BASEDIR."news.php'><img src='".THEME."images/blank.gif' width='54' height='10' border='0' alt=''></a></div>
<div id='forumas'><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='siuntiniai'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/blank.gif' width='44' height='7' border='0' alt=''></a><div>


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

echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>\n<tr>\n";

}



function render_footer() {
global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' height='74' align='center' class='them-footer'>
<tr>
<td style='padding-left: 30px;'>
<span style='color: #ffffff;'>Dizainas:</span> <a href='http://estel.huh.lt'><span style='color: #ffffff;'>estel</span></a><br>
<span style='color: #ffffff;'>Programavimas:</span> <a href='http://cs.asilas.lt'><span style='color: #ffffff;'>Dyaz</span></a><br>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>

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


}

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

echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain-left'>\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
   echo "<a href='news.php?readmore=".$info['news_id']."' style='text-decoration: none'>".$info['news_subject']."</a>\n";
} else {
   echo $subject;
}
echo "</td>

</tr>
<tr>
<td class='main-body' colspan='2'>$news</td>
</tr>
<tr>
<td class='news-footer' colspan='2'><a href='news.php?readmore=".$info['news_id']."'>Skaityti daugiau..</a></td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

function opentable($title) {

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

}

function closetable() {

echo "</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";

}

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

}

function closeside() {

echo "</td>
</tr>
<tr>
<td class='side-footer'></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' align='center'>$title<img src='".THEME."images/blank.gif' width='10' height='0' alt=''>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
<tr>
<td class='side-footer'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}
?>






www.MAFIACLUB.lt

Redagavo And2s 2010 Bal. 30 16:04:40
2010 Bal. 30 16:04:04          24 žinutė iš 27
Spausdinti pranešimą
išvis neatidarė webo liežuvisp.

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Geg. 27 16:05:56          25 žinutė iš 27
Spausdinti pranešimą
Sveiki, vėl prireikė pagalbos. :)
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Vartotojo perziuros + suvestine
| Copyright © 2009 Dragelis
| https://webdnd.com
+----------------------------------------------------+
| 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
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";

if (!isset($group_id)) {
   if (!isset($lookup) || !isNum($lookup)) fallback("index.php");
   $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$lookup'");
   if (dbrows($result)) { $data = dbarray($result); } else { redirect("index.php"); }
   
/* Dragelio papildymas */
$no_avatar_url = IMAGES."avatars/noav.gif";

if ($_GET['lookup'] != $userdata['user_id']) {

if (!dbcount("(user_id)", "users", "user_id = '".$_GET['lookup']."' AND profile_last_viewer_ip = '".USER_IP."' AND profile_last_view_datestamp > ".(time()-2000))) $result = dbquery("UPDATE ".$db_prefix."users SET profile_views = profile_views+1, profile_last_viewer_ip = '".USER_IP."', profile_last_view_datestamp = '".time()."' WHERE user_id = '".$_GET['lookup']."' LIMIT 1");

if (!dbcount("(profile_visit_id)", "profile_visits", "profile_visit_user = '".$_GET['lookup']."' AND ".(iGUEST ? "profile_visit_ip = '".USER_IP."'" : "profile_visiter = '".$userdata['user_id']."'"))) {
   $result = dbquery("INSERT INTO ".$db_prefix."profile_visits (profile_visit_user, profile_visiter, profile_visit_datestamp, profile_visit_ip) VALUES ('".$_GET['lookup']."', '".(iGUEST ? 0 : $userdata['user_id'])."', '".time()."', '".USER_IP."');");
} else {
   $result = dbquery("UPDATE ".$db_prefix."profile_visits SET profile_visit_datestamp = '".time()."', profile_visit_ip = '".USER_IP."' WHERE profile_visit_user = '".$_GET['lookup']."' AND ".(iGUEST ? "profile_visit_ip = '".USER_IP."'" : "profile_visiter = '".$userdata['user_id']."'")." LIMIT 1");
}

}

if (isset($_GET['act'])) {
   $act = $_GET['act'];
   if ($act == "delete_views") {
      if ($_GET['lookup'] == $userdata['user_id'] || (iADMIN && checkrights("M"))) {
         $result = dbquery("UPDATE ".$db_prefix."users SET profile_views = '0', profile_last_viewer_ip = '0.0.0.0', profile_last_view_datestamp = '0' WHERE user_id = '".$_GET['lookup']."' LIMIT 1");
         $result = dbquery("DELETE FROM ".$db_prefix."profile_visits WHERE profile_visit_user = '".$_GET['lookup']."'");
         if ($result) fallback(FUSION_SELF."?lookup=".$_GET['lookup']."&status=ok");
      } else {
         fallback(FUSION_SELF."?lookup=".$_GET['lookup']."&status=no");
      }
   }
}

   if ($data['user_birthdate'] != "0000-00-00") {
      $months = explode("|", $locale['months']);
      $user_birthdate = explode("-", $data['user_birthdate']);
      $user_birthdate = $months[number_format($user_birthdate['1'])]." ".number_format($user_birthdate['2'])." ".$user_birthdate['0'];
   } else {
      $user_birthdate = $locale['u048'];
   }

   opentable($locale['420']);
   echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
   <tr>
  <td align='center' width='160' rowspan='7' class='tbl2'>
   ".($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'>" : "<img src='$no_avatar_url' alt=''>")."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>Vartotojo vardas:</b></td>
  <td class='tbl2'>".$data['user_name']."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>Pareigos:</b></td>
  <td class='tbl2'>".getuserlevel($data['user_level'])."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u009']."</b></td>
  <td class='tbl2'>".($data['user_location'] ? $data['user_location'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u010']."</b></td>
  <td class='tbl2'>$user_birthdate</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u052'].":</b></td>
  <td class='tbl2'>".($data['user_web'] != '' ? "<a href='".(!strstr($data['user_web'], "http://") ? "http://" : '').$data['user_web']."' target='_blank'>U&#382;eiti</a>" : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u051'].":</b></td>
  <td class='tbl2'>".($data['user_hide_email'] != 1 || iADMIN ? "<a href='mailto:".str_replace("@", "&#64;", $data['user_email'])."'>&#381;i&#363;r&#279;ti</a>" : 'Nerodomas visiems')."</td>
  </tr>
  <tr>
  <td class='tbl2' colspan='3'>&#352;is narys komentuotas: <b>".number_format(dbcount("(comment_id)", "comments", "comment_type = 'U' AND comment_item_id = '".$_GET['lookup']."'"))."</b> kartus(-&#371;) ir per&#382;i&#363;r&#279;tas <b>".$data['profile_views']."</b> kartus(-&#371;). ".(iADMIN || $_GET['lookup'] == $userdata['user_id'] ? "<a href='".FUSION_SELF."?lookup=".$_GET['lookup']."&act=delete_views' title='Valyti per&#382;i&#363;ras'>[Valyti per&#382;i&#363;ras]</a>" : '')."</td>
  </tr>
  ".(iMEMBER && $data['user_id'] != $userdata['user_id'] ? "<tr>
  <td align='center' colspan='3' class='tbl2'><img src='".IMAGES."icons/pm.png' alt=''> <a href='messages.php?msg_send=".$data['user_id']."' title='Si&#371;sti asmenin&#281; &#382;inut&#281;'>Si&#371;sti asmenin&#281; &#382;inut&#281;</a></td>
  </tr>" : '')."
  </table>\n";
 
  tablebreak();
 
   echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
   <tr>
  <td class='tbl2' colspan='2'><b>Kontaktin&#279; informacija</b></td>
  </tr>
   <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u021']."</b></td>
  <td class='tbl2'>".($data['user_aim'] ? $data['user_aim'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u011']."</b></td>
  <td class='tbl2'>".($data['user_icq'] ? $data['user_icq'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u012']."</b></td>
  <td class='tbl2'>".($data['user_msn'] ? $data['user_msn'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u013']."</b></td>
  <td class='tbl2'>".($data['user_yahoo'] ? $data['user_yahoo'] : $locale['u048'])."</td>
  </tr>
  </table>\n";

  tablebreak();
 
  /* Dragelio papildymas baigtas */
   
   echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td class='tbl2' colspan='2'><b>".$locale['422']."</b></td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u040']."</b></td>
<td class='tbl2'>".showdate("longdate", $data['user_joined'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u044']."</b></td>
<td class='tbl2'>".($data['user_lastvisit'] != 0 ? showdate("longdate", $data['user_lastvisit']) : $locale['u049'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u041']."</b></td>
<td class='tbl2'>".number_format(dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u042']."</b></td>
<td class='tbl2'>".number_format(dbcount("(comment_id)", "comments", "comment_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u043']."</b></td>
<td class='tbl2'>".number_format($data['user_posts'])."</td>
</tr>
</table>\n";

   if ($data['user_groups']) {
      tablebreak();
      echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
      echo "<tr>\n<td class='tbl2'><b>".$locale['423']."</b></td>\n\n</tr>\n<tr>\n<td class='tbl1'>\n";
      $user_groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups']));
      for ($i = 0;$i < count($user_groups);$i++) {
         echo "<a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a>";
         if ($i != (count($user_groups)-1)) { echo ",\n"; } else { echo "\n"; }
      }
      echo "</td>\n</tr>\n</table>\n";
   }

   
   /* Dragelio papildymas */
   
   tablebreak();
   echo "<table align='center' cellspacing='1' width='100%' class='tbl-border'>
  <tr>
  <td class='tbl2' colspan='3'><b>".$data['user_name']." sukurtos temos forume</b></td>
  </tr>\n";
   
   $thread_result = dbquery("
   SELECT thread_subject, forum_id, thread_views, thread_id FROM ".$db_prefix."threads
   WHERE thread_author = '".$data['user_id']."'
   ORDER BY thread_lastpost
   DESC LIMIT 5
  ");

  if (dbrows($thread_result)) {
  echo "<tr>
  <td class='tbl2'><b>Tema</b></td>
  <td class='tbl2'><b>&#381;i&#363;r&#279;jo</b></td>
  <td class='tbl2'><b>Atsakym&#371;</b></td>
  </tr>\n";
   while ($thread_data = dbarray($thread_result)) {
   echo "<tr>
   <td class='tbl2'><a href='".FORUM."viewthread.php?forum_id=".$thread_data['forum_id']."&amp;thread_id=".$thread_data['thread_id']."'>".trimlink($thread_data['thread_subject'], 40)."</a></td>
   <td class='tbl2'>".$thread_data['thread_views']."</td>
   <td class='tbl2'>".(dbcount("(post_id)", "posts", "thread_id = '".$thread_data['thread_id']."'") - 1)."</td>
   </tr>\n";
   }
  } else {
   echo "<tr>
   <td class='tbl2' colspan='3'>Vartotojas ".$data['user_name']." tem&#371; forume nesuk&#363;r&#279;!</td>
   </tr>\n";
  }
 
  echo "</table>\n";
 
  tablebreak();
   echo "<table align='center' cellspacing='1' width='100%' class='tbl-border'>
  <tr>
  <td class='tbl2' colspan='3'><b>".$data['user_name']." para&#353;ytos &#382;inut&#279;s forume</b></td>
  </tr>\n";
 
  $post_result = dbquery("
   SELECT post_subject, post_datestamp, thread_id, forum_id, post_id FROM ".$db_prefix."posts
   WHERE post_author = '".$data['user_id']."'
   ORDER BY post_datestamp
   DESC LIMIT 5
  ");
 
  if (dbrows($post_result)) {
  echo "<tr>
  <td class='tbl2'><b>Pavadinimas</b></td>
  <td class='tbl2'><b>Data</b></td>
  </tr>\n";
   while ($post_data = dbarray($post_result)) {
   $rows = dbcount("(post_id)", "posts", "thread_id = '".$post_data['thread_id']."' AND post_datestamp < ".$post_data['post_datestamp']);
   echo "<tr>
   <td class='tbl2'><a href='".FORUM."viewthread.php?forum_id=".$post_data['forum_id']."&amp;thread_id=".$post_data['thread_id']."&rowstart=".($rows < 10 ? 0 : ($rows-$rows%10))."#post_".$post_data['post_id']."'>".trimlink($post_data['post_subject'], 40)."</a></td>
   <td class='tbl2'>".showdate("%Y-%m-%d %H:%M", $post_data['post_datestamp'])."</td>
   </tr>\n";
   }
  } else {
   echo "<tr>
   <td class='tbl2' colspan='3'>Vartotojas ".$data['user_name']." prane&#353;im&#371; forume nera&#353;&#279;!</td>
   </tr>\n";
  }
 
  echo "</table>\n";
  closetable();
   
   if (isset($_GET['status']) && $_GET['status'] == "ok" || $_GET['status'] == "no") {
   tablebreak();
   opentable("Informacij&#261; apie per&#382;i&#363;ri&#371; trinim&#261;");
   echo "<center><b>".($_GET['status'] == "ok" ? "Per&#382;i&#363;ros buvo s&#279;kmingai i&#353;trintos!" : '').
   ($_GET['status'] == "no" ? "J&#363;s neturite privilegij&#371;, norint atlikti &#353;ita veiksm&#261;!" : '')."</center></b>\n";
   closetable();
   }
   
   if (iADMIN && checkrights("M") || $_GET['lookup'] == $userdata['user_id']) {
   tablebreak();
   opentable($_GET['lookup'] == $userdata['user_id'] ? "Mano profilio lankytojai" : "Vartotojo ".$data['user_name']." profilio lankytojai");
   
         $result = dbquery("
            SELECT user_id, user_name, user_avatar, profile_visit_datestamp, profile_visit_ip, profile_visiter FROM ".$db_prefix."profile_visits
            LEFT JOIN ".$db_prefix."users ON profile_visiter = user_id
            WHERE profile_visit_user = '".$_GET['lookup']."'".(!iADMIN && !checkrights("M") ? " AND profile_visiter <> 1" : '')."
            ORDER BY profile_visit_datestamp
            DESC LIMIT 5
         ");
         
   if (dbrows($result)) {
         echo "<table align='center' cellspacing='1' width='100%' class='tbl-border'>
         <tr>\n";
         while ($profile_data = dbarray($result)) {
            echo "<td align='center' class='tbl2'><span title='Lank&#279;si: ".showdate("%Y-%m-%d %H:%M:%S", $profile_data['profile_visit_datestamp']).(iADMIN && checkrights("M") || $profile_data['profile_visiter'] == 0 ? ", Lankytojo IP: ".$profile_data['profile_visit_ip'] : '')."'>".($profile_data['user_avatar'] != '' && file_exists(IMAGES."avatars/".$profile_data['user_avatar']) && $profile_data['profile_visiter'] != 0 ? "<img src='".IMAGES."avatars/".$profile_data['user_avatar']."' weight='60' height='60' alt=''>" : "<img src='$no_avatar_url' alt=''>")."</span><br>
            <img src='".THEME."images/bullet.gif' alt=''> ".($profile_data['profile_visiter'] != 0 ? "<a href='".FUSION_SELF."?lookup=".$profile_data['user_id']."'>".$profile_data['user_name']."</a>" : "<b>Sve&#269;ias</b>")."</td>\n";
         }
         echo "</tr>
         ".(dbrows($result) > 5 ? "<tr>
        <td align='center' colspan='5' class='tbl2'><a href='".BASEDIR."profile_visits.php?lookup=".$_GET['lookup']."'>Rodyti visus lankytojus</a></td>
         </tr>" : '')."
      </table>\n";
   } else {
      echo "<center><b>&#352;io profilio dar niekas neaplank&#279;!</b></center>\n";
   }
   closetable();
   tablebreak();
}
 
  include INCLUDES."comments_include.php";
   showcomments("U", "users", "user_id", $_GET['lookup'], FUSION_SELF."?lookup=".$_GET['lookup']);
   
   /* Dragelio papildymas baigtas */
   
} else {
   if (!isNum($group_id)) fallback("index.php");
   $result = dbquery("SELECT * FROM ".$db_prefix."user_groups WHERE group_id='$group_id'");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_groups REGEXP('^\\\.{$group_id}$|\\\.{$group_id}\\\.|\\\.{$group_id}$') ORDER BY user_level DESC, user_name");
      opentable($locale['410']);
      echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td align='center' colspan='2' class='tbl1'><b>".$data['group_name']."</b> (".sprintf((dbrows($result)==1?$locale['411']:$locale['412']), dbrows($result)).")</td>
</tr>
<tr>
<td class='tbl2'><b>".$locale['401']."</b></td>
<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['402']."</b></td>
</tr>\n";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
         echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
         echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
      }
      echo "</table>\n";
      closetable();
   } else {
      fallback(BASEDIR."index.php");
   }
}

require_once "side_right.php";
require_once "footer.php";
?>




Štai mano profile.php failas jai galit idėkit toki kodą kad rodytu vartotojo ip tik administratoriams :)

Ir dar į kurį kataloga reikia dėti .htaccess failą??

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
2010 Geg. 27 19:05:20          26 žinutė iš 27
Spausdinti pranešimą
.htaccess kelk į root.
o dėl to profile naudok if (iADMIN)
pameginsiu uždėti:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Vartotojo perziuros + suvestine
| Copyright © 2009 Dragelis
| https://webdnd.com
+----------------------------------------------------+
| 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
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";

if (!isset($group_id)) {
   if (!isset($lookup) || !isNum($lookup)) fallback("index.php");
   $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$lookup'");
   if (dbrows($result)) { $data = dbarray($result); } else { redirect("index.php"); }
   
/* Dragelio papildymas */
$no_avatar_url = IMAGES."avatars/noav.gif";

if ($_GET['lookup'] != $userdata['user_id']) {

if (iAdmin("(admin_id)", "users", "user_id = '".$_GET['lookup']."' AND profile_last_viewer_ip = '".USER_IP."' AND profile_last_view_datestamp > ".(time()-2000))) $result = dbquery("UPDATE ".$db_prefix."users SET profile_views = profile_views+1, profile_last_viewer_ip = '".USER_IP."', profile_last_view_datestamp = '".time()."' WHERE user_id = '".$_GET['lookup']."' LIMIT 1");

if (!dbcount("(profile_visit_id)", "profile_visits", "profile_visit_user = '".$_GET['lookup']."' AND ".(iGUEST ? "profile_visit_ip = '".USER_IP."'" : "profile_visiter = '".$userdata['user_id']."'"))) {
   $result = dbquery("INSERT INTO ".$db_prefix."profile_visits (profile_visit_user, profile_visiter, profile_visit_datestamp, profile_visit_ip) VALUES ('".$_GET['lookup']."', '".(iGUEST ? 0 : $userdata['user_id'])."', '".time()."', '".USER_IP."');");
} else {
   $result = dbquery("UPDATE ".$db_prefix."profile_visits SET profile_visit_datestamp = '".time()."', profile_visit_ip = '".USER_IP."' WHERE profile_visit_user = '".$_GET['lookup']."' AND ".(iGUEST ? "profile_visit_ip = '".USER_IP."'" : "profile_visiter = '".$userdata['user_id']."'")." LIMIT 1");
}

}

if (isset($_GET['act'])) {
   $act = $_GET['act'];
   if ($act == "delete_views") {
      if ($_GET['lookup'] == $userdata['user_id'] || (iADMIN && checkrights("M"))) {
         $result = dbquery("UPDATE ".$db_prefix."users SET profile_views = '0', profile_last_viewer_ip = '0.0.0.0', profile_last_view_datestamp = '0' WHERE user_id = '".$_GET['lookup']."' LIMIT 1");
         $result = dbquery("DELETE FROM ".$db_prefix."profile_visits WHERE profile_visit_user = '".$_GET['lookup']."'");
         if ($result) fallback(FUSION_SELF."?lookup=".$_GET['lookup']."&status=ok");
      } else {
         fallback(FUSION_SELF."?lookup=".$_GET['lookup']."&status=no");
      }
   }
}

   if ($data['user_birthdate'] != "0000-00-00") {
      $months = explode("|", $locale['months']);
      $user_birthdate = explode("-", $data['user_birthdate']);
      $user_birthdate = $months[number_format($user_birthdate['1'])]." ".number_format($user_birthdate['2'])." ".$user_birthdate['0'];
   } else {
      $user_birthdate = $locale['u048'];
   }

   opentable($locale['420']);
   echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
   <tr>
  <td align='center' width='160' rowspan='7' class='tbl2'>
   ".($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'>" : "<img src='$no_avatar_url' alt=''>")."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>Vartotojo vardas:</b></td>
  <td class='tbl2'>".$data['user_name']."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>Pareigos:</b></td>
  <td class='tbl2'>".getuserlevel($data['user_level'])."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u009']."</b></td>
  <td class='tbl2'>".($data['user_location'] ? $data['user_location'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u010']."</b></td>
  <td class='tbl2'>$user_birthdate</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u052'].":</b></td>
  <td class='tbl2'>".($data['user_web'] != '' ? "<a href='".(!strstr($data['user_web'], "http://") ? "http://" : '').$data['user_web']."' target='_blank'>U&#382;eiti</a>" : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u051'].":</b></td>
  <td class='tbl2'>".($data['user_hide_email'] != 1 || iADMIN ? "<a href='mailto:".str_replace("@", "&#64;", $data['user_email'])."'>&#381;i&#363;r&#279;ti</a>" : 'Nerodomas visiems')."</td>
  </tr>
  <tr>
  <td class='tbl2' colspan='3'>&#352;is narys komentuotas: <b>".number_format(dbcount("(comment_id)", "comments", "comment_type = 'U' AND comment_item_id = '".$_GET['lookup']."'"))."</b> kartus(-&#371;) ir per&#382;i&#363;r&#279;tas <b>".$data['profile_views']."</b> kartus(-&#371;). ".(iADMIN || $_GET['lookup'] == $userdata['user_id'] ? "<a href='".FUSION_SELF."?lookup=".$_GET['lookup']."&act=delete_views' title='Valyti per&#382;i&#363;ras'>[Valyti per&#382;i&#363;ras]</a>" : '')."</td>
  </tr>
  ".(iMEMBER && $data['user_id'] != $userdata['user_id'] ? "<tr>
  <td align='center' colspan='3' class='tbl2'><img src='".IMAGES."icons/pm.png' alt=''> <a href='messages.php?msg_send=".$data['user_id']."' title='Si&#371;sti asmenin&#281; &#382;inut&#281;'>Si&#371;sti asmenin&#281; &#382;inut&#281;</a></td>
  </tr>" : '')."
  </table>\n";
 
  tablebreak();
 
   echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
   <tr>
  <td class='tbl2' colspan='2'><b>Kontaktin&#279; informacija</b></td>
  </tr>
   <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u021']."</b></td>
  <td class='tbl2'>".($data['user_aim'] ? $data['user_aim'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u011']."</b></td>
  <td class='tbl2'>".($data['user_icq'] ? $data['user_icq'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u012']."</b></td>
  <td class='tbl2'>".($data['user_msn'] ? $data['user_msn'] : $locale['u048'])."</td>
  </tr>
  <tr>
  <td width='10%' class='tbl2' style='white-space:nowrap'><b>".$locale['u013']."</b></td>
  <td class='tbl2'>".($data['user_yahoo'] ? $data['user_yahoo'] : $locale['u048'])."</td>
  </tr>
  </table>\n";

  tablebreak();
 
  /* Dragelio papildymas baigtas */
   
   echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td class='tbl2' colspan='2'><b>".$locale['422']."</b></td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u040']."</b></td>
<td class='tbl2'>".showdate("longdate", $data['user_joined'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u044']."</b></td>
<td class='tbl2'>".($data['user_lastvisit'] != 0 ? showdate("longdate", $data['user_lastvisit']) : $locale['u049'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u041']."</b></td>
<td class='tbl2'>".number_format(dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u042']."</b></td>
<td class='tbl2'>".number_format(dbcount("(comment_id)", "comments", "comment_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u043']."</b></td>
<td class='tbl2'>".number_format($data['user_posts'])."</td>
</tr>
</table>\n";

   if ($data['user_groups']) {
      tablebreak();
      echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
      echo "<tr>\n<td class='tbl2'><b>".$locale['423']."</b></td>\n\n</tr>\n<tr>\n<td class='tbl1'>\n";
      $user_groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups']));
      for ($i = 0;$i < count($user_groups);$i++) {
         echo "<a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a>";
         if ($i != (count($user_groups)-1)) { echo ",\n"; } else { echo "\n"; }
      }
      echo "</td>\n</tr>\n</table>\n";
   }

   
   /* Dragelio papildymas */
   
   tablebreak();
   echo "<table align='center' cellspacing='1' width='100%' class='tbl-border'>
  <tr>
  <td class='tbl2' colspan='3'><b>".$data['user_name']." sukurtos temos forume</b></td>
  </tr>\n";
   
   $thread_result = dbquery("
   SELECT thread_subject, forum_id, thread_views, thread_id FROM ".$db_prefix."threads
   WHERE thread_author = '".$data['user_id']."'
   ORDER BY thread_lastpost
   DESC LIMIT 5
  ");

  if (dbrows($thread_result)) {
  echo "<tr>
  <td class='tbl2'><b>Tema</b></td>
  <td class='tbl2'><b>&#381;i&#363;r&#279;jo</b></td>
  <td class='tbl2'><b>Atsakym&#371;</b></td>
  </tr>\n";
   while ($thread_data = dbarray($thread_result)) {
   echo "<tr>
   <td class='tbl2'><a href='".FORUM."viewthread.php?forum_id=".$thread_data['forum_id']."&amp;thread_id=".$thread_data['thread_id']."'>".trimlink($thread_data['thread_subject'], 40)."</a></td>
   <td class='tbl2'>".$thread_data['thread_views']."</td>
   <td class='tbl2'>".(dbcount("(post_id)", "posts", "thread_id = '".$thread_data['thread_id']."'") - 1)."</td>
   </tr>\n";
   }
  } else {
   echo "<tr>
   <td class='tbl2' colspan='3'>Vartotojas ".$data['user_name']." tem&#371; forume nesuk&#363;r&#279;!</td>
   </tr>\n";
  }
 
  echo "</table>\n";
 
  tablebreak();
   echo "<table align='center' cellspacing='1' width='100%' class='tbl-border'>
  <tr>
  <td class='tbl2' colspan='3'><b>".$data['user_name']." para&#353;ytos &#382;inut&#279;s forume</b></td>
  </tr>\n";
 
  $post_result = dbquery("
   SELECT post_subject, post_datestamp, thread_id, forum_id, post_id FROM ".$db_prefix."posts
   WHERE post_author = '".$data['user_id']."'
   ORDER BY post_datestamp
   DESC LIMIT 5
  ");
 
  if (dbrows($post_result)) {
  echo "<tr>
  <td class='tbl2'><b>Pavadinimas</b></td>
  <td class='tbl2'><b>Data</b></td>
  </tr>\n";
   while ($post_data = dbarray($post_result)) {
   $rows = dbcount("(post_id)", "posts", "thread_id = '".$post_data['thread_id']."' AND post_datestamp < ".$post_data['post_datestamp']);
   echo "<tr>
   <td class='tbl2'><a href='".FORUM."viewthread.php?forum_id=".$post_data['forum_id']."&amp;thread_id=".$post_data['thread_id']."&rowstart=".($rows < 10 ? 0 : ($rows-$rows%10))."#post_".$post_data['post_id']."'>".trimlink($post_data['post_subject'], 40)."</a></td>
   <td class='tbl2'>".showdate("%Y-%m-%d %H:%M", $post_data['post_datestamp'])."</td>
   </tr>\n";
   }
  } else {
   echo "<tr>
   <td class='tbl2' colspan='3'>Vartotojas ".$data['user_name']." prane&#353;im&#371; forume nera&#353;&#279;!</td>
   </tr>\n";
  }
 
  echo "</table>\n";
  closetable();
   
   if (isset($_GET['status']) && $_GET['status'] == "ok" || $_GET['status'] == "no") {
   tablebreak();
   opentable("Informacij&#261; apie per&#382;i&#363;ri&#371; trinim&#261;");
   echo "<center><b>".($_GET['status'] == "ok" ? "Per&#382;i&#363;ros buvo s&#279;kmingai i&#353;trintos!" : '').
   ($_GET['status'] == "no" ? "J&#363;s neturite privilegij&#371;, norint atlikti &#353;ita veiksm&#261;!" : '')."</center></b>\n";
   closetable();
   }
   
   if (iADMIN && checkrights("M") || $_GET['lookup'] == $userdata['user_id']) {
   tablebreak();
   opentable($_GET['lookup'] == $userdata['user_id'] ? "Mano profilio lankytojai" : "Vartotojo ".$data['user_name']." profilio lankytojai");
   
         $result = dbquery("
            SELECT user_id, user_name, user_avatar, profile_visit_datestamp, profile_visit_ip, profile_visiter FROM ".$db_prefix."profile_visits
            LEFT JOIN ".$db_prefix."users ON profile_visiter = user_id
            WHERE profile_visit_user = '".$_GET['lookup']."'".(!iADMIN && !checkrights("M") ? " AND profile_visiter <> 1" : '')."
            ORDER BY profile_visit_datestamp
            DESC LIMIT 5
         ");
         
   if (dbrows($result)) {
         echo "<table align='center' cellspacing='1' width='100%' class='tbl-border'>
         <tr>\n";
         while ($profile_data = dbarray($result)) {
            echo "<td align='center' class='tbl2'><span title='Lank&#279;si: ".showdate("%Y-%m-%d %H:%M:%S", $profile_data['profile_visit_datestamp']).(iADMIN && checkrights("M") || $profile_data['profile_visiter'] == 0 ? ", Lankytojo IP: ".$profile_data['profile_visit_ip'] : '')."'>".($profile_data['user_avatar'] != '' && file_exists(IMAGES."avatars/".$profile_data['user_avatar']) && $profile_data['profile_visiter'] != 0 ? "<img src='".IMAGES."avatars/".$profile_data['user_avatar']."' weight='60' height='60' alt=''>" : "<img src='$no_avatar_url' alt=''>")."</span><br>
            <img src='".THEME."images/bullet.gif' alt=''> ".($profile_data['profile_visiter'] != 0 ? "<a href='".FUSION_SELF."?lookup=".$profile_data['user_id']."'>".$profile_data['user_name']."</a>" : "<b>Sve&#269;ias</b>")."</td>\n";
         }
         echo "</tr>
         ".(dbrows($result) > 5 ? "<tr>
        <td align='center' colspan='5' class='tbl2'><a href='".BASEDIR."profile_visits.php?lookup=".$_GET['lookup']."'>Rodyti visus lankytojus</a></td>
         </tr>" : '')."
      </table>\n";
   } else {
      echo "<center><b>&#352;io profilio dar niekas neaplank&#279;!</b></center>\n";
   }
   closetable();
   tablebreak();
}
 
  include INCLUDES."comments_include.php";
   showcomments("U", "users", "user_id", $_GET['lookup'], FUSION_SELF."?lookup=".$_GET['lookup']);
   
   /* Dragelio papildymas baigtas */
   
} else {
   if (!isNum($group_id)) fallback("index.php");
   $result = dbquery("SELECT * FROM ".$db_prefix."user_groups WHERE group_id='$group_id'");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_groups REGEXP('^\\\.{$group_id}$|\\\.{$group_id}\\\.|\\\.{$group_id}$') ORDER BY user_level DESC, user_name");
      opentable($locale['410']);
      echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td align='center' colspan='2' class='tbl1'><b>".$data['group_name']."</b> (".sprintf((dbrows($result)==1?$locale['411']:$locale['412']), dbrows($result)).")</td>
</tr>
<tr>
<td class='tbl2'><b>".$locale['401']."</b></td>
<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['402']."</b></td>
</tr>\n";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
         echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
         echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
      }
      echo "</table>\n";
      closetable();
   } else {
      fallback(BASEDIR."index.php");
   }
}

require_once "side_right.php";
require_once "footer.php";
?>





2010 Geg. 27 19:05:52          27 žinutė iš 27
Spausdinti pranešimą
Na nieko nerodo viskas kaip buvo.

Skype: pancea.one.lt
Rašykit kuriems reikia pagalbos
su kompiuteriais,tinklalapiais ir pan.
Peršokti į forumą: