query("select autor from articles where id_article='".$_GET['node_id']."'"); $set->next(); $autor_id=$set->getString('autor'); $record=$kyberia->query("select * from user where id='$autor_id'"); $record->next(); $userinfo=$record->getRecord(); } $q = "select user_name from session where user_id = '".$userinfo['id']."'"; $result=$kyberia->query($q); if($result->getNumRows() > 0) define('ACTIVE', true); else define('ACTIVE', false); echo "
";
echo " id: ",$userinfo["login"],""; echo " email:",$userinfo["email"],""; echo " www:",$userinfo["user_www"],""; echo " icq:".$userinfo["user_icq"]; echo " charisma:".$userinfo["charisma"]; echo " k!arma:".$userinfo["user_karma"]; if($userinfo['id'] == '1') echo " "; elseif(ACTIVE) echo " Uzivatel je on-line"; else { if($userinfo['user_active'] != 'yes') echo " Uzivatel caka na registraciu Uzivatel je off-line "; $u = $userinfo['last_click']; echo substr($u, 0, -3); } } echo " if (!$autor_id) $autor_id=$node_id; $kyberia->putAutorList($autor_id); ?> $kyberia->putDennikAutorList($autor_id); ?> |