admin system
|
|
Pridané 15.08.2013 20:10:37
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
Caute mám tento Admin systém http://www.phpfus...age_id=343
Urobil som si v ňom Status Ked je hráč ONLINE a OFFLINE
lenže neviem ako urobit ked je hráč onlne tak mu tam bude ukazovat online ked je offline tak offline dakujem za pomoc
Upravil dňa 31.08.2013 22:31:02 |
|
|
|
|
Pridané 15.08.2013 20:51:51
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
GeSHi: PHPif($user["user_lastvisit"] < 301 ) else
Vygenerované za 0.006 sekúnd, používate GeSHi 1.0.7.20
|
|
|
|
|
Pridané 15.08.2013 21:07:55
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
PRosím hodil by si mi to do toho code lebo neviem ako nato |
|
|
|
|
Pridané 16.08.2013 07:44:38
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
Code<?php
include "../../maincore.php";
include THEMES."templates/header.php";
opentable("Admin Team");
$submits="";
$g=0;
$groups=mysql_query("SELECT * FROM ".DB_PREFIX."admins_groups WHERE 1 ORDER BY id");
while($group=mysql_fetch_array($groups)) {
$g=1;
$submits.="<td><form action='' method='GET'><input type='hidden' value='".$group["id"]."' name='skupina' /><input class='button' type='submit' value='".$group["nazev"]."'></form></td>";
}
if($g==1) {
echo "<table align='center' cellpadding='2' cellspacing='2'>";
echo "<tr>".$submits."</tr>";
echo "</table>";
echo "<hr /><br />";
} else { echo "<center>Neexistujú žiadne skupiny.</center>"; }
if(isset($_GET["skupina"]) && isnum($_GET["skupina"])) {
$users=mysql_query("SELECT * FROM ".DB_PREFIX."admins_users WHERE skupina='".$_GET["skupina"]."'");
$u=0;
while($userr=mysql_fetch_array($users)) {
$u=1;
$user=mysql_fetch_array(mysql_query("SELECT * FROM ".DB_USERS." WHERE user_id='".$userr["user_id"]."'"));
$status = $user["user_lastvisit"] < 301 ? "green":"red";
echo "<table width='500px' height='150px' align='center'>";
echo "<tr><td width='100px'>";
echo "<strong style='font-size:12px;'><font color='silver'>Nick:</font></strong> <a href='profile.php?lookup=".$user["user_id"]."'><font style='font-size:13px;'><strong><span style='color:$status'>".$user["user_name"]."</strong></font></a><strong style='float:right; font-size:12px; margin-right:-350px;'><font color='silver'>Status: </font><span style='color:red'>Offline</span></strong>
<br /><br />";
if(file_exists(IMAGES."avatars/".$user["user_avatar"]) && $user["user_avatar"]!="") {
echo "<img src='".IMAGES."avatars/".$user["user_avatar"]."' border='0' width='100px' height='100px' valign='top' align='center'>";
} else { echo "<img src='noav.png' style='border:1px solid #fff;;' wifth='100px' height='100px' valign='top' align='center'>"; }
echo "</td><td valign='top'align='left'>";
$n="<i>Nevyplnené</i>";
$skype=$user["user_skype"]==""? $n : $user["user_skype"];
$funkce=$userr["funkce"]==""? $n : $userr["funkce"];
$komentar=$userr["komentar"]==""? $n : $userr["komentar"];
$popis=$userr["popis"]==""? $n : $userr["popis"];
echo "<br /><br /><br /><strong><strong style='font-size:10px;'><font color='silver'>E-mail:</strong></font> ".$user["user_email"]."<br />";
echo "<strong style='font-size:10px;'><font color='silver'>Skype:</strong></font><strong style='font-size:10px;'><font color='white'>".$skype."</strong></font><br />";
echo "<strong style='font-size:10px;'><font color='silver'>Funkcie:</strong></font> ".$userr["funkce"]."<br />";
echo "<strong style='font-size:10px;'><font color='silver'>Súkromná správa:</strong></font> <a href='".BASEDIR."messages.php?msg_send=".$user["user_id"]."'><strong style='font-size:12px;'><font color='white'>Poslat zprávu</strong></font></a><br />";
echo "<strong style='font-size:10px;'><font color='silver'>Poslední přihlášení:</strong></font>".$popis."<br />";
echo "</td></tr></table><br /><br />";
}
if($u==0) { echo "<center>V tejto skupine nnie sú žiadni admini.</center>"; }
}
closetable();
include THEMES."templates/footer.php";
?>
|
|
|
|
|
Pridané 19.08.2013 22:43:40
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
Ničja proste chcem aby kde mám Code<font color='silver'>Status: </font><span style='color:red'>Offline</span></strong>
toto :D Tak aby namiesto toho offline bolo ked je clen prihlaseny tak ukazuje online ked offline tak offfline |
|
|
|
|
Pridané 27.08.2013 13:12:41
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
PREPACTE ZA DOUBLE POST ALE POMOZE DAKTO |
|
|
|
|
Pridané 04.09.2013 11:55:48
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
GeSHi: PHP<?php include "../../maincore.php"; include THEMES."templates/header.php"; opentable("Admin Team"); $submits=""; $g=0; $groups= mysql_query("SELECT * FROM ".DB_PREFIX. "admins_groups WHERE 1 ORDER BY id"); $g=1; $submits.="<td><form action='' method='GET'><input type='hidden' value='".$group["id"]."' name='skupina' /><input class='button' type='submit' value='".$group["nazev"]."'></form></td>"; } if($g==1) { echo "<table align='center' cellpadding='2' cellspacing='2'>"; echo "<tr>". $submits. "</tr>"; } else { echo "<center>Neexistujú žiadne skupiny.</center>"; } if(isset($_GET["skupina"]) && isnum ($_GET["skupina"])) { $users= mysql_query("SELECT * FROM ".DB_PREFIX. "admins_users WHERE skupina='". $_GET["skupina"]. "'"); $u=0; $u=1; $status = $user["user_lastvisit"] < 301 ? "green":"red"; $textSt = $user["user_lastvisit"] < 301 ? "Online":"Offline"; echo "<table width='500px' height='150px' align='center'>"; echo "<tr><td width='100px'>"; echo "<strong style='font-size:12px;'><font color='silver'>Nick:</font></strong> <a href='profile.php?lookup=". $user["user_id"]. "'><font style='font-size:13px;'><strong><span style='color:$status'>". $user["user_name"]. "</strong></font></a><strong style='float:right; font-size:12px; margin-right:-350px;'><font color='silver'>Status: </font><span style='color:". $status. "'>". $textSt. "</span></strong> <br /><br />"; if(file_exists(IMAGES. "avatars/". $user["user_avatar"]) && $user["user_avatar"]!= "") { echo "<img src='".IMAGES. "avatars/". $user["user_avatar"]. "' border='0' width='100px' height='100px' valign='top' align='center'>"; } else { echo "<img src='noav.png' style='border:1px solid #fff;;' wifth='100px' height='100px' valign='top' align='center'>"; } echo "</td><td valign='top'align='left'>"; $n="<i>Nevyplnené</i>"; $skype=$user["user_skype"]==""? $n : $user["user_skype"]; $funkce=$userr["funkce"]==""? $n : $userr["funkce"]; $komentar=$userr["komentar"]==""? $n : $userr["komentar"]; $popis=$userr["popis"]==""? $n : $userr["popis"]; echo "<br /><br /><br /><strong><strong style='font-size:10px;'><font color='silver'>E-mail:</strong></font> ". $user["user_email"]. "<br />"; echo "<strong style='font-size:10px;'><font color='silver'>Skype:</strong></font><strong style='font-size:10px;'><font color='white'>". $skype. "</strong></font><br />"; echo "<strong style='font-size:10px;'><font color='silver'>Funkcie:</strong></font> ". $userr["funkce"]. "<br />"; echo "<strong style='font-size:10px;'><font color='silver'>Súkromná správa:</strong></font> <a href='".BASEDIR. "messages.php?msg_send=". $user["user_id"]. "'><strong style='font-size:12px;'><font color='white'>Poslat zprávu</strong></font></a><br />"; echo "<strong style='font-size:10px;'><font color='silver'>Poslední přihlášení:</strong></font>". $popis. "<br />"; echo "</td></tr></table><br /><br />"; } if($u== 0) { echo "<center>V tejto skupine nnie sú žiadni admini.</center>"; } } closetable(); include THEMES."templates/footer.php"; ?>
Vygenerované za 0.116 sekúnd, používate GeSHi 1.0.7.20
|
|
|
|
|
Pridané 05.09.2013 21:12:09
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
NEfunguje to :_D Som prihláseny a ukazuje mi že som Offline |
|
|
|
|
Pridané 06.09.2013 06:42:27
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
Code<?php
include "../../maincore.php";
include THEMES."templates/header.php";
opentable("Admin Team");
$submits="";
$g=0;
$groups=mysql_query("SELECT * FROM ".DB_PREFIX."admins_groups WHERE 1 ORDER BY id");
while($group=mysql_fetch_array($groups)) {
$g=1;
$submits.="<td><form action='' method='GET'><input type='hidden' value='".$group["id"]."' name='skupina' /><input class='button' type='submit' value='".$group["nazev"]."'></form></td>";
}
if($g==1) {
echo "<table align='center' cellpadding='2' cellspacing='2'>";
echo "<tr>".$submits."</tr>";
echo "</table>";
echo "<hr /><br />";
} else { echo "<center>Neexistujú žiadne skupiny.</center>"; }
if(isset($_GET["skupina"]) && isnum($_GET["skupina"])) {
$users=mysql_query("SELECT * FROM ".DB_PREFIX."admins_users WHERE skupina='".$_GET["skupina"]."'");
$u=0;
while($userr=mysql_fetch_array($users)) {
$u=1;
$user=mysql_fetch_array(mysql_query("SELECT * FROM ".DB_USERS." WHERE user_id='".$userr["user_id"]."'"));
$lastvisit = time() - $user["user_lastvisit"];
$status = $lastvisit < 301 ? "green":"red";
$textSt = $lastvisit < 301 ? "Online":"Offline";
echo "<table width='500px' height='150px' align='center'>";
echo "<tr><td width='100px'>";
echo "<strong style='font-size:12px;'><font color='silver'>Nick:</font></strong> <a href='profile.php?lookup=".$user["user_id"]."'><font style='font-size:13px;'><strong><span style='color:$status'>".$user["user_name"]."</strong></font></a><strong style='float:right; font-size:12px; margin-right:-350px;'><font color='silver'>Status: </font><span style='color:".$status."'>".$textSt."</span></strong>
<br /><br />";
if(file_exists(IMAGES."avatars/".$user["user_avatar"]) && $user["user_avatar"]!="") {
echo "<img src='".IMAGES."avatars/".$user["user_avatar"]."' border='0' width='100px' height='100px' valign='top' align='center'>";
} else { echo "<img src='noav.png' style='border:1px solid #fff;;' wifth='100px' height='100px' valign='top' align='center'>"; }
echo "</td><td valign='top'align='left'>";
$n="<i>Nevyplnené</i>";
$skype=$user["user_skype"]==""? $n : $user["user_skype"];
$funkce=$userr["funkce"]==""? $n : $userr["funkce"];
$komentar=$userr["komentar"]==""? $n : $userr["komentar"];
$popis=$userr["popis"]==""? $n : $userr["popis"];
echo "<br /><br /><br /><strong><strong style='font-size:10px;'><font color='silver'>E-mail:</strong></font> ".$user["user_email"]."<br />";
echo "<strong style='font-size:10px;'><font color='silver'>Skype:</strong></font><strong style='font-size:10px;'><font color='white'>".$skype."</strong></font><br />";
echo "<strong style='font-size:10px;'><font color='silver'>Funkcie:</strong></font> ".$userr["funkce"]."<br />";
echo "<strong style='font-size:10px;'><font color='silver'>Súkromná správa:</strong></font> <a href='".BASEDIR."messages.php?msg_send=".$user["user_id"]."'><strong style='font-size:12px;'><font color='white'>Poslat zprávu</strong></font></a><br />";
echo "<strong style='font-size:10px;'><font color='silver'>Poslední přihlášení:</strong></font>".$popis."<br />";
echo "</td></tr></table><br /><br />";
}
if($u==0) { echo "<center>V tejto skupine nnie sú žiadni admini.</center>"; }
}
closetable();
include THEMES."templates/footer.php";
?>
|
|
|
|
|
Pridané 06.09.2013 21:21:23
|
Nováčik

Príspevkov:
Založený: 01.01.70
|
Už to funguje vďaka Antik
LOCK |
|
|