File indexing completed on 2025-01-12 05:18:47
0001 <?php 0002 0003 include("gfx3/lib.php"); 0004 0005 if(EHeaderDataParser::exists_get("id")){ 0006 $id = EHeaderDataParser::db_get("id"); 0007 0008 $users = new EData("ocs_person"); 0009 $user_info = $users->find("firstname,lastname,email,login","where id=$id limit 1"); 0010 $user_info = $user_info[0]; //taking first element 0011 } elseif(EHeaderDataParser::exists_get("login")) { 0012 $login = EHeaderDataParser::db_get("login"); 0013 0014 $users = new EData("ocs_person"); 0015 $user_info = $users->find("firstname,lastname,email,login","where login='$login' limit 1"); 0016 $user_info = $user_info[0]; //taking first element 0017 } 0018 echo " 0019 <div class=\"modal-header\"> 0020 <button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button> 0021 <h3>Personal info of ".$user_info["firstname"]." ".$user_info["lastname"]."</h3> 0022 </div> 0023 0024 <div class=\"modal-body\"> 0025 <table class=\"mytable\"> 0026 <tr><td>First Name:</td><td><span class=\"right\">".$user_info["firstname"]."</span></td></tr> 0027 <tr><td>Last Name:</td><td><span class=\"right\">".$user_info["lastname"]."</span></td></tr> 0028 <tr><td>User Name:</td><td><span class=\"right\">".$user_info["login"]."</span></td></tr> 0029 <tr><td>E-mail:</td><td><span class=\"right\">".$user_info["email"]."</span></td></tr> 0030 </table> 0031 <br> 0032 <a href=\"#\">Find all games from this user</a><br> 0033 <a href=\"#\">Find all games liked by this user</a> 0034 </div> 0035 0036 <div class=\"modal-footer\" style=\"background-color:#F5F5F5;\"> 0037 <a href=\"#\" class=\"btn\" data-dismiss=\"modal\">Close</a> 0038 </div> 0039 0040 "; 0041 0042 ?>