Początkujący
Postów: 119 Ostrzeżeń: 4
Data rejestracji: 30.08.2007 17:30
|
Artykuły inaczej się wyświetlają w skórce emikser v2 a w pozostałych skórkach dobrze się wyświetlają oto moja strona http://sneik.inwe... proszę zmienić skórkę i zobaczyć
Jak to naprawidz
<?
$body_text = "#ffffff";
$body_bg = "#121212";
$theme_width = "987";
$theme_width_l = "217";
$theme_width_r = "217";
function render_header($header_content) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
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\" width=\"987\" align=\"center\">
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_02.jpg'); border: 0; height: 41; padding-bottom: 1; padding-left: 5; padding-right: 5; padding-top: 1; width: 977\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"977\">
<tr>
<td align=\"left\"><font color=\"#a0ca10\">Witaj na <b>eMikser.pl</b></font> | ";
if(iGUEST){
echo"<font color=\"#a0ca10\"><img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."register.php'>Zarejestruj się
";
}else{
echo"<font color=\"#a0ca10\"><img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a> <img src='".THEME."images/bullet.gif' alt=''
<a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a>";
}
echo "
</td>
<td align=\"right\"><script type='text/javascript' src='http://www.darmowe-statystyki.com/usluga.dodatek.20'></script></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"987\">
<tr>
<td width=\"693\"><img src=\"".THEME."images/emikser_v2_05.jpg\" width=\"693\" height=\"237\" border=\"0\" alt=\"[Rozmiar: 112731 bajtów]\"></td>
<td style=\"background-image: url('".THEME."images/emikser_v2_06.jpg'); border: 0; height: 237; padding-bottom: 50; padding-left: 5; padding-right: 5; padding-top: 20; width: 212\">
";
if (iMEMBER) {
opensidel();
echo " <center><table cellspacing='2'> <tr>\n";
echo ("<td class='login' > Witaj <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'" ."<span style='color:#".$userdata['user_color']."'>".$userdata['user_prefix'].$userdata['user_name']);
echo "</span></a></td>\n";
echo "</tr></table></center>";
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\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>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
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_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".FORUM."/images/brak.gif' width='50' hight='50'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Użytkownicy</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracja</a><br><br>\n";
echo " <table align='center'><tr>";
echo "</tr></table>";
}{echo "<br><br>
<div style=\"text-align: center\"> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj (x)</a></div>\n";
if ($msg_count) echo "<br><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."'>
Login <input type='text' name='user_name' class='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>
Hasło <input type='password' name='user_pass' class='textbox' value='hasło' onBlur=\"if(this.value=='') this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\" style='width:100px'><br>
Zapamiętaj mnie <input type='checkbox' name='remember_me' value='y' title='Zapamiętaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Loguj' class='button'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja</a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zgubione hasło</a>
</div>\n";
}
closesidel();
echo "
</td>
<td width=\"82\"><img src=\"".THEME."images/emikser_v2_07.jpg\" width=\"82\" height=\"237\" border=\"0\" alt=\"[Rozmiar: 10260 bajtów]\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"987\">
<img src=\"".THEME."images/emikser_v2_08.jpg\" border=\"0\" width=\"987\" height=\"48\" alt=\"\" usemap=\"#menu\" />
<map name=\"menu\">
<area shape=\"circ\" coords=\"64,23,50\" href=\"".BASEDIR."news.php\" />
<area shape=\"circ\" coords=\"175,21,55\" href=\"".BASEDIR."forum/index.php\" />
<area shape=\"circ\" coords=\"299,23,58\" href=\"".BASEDIR."photogallery.php\" />
<area shape=\"circ\" coords=\"415,24,52\" href=\"".BASEDIR."weblinks.php\" />
<area shape=\"circ\" coords=\"531,24,54\" href=\"".BASEDIR."search.php\" />
<area shape=\"circ\" coords=\"652,23,55\" href=\"".BASEDIR."reklama.php\" />
<area shape=\"circ\" coords=\"772,24,47\" href=\"".BASEDIR."contact.php\" />
<area shape=\"circ\" coords=\"891,23,54\" href=\"".BASEDIR."contact.php\" />
</map>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"987\">
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_09.jpg'); border: 0; height: 205; padding-bottom: 5; padding-left: 5; padding-right: 5; padding-top: 15; width: 350\">
";
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if (isset($_GET[id]) && !isNum($_GET[id])) fallback(FUSION_SELF);
if (isset($_GET[shout]) && !preg_match("#(add|edit|delete)#iu", $_GET[shout])) fallback(FUSION_SELF);
define("SBX_EDIT_USER", $settings[sbx_edit_user]);
$shout = $_GET[shout]; $id = $_GET[id];
if (iMEMBER || $settings['guestposts'] == "1") {
$result = dbquery("SELECT * FROM ".$db_prefix."shoutbox WHERE shout_id='".$id."'");
if (dbrows($result)) $sdata = dbarray($result);
if (isset($_POST['post_shout']) && isset($shout)) {
$flood = false;
if (iMEMBER) {
$shout_name = $userdata['user_id'];
} elseif ($settings['guestposts'] == "1") {
$shout_name = trim(stripinput($_POST['shout_name']));
$shout_name = preg_replace("(^[0-9]*)", "", $shout_name);
if (isNum($shout_name)) $shout_name="";
}
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
$shout_message = str_replace("[", " [", $shout_message);
$shout_message = preg_replace("/([^\s]{21})/", "$1\n", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
$shout_message = str_replace("\n", "<br>", $shout_message);
if ($shout_name != "" && $shout_message != "") {
$result = dbquery("SELECT MAX(shout_datestamp) AS last_shout FROM ".$db_prefix."shoutbox WHERE shout_ip='".USER_IP."'");
if (!iSUPERADMIN && dbrows($result) > 0) {
$data = dbarray($result);
if ((time() - $data['last_shout']) < $settings['flood_interval']) {
$flood = true;
$result = dbquery("INSERT INTO ".$db_prefix."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
if (dbcount("(flood_ip)", "flood_control", "flood_ip='".USER_IP."'") > 4) {
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'");
}
}
}
if (!$flood) {
$lin = FUSION_QUERY;
if ($shout =='add') {
$result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
if (EPS && iMEMBER) {
$przydzial = dbarray(dbquery("SELECT point_ammount from ".DB_PREFIX."eps_points WHERE point_id='2'"));
$result = dbquery("UPDATE ".DB_PREFIX."users SET points_normal=points_normal+".($przydzial['point_ammount'])." WHERE user_id='".$userdata['user_id']."'");
}
}
if ($shout =='edit' AND checkrights("S")
OR SBX_EDIT_USER AND iMEMBER AND $sdata['shout_name'] == $userdata['user_id']) {
$result = dbquery("UPDATE ".$db_prefix."shoutbox SET shout_message='$shout_message' WHERE shout_id='".$id."'");
}
$lin = str_replace("&shout=$shout&id=$id", '', $lin);
$lin = str_replace("shout=$shout&id=$id", '', $lin);
if($lin != '') redirect(FUSION_SELF."?".$lin);
else redirect(FUSION_SELF.$lin);
}
}
}
if (
isset($shout) AND isset($id) AND isNum($id) AND checkrights("S")
OR isset($shout) AND isset($id) AND isNum($id) AND !checkrights("S") AND iMEMBER AND $sdata['shout_name'] == $userdata['user_id'] AND SBX_EDIT_USER
) {
if ($shout == 'edit') {
$shout_message = str_replace("<br>", "", $sdata[shout_message]);
$shout_message = str_replace(" [", "[", $shout_message);
} else if ($shout == 'delete') {
$result = dbquery("DELETE from ".$db_prefix."shoutbox WHERE shout_id='".$id."'");
$lin = FUSION_QUERY;
$lin = str_replace("&shout=$shout&id=$id", '', $lin);
$lin = str_replace("shout=$shout&id=$id", '', $lin);
if($lin != '') redirect(FUSION_SELF."?".$lin);
else redirect(FUSION_SELF.$lin);
}
} else {
$id = 0;
$shout = 'add';
$shout_message = '';
$shout_name = '';
}
if(iMEMBER){
$caution_r = dbquery("SELECT * from ".$db_prefix."cautions WHERE user_id=".$userdata['user_id']);
$caution = dbarray($caution_r);
$c_count = dbrows($caution_r);
$caution_conf = dbarray(dbquery("SELECT * from ".$db_prefix."cautions_config"));
}
if ($c_count > $caution_conf['shoutbox']) {
echo $caution_conf['shoutbox_info']."<br><br>";
} else {
if ($shout == 'add') {
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY."&shout=$shout&id=$id") : "?shout=add&id=$id")."'>";
} else {
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY) : "?shout=$shout&id=$id")."'>";
}
echo"
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='$shout_name' class='sb' maxlength='30' style='width:200px;'><br>
".$locale['122']."<br>\n";
}
echo" <input type='text' name='shout_message' rows='4' class='sbtexbox'>$shout_message";
echo" </td>
<td >
<input type='submit' name='post_shout' value=''class='sbbutton'>";
echo" </td>
<td>";if (iMEMBER) {
echo "<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'><img border='0' src='".THEME."images/shoutbox2.jpg'></a> ";
} else {
echo "<div align='center'></div>\n";
}
echo "</td>
</tr>
</table></form></div>\n";
echo"<script>show_hide(ShowHide7)</script>";
}
echo"\n";
} else {
echo"<center>".$locale['125']."</center>\n";
}
$result = dbquery("
SELECT * FROM ".DB_PREFIX."shoutbox
LEFT JOIN ".DB_PREFIX."users ON ".DB_PREFIX."shoutbox.shout_name=".DB_PREFIX."users.user_id
ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
echo" <script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/lighttable.js' language='Javascript'></script>";
echo" <script type=\"text/javascript\">
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id=\"container\" style=\"position:relative;width:95%;height:100px;border:0px solid #444444;overflow:hidden\">')
document.write('<div id=\"content\" style=\"position:absolute;width:100%;left:0;top:0\">')
}
</script>";
echo "<ilayer name=\"nscontainer\" width=100% height=25 clip=\"0,0,277,400\">";
echo "<layer name=\"nscontent\" width=100% height=25 visibility=hidden>";
if (dbrows($result) > 0) {
$gouest_opt = dbarray(dbquery("SELECT * FROM ".$db_prefix."colors WHERE user_level=0"));
while ($data = dbarray($result)) {
echo"<span class='shoutboxname'>";
$user = "<span style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</span>";
if ($data['user_name'] ) {
echo"<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a> <span class='shoutboxdate'><font style='font-style:italic;font-family:arial;font-size:7;color:#777777;'>".$locale['135']." ".showdate("shortdate", $data['shout_datestamp'])."</font></span><br>\n";
} else {
echo"<span style='color:#".$gouest_opt['user_color']."'>".$gouest_opt['user_prefix'].$data['shout_name']."</span>\n";
}
echo"</span>";
echo"<img src='".THEME."images/sbkropki.png' alt=''><br>";
$mes = str_replace(" [", "[", $data[shout_message]);
$mes = nl2br(parseubb(parsesmileys($mes)));
echo "<span class='shoutbox'>".$mes ."</span>";
echo "<br><br><img src='".THEME."images/sbkreski.png' alt=''><br><br>\n";
}
} else {
echo "<div align='center'>".$locale['127']."</div>\n";
}
echo "</layer></ilayer><script language=\"JavaScript1.2\">
if (iens6)
document.write('</div></div>')
</script>";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<td><p align=\"right\">";
echo"<a href=\"#\" onMouseover=\"moveup()\" onMouseout=\"clearTimeout(moveupvar)\"><img src=\"".THEME."images/up.gif\" border=\"0\"></a> ";
echo "<a href=\"#\" onMouseover=\"movedown()\" onMouseout=\"clearTimeout(movedownvar)\"><img src=\"".THEME."images/down.gif\" border=\"0\"></a>";
echo "</td></table>";
echo "<script language=\"JavaScript1.2\">
if (iens6) {
var crossobj=document.getElementById? document.getElementById(\"content\") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4) {
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+\"px\"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout(\"movedown()\",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+\"px\"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout(\"moveup()\",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility=\"show\"
}
window.onload=getcontent_height
</script>";
echo "
</td>
<td style=\"background-image: url('".THEME."images/emikser_v2_10.jpg'); border: 0; height: 205; padding-bottom: 5; padding-left: 15; padding-right: 15; padding-top: 15; width: 179\">
";
include BASEDIR."infusions/info_panel/locale/Polish.php";
include BASEDIR."includes/theme.php";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>
<tr><td>";
echo "\n";
$result=dbquery("SELECT * FROM ep_users ORDER BY user_lastvisit DESC LIMIT 0,11");
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen=time()-$data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if($lastseen<60){
$lastseen="<font color='#CCCCCC'><b>na stronie</b></font>";
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>odchodzi</b></font>";
}elseif($iW>0){
if($iW==1) $Text="".$locale['XXX_007']."";
elseif($iW==2 || $iW==3 || $iW==4) $Text="".$locale['XXX_011']."";
else $Text="".$locale['XXX_008']."";
$lastseen="$iW $Text";
}elseif($iD>0){
if($iD==1) $Text="".$locale['XXX_009']."";
else $Text="".$locale['XXX_010']."";
$lastseen="$iD $Text";
}else{
$lastseen="$iH:$iM:$iS";
}
if (!isset($start)) $start="";
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'><tr><td class='small'>
<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
onmouseover=\"gpe('$start<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data['user_msn']."<br><b>".$locale['XXX_006']."</b>: ".$data['user_posts']."$end')\" style='color:#".$data['user_color']."' onMouseout=\"hideddrivetip()\"><b>";
echo $data['user_prefix'].$data['user_name']."</b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'><tr><td class='small'> <b><span style=\"color: #C0C0C0\">".$locale['011']."</span></td><td align=\"right\" class='small'>".dbrows($result)."</b></td></tr></table>\n";
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_color,user_prefix FROM ep_online ton
LEFT JOIN ep_users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
} else {
echo $locale['013']."<br>\n";
}
echo "</td></tr></table>";
;
echo "
</td>
<td align=\"left\" style=\"background-image: url('".THEME."images/emikser_v2_11.jpg'); border: 0; height: 205; padding-bottom: 5; padding-left: 10; padding-right: 5; padding-top: 15; width: 194\">
";$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 style=\"background-image: url('".THEME."images/emikser_v2_12.jpg'); border: 0; height: 205; padding-bottom: 5; padding-left: 5; padding-right: 5; padding-top: 15; width: 199\">";
$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 "";
echo"
<table cellspacing='0' cellpadding='0' border='0' align=\"center\" width=\"1%\" height=\"1%\" valign=\"bottom\"><tr>\n";
echo "<center><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']."' height='80' border='0'></a></center></td>";
echo"</table>
<center><a href='".BASEDIR."photogallery.php?album=".$data['album_id']."' style=\"color: #F5F5F5\"><span style=\"font-size: 11px\"><b>".$data['album_title']."-".$data['photo_title']."</b></span></a></center>";
}
echo "</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_25.jpg'); border: 0; height: 55; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 987\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"950\">
<tr>
<td align=\"left\">Design and code by <a href=\"http://www.emikser.pl\" target=\"_blank\" title=\"Szablony stron\">eMikser.pl</a> Powered : <a href=\"http://www.extreme-fusion.pl\">eXtreme-fusion</a></td>
<td align=\"right\">Witamy na Sneik24h</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
global $locale,$settings;
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_14.jpg'); border: 0; height: 43; padding-bottom: 6; padding-left: 25; padding-right: 10; padding-top: 5; width: 550\"><b>$subject</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_18.jpg'); border: 0; height: 5; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">$news</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_21.jpg'); border: 0; height: 24; padding-bottom: 2; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">
<table width=\"100%\"><tr><td>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."
</td></tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_14.jpg'); border: 0; height: 43; padding-bottom: 6; padding-left: 25; padding-right: 10; padding-top: 5; width: 550\"><b>$subject</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_18.jpg'); border: 0; height: 5; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">$article</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_21.jpg'); border: 0; height: 24; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 6; width: 550\"><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='infobar'>
<a href='articlecomments.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";
}
function opentable($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_14.jpg'); border: 0; height: 43; padding-bottom: 6; padding-left: 25; padding-right: 10; padding-top: 5; width: 550\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_18.jpg'); border: 0; height: 5; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 5; width: 550\">\n";
}
function closetable() {
echo "</td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_21.jpg'); border: 0; height: 24; padding-bottom: 5; padding-left: 10; padding-right: 10; padding-top: 6; width: 550\"></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"218\">
<tr>
<td style=\"background-image: url('".THEME."images/$title.jpg'); border: 0; height: 38; padding-bottom: 5; padding-left: 15; padding-right: 5; padding-top: 5; width: 218\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_16.jpg'); border: 0; height: 5; padding-bottom: 2; padding-left: 5; padding-right: 5; padding-top: 2; width: 218\">\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/emikser_v2_22.jpg\" width=\"218\" height=\"14\" border=\"0\" alt=\"[Rozmiar: 580 bajtów]\"></td>
</tr>
</table>\n";
tablebreak();
}
function openside2($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"300\">
<tr>
<td style=\"background-image: url('".THEME."images/$title.jpg'); border: 0; height: 38; padding-bottom: 5; padding-left: 15; padding-right: 5; padding-top: 5; width: 300\"><b>$title</b></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/emikser_v2_16.jpg'); border: 0; height: 5; padding-bottom: 2; padding-left: 5; padding-right: 5; padding-top: 2; width: 300\">\n";
}
function closeside2() {
echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/emikser_v2_22.jpg\" width=\"300\" height=\"14\" border=\"0\" alt=\"[Rozmiar: 580 bajtów]\"></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='sidi-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='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></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";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='0'></td></tr>
</table>\n";
}
?>
|