Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Sifon pe circuitul frigorific.

Cel mai adormit Hard Disk.

Salariu minim european in Romania

verificare specificatii lapgop Asus
 Problema cu o camera Panasonic MD...

Probleme cu reddit

Problema sunet boxa noua

Despre proiectarea drumurilor urb...
 Final Cut Camera

Z6III vs Z8

Foloseste careva CFD-uri si sa ai...

Un calculator ieftin ?!
 macbook pro 16 VS AMD Laptop

Sistem ON-GRID fara curent din re...

rectin Romania - site uri fake

Recomandare telefon
 

Probleme script php

- - - - -
  • Please log in to reply
No replies to this topic

#1
ByeBye1

ByeBye1

    Junior Member

  • Grup: Members
  • Posts: 132
  • Înscris: 10.09.2012
Salut, am o problema, am un script php la care nu ii dau de cap, el ar trebui sa imi arate adminii online pe site si in joc. Problema este pe site zice bine dar in joc nu merge nici cum, sunt online si apare tot offline... Va rog sa ma ajutati

<?php
if (!defined("IN_CMS")) {
die("Das aufrufen der Datei ist nicht gestattet!");
}
class showTeam {

  public function showTeamInput() {
   global $mysqlConnect;
	$this->team  = "<table align='center' width='100%' cellpadding='1' cellspacing='1' class='tbl-border'>\n";
	$this->team .= "<tr>\n";
	$this->team .= "<td class='tbl2' colspan='2'>Webseite</td>\n";
	$this->team .= "</tr>\n";
   
	$result_wt_name = $mysqlConnect -> dbquery("SELECT a.user_id, b.user_lastvisit from ".DB_USER_RIGHTS." as a left join ".DB_PROFIL." as b on a.user_id=b.user_id WHERE a.group_id>'101'");
	while ($data_wt_name = $mysqlConnect -> dbarray($result_wt_name)) {
   
	 $this->team .= "<tr>\n";
	 $this->team .= "<td class='tbl1'>".user_linkname($data_wt_name['user_id'])."</td>\n";
	 $this->team .= "<td align='center' class='tbl1'>".($data_wt_name['user_lastvisit'] > time()-60 ? "<font color=".SYS_COLOR_GREEN.">(Online)</font>" : "<font color=".SYS_COLOR.">(Offline)</font>")."</td>\n";
	 $this->team .= "</tr>\n";
	
	}
   
	$this->team .= "<tr>\n";
	$this->team .= "<td class='tbl2' colspan='2'>In Game</td>\n";
	$this->team .= "</tr>\n";
   
	mysql_select_db(DB_MAIN_COMMON);
   
	$result_gt_name = $mysqlConnect -> dbquery("SELECT mName from gmlist");
	while ($data_gt_name = $mysqlConnect -> dbarray($result_gt_name)) {
	
	 mysql_select_db(DB_MAIN_PLAYER);
	
	 $player = $mysqlConnect -> dbarray($mysqlConnect -> dbquery("SELECT last_play FROM player WHERE name='".$data_gt_name['mName']."'"));
	
	 $this->team .= "<tr>\n";
	 $this->team .= "<td class='tbl1'>".$data_gt_name['mName']."</td>\n";
	 $this->team .= "<td align='center' class='tbl1'>".($player['last_play'] > showdate("%Y-%m-%d %H:%M:%S", time()-1000) ? "<font color=".SYS_COLOR_GREEN.">(Online)</font>" : "<font color=".SYS_COLOR.">(Offline)</font>")."</td>\n";
	 $this->team .= "</tr>\n";
	
	}
   
	mysql_select_db(DB_MAIN_ACCOUNT);
   
	$this->team .= "</table>";
   
   return $this->team;
  }
 
}

openmodul("Team Mitglieder");
$showTeam =  new showTeam;
echo $showTeam -> showTeamInput();

closemodul();
?>



Anunturi

Neurochirurgie minim invazivă Neurochirurgie minim invazivă

"Primum non nocere" este ideea ce a deschis drumul medicinei spre minim invaziv.

Avansul tehnologic extraordinar din ultimele decenii a permis dezvoltarea tuturor domeniilor medicinei. Microscopul operator, neuronavigația, tehnicile anestezice avansate permit intervenții chirurgicale tot mai precise, tot mai sigure. Neurochirurgia minim invazivă, sau prin "gaura cheii", oferă pacienților posibilitatea de a se opera cu riscuri minime, fie ele neurologice, infecțioase, medicale sau estetice.

www.neurohope.ro

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate