Guest User

Untitled

a guest
Nov 17th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2. define('IN_MYBB', 1);
  3. require "./global.php";
  4.  
  5. add_breadcrumb("panel_gracza", "panel_gracza.php");
  6.  
  7. $a = array(
  8.     "type" => "mysql",
  9.     "username" => "root",
  10.     "password" => "",
  11.     "hostname" => "localhost",
  12.     "database" => "mybb",
  13. );
  14.  
  15. require_once MYBB_ROOT.'inc/db_mysql.php';
  16. $pgdb = new DB_MySQL;
  17. $pgdb->type = $a['type'];    
  18. $pgdb->connect($a);
  19.  
  20. $content = '';
  21.  
  22. $results = $pgdb->simple_select("1postacie", "nick", "uid = '".$mybb->user['uid']."'" );
  23. while ($result = $pgdb->fetch_array($results))
  24. {
  25.     $content .= '<b>Nick:</b> '.$result['nick'];
  26. }
  27.  
  28. $content .= '<br />';
  29.  
  30. eval("\$podstr = \"".$templates->get("panel_gracza")."\";");
  31. output_page($podstr);
  32. ?>
Add Comment
Please, Sign In to add comment