PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.15
VikBooking Hotel Booking Engine & PMS v1.8.15
1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 All 36 releases
vikbooking / site / views / operators / tmpl / default_login.php

default_login.php in VikBooking Hotel Booking Engine & PMS 1.8.15, at site/views/operators/tmpl/default_login.php

76 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikBooking
4 * @subpackage com_vikbooking
5 * @author Alessio Gaggii - e4j - Extensionsforjoomla.com
6 * @copyright Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 * @link https://vikwp.com
9 */
10
11 defined('ABSPATH') or die('No script kiddies please!');
12
13 $pitemid = VikRequest::getInt('Itemid', '', 'request');
14
15 $goto = "index.php?option=com_vikbooking&view=operators".(!empty($pitemid) ? "&Itemid=".$pitemid : "");
16 $goto = JRoute::rewrite($goto, false);
17 /**
18 * @wponly JRoute is already adding the scheme, the host and the port, so we cannot concatenate it again to the variable $goto
19 */
20 // $goto = JURI::getInstance()->toString(array("scheme","host","port")) . $goto;
21
22 $return_url = base64_encode($goto);
23
24 ?>
25
26 <div class="vbo-operators-login-wrap">
27
28 <div class="vbo-operators-authcode">
29 <form action="<?php echo JRoute::rewrite('index.php?option=com_vikbooking&task=operatorlogin&Itemid=' . $pitemid); ?>" method="post">
30 <label for="authcode"><?php echo JText::translate('VBOOPERAUTHCODE'); ?></label>
31 <input type="text" name="authcode" id="authcode" value="" />
32 <input type="submit" value="<?php echo JText::translate('VBREGSIGNINBTN'); ?>" class="btn booknow vbo-pref-color-btn" name="Login" />
33 <input type="hidden" name="option" value="com_vikbooking" />
34 <input type="hidden" name="task" value="operatorlogin" />
35 <?php
36 if (!empty($pitemid)) {
37 ?>
38 <input type="hidden" name="Itemid" value="<?php echo $pitemid; ?>" />
39 <?php
40 }
41 echo JHtml::fetch('form.token');
42 ?>
43 </form>
44 </div>
45 <?php
46
47 /**
48 * @wponly use WP login form (change login and password names: "log" and "pwd")
49 */
50 $url = wp_login_url(base64_decode($return_url));
51 $url .= (strpos($url, '?') !== false ? '&' : '?') . 'action=login';
52
53 ?>
54 <div class="loginblock">
55 <form action="<?php echo $url; ?>" method="post">
56 <h3><?php echo JText::translate('VBREGSIGNIN'); ?></h3>
57 <div class="loginblock-cnt" valign="top">
58 <div>
59 <div class="loginblock-lbl"><label for="vbo-username"><?php echo JText::translate('VBREGUNAME'); ?></label></div>
60 <div class="loginblock-value"><input type="text" name="log" id="vbo-username" value="" size="20" class="vbinput"/></div>
61 </div>
62 <div>
63 <div class="loginblock-lbl"><label for="vbo-password"><?php echo JText::translate('VBREGPWD'); ?></label></div>
64 <div class="loginblock-value"><input type="password" name="pwd" id="vbo-password" value="" size="20" class="vbinput"/></div>
65 </div>
66 <div>
67 <div class="loginblock-subbtn"><input type="submit" value="<?php echo JText::translate('VBREGSIGNINBTN'); ?>" class="btn booknow vbo-pref-color-btn" name="Login" /></div>
68 </div>
69 </div>
70 <input type="hidden" name="remember" id="remember" value="yes" />
71 <?php echo JHtml::fetch('form.token'); ?>
72 </form>
73 </div>
74
75 </div>
76