Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2. require ‘/home/www/indefero/src/IDF/conf/path.php’;
  3. require ‘Pluf.php’;
  4. Pluf::start(‘/home/www/indefero/src/IDF/conf/idf.php’);
  5. Pluf_Dispatcher::loadControllers(Pluf::f(‘idf_views’));
  6. $user = new Pluf_User();
  7. $user->first_name = ‘John’;
  8. $user->last_name = ‘Doe’; // Required!
  9. $user->login = ‘doe’; // must be lowercase!
  10. $user->email = ‘doe@example.com’;
  11. $user->password = ‘yourpassword’; // the password is salted/hashed
  12. // in the database, so do not worry :)
  13. $user->administrator = true;
  14. $user->active = true;
  15. $user->create();
  16. print “Bootstrap ok\n”;
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement