Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: user_info_panel redagavimas

Parašė kiskiss· 2007 Lie. 15 14:07:03
#1

As biski pakeiciau user_info_panel ir istryniau Statistika taciau uzsiliko lentele kur yra parasyta kiek nariu uzsiregistrave ir nebezinau kur cia ka pasalinti kad to neberodytu. www.counterstrike.xz.lt prie priisjungimo galit pamatyti skaiciu 21 tai vat neina istrinti tos lenteles kur skaiciuoja kiek yra uzsiregistravusiu. Cia dalis kodo user_info_panel.php Gal galite pasakyti kur ka pasalinti kad nebeliktu skaiciavimo kiek uzsiregistrave?

   $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 "<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'");
   $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;
      while($data = dbarray($result)) {
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}
}
closeside();
?>



Redagavo kiskiss· 2007 Lie. 15 14:07:36