daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. UserSpice 4
  4. An Open Source PHP User Management System
  5. by the UserSpice Team at http://UserSpice.com
  6.  
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation, either version 3 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program.  If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. ?>
  21. <?php
  22. require_once 'users/init.php';
  23. require_once $abs_us_root.$us_url_root.'users/includes/header.php';
  24. require_once $abs_us_root.$us_url_root.'users/includes/navigation.php';
  25. if (!securePage($_SERVER['PHP_SELF'])){die();}
  26. $id = Input::get('id');
  27. $infoC = 0;
  28. if(is_numeric($id)){
  29.     $infoQ = $db->query("SELECT * FROM users WHERE id = ?",[$id]);
  30.     $infoC = $infoQ->count();
  31.     if($infoC > 0){
  32.         $info = $infoQ->first();
  33.     }
  34. }
  35. ?>
  36.  
  37. <div id="page-wrapper">
  38.     <div class="container-fluid">
  39.         <!-- Page Heading -->
  40.         <div class="row">
  41.             <div class="col-sm-12">
  42.                 <h1 class="page-header">Dossier</h1>
  43.                 <?php if($infoC > 0){ ?>
  44.                     <table class="table table-striped">
  45.                         <thead>
  46.                             <tr>
  47.                                 <th>DB Column</th><th>Data</th>
  48.                             </tr>
  49.                         </thead>
  50.                         <tbody>
  51.                             <?php foreach($info as $column =>$data){?>
  52.                                 <tr>
  53.                                     <td><strong><?=$column?></td>
  54.                                     <td><strong><?=$data?></td>
  55.                                 </tr>
  56.                             <?php } ?>
  57.                         </tbody>
  58.                     </table>
  59.                 <?php }else{
  60.                     echo "No info found";
  61.                 }?>
  62.             </div> <!-- /.col -->
  63.         </div> <!-- /.row -->
  64.     </div> <!-- /.container -->
  65. </div> <!-- /.wrapper -->
  66.  
  67. <?php require_once $abs_us_root.$us_url_root.'users/includes/page_footer.php'; // the final html footer copyright row + the external js calls ?>
  68.  
  69. <?php require_once $abs_us_root.$us_url_root.'users/includes/html_footer.php'; // currently just the closing /body and /html ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top