drupal-6.user-password-token.database.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. db_insert('variable')->fields(array(
  3. 'name',
  4. 'value',
  5. ))
  6. ->values(array(
  7. 'name' => 'user_mail_register_no_approval_required_body',
  8. 'value' => 's:97:"!password, !username, !site, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url.";',
  9. ))
  10. ->execute();
  11. db_insert('users')->fields(array(
  12. 'uid',
  13. 'name',
  14. 'pass',
  15. 'mail',
  16. 'mode',
  17. 'sort',
  18. 'threshold',
  19. 'theme',
  20. 'signature',
  21. 'signature_format',
  22. 'created',
  23. 'access',
  24. 'login',
  25. 'status',
  26. 'timezone',
  27. 'language',
  28. 'picture',
  29. 'init',
  30. 'data',
  31. ))
  32. ->values(array(
  33. 'uid' => 3,
  34. 'name' => 'hashtester',
  35. // This is not a valid D7 hash, but a truncated one.
  36. 'pass' => '$S$DAK00p3Dkojkf4O/UizYxenguXnjv',
  37. 'mail' => 'hashtester@example.com',
  38. 'mode' => '0',
  39. 'sort' => '0',
  40. 'threshold' => '0',
  41. 'theme' => '',
  42. 'signature' => '',
  43. 'signature_format' => '0',
  44. 'created' => '1277671599',
  45. 'access' => '1277671612',
  46. 'login' => '1277671612',
  47. 'status' => '1',
  48. 'timezone' => '-21600',
  49. 'language' => '',
  50. 'picture' => '',
  51. 'init' => 'hashtester@example.com',
  52. 'data' => 'a:0:{}',
  53. ))
  54. ->execute();