Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: sudekit 1 infusiona i kita

Parašė newlifeboy· 2007 Gru. 10 22:12:38
#1

sveiki gal kas galit i user_info_panel va kodas
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright Ā© 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
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";
}

if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   if ($msg_count) echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0' alt='".$locale['on108'].$userdata['user_name']."' title='".$locale['on108'].$userdata['user_name']."' src='".BASEDIR."infusions/user_info_panel/images/newpm.gif'></a></b></center><br>\n";

   echo"<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br>[<b>";
   echo"<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
   //echo dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_folder='0'");
   echo "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] ".$locale['on130']."";


   // Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
   $limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
   $limit_inbox = $limit['pm_inbox'];

   // Set display of top bar
   if ($limit_inbox != "0") { $inbox_display = " <span class='small'>".$locale['on133']." [<b>".$limit_inbox."</b>]</span>"; } else { $inbox_display = " (".$cnt_inbox.")"; }
   echo " <b><a href='".BASEDIR."messages.php?folder=inbox'>".$locale['on131']."</a></b>, <b>".$inbox_display."</b></center>";

   // popup on new PM mod by Ragsman
   if (!isset($_COOKIE['fusion_privmessages'])) {
   $_COOKIE['fusion_privmessages']=0;}
   if ($_COOKIE['fusion_privmessages'] > $msg_count){
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   if ($_COOKIE['fusion_privmessages'] < $msg_count){
   echo "<script>window.open('".BASEDIR."privmessages.php','PrivateMessages','toolbar=0,scrollbars=0,menubar=0,resizable=0,width=340,height=230')</script>";
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   // end popup on new pm

   if ($userdata['user_avatar'] != "") {
   echo "<hr><center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center><hr>\n";
      } else {
   echo "<br><center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".INFUSIONS."user_info_panel/images/noimage.gif'></center><br><hr>\n";
}
echo "<b><img src='".BASEDIR."/infusions/user_info_panel/images/4.gif'>Statistika:</b><br>";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<span class='small'>Ā°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "Ā° NaujĀø nariĀø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "Ā° NaujĀø nariĀø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>Ā°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $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 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 "<span class='small'>Ā°</span> ".$locale['on101'].dbrows($result)."<br />\n";
   $result = dbquery(
      "SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>Ā°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}

   echo "<span class='small'><img src='".BASEDIR."/infusions/user_info_panel/images/7.gif'><b>".$locale['on105']."</b></span><br />";
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['on119']."</a><br>";
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."messages.php' class='side'>".$locale['on120']."</a><br>";
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."members.php' class='side'>".$locale['on121']."</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'>".$locale['083']."</a><br>\n";
   }
   echo "<span class='small'>Ā°</span> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['on113']."</a><br>\n";
} else {
   openside($locale['on122']);
   echo "<center>&nbsp;<img src='".BASEDIR."/infusions/user_info_panel/images/svx.gif'> <font class='menu'><br><b>Sveikas, Sve&#232;ias</b><br></font><br></center>";
   echo "<br>";
      echo "<center>&nbsp;<font class='menu'>Nariai turi daugiau privilegijĀø!</font><br></center>";
      echo "<br>";
echo "<center><img src='".BASEDIR."/infusions/user_info_panel/images/2.gif'> <a href='".BASEDIR."register.php'><b>Registruotis</b></a><br></center>";
echo "<br>";
      echo "<hr>";
      echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/3.gif'> <font class='menu'><b>Prisijungimo Zona</b></font><br>";
echo "<br>";
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['on123']."<br>";
   echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['on124']."<br>";
   echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
   echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['on125']."' style='vertical-align:middle;'>";
   echo "<input type='submit' name='login' value='".$locale['on126']."' class='button'><br></form><br>\n";
if ($settings['enable_registration'])
   echo $locale['on128']."</div>\n";

echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/4.gif'> <font class='menu'><b>Statistika</b></font><br><hr>";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<span class='small'>Ā°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "Ā° NaujĀø nariĀø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "Ā° NaujĀø nariĀø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>Ā°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $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 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 "<span class='small'>Ā°</span> ".$locale['on101'].dbrows($result)."<br />\n";
   $result = dbquery(
      "SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>Ā°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}
}
echo "</table>";


echo"<hr/";
echo "<br><img src='".THEME."images/bullet.gif' alt=''> VartotojĀø istorija:<br><br>";

$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,6");
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
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= "<img src='http://mixaz.nkk.lt/images/online.gif' />";
      } elseif ($lastseen < 360){
         $lastseen="<img src= 'http://mixaz.nkk.lt/images/offline.gif' />";
      } elseif ($iW > 0){
   if ($iW == 1) { $text = Savait&#235;; } else { $text = Savait&#235;s; }
   $lastseen = $iW." ".$text;
  } elseif ($iD > 0){
   if ($iD == 1) { $text = Diena; } else { $text = Dienos; }
   $lastseen = $iD." ".$text;
  } else {
   $lastseen = $iH.":".$iM.":".$iS;
  }
  echo "<tr>\n<td class='side-small' align='left'><img src='".THEME."images/bullet.gif' alt=''>\n";
  echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\n";
  echo trimlink($data['user_name'], 15)."</a></td><td class='side-small' align='right'>".$lastseen."</td>\n</tr>\n";
 }
}
closeside();
?>




