Spade
Mini Shell
tmpl/default.php000064400000004770151174115350007670 0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.39
@build 4th April, 2023
@created 17th December, 2020
@package Reservation
@subpackage default.php
@author farhad shahbazi <http://farhad.com>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<?php echo $this->toolbar->render(); ?>
<!--[JCBGUI.site_view.default.43.$$$$]-->
<section id="login" class="mb-5">
<div class="row justify-content-center">
<div class="col-md-4">
<div>
<p style="font-weight:
bold">ورود</p>
<p style="font-size: 12px">برای
ورود یا ثبت نام ، شماره موبایل خود را وارد
نمایید</p>
</div>
<div class="card">
<div class="card-body">
<form method="post"
id="adminForm">
<div class="form-group">
<label
for="phoneNumber">شماره موبایل </label>
<input type="text"
class="form-control" name="phonenumber"
aria-describedby="phoneNumber"
placeholder="09121234567" value="<?=
isset($this->info['phonenumber'])?$this->info['phonenumber']:
'' ?>">
</div>
<button type="submit"
class="loginBtn">ورود</button>
<input type="hidden"
name="task" value="login.loginRegister">
<?= JHtml::_('form.token'); ?>
</form>
</div>
</div>
</div>
</div>
</section>
<?php
// echo $this->loadTemplate('register');
// echo $this->loadTemplate('password');
?><!--[/JCBGUI$$$$]-->
tmpl/default.xml000064400000000357151174115350007676 0ustar00<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
<layout title="COM_RESERVATION_MENU_LOGIN_TITLE"
option="COM_RESERVATION_MENU_LOGIN_OPTION">
<message>
<![CDATA[COM_RESERVATION_MENU_LOGIN_DESC]]>
</message>
</layout>
</metadata>tmpl/default_login.php000064400000006356151174115350011062
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_users
*
* @copyright (C) 2009 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');
?>
<div class="login<?php echo $this->pageclass_sfx;
?>">
<?php if ($this->params->get('show_page_heading')) :
?>
<div class="page-header">
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
</div>
<?php endif; ?>
<?php if (($this->params->get('logindescription_show')
== 1 && str_replace(' ', '',
$this->params->get('login_description')) != '')
|| $this->params->get('login_image') != '') :
?>
<div class="login-description">
<?php endif; ?>
<?php if ($this->params->get('logindescription_show')
== 1) : ?>
<?php echo $this->params->get('login_description');
?>
<?php endif; ?>
<?php if ($this->params->get('login_image') !=
'') : ?>
<img src="<?php echo
$this->escape($this->params->get('login_image'));
?>" class="login-image" alt="<?php echo
JText::_('COM_USERS_LOGIN_IMAGE_ALT'); ?>" />
<?php endif; ?>
<?php if (($this->params->get('logindescription_show')
== 1 && str_replace(' ', '',
$this->params->get('login_description')) != '')
|| $this->params->get('login_image') != '') :
?>
</div>
<?php endif; ?>
<form action="<?php echo
JRoute::_('index.php?option=com_users&task=user.login');
?>" method="post" class="form-validate
form-horizontal well">
<fieldset>
<?php echo
$this->form->renderFieldset('credentials'); ?>
<?php if ($this->tfa) : ?>
<?php echo $this->form->renderField('secretkey');
?>
<?php endif; ?>
<?php if (JPluginHelper::isEnabled('system',
'remember')) : ?>
<div class="control-group">
<div class="control-label">
<label for="remember">
<?php echo JText::_('COM_USERS_LOGIN_REMEMBER_ME');
?>
</label>
</div>
<div class="controls">
<input id="remember" type="checkbox"
name="remember" class="inputbox" value="yes"
/>
</div>
</div>
<?php endif; ?>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn
btn-primary">
<?php echo JText::_('JLOGIN'); ?>
</button>
</div>
</div>
<?php $return = $this->form->getValue('return',
'', $this->params->get('login_redirect_url',
$this->params->get('login_redirect_menuitem'))); ?>
<input type="hidden" name="return"
value="<?php echo base64_encode($return); ?>" />
<?php echo JHtml::_('form.token'); ?>
</fieldset>
</form>
</div>
<div>
<ul class="nav nav-tabs nav-stacked">
<li>
<a href="<?php echo
JRoute::_('index.php?option=com_users&view=reset');
?>">
<?php echo JText::_('COM_USERS_LOGIN_RESET'); ?>
</a>
</li>
<li>
<a href="<?php echo
JRoute::_('index.php?option=com_users&view=remind');
?>">
<?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?>
</a>
</li>
<?php $usersConfig =
JComponentHelper::getParams('com_users'); ?>
<?php if ($usersConfig->get('allowUserRegistration')) :
?>
<li>
<a href="<?php echo
JRoute::_('index.php?option=com_users&view=registration');
?>">
<?php echo JText::_('COM_USERS_LOGIN_REGISTER'); ?>
</a>
</li>
<?php endif; ?>
</ul>
</div>
tmpl/default_logout.php000064400000004212151174115350011250
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_users
*
* @copyright (C) 2009 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<div class="logout<?php echo $this->pageclass_sfx;
?>">
<?php if ($this->params->get('show_page_heading')) :
?>
<div class="page-header">
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
</div>
<?php endif; ?>
<?php if (($this->params->get('logoutdescription_show')
== 1 && str_replace(' ', '',
$this->params->get('logout_description')) !=
'')|| $this->params->get('logout_image') !=
'') : ?>
<div class="logout-description">
<?php endif; ?>
<?php if ($this->params->get('logoutdescription_show')
== 1) : ?>
<?php echo $this->params->get('logout_description');
?>
<?php endif; ?>
<?php if ($this->params->get('logout_image') !=
'') : ?>
<img src="<?php echo
$this->escape($this->params->get('logout_image'));
?>" class="thumbnail pull-right logout-image"
alt="<?php echo JText::_('COM_USER_LOGOUT_IMAGE_ALT');
?>" />
<?php endif; ?>
<?php if (($this->params->get('logoutdescription_show')
== 1 && str_replace(' ', '',
$this->params->get('logout_description')) !=
'')|| $this->params->get('logout_image') !=
'') : ?>
</div>
<?php endif; ?>
<form action="<?php echo
JRoute::_('index.php?option=com_users&task=user.logout');
?>" method="post" class="form-horizontal
well">
<div class="control-group">
<div class="controls">
<button type="submit" class="btn
btn-primary">
<span class="icon-arrow-left icon-white"></span>
<?php echo JText::_('JLOGOUT'); ?>
</button>
</div>
</div>
<?php if ($this->params->get('logout_redirect_url')) :
?>
<input type="hidden" name="return"
value="<?php echo
base64_encode($this->params->get('logout_redirect_url',
$this->form->getValue('return'))); ?>" />
<?php else : ?>
<input type="hidden" name="return"
value="<?php echo
base64_encode($this->params->get('logout_redirect_menuitem',
$this->form->getValue('return'))); ?>" />
<?php endif; ?>
<?php echo JHtml::_('form.token'); ?>
</form>
</div>
tmpl/logout.xml000064400000001757151174115350007570 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<metadata>
<layout title="COM_USER_LOGOUT_VIEW_DEFAULT_TITLE"
option="COM_USER_LOGOUT_VIEW_DEFAULT_OPTION">
<help key = "JHELP_MENUS_MENU_ITEM_USER_LOGOUT"/>
<message>
<![CDATA[COM_USER_LOGOUT_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<!-- Add fields to the request variables for the layout. -->
<fields name="request">
<fieldset name="request">
<field
name="task"
type="hidden"
default="user.menulogout"
/>
</fieldset>
</fields>
<!-- Add fields to the parameters object for the layout. -->
<fields name="params">
<fieldset name="basic"
label="COM_MENUS_BASIC_FIELDSET_LABEL">
<field
name="logout"
type="modal_menu"
label="JFIELD_LOGOUT_REDIRECT_PAGE_LABEL"
description="JFIELD_LOGOUT_REDIRECT_PAGE_DESC"
disable="separator,alias,heading,url"
select="true"
new="true"
edit="true"
clear="true"
>
<option value="">JDEFAULT</option>
</field>
</fieldset>
</fields>
</metadata>
view.html.php000064400000012471151174115350007202 0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.39
@build 4th April, 2023
@created 17th December, 2020
@package Reservation
@subpackage view.html.php
@author farhad shahbazi <http://farhad.com>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Reservation View class for the Login
*/
class ReservationViewLogin extends JViewLegacy
{
// Overwriting JView display method
function display($tpl = null)
{
// get combined params of both component and menu
$this->app = JFactory::getApplication();
$this->params = $this->app->getParams();
$this->menu = $this->app->getMenu()->getActive();
// get the user object
$this->user = JFactory::getUser();
// Initialise variables.
$this->items = $this->get('Items');
/***[JCBGUI.site_view.php_jview_display.43.$$$$]***/
$this->loginProccess();
$this->info=
$this->app->getUserState('info',array());/***[/JCBGUI$$$$]***/
// Set the toolbar
$this->addToolBar();
// set the document
$this->_prepareDocument();
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode(PHP_EOL, $errors), 500);
}
parent::display($tpl);
}
/***[JCBGUI.site_view.php_jview.43.$$$$]***/
public function __construct($config = array())
{
$layout=
JFactory::getApplication()->input->get('layout','default','string');
$config['layout']= $layout;
$this->document= JFactory::getDocument();
parent::__construct($config);
}
public function loginProccess()
{
if (!JFactory::getUser()->guest)
{
$this->app->enqueueMessage('برای ثبت نام
ابتدا از حساب کاربری فعلی خود خارج
شوید','warning');
$this->app->redirect(JUri::root());
}
JFactory::getDocument()->addScriptOptions('expire',
$this->app->getUserState('expire'));
$layout= $this->getLayout();
$info= $this->app->getUserState('info');
if ($layout== 'default')
{
$this->app->setUserState('expire',''
);
$this->app->setUserState('owner.data', null);
if (!JFactory::getUser()->guest)
$this->app->redirect(JUri::root());
}
elseif ($layout== 'default_register')
{
if (!$info['phonenumber'] ||
!$info['validate'] || $info['userExist'] ||
!JFactory::getUser()->guest)
{
$this->app->redirect(JRoute::_('index.php?option=com_reservation&view=login',false));
// $this->setLayout('default');
}
}
elseif ($layout== 'default_password')
{
if (!$info['phonenumber'] ||
!$info['validate'] || !$info['userExist'] ||
!JFactory::getUser()->guest)
{
$this->app->redirect(JRoute::_('index.php?option=com_reservation&view=login',false));
// $this->setLayout('default');
}
}
}/***[/JCBGUI$$$$]***/
/**
* Prepares the document
*/
protected function _prepareDocument()
{
// always make sure jquery is loaded.
JHtml::_('jquery.framework');
// Load the header checker class.
require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php'
);
// Initialize the header checker.
$HeaderCheck = new reservationHeaderCheck;
// Add View JavaScript File
$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/login.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
// add the document default css file
$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/login.css',
(ReservationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
}
/**
* Setting the toolbar
*/
protected function addToolBar()
{
// set help url for this view if found
$help_url = ReservationHelper::getHelpUrl('login');
if (ReservationHelper::checkString($help_url))
{
JToolbarHelper::help('COM_RESERVATION_HELP_MANAGER', false,
$help_url);
}
// now initiate the toolbar
$this->toolbar = JToolbar::getInstance();
}
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
*
* @return mixed The escaped value.
*/
public function escape($var, $sorten = false, $length = 40)
{
// use the helper htmlEscape method instead.
return ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
}
}
index.html000064400000000054151177630420006546 0ustar00<html><body
bgcolor="#FFFFFF"></body></html>submitbutton.js000064400000002754151177630420007657
0ustar00/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.39
@build 4th April, 2023
@created 17th December, 2020
@package Reservation
@subpackage submitbutton.js
@author farhad shahbazi <http://farhad.com>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
Joomla.submitbutton = function(task)
{
if (task == ''){
return false;
} else {
var action = task.split('.');
if (action[1] == 'cancel' || action[1] == 'close' ||
document.formvalidator.isValid(document.getElementById("adminForm"))){
Joomla.submitform(task, document.getElementById("adminForm"));
return true;
} else {
alert(Joomla.JText._('login, some values are not
acceptable.','Some values are unacceptable'));
return false;
}
}
}tmpl/default_password.php000064400000007513151177630420011613
0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.39
@build 4th April, 2023
@created 17th December, 2020
@package Reservation
@subpackage default_password.php
@author farhad shahbazi <http://farhad.com>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<!--[JCBGUI.template.template.20.$$$$]-->
<section id="login" class="mb-5">
<div class="row justify-content-center">
<div class="col-md-4">
<div>
<p style="font-weight:
bold">ورود</p>
<?php if
(JFactory::getApplication()->getUserState('loginWith')==
'password'): ?>
<p style="font-size: 12px">برای
ورود ، رمز عبور خود را وارد نمایید</p>
<?php elseif
(JFactory::getApplication()->getUserState('loginWith')==
'verifyCode'): ?>
<p style="font-size: 12px">برای
ورود ، کد تایید خود را وارد نمایید</p>
<?php endif; ?>
</div>
<div class="card">
<div class="card-body">
<form method="post"
id="adminForm">
<a href="<?=
JRoute::_('index.php?option=com_reservation&view=login',false);
?>" style="position:absolute;left: 16px;top:
4px;">ویرایش شماره</a>
<div class="form-group">
<?php if
(JFactory::getApplication()->getUserState('loginWith')==
'password'): ?>
<label
for="password">رمز عبور</label>
<?php elseif
(JFactory::getApplication()->getUserState('loginWith')==
'verifyCode'): ?>
<label for="password">کد
تایید</label>
<?php endif; ?>
<input type="password"
class="form-control" name="jform[password]"
aria-describedby="password">
<?php if
(JFactory::getApplication()->getUserState('loginWith')==
'password'): ?>
<small><button
class="btnToLink"
onclick="Joomla.submitbutton('login.verifyCode')">ورود
با رمز یکبارمصرف</button></small>
<?php elseif
(JFactory::getApplication()->getUserState('loginWith')==
'verifyCode'): ?>
<small
id="demo"></small>
<small><button
class="btnToLink"
onclick="Joomla.submitbutton('login.password')">ورود
با رمزعبور</button></small>
<?php endif; ?>
</div>
<button type="submit"
class="loginBtn"
onclick="Joomla.submitbutton('login.login')">ورود</button>
<input type="hidden"
name="task">
<?= JHtml::_('form.token'); ?>
</form>
</div>
</div>
</div>
</div>
</section><!--[/JCBGUI$$$$]-->
tmpl/default_register.php000064400000006476151177630420011604
0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.39
@build 4th April, 2023
@created 17th December, 2020
@package Reservation
@subpackage default_register.php
@author farhad shahbazi <http://farhad.com>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<!--[JCBGUI.template.template.19.$$$$]-->
<section id="login" class="mb-5">
<div class="row justify-content-center">
<div class="col-md-4">
<div>
<p style="font-weight: bold">ثبت
نام</p>
<p style="font-size: 12px">برای ثبت
نام ، فیلد های زیر را پر نمایید</p>
</div>
<div class="card">
<div class="card-body">
<form method="post"
name="adminForm" id="adminForm">
<a href="<?=
JRoute::_('index.php?option=com_reservation&view=login',false);
?>" style="position:absolute;left: 16px;top:
4px;">ویرایش شماره</a>
<div class="form-group">
<label for="name">نام و
نام خانوادگی</label>
<?php $data=
JFactory::getApplication()->getUserState('owner.data',null);
?>
<input type="text"
class="form-control" name="jform[name]"
aria-describedby="name" placeholder="فرهاد
فرهادی" value="<?= empty($data)? '':
$data['name']; ?>">
</div>
<div class="form-group">
<label for="password">رمز
عبور</label>
<input type="password"
class="form-control" name="jform[password]"
aria-describedby="password" value="<?= empty($data)?
'': $data['password']; ?>">
</div>
<div class="form-group">
<label for="verify">کد
تایید</label>
<input type="text"
class="form-control" name="jform[verify]"
aria-describedby="verify">
<small
id="demo"></small>
</div>
<button class="loginBtn"
onclick="Joomla.submitbutton('login.register');">ثبت
نام</button>
<input type="hidden"
name="task">
<?= JHtml::_('form.token'); ?>
</form>
</div>
</div>
</div>
</div>
</section><!--[/JCBGUI$$$$]-->
tmpl/index.html000064400000000054151177630420007522
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>