2 /* +-----------------------------------------------------------------------------+
3 * Copyright 2016 matrix israel
4 * LICENSE: This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 3
7 * of the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see
14 * http://www.gnu.org/licenses/licenses.html#GPL
15 * @author Oshri Rozmarin <oshri.rozmarin@gmail.com>
16 * +------------------------------------------------------------------------------+
20 if ($closeBeforeOpening):
22 opener.document.forms[0].submit();
32 <label class="yoursafekey"><?php echo $translate->z_xlt('Your safe key is')?>:</label>
35 <h1><?php echo $this->escapeHtml($randomSafeKey)?></h1>
37 <p><?php echo $translate->z_xlt('Store your safe key at settings globals in security tab')?></p>
39 <input type="button" name="back" value="<?php echo $translate->z_xlt('Back')?>" onclick="back()" />
40 <input type="button" name="back" value="<?php echo $translate->z_xlt('Generate new key')?>" onclick="newkey()" />
47 window.location.href = window.history.back(1);