Parašė Skifas· 2010 Gru. 15 07:12:02
#1
Sveiki. Susiduriau su tokia beda:
Kai prisijungiu i svetaine, vartotojo zonoje islenda toks error:
Notice: Undefined variable: userdata in /home/justinaslt/domains/justgfx.ipp.lt/public_html/themes/Filmai_Online/theme.php on line 173
Notice: Undefined variable: db_prefix in /home/justinaslt/domains/justgfx.ipp.lt/public_html/themes/Filmai_Online/theme.php on line 178
Notice: Undefined variable: userdata in /home/justinaslt/domains/justgfx.ipp.lt/public_html/themes/Filmai_Online/theme.php on line 178
Table 'justinaslt_cs.messages' doesn't existRedaguoti profili
Pranešimai
Nariai
Notice: Undefined variable: aidlink in /home/justinaslt/domains/justgfx.ipp.lt/public_html/themes/Filmai_Online/theme.php on line 183
Theme.php failas.
<script language="JavaScript1.2">
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;
//-->
</script>
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "950");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
include THEME."kodas/script.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td>\n";
echo"<div id='header'>";
echo"<div id='reklama'><img src='http://serial.lt/images/reklama.jpg' /></div>";
//$result=dbquery("SELECT SUM(news_reads) FROM ".DB_NEWS."");
/*Peržiūrų: ".dbresult($result,0)."
Serialų: ".dbcount("(news_id)", DB_NEWS)."
Narių: ".dbcount("(user_id)", DB_USERS)." */
echo"<div id='info'>";
if (!isset($_GET['stext'])) { $_GET['stext'] = ""; }
if (!isset($_GET['stype'])) { $_GET['stype'] = ""; }
echo"<table cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td>";
echo "<div><form id='searchform' name='searchform' method='get' action='".BASEDIR."search.php'>\n";
echo "<input type='text' name='stext' value='".urldecode($_GET['stext'])."' class='textbox' style='' />\n";
echo"</td><td>";
echo "<input type='hidden' name='stype' value='downloads'".($_GET['stype'] == "downloads" ? " checked='checked'" : "")." onclick=\"display(this.value)\" />";
echo "<input type='submit' name='search' value='' class='buttonas' /> </form>\n</div>";
echo"</td></tr></table>";
echo"</div>";
echo"<div id='nav'>
<table id='Table_01' width='919' height='49' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='18' height='49'>
<img src='".THEME."images/spacer.gif' width='18' height='49' alt='' /></td>
<td>
<a href='/index.php'>
<img src='".THEME."images/nav/1.png' width='111' height='49' border='0' alt='' /></a></td>
<td>
<a href='/viewpage.php?page_id=3'>
<img src='".THEME."images/nav/2.png' width='109' height='49' border='0' alt='' /></a></td>
<td>
<a href='/forum/index.php'>
<img src='".THEME."images/nav/3.png' width='110' height='49' border='0' alt='' /></a></td>
<td>
<a href='#'>
<img src='".THEME."images/nav/4.png' width='110' height='49' border='0' alt='' /></a></td>
<td>
<a href='#'>
<img src='".THEME."images/nav/5.png' width='110' height='49' border='0' alt='' /></a></td>
<td>
<a href='#'>
<img src='".THEME."images/nav/6.png' width='110' height='49' border='0' alt='' /></a></td>
<td>
<a href='/search.php'>
<img src='".THEME."images/nav/7.png' width='110' height='49' border='0' alt='' /></a></td>
<td>
<a href='/contact.php'>
<img src='".THEME."images/nav/8.png' width='112' height='49' border='0' alt='' /></a></td>
<td width='19' height='49'>
<img src='".THEME."images/spacer.gif' width='19' height='49' alt='' /></td>
</tr>
</table>
</div>";
echo"<div id='zanrai'>";
echo"<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='180' style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
</tr>
<tr>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
</tr>
<tr>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
</tr>
<tr>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
</tr>
<tr>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
</tr>
<tr>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
</tr>
<tr>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
<td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='#'>Linkas</a></td>
</tr>
</table>
";
echo"</div>";
//SLIDE
include THEME."kodas/slide.php";
//SLIDE
echo"<div id='member'>";
//////////////////////////////////////////
if (iMEMBER) {
//narys
echo"<table cellpadding='0' cellspacing='0' width='100%'><tr><td style='padding-left:15px;'>";
echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='70' height'70' align='left' style='margin-right: 10px;'>" : "<img src='".THEME."images/noav.png' width='70' height'70' align='left' style='margin-right: 10px;'>")."";
$locale['085'] = "Jus turite %u nauja(as) ";
$locale['086'] = "žinute";
$locale['087'] = "žinutes";
//narys
$msg_count = dbcount("(message_id)", "".$db_prefix."messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<a href='".BASEDIR."edit_profile.php' class='ss'>Redaguoti profili</a><br>
<a href='".BASEDIR."messages.php' class='ss'>Pranešimai</a><br>
<a href='".BASEDIR."members.php' class='ss'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php".$aidlink."' class='ss'>Adminke</a><br>\n";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='ss'>Atsijungti</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='ss'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo"</td></tr></table>";
/////
} else {
echo "<div>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<table cellpadding='0' cellspacing='0' width='100%' align='center'><tr>
<td align='center'>
<div>
Vartotojas<br />
<input type='text' name='user_name' class='textbox' value='Vartotojas' onBlur=\"if(this.value=='') this.value='Vartotojas';\" onFocus=\"if(this.value=='Vartotojas') this.value='';\" >
</div>
</td>
</tr><tr>
<td align='center'>
<div>
Slatptažodis<br />
<input type='password' name='user_pass' class='textbox' value='Passwordas' onBlur=\"if(this.value=='') this.value='Passwordas';\" onFocus=\"if(this.value=='Passwordas') this.value='';\" >
<div>
</td>
</tr><tr>
<td align='center'>
<input type='checkbox' name='remember_me' value='y' title='Prisiminti' style='vertical-align:middle;' />
<input type='submit' name='login' value='Login' class='button'></td>
</tr><tr>
<td align='center' style='color:#ffffff;'>
<a href='".BASEDIR."register.php' style='color:#ffffff;'>Registruotis</a> /
<a href='".BASEDIR."lostpassword.php' style='color:#ffffff;'>Priminti slaptažodį</a></td>
</tr></table>
</form>
</div>\n";
}
////////////////////////////////////////////
echo"</div>";
echo"</div>";
echo "</td>\n</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td align='left' class='footer'>";
echo "Svetainės administracijos skype: Vardas <br /> © Copyright 2010 Visos teisės saugomos";
echo "</td>";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
global $data,$info;
$wynik = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='N' AND rating_item_id='".$data['news_id']."'");
$info = dbresult($wynik,0);
$num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='N' AND rating_item_id='".$data['news_id']."'");
$wyn_rating = ($num_rating ? $info / $num_rating : 0);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'><div class='text'>".$subject."</div></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='right' class='news-footer''>\n";
echo"<img src='".THEME."images/retitingai/".ceil($wyn_rating).".png' width='103' height='13' alt='".ceil($wyn_rating)."' title='".ceil($wyn_rating)."' /> ";
echo"<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' ></center> <b><font size ='2'>Žiūrėti serialą</font></b></a> | Komentarų: ".$data['news_comments']." | Žiūrėjo: ".$data['news_reads']."";
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'><div class='text'>".$subject."</div></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='right' class='apacia'>\n";
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'><div class='text'>".$title."</div></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr><tr><td class='apacia'></td></tr></table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='285' >\n<tr>\n";
echo "<td class='scapmain'><div class='text'>".$title."</div></td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr><tr><td class='sapacia'></td></tr></table>\n";
}
?>
Už pagalba atsidekočiau +11 ir atsiliepimu. Dėkui iš anksto.