Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekit su theme...

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&#231;&#253;k Kaynakl&#253; Bir Web Yaz&#253;l&#253;m&#253;d&#253;r    |
|Ücretsiz Herkes KuLLanabilir.                                |
|Alttaki Copyright © PHP-Fusion Yaz&#253;s&#253;n&#253;n             |
|Silinmemesi &#222;art&#253;yla...                                             |
|GNU/GPL (Version 2)  Lisans&#253; ile Tüm Haklar&#253;      |
|Korunmaktad&#253;r!...                                                       |
|Lisans Sat&#253;n Almak i&#231;in: nick@php-fusion.co.uk   |
|Nick Jones'la Görü&#254;ün!..                                          |
|--------------------------------------------------------------*/

/*------------------------------------------------------------+
| CandY_Green Theme  PHP-Fusion v6+  i&#231;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&#253;
$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&#254;i Kodu Ba&#254;lang&#253;&#231;
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&#254;i Kodu Biti&#254;


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&#225;</a> ";
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>Asmenin&#235;s &#254;inut&#235;s</a> ";
 echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>Nariø s&#224;ra&#240;as</a> ";
echo "&nbsp;&nbsp;";
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&#235;</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>&nbsp;&nbsp;\n";
 } else {
 echo "&nbsp;&nbsp;&nbsp;";
 }
echo "Vardas:
<input type='text' name='user_name' class='textbox' style='width:100px'>&nbsp;&nbsp;
Slapta&#254;odis:
<input type='password' name='user_pass' class='textbox' style='width:100px'>&nbsp;
<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&#240;au slapta&#254;od&#225;</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,"&middot;").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,"&middot;").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