Parašė Ptycka· 2007 Gru. 16 01:12:00
#12
Nelabai supratau tavo esme imk sita padariau kad avataras butu pries redaguoti profili.
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*------------------------------------------------------------|
| PHP-Fusion 6 - Content Management System |
|--------------------------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|--------------------------------------------------------------|
|PHp-Fusion Açýk Kaynaklý Bir Web Yazýlýmýdýr |
|Ücretsiz Herkes KuLLanabilir. |
|Alttaki Copyright © PHP-Fusion Yazýsýnýn |
|Silinmemesi Þartýyla... |
|GNU/GPL (Version 2) Lisansý ile Tüm Haklarý |
|Korunmaktadýr!... |
|Lisans Satýn Almak için: nick@php-fusion.co.uk |
|Nick Jones'la Görüþün!.. |
|--------------------------------------------------------------*/
/*------------------------------------------------------------+
| CandY_Green Theme PHP-Fusion v6+ içindir! |
|--------------------------------------------------------------|
|Yazar: Theme by: KDK© 2007 |
| web: http://istegenc.kayyo.com |
| msn/mail: kdkx01@msn.com |
|--------------------------------------------------------------|
|Fuzed Themes |
| web: http://phpfusion-themes.com |
| email: webmaster@phpfusion-thems.com |
|-------------------------------------------------------------*/
/*------------------------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
|------------------------------------------------------------*/
// Tema Ayarlarý
$body_text = "#555555";
$body_bg = "#666666";
$theme_width = "95%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' bordercolor='#99CC00' border='2' cellpadding='0' width='$theme_width'>";
echo "<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
</td>
</tr>
</table>\n";
//Logo - Sub_menü(Kategoriler) - Üye Giriþi Kodu Baþlangýç
echo "<table style='background-image:url(".THEME."images/bg.gif);' align='center' cellspacing='0' cellpadding='0' width='100%' height='150' border='0'>
<td>
<img border='0' alt='".$settings['sitename']."' title='".$settings['sitename']."' src='".THEME."images/logo.gif'>
</td><td width='85'>
</td>
</td>";
echo "</table>";
//Logo - Sub_menü(Kategoriler) - Üye Giriþi Kodu Bitiþ
if (iMEMBER) {
opentable($userdata['user_name']);
echo "<center>";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50'></center>\n";
} else {
echo "<center><img src='".THEME."media/no.png' width='50' height='50'></center>\n";
echo "<a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a> ";
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>Asmeninës þinutës</a> ";
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>Nariø sàraðas</a> ";
echo " ";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php?aid=611ec91761fffac0&pagenum=1".$aidlink."' class='side'>Admin panelë</a> \n";
}
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a>";
echo "</center>";
} else {
openside("<center>Prisijungti</center>");
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."";
echo "<form name='loginform' method='post' action='../login.php'>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'>[<b>Registruotis</b>]</a> \n";
} else {
echo " ";
}
echo "Vardas:
<input type='text' name='user_name' class='textbox' style='width:100px'>
Slaptaþodis:
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:middle;'>
<input type='submit' name='login' value='Prisijungti' class='button'><br>
<a href='".BASEDIR."lostpassword.php'>[<b>Pamirðau slaptaþodá</b>]</a>
</form>\n";
echo "</div>\n";
}
closetable();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
//Footer Haber ve Orta Bloklar Kodu
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.png' style='border-right:#FFFFFF 1px; border-left: #FFFFFF 1px;'>";
echo "<td width='20%' height='30' class='white' align='left'>";
if ($license == false) {
echo "<b>Powered by <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a></b>";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b><a href='mailto:xxx@mail.lt'></a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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";
}
?>
Redagavo Ptycka· 2007 Gru. 16 01:12:16