Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?php
  2.  
  3. chdir('C:xampphtdocstestdrupal');
  4. // Bootstrap Drupal up through the database phase.
  5. include_once('./includes/bootstrap.inc');
  6. drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
  7. ?>
  8.  
  9. 'C:xampphtdocstestdrupal');
  10. // Bootstrap Drupal up through the database phase.
  11. include_once('
  12.  
  13. /**
  14. * Root directory of Drupal installation.
  15. */
  16. define('DRUPAL_ROOT', getcwd());
  17.  
  18. require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
  19. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  20. menu_execute_active_handler();
  21.  
  22. function module_load_include($type, $module, $name = NULL) {
  23. if (!isset($name)) {
  24. $name = $module;
  25. }
  26.  
  27. if (function_exists('drupal_get_path')) {
  28. $file = DRUPAL_ROOT . '/' . drupal_get_path('module', $module) . "/$name.$type";
  29. if (is_file($file)) {
  30. require_once $file;
  31. return $file;
  32. }
  33. }
  34. return FALSE;
  35. }
  36.  
  37. define('DRUPAL_ROOT', 'C:xampphtdocstestdrupal');
  38.  
  39. // Bootstrap Drupal up through the database phase.
  40. require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
  41. drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
  42.  
  43. chdir('C:xampphtdocstestdrupal\');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement