srchub

srchub Commit Details


Date:2013-07-24 23:14:15 (11 years 4 months ago)
Author:Natalie Adams
Branch:master
Commit:42a3fd82bb775acf242513c083da49f2b2fcfd6c
Parents: 7816fa82e95e535a169ee258fb0a825d8bfb0486
Message:Adding bootstrap script

Changes:

File differences

indefero/scripts/bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
require '/home/www/indefero/src/IDF/conf/path.php';
require 'Pluf.php';
Pluf::start('/home/www/indefero/src/IDF/conf/idf.php');
Pluf_Dispatcher::loadControllers(Pluf::f('idf_views'));
$user = new Pluf_User();
$user->first_name = '';
$user->last_name = 'Admin'; // Required!
$user->login = 'admin'; // must be lowercase!
$user->email = 'admin@example.com';
$user->password = 'admin'; // the password is salted/hashed
// in the database, so do not worry :)
$user->administrator = true;
$user->active = true;
$user->create();
print "Bootstrap ok\n";
?>

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05346s using 14 queries.