Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 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.  
  7. $user = new Pluf_User();
  8. $user->first_name = 'John';
  9. $user->last_name = 'Doe'; // Required!
  10. $user->login = 'doe'; // must be lowercase!
  11. $user->email = 'doe@example.com';
  12. $user->password = 'yourpassword'; // the password is salted/hashed
  13. // in the database, so do not worry :)
  14. $user->administrator = true;
  15. $user->active = true;
  16. $user->create();
  17. print "Bootstrap ok\n";
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement