Advertisement
Guest User

Untitled

a guest
Oct 10th, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php
  2. require_once 'users/init.php';
  3. require_once $abs_us_root.$us_url_root.'users/includes/header.php';
  4. require_once $abs_us_root.$us_url_root.'users/includes/navigation.php';
  5. if(isset($user) && $user->isLoggedIn()){
  6. }
  7.  
  8. ?>
  9.  
  10. <div id="page-wrapper">
  11. <div class="container">
  12. <div class="row">
  13. <div class="col-xs-12">
  14. Patching Database
  15. <?php
  16. echo "Creating timestamp in users table<br>";
  17. $db->query("ALTER TABLE users ADD COLUMN last_loc datetime DEFAULT NULL");
  18. echo "Creating sample location_logs<br>";
  19. $db->query("CREATE TABLE `location_logs` (
  20. `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
  21. `user` int(11) NOT NULL,
  22. `location` varchar(255) NOT NULL,
  23. `ci_time` timestamp NOT NULL
  24. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ");
  25. echo "Done. You can delete this file";
  26. ?>
  27. </div><!-- /.col -->
  28. </div><!-- /.row -->
  29.  
  30. </div> <!-- /container -->
  31.  
  32. </div> <!-- /#page-wrapper -->
  33.  
  34. <!-- footers -->
  35. <?php require_once $abs_us_root.$us_url_root.'users/includes/page_footer.php'; // the final html footer copyright row + the external js calls ?>
  36.  
  37. <!-- Place any per-page javascript here -->
  38.  
  39.  
  40. <?php require_once $abs_us_root.$us_url_root.'users/includes/html_footer.php'; // currently just the closing /body and /html ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement