Cia theme.php
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "620";
$theme_width_l = "269";
$theme_width_r = "269";
function render_header($header_content) {
global $theme_width,$userdata,$data,$db_prefix,$lookup,$msg_count,$aidlink,$locale,$data,$aidlink,$settings,$msg_count;
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."user_info_panel/locale/English.php";
}
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td><img src=\"".THEME."images/zdj_03.jpg\" width=\"916\" height=\"23\" border=\"0\" alt=\"[Rozmiar: 7715 bajtów]\"></td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td><img src=\"".THEME."images/zdj_05.jpg\" width=\"703\" height=\"198\" border=\"0\" alt=\"[Rozmiar: 72613 bajtów]\"></td>
<td background=\"".THEME."images/zdj_06.jpg\" width=\"213\" height=\"198\">
<!-- logowanie -->";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></td><br>";
echo "</table></center>";
} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".FORUM."/images/brak.gif' width='50' hight='50'></td>";
echo "</table></center>";
echo"<table><tr><td></td></tr></table>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <br><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Narių sarašas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."photogallery.php' class='side'>Foto galerija<b></a><br><br>\n";
echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td><b>Admino panelė:</b><br></td></tr>
<tr>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink' >Panelė turinio</a></td></tr>
</table></center>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<center><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink' >Panelė Administratoriaus</a></center><br>\n";
}{echo "\n";
echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td><b>Pateik:</b><br></td></tr>
<tr>
<td><a href='".BASEDIR."submit.php?stype=n' >Naujieną | </a><a href='".BASEDIR."submit.php?stype=a' >Straipsnį | </a><a href='".BASEDIR."submit.php?stype=p' >Foto | </a></td>
</tr>
</table></center><br>";
echo"<div style=\"text-align: center\"><a href='".BASEDIR."setuser.php?logout=yes' class='side'>[ Wyloguj ]</a></div>\n";
if ($msg_count) echo "<center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='panellogowania_texbox' value='Login....' onBlur=\"if(this.value=='') this.value='Login....';\" onFocus=\"if(this.value=='Login....') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>
<input type='password' name='user_pass' class='panellogowania_texbox' value='has³o' onBlur=\"if(this.value=='') this.value='has³o';\" onFocus=\"if(this.value=='has³o') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Prisijungti' class='panelogowania_button'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Registracija</a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Pamiršau slaptažodį</a>
</div>\n";
}
closesidel();
echo "</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td background=\"".THEME."images/zdj_14.jpg\" width=\"231\" height=\"200\" style=\"padding-left: 20px; padding-right: 90px\">";
if (!isset($usr_grps)) $usr_grps="";
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name,user_color,user_prefix FROM theme_forums tf
INNER JOIN theme_threads tt USING(forum_id)
INNER JOIN theme_users tu ON tt.thread_lastuser=tu.user_id
".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,11");
if (dbrows($result) != 0) {
$i=0;
if ($theme_width == "100%") echo "\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
$new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
//$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
$thread_replies = $data['thread_replies'];
$forum_id = $data['forum_id'];
if ($new_posts > 0) {
$folder123 = "<img src='".THEME."images/bullet.gif' height='7'>";
} else if ($new_posts > 19) {
$folder123 = "<img src='".THEME."images/bullet.gif' height='7'>";
} else {
if ($data['thread_locked'] == 1) {
$folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
} else if ($data['thread_locked'] == 0) {
$folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
}
}
//$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
$reply_count = $data['thread_replies']+1;
$data2 = dbarray(dbquery("SELECT post_id FROM theme_posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
$threads_message = $data['thread_subject'];
$threads_message = str_replace("'", "", $threads_message);
$rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
if ($theme_width == "100%") {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"ddrivetip('$start<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_019']."</b>: ".$threads_message."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
} else {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"gpe('text:<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("'", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost']).";')\" (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
}
echo "</tr></table>";
$i++;
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</td>
<td background=\"".THEME."images/zdj_15.jpg\" width=\"221\" height=\"200\" style=\"padding-left: 100px\">";$result = dbquery("SELECT article_id, article_subject FROM ".$db_prefix."articles ORDER BY article_id DESC LIMIT 0,9");
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="'.BASEDIR.'readarticle.php?article_id=';
echo($row['article_id']);
echo '">';
echo($row['article_subject']);
echo '</a>';
echo '<br>';
}echo "</td>
<td background=\"".THEME."images/zdj_16.jpg\" width=\"254\" height=\"200\">";
$result=dbquery(
"SELECT tp.*, ta.* FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING(album_id)
WHERE ".groupaccess('album_access')." ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
$data=dbarray($result);
$randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<div style='text-align:center'>";
echo"
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."' width='".$settings['thumb_image_w']."' height='".$settings['thumb_image_h']."' border='1' class='style1'></a><br><a href='".BASEDIR."photogallery.php?album=".$data['album_id']."' style=\"color: #F5F5F5\">".$data['photo_title']."</a></div>";
}
echo" </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "
</td>
</tr>
<tr>
<td><img src=\"".THEME."images/zdj_26.jpg\" width=\"916\" height=\"100\" border=\"0\" alt=\"[Rozmiar: 8928 bajtów]\"></td>
</tr>
<tr>
<td align=\"center\" width=\"916\" style=\"color: #A9A9A9\">".stripslashes($settings['footer'])."<br>
nr:".$settings['counter']."<br>
<!-- Pamiźtaj - Usuwanie Stopki autora = naruszenie praw autorskich = sankcje prawne - zastanów siź zanim usuniesz! -->
Theme by angelside (<a href=\"http://grafa.biz\">grafa.biz</a>) engine: <a href=\"http://extreme-fusion.pl\">php-fusion</a> links: <a href=\"http://okna.eu.pl\" title=\"okna\">okna</a>, <a href=\"http://okna.eu.pl\" title=\"okna pcv\">okna pcv</a>, <a href=\"http://okna.eu.pl\" title=\"okna drewniane\">okna drewniane</a>
</td>
</tr>
</table>
\n";
}
function render_news($subject, $news, $info) {
global $settings;
opentable
($subject."<br><span style=\"font-weight: normal\">
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>[ Czytaj wiecej ]</a> ·\n" : "")."
Komentarzy: <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Czytan:
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></span>");
echo "
$news
";
closetable();
}
function render_article($subject, $article, $info) {
opentable ($subject);
echo "".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='tbl2'>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
\n";
closetable();
}
function opentable($title) {
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"631\">
<tr>
<td style=\"background-image: url('".THEME."images/zdj_21.jpg'); height: 66px; width: 631px\" align=\"center\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/zdj_23.jpg')\"><div style=\"padding-left: 22px; padding-right: 22px\">";
}
function closetable() {
echo "
</div></td>
</tr>
<tr>
<td><img src=\"".THEME."images/zdj_25.jpg\" width=\"631\" height=\"40\" border=\"0\" alt=\"[Rozmiar: 9447 bajtów]\"></td>
</tr>
</table>\n";
}
function openside($title) {
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"278\">
<tr>
<td style=\"background-image: url('".THEME."images/zdj_19.jpg'); height: 59px; width: 278px\">
<div style=\"color: #000000; font-family: Forte; font-size: 13px; font-weight: bolder; padding-right: 88px; padding-top: 22px; text-align: right\">$title</div>
</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/zdj_22.jpg'); background-position: bottom; background-repeat: no-repeat; color: #FFFFCC; padding-bottom: 22px; padding-top: 11px\">
<div style=\"padding-left: 22px; padding-right: 22px\">
\n";
}
function closeside() {
echo "
</div></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
}
?>
Cia radau forumo pranesimus gal kas galit idet nes as nz kur deti i theme.php
$result = dbquery("
SELECT * FROM ".$db_prefix."threads
INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 8
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo " <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='resursai' >$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
|
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "620";
$theme_width_l = "269";
$theme_width_r = "269";
function render_header($header_content) {
global $theme_width,$userdata,$data,$db_prefix,$lookup,$msg_count,$aidlink,$locale,$data,$aidlink,$settings,$msg_count;
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."user_info_panel/locale/English.php";
}
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td><img src=\"".THEME."images/zdj_03.jpg\" width=\"916\" height=\"23\" border=\"0\" alt=\"[Rozmiar: 7715 bajtów]\"></td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td><img src=\"".THEME."images/zdj_05.jpg\" width=\"703\" height=\"198\" border=\"0\" alt=\"[Rozmiar: 72613 bajtów]\"></td>
<td background=\"".THEME."images/zdj_06.jpg\" width=\"213\" height=\"198\">
<!-- logowanie -->";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></td><br>";
echo "</table></center>";
} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".FORUM."/images/brak.gif' width='50' hight='50'></td>";
echo "</table></center>";
echo"<table><tr><td></td></tr></table>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <br><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilį</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Narių sarašas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."photogallery.php' class='side'>Foto galerija<b></a><br><br>\n";
echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td><b>Admino panelė:</b><br></td></tr>
<tr>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink' >Panelė turinio</a></td></tr>
</table></center>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<center><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink' >Panelė Administratoriaus</a></center><br>\n";
}{echo "\n";
echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td><b>Pateik:</b><br></td></tr>
<tr>
<td><a href='".BASEDIR."submit.php?stype=n' >Naujieną | </a><a href='".BASEDIR."submit.php?stype=a' >Straipsnį | </a><a href='".BASEDIR."submit.php?stype=p' >Foto | </a></td>
</tr>
</table></center><br>";
echo"<div style=\"text-align: center\"><a href='".BASEDIR."setuser.php?logout=yes' class='side'>[ Wyloguj ]</a></div>\n";
if ($msg_count) echo "<center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='panellogowania_texbox' value='Login....' onBlur=\"if(this.value=='') this.value='Login....';\" onFocus=\"if(this.value=='Login....') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>
<input type='password' name='user_pass' class='panellogowania_texbox' value='has³o' onBlur=\"if(this.value=='') this.value='has³o';\" onFocus=\"if(this.value=='has³o') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Prisijungti' class='panelogowania_button'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Registracija</a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Pamiršau slaptažodį</a>
</div>\n";
}
closesidel();
echo "</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td background=\"".THEME."images/zdj_14.jpg\" width=\"231\" height=\"200\" style=\"padding-left: 20px; padding-right: 90px\">";
if (!isset($usr_grps)) $usr_grps="";
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name,user_color,user_prefix FROM theme_forums tf
INNER JOIN theme_threads tt USING(forum_id)
INNER JOIN theme_users tu ON tt.thread_lastuser=tu.user_id
".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,11");
if (dbrows($result) != 0) {
$i=0;
if ($theme_width == "100%") echo "\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
$new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
//$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
$thread_replies = $data['thread_replies'];
$forum_id = $data['forum_id'];
if ($new_posts > 0) {
$folder123 = "<img src='".THEME."images/bullet.gif' height='7'>";
} else if ($new_posts > 19) {
$folder123 = "<img src='".THEME."images/bullet.gif' height='7'>";
} else {
if ($data['thread_locked'] == 1) {
$folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
} else if ($data['thread_locked'] == 0) {
$folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
}
}
//$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
$reply_count = $data['thread_replies']+1;
$data2 = dbarray(dbquery("SELECT post_id FROM theme_posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
$threads_message = $data['thread_subject'];
$threads_message = str_replace("'", "", $threads_message);
$rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
if ($theme_width == "100%") {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"ddrivetip('$start<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_019']."</b>: ".$threads_message."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
} else {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"gpe('text:<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("'", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost']).";')\" (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
}
echo "</tr></table>";
$i++;
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</td>
<td background=\"".THEME."images/zdj_15.jpg\" width=\"221\" height=\"200\" style=\"padding-left: 100px\">";$result = dbquery("SELECT article_id, article_subject FROM ".$db_prefix."articles ORDER BY article_id DESC LIMIT 0,9");
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="'.BASEDIR.'readarticle.php?article_id=';
echo($row['article_id']);
echo '">';
echo($row['article_subject']);
echo '</a>';
echo '<br>';
}echo "</td>
<td background=\"".THEME."images/zdj_16.jpg\" width=\"254\" height=\"200\">";
$result=dbquery(
"SELECT tp.*, ta.* FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING(album_id)
WHERE ".groupaccess('album_access')." ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
$data=dbarray($result);
$randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<div style='text-align:center'>";
echo"
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."' width='".$settings['thumb_image_w']."' height='".$settings['thumb_image_h']."' border='1' class='style1'></a><br><a href='".BASEDIR."photogallery.php?album=".$data['album_id']."' style=\"color: #F5F5F5\">".$data['photo_title']."</a></div>";
}
echo" </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "
</td>
</tr>
<tr>
<td><img src=\"".THEME."images/zdj_26.jpg\" width=\"916\" height=\"100\" border=\"0\" alt=\"[Rozmiar: 8928 bajtów]\"></td>
</tr>
<tr>
<td align=\"center\" width=\"916\" style=\"color: #A9A9A9\">".stripslashes($settings['footer'])."<br>
nr:".$settings['counter']."<br>
<!-- Pamiźtaj - Usuwanie Stopki autora = naruszenie praw autorskich = sankcje prawne - zastanów siź zanim usuniesz! -->
Theme by angelside (<a href=\"http://grafa.biz\">grafa.biz</a>) engine: <a href=\"http://extreme-fusion.pl\">php-fusion</a> links: <a href=\"http://okna.eu.pl\" title=\"okna\">okna</a>, <a href=\"http://okna.eu.pl\" title=\"okna pcv\">okna pcv</a>, <a href=\"http://okna.eu.pl\" title=\"okna drewniane\">okna drewniane</a>
</td>
</tr>
</table>
\n";
}
function render_news($subject, $news, $info) {
global $settings;
opentable
($subject."<br><span style=\"font-weight: normal\">
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>[ Czytaj wiecej ]</a> ·\n" : "")."
Komentarzy: <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Czytan:
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></span>");
echo "
$news
";
closetable();
}
function render_article($subject, $article, $info) {
opentable ($subject);
echo "".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='tbl2'>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
\n";
closetable();
}
function opentable($title) {
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"631\">
<tr>
<td style=\"background-image: url('".THEME."images/zdj_21.jpg'); height: 66px; width: 631px\" align=\"center\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/zdj_23.jpg')\"><div style=\"padding-left: 22px; padding-right: 22px\">";
}
function closetable() {
echo "
</div></td>
</tr>
<tr>
<td><img src=\"".THEME."images/zdj_25.jpg\" width=\"631\" height=\"40\" border=\"0\" alt=\"[Rozmiar: 9447 bajtów]\"></td>
</tr>
</table>\n";
}
function openside($title) {
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"278\">
<tr>
<td style=\"background-image: url('".THEME."images/zdj_19.jpg'); height: 59px; width: 278px\">
<div style=\"color: #000000; font-family: Forte; font-size: 13px; font-weight: bolder; padding-right: 88px; padding-top: 22px; text-align: right\">$title</div>
</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/zdj_22.jpg'); background-position: bottom; background-repeat: no-repeat; color: #FFFFCC; padding-bottom: 22px; padding-top: 11px\">
<div style=\"padding-left: 22px; padding-right: 22px\">
\n";
}
function closeside() {
echo "
</div></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
$result = dbquery("
SELECT * FROM ".$db_prefix."threads
INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 8
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo " <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='resursai' >$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
?>
Štai bandyk gal už pagalba +10?>:?
|