]>
git.agnieray.net Git - galette.git/blob - galette/install/steps/admin.php
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 * Galette installation, super-admin settings
10 * Copyright © 2013-2014 The Galette Team
12 * This file is part of Galette (http://galette.tuxfamily.org).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2013-2014 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @link http://galette.tuxfamily.org
34 * @since Available since 0.8 - 2013-01-12
37 use Galette\Core\Install
as GaletteInstall
;
38 use Galette\Core\Db
as GaletteDb
;
40 <h2
><?php
echo $install->getStepTitle(); ?
></h2
>
41 <form id
="adminform" action
="installer.php" method
="post">
42 <fieldset
class="cssform">
43 <legend
class="ui-state-active ui-corner-top"><?php
echo _T("Please chose the parameters of the admin account on Galette"); ?
></legend
>
45 <label
for="install_adminlogin" class="bline"><?php
echo _T("Username:"); ?
></label
>
46 <input type
="text" name
="install_adminlogin" id
="install_adminlogin" value
="<?php if (isset($_POST['install_adminlogin'])) echo $_POST['install_adminlogin']; ?>" required autofocus
/>
49 <label
for="install_adminpass" class="bline"><?php
echo _T("Password:"); ?
></label
>
50 <input type
="password" name
="install_adminpass" id
="install_adminpass" value
="" required
/>
53 <label
for="install_adminpass_verif" class="bline"><?php
echo _T("Retype password:"); ?
></label
>
54 <input type
="password" name
="install_adminpass_verif" id
="install_adminpass_verif" value
="" required
/>
58 <input id
="next_btn" type
="submit" value
="<?php echo _T("Next step
"); ?>"/>
61 <script type
="text/javascript">
63 $
('#adminform').submit(function(){
64 if ( $
('#install_adminpass').val() == $
('#install_adminpass_verif').val() ) {
67 alert("<?php echo _T("Password mismatch
!") ?>");