Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/css/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/css/login.tar

index.html000064400000000054151172250630006542 0ustar00<html><body
bgcolor="#FFFFFF"></body></html>submitbutton.js000064400000002754151172250640007654
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.php000064400000004770151172250640007670 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.xml000064400000000357151172250640007676 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_password.php000064400000007513151172250640011610
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.php000064400000006476151172250640011601
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.html000064400000000054151172250640007517
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>view.html.php000064400000012471151172250640007202
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);
	}
}