| 1 | <?php |
| 2 | //zoznam clankov |
| 3 | if ($action=='article') { |
| 4 | |
| 5 | $set=$kyberia->query("select autor from articles where id_article='".$_GET['node_id']."'"); |
| 6 | $set->next(); |
| 7 | $autor_id=$set->getString('autor'); |
| 8 | |
| 9 | |
| 10 | $record=$kyberia->query("select * from user where id='$autor_id'"); |
| 11 | $record->next(); |
| 12 | $userinfo=$record->getRecord(); |
| 13 | |
| 14 | |
| 15 | } |
| 16 | |
| 17 | $q = "select user_name from session where user_id = '".$userinfo['id']."'"; |
| 18 | $result=$kyberia->query($q); |
| 19 | if($result->getNumRows() > 0) define('ACTIVE', true); |
| 20 | else define('ACTIVE', false); |
| 21 | |
| 22 | |
| 23 | echo "<table width=100% class=box><tr><td colspan=2>"; |
| 24 | echo "<br><center> <img src='http://kyberia.sk/images/users/",$userinfo["login"],".gif' border=0></center>"; |
| 25 | echo "<br>id: <a href='".SCRIPT."?action=posta&mail_name=",$userinfo["login"],"'>",$userinfo["login"],"</a>"; |
| 26 | echo "<br>email:<a href=mailto:",$userinfo["email"],">",$userinfo["email"],"</a>"; |
| 27 | echo "<br>www:<a href=http://",$userinfo["user_www"],">",$userinfo["user_www"],"</a>"; |
| 28 | echo "<br>icq:".$userinfo["user_icq"]; |
| 29 | echo "<br>charisma:".$userinfo["charisma"]; |
| 30 | echo "<br>k!arma:".$userinfo["user_karma"]; |
| 31 | |
| 32 | if($userinfo['id'] == '1') echo "<br><br><center>Ubik je Ubik</center><br>"; |
| 33 | elseif(ACTIVE) echo "<br><br>Uzivatel je on-line"; |
| 34 | else { |
| 35 | if($userinfo['user_active'] != 'yes') echo "<center><br>Uzivatel caka na registraciu</center>"; |
| 36 | else |
| 37 | { |
| 38 | echo "<br><br>Uzivatel je off-line<br>"; |
| 39 | $u = $userinfo['last_click']; |
| 40 | echo substr($u, 0, -3); |
| 41 | } |
| 42 | } |
| 43 | echo "<br><br><center><a href='".SCRIPT."?action=journaux&dennik_user=$node_id'>denniky</a></center>"; |
| 44 | echo "<center><a href='".SCRIPT."?action=userinfo&node_id=$node_id&show=bookmarks'>bookmarky</a>"; |
| 45 | echo "<br><center><a href='".SCRIPT."?action=userinfo&node_id=$node_id&show=friends'>priatelia</a>"; |
| 46 | echo "<br><center><a href='".SCRIPT."?action=userinfo&node_id=$node_id&show=karma'>karma</a>"; |
| 47 | echo "<br><center><a href='".SCRIPT."?action=userinfo&node_id=$node_id&show=submissions'>prispevky</a>"; |
| 48 | |
| 49 | |
| 50 | ?> |
| 51 | <br><br> |
| 52 | <? |
| 53 | if (!$autor_id) $autor_id=$node_id; |
| 54 | $kyberia->putAutorList($autor_id); |
| 55 | ?> |
| 56 | <br><br> |
| 57 | <? |
| 58 | |
| 59 | $kyberia->putDennikAutorList($autor_id); |
| 60 | ?> |
| 61 | </td></tr></table> |