Idet ir istraukt is modai.tk user_info_paneles lygiu moda va kodas
<?php
////////////////////////////////////
//php-fusion.co.uk - digimonas/////
//////////////////////////////////
//modded by modding.bendras.com//
////////////////////////////////
//By nepster :)////////////////
//////////////////////////////

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n<hr>";

if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".BASEDIR."images/noimage.gif'></center>\n";
}
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<br><center><A href=\"javascript:show_hide(show_hide1)\">

<img src='".THEME."images/bullet.gif' border=0> <font color=red><b>Administravimas</b></font></a></center>
<div id='show_hide1'></a>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php".$aidlink."'>Administracijos panel&#235;</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."news.php".$aidlink."'>Ra&#240;yti naujien&#224;</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."articles.php".$aidlink."'>Ra&#240;yti straipsn&#225;</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."submissions.php".$aidlink."'>Pateikimai</a><br>
<script>show_hide(show_hide1)</script></a></div>";
}
/////////////////////
//Script by Nepster//
////////////////////
echo "</a><script>
var linktext=new Array()
linktext[0]=\"kasnors\"
linktext[1]=\"kasnors2\"
linktext[2]=\"Profilio redagavimas\"
linktext[3]=\"Priva&#232;ios &#254;inut&#235;s\"
linktext[4]=\"NariĀø s&#224;ra&#240;as\"
linktext[5]=\"Atsijungti\"
var ns6=document.getElementById&&!document.all
var ie=document.all
function show_text(thetext, whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}
function resetit(whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=' '
else if (ns6) document.getElementById(whichdiv).innerHTML=' '
}
</script>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side' alt='Profilis' title='Profilis'><img src='".IMAGES."profile.png' alt='' onMouseover=\"show_text(2,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."messages.php' class='side' alt='Privacios zinutes' title='Privacios zinutes'><img src='".IMAGES."private.png' alt='' onMouseover=\"show_text(3,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."members.php' class='side' alt='Nariai' title='Nariai'><img src='".IMAGES."users.png' alt='' onMouseover=\"show_text(4,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."setuser.php?logout=yes' class='side' alt='Atsijungti' title='Atsijungti'><img src='".IMAGES."exit.png' alt='' onMouseover=\"show_text(5,'div2')\" onMouseout=\"resetit('div2')\"></a><br>";
echo "<i><span id=\"div2\"> </span></i>";
echo "<br><hr>";
///////////////////////////
include_once INCLUDES."exp_include.php";
showexp($userdata['user_id'],$userdata['user_posts'], "1");
   
} else {
   openside($locale['060']);
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."<br><br>\n";
   }
   echo $locale['066']."
</div>\n";
}
echo "<style type=\"text/css\">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
</style>";
echo "<div id=\"dhtmltooltip\"></div><script type=\"text/javascript\">
var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById && !document.all
var enaašip=false
if (ie||ns6)
var tipobj=document.all? document.all[\"dhtmltooltip\"] : document.getElementById? document.getElementById(\"dhtmltooltip\") : \"\"
function ietruebody(){
return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"
if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enaašip=true
return false
   }
}
function positiontip(e){
if (enaašip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+\"px\" : window.pageXOffset+e.clientX-tipobj.offsetWidth+\"px\"
else if (curX<leftedge)
tipobj.style.left=\"5px\"
else
tipobj.style.left=curX+offsetxpoint+\"px\"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+\"px\" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+\"px\"
else
tipobj.style.top=curY+offsetypoint+\"px\"
tipobj.style.visibility=\"visible\"
   }
}
function hideddrivetip(){
if (ns6||ie){
enaašip=false
tipobj.style.visibility=\"hidden\"
tipobj.style.left=\"-1000px\"
tipobj.style.backgroundColor=''
tipobj.style.width=''
   }
}
document.onmousemove=positiontip
</script>";
echo"<br></a><a href='http://modding.bendras.com' target='_blank' title='Autoriai' onMouseover=\"ddrivetip('Autoriai: http://modai.tk','#cccccc', 200)\"; onMouseout=\"hideddrivetip()\"><div align='right'>Ā©</div></a>";
closeside();
?>




Is anksto dekui

Parašė newlifeboy· 2007 Gru. 11 13:12:24
#2

tai gal kas padesit ? :(

Parašė Rytis· 2007 Gru. 11 15:12:31
#3

gal ir padėsiu, bet kodus kelkite į paste.lt

Kažką sudėjau, bet nežinau, ar veiks :D :
http://www.paste.lt/paste/41c25a...76bfb74bd1

Parašė ozzWANTED· 2007 Gru. 11 15:12:05
#4

Kas dėl paste.lt tai projektas - lt. Gali imt ir žlugti po poros metų ir visi kodai nuplauks. Beto Php-Fusion v7 Geshi parsingas su download funkcija manau kur kas geriau.

Parašė Rytis· 2007 Gru. 11 15:12:14
#5

ozzWANTED parašė:
Kas dėl paste.lt tai projektas - lt. Gali imt ir žlugti po poros metų ir visi kodai nuplauks. Beto Php-Fusion v7 Geshi parsingas su download funkcija manau kur kas geriau.


tai gi laikinai čia tiems kodams :)
Rimtiems dalykams niekas tokių paslaugų nenaudoja.

Parašė newlifeboy· 2007 Gru. 12 21:12:04
#6

ryti man ne viso reik o tik pacios tos lygiu paneles o tu viska sudejei ;/ gal kas sudesit nes man nesgauna :(