Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  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. ?>
  26.  
  27. <?php //if (!securePage($_SERVER['PHP_SELF'])){die();} ?>
  28.  
  29. <div id="page-wrapper">
  30. <div class="container-fluid">
  31. <!-- Page Heading -->
  32. <div class="row">
  33. <div class="col-sm-12">
  34. <h1 class="page-header">
  35. Database Update
  36. </h1>
  37. <!-- Content goes here -->
  38. <?php
  39. $db->query("ALTER TABLE users ADD show_phone tinyint(1) DEFAULT 1");
  40. logger(1,"System Updates","Added option to hide/show phone.");
  41.  
  42. $db->query("ALTER TABLE users ADD user_phone varchar(20) DEFAULT NULL");
  43. logger(1,"System Updates","Added phone column to db");
  44.  
  45. Redirect::to("profile.php");
  46. ?>
  47. <!-- Content Ends Here -->
  48. </div> <!-- /.col -->
  49. </div> <!-- /.row -->
  50. </div> <!-- /.container -->
  51. </div> <!-- /.wrapper -->
  52.  
  53.  
  54. <?php require_once $abs_us_root.$us_url_root.'users/includes/page_footer.php'; // the final html footer copyright row + the external js calls ?>
  55.  
  56. <!-- Place any per-page javascript here -->
  57.  
  58. <?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