Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Theme login

Parašė 123456788999999999· 2009 Rugp. 15 12:08:59
#1

Sveiki į temą įdėjau lygiagretų prisijiungimą tačiau kaip atsijiungi saitą išdarko. O kaip prisijiungęs viskas ok http://rsc.xz.lt žiurėkit
Kame bėda:

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

// theme settings
$body_text = "#000000";
$body_bg = "#00000";
$theme_width = "900";
$theme_width_l = "200";
$theme_width_r = "200";

function render_header($header_content) {

global $theme_width,$aidlink,$userdata;


echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>
<td class='sub-header'><a href='".BASEDIR."index.php'><img src='".THEME."images/namai.gif' border='0'></a>&nbsp;&nbsp;&nbsp;<img src='".THEME."images/skirtukas.gif'>&nbsp;&nbsp;&nbsp;<a href='".BASEDIR."contact.php'><img src='".THEME."images/kontaktai.gif' border='0'></a></td>
<td align='right' class='sub-header'>".showsublinks("&middot;","white")."</td>
</tr>
</table>\n";

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='$theme_width'>
</tr>
<tr>
<td width='606' class='header' align='left'><center><img src='".THEME."banner.png'></center></td>
<td width='175' class='login' align='right'>";
 if (iMEMBER) {
echo "<b>Hey, ".$userdata['user_name']."!</b>&nbsp;<br><br>
- <a href='".BASEDIR."edit_profile.php'>apra&#240;ymas</a>&nbsp;<br>
- <a href='".BASEDIR."messages.php'>&#254;inut&#235;s</a>&nbsp;<br>
- <a href='".BASEDIR."members.php'>nariai</a>&nbsp;<br>";
    if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "- <a href='".ADMIN."index.php".$aidlink."'>administracija</a>&nbsp;<br>";
}
echo "- <a href='".BASEDIR."setuser.php?logout=yes'>atsijungti</a>&nbsp;</td></div>";
} else {
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>
Vardas: <input type='text' name='user_name' class='textbox' style='width:90px;filter:alpha(opacity=70)'>&nbsp;<br>
Slapta&#254;odis: <input type='password' name='user_pass' class='textbox' style='width:90px;filter:alpha(opacity=70)'>&nbsp;<br>
<input type='checkbox' name='remember_me' value='y'>- prisiminti? <input type='submit' name='login' value='Prisijungti' class='button'>&nbsp;<br><br>
<b><a href='".BASEDIR."register.php'>U&#254;siregistruok dabar!</a>&nbsp;<br>
<a href='".BASEDIR."lostpassword.php'>Pamir&#240;ai slapta&#254;od&#225;?</a></b>&nbsp;";

}






echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'><tr><td class='Linija'></td></tr></table>";

   echo "</tr></table></td></tr></table>\n";
   // End banner code / Banerio kodo pabaiga
        $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
        echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
        echo "<td class='sub-header'><table width='50%' border='0' cellpadding='0' cellspacing='0' style='background-color: #000000;'><tr>";
   if (iMEMBER) {
echo"<td height='35' background='".THEME."images/linija.jpg' class='sub-header'><center>
<a href='http://aspire.too.lt/edit_profile.php' target=''>Profilis</a> |
<a href='".BASEDIR."messages.php' class='side'>&#222;inut&#235;s [naujø: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo " | <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a>";

   }
                echo" | <a href='".BASEDIR."setuser.php?logout=yes' target='_blank'>Atsijungti</a></td>";
} else {
echo" <td height='35' background='".THEME."images/linija.jpg' class='sub-header' style='padding-top:1px;'><center>
    <form name='loginform' method='post' action='".FUSION_SELF."'>
    Vartotojas <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
    Slapta&#254;odis <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>


<input type='submit' name='login' value='Prisijungti' class='button'>";
if ($settings['enable_registration']) {
      echo " <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a><center><br>\n";
   }
   echo"</div>\n";
}








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

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

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='footer'>".stripslashes($settings['footer'])."</td>
<td align='right' class='footer'>Variklis:  Benzinins (6000 cm³, 560 AG)</a><br> Dizainas:  emotive (mckenzie edition)</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $aidlink,$item_type;
$res = "";

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
<td class='capmain'></td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$info['news_id']."'>
<td class='main-body' width='92%'>$news</td>
<td class='main-body-2' width='8%'>";
    if (iADMIN) {
echo "<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".THEME."images/redaguoti.png' align='center' border='0'></a>&nbsp;&nbsp;";
}
echo "<a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/spausdinti.png' align='center' border='0'></a>&nbsp;&nbsp;<a href='news.php?readmore=".$info['news_id']."'><img src='".THEME."images/placiau.png' align='center' border='0'></a>";
echo "</td>
</form>
</tr>
</table>\n";

}

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

}

function opentable($title) {

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

}

function closetable() {

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

}

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

}

function closeside() {

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

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

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

}

function tablebreak() {

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

}
?>



susitvarkiau rakinkit

Redagavo Karolis· 2009 Rugp. 16 01:08:35

Parašė veTeranas· 2009 Rugp. 16 01:08:31
#2

Krc.... Ne ten pataikiau sorry ;D

Redagavo veTeranas· 2009 Rugp. 16 01:08:30

Parašė sniuff· 2009 Rugp. 16 01:08:58
#3

Eik riperi, tu riperi...

Parašė veTeranas· 2009 Rugp. 16 01:08:54
#4

http://www.lietuviu-kalba.lt/ Graziai ripinta navigacija :]

Parašė donataz· 2009 Rugp. 16 01:08:05
#5

1.dedamas koda isjunk smailus ...

Parašė Karolis· 2009 Rugp. 16 01:08:41
#6

Kadangi autorius susitvarkė tema rakinama. :}