Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. index.php:
  2.  
  3. require_once './includes/bootstrap.inc';
  4. // pääsee tänne
  5.  
  6. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  7. // ei pääse tänne
  8.  
  9. // bootstrap.inc:
  10.  
  11. function drupal_bootstrap($phase = NULL) {
  12.   static $phases = array(DRUPAL_BOOTSTRAP_CONFIGURATION, DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE, DRUPAL_BOOTSTRAP_DATABASE, DRUPAL_BOOTSTRAP_ACCESS, DRUPAL_BOOTSTRAP_SESSIO$
  13.  
  14.   if (isset($phase)) {
  15.     while ($phase >= $phase_index && isset($phases[$phase_index])) {
  16.       $current_phase = $phases[$phase_index];
  17.       unset($phases[$phase_index++]);
  18.       _drupal_bootstrap($current_phase);
  19.     }
  20.   }
  21.     // pääsee tänne
  22.         return $phase_index;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement