add multi database option along with related zend configuration module (#439)
[openemr.git] / interface / modules / zend_modules / module / Multipledb / view / multipledb / multipledb / generatesafekey.phtml
blob54e29b4888adebf32ef0c7d2d339c541113d31fe
1 <script>
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      * +------------------------------------------------------------------------------+
17      *
18      */
19     <?php
20     if ($closeBeforeOpening):
21     ?>
22     opener.document.forms[0].submit();
23     window.close();
25     <?php
26     endif;
27     ?>
28 </script>
31 <div class="safekey">
32             <label class="yoursafekey"><?php echo $translate->z_xlt('Your safe key is')?>:</label>
34             <div class="box">
35                 <h1><?php echo $this->escapeHtml($randomSafeKey)?></h1>
36             </div>
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()" />
42 </div>
45 <script>
46     function back(){
47         window.location.href = window.history.back(1);
48     }
50     function newkey(){
51         location.reload();
52     }
53 </script>