Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.97.2  /  Your IP : 104.23.243.200
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/git/sms.edl.codes.solutions/application/views/backend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/git/sms.edl.codes.solutions/application/views/backend/login.php
<!doctype html>

<?php

//$system_title = $this->db->get_where('settings', array('type' => 'system_title'))->row()->description;

$system_name  = $this->db->get_where('settings', array('type' => 'system_name'))->row()->description;

?>



<html class="no-js" lang="">

    <head>

      <meta charset="utf-8">

      <meta http-equiv="x-ua-compatible" content="ie=edge">

      <title>

        <?php echo get_phrase('login'); ?> | <?php echo $system_name; ?>

      </title>

      <meta name="description" content="">

      <meta name="viewport" content="width=device-width, initial-scale=1">



	    <link rel="shortcut icon" href="/assets/login_page/img/favicon.png">

      <link rel="stylesheet" href="/assets/css/bootstrap.css">

      <link rel="stylesheet" href="/assets/login_page/css/font-awesome.min.css">

      <link rel="stylesheet" href="/assets/login_page/css/normalize.css">

      <link rel="stylesheet" href="/assets/login_page/css/main.css">

      <link rel="stylesheet" href="/assets/login_page/css/style.css">

      <script src="/assets/login_page/js/vendor/modernizr-2.8.3.min.js"></script>

		  <link href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700" rel="stylesheet">

      <script src="https://apis.google.com/js/platform.js" async defer></script>

      <meta name="google-signin-client_id" content="1091112128863-s0jqhb805jf8irk86olc39l18cu7j5k3.apps.googleusercontent.com">
    </head>

    <body>

		<div class="main-content-wrapper">

			<div class="login-area">

				<div class="login-header">

					<a href="/index.php?login" class="logo">



						<img src="/assets/login_page/img/logo.png" height="60" alt="">

					</a>

					<h2 class="title"><?php echo $system_name; ?></h2>

				</div>


				<div class="login-bottom-links">

				<a href="/Fblogin" class="link"><img class="img" src="https://scontent.fdel1-4.fna.fbcdn.net/v/t39.2365-6/17639236_1785253958471956_282550797298827264_n.png?_nc_cat=105&amp;_nc_ht=scontent.fdel1-4.fna&amp;oh=57111d4dcc990afa41581310c152e0c8&amp;oe=5C649BEA" width="400" alt="" style="width:185px">


						</a>
						<BR>

					</div>


<br>




				<div class="login-content">

					<form method="post" role="form" id="form_login"

            action="/index.php?login/validate_login">

						<div class="form-group">
<? /*
              <select name="email" style="color:black;" class="col-off-2 col-sm-5">
							<option type="text" class="input-field" value="[email protected]" placeholder="<?php echo get_phrase('email');?>"required autocomplete="off">admin</option>
              <option type="text" class="input-field" value="[email protected]" placeholder="<?php echo get_phrase('email');?>"required autocomplete="off">teacher</option>
              <option type="text" class="input-field" value="[email protected]" placeholder="<?php echo get_phrase('email');?>"required autocomplete="off">student</option>
              <option type="text" class="input-field" value="[email protected]" placeholder="<?php echo get_phrase('email');?>"required autocomplete="off">parent</option>
              </select>
              */?>
              <input class="input-field" type="email" name="email" placeholder="[email protected]" /> 
						</div>

						<div class="form-group">

							<input type="password" class="input-field" name="password" value="" placeholder="" ondragover="" required>

						</div>

						<button type="submit" class="btn btn-primary"><?php echo get_phrase('login'); ?><i class="fa fa-lock"></i></button><div class="g-signin2" data-onsuccess="onSignIn"></div><br>

					</form>


						<div class="login-bottom-links">

						<a href="/index.php?login/forgot_password" class="link">

							<?php echo get_phrase('forgot_your_password'); ?> ?

						</a>

					</div>


				</div>

			</div>

			<div class="image-area"></div>

		</div>



    <script src="/assets/login_page/js/vendor/jquery-1.12.0.min.js"></script>

    <script src="/assets/js/bootstrap-notify.js"></script>



    <?php if ($this->session->flashdata('login_error') != '') { ?>

      <script type="text/javascript">

        $.notify({

          // options

          title: '<strong><?php echo get_phrase('error');?>!!</strong>',

          message: '<?php echo $this->session->flashdata('login_error');?>'

          },{

          // settings

          type: 'danger'

        });


      </script>

    <?php } ?>

    </body>
<script>
function onSignIn(googleUser) {
  var hash = window.location.hash.substr(1);
  if( hash == "out"){
     var auth2 = gapi.auth2.getAuthInstance();
    auth2.signOut().then(function () {
      console.log('User signed out.');
      parent.location.hash = '';
    });
  }
  else{
    var profile = googleUser.getBasicProfile();
    console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
    console.log('token:'+googleUser.getAuthResponse().id_token);
    console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
    $.post( "GoogleLogin/login",
    { email: profile.getEmail(),
      name:  profile.getName(),
      token:  googleUser.getAuthResponse().id_token
    }, function( data ) {
      console.log( data );
      if(data == "-1"){
        $.notify({
          title: '<strong>login failled</strong>',
          message: 'google refused the connexion: wrong token'
          },{
          type: 'danger'
        });
      }
      else if( data == "0"){
          $.notify({
            title: '<strong>No account found with this email</strong>',
            message: 'sorry please contact the admin'
          },{
            type: 'danger'
          });
          var auth2 = gapi.auth2.getAuthInstance();
          auth2.signOut().then(function () {
          console.log('User signed out.');});
      }
      else if( data =="1"){
        console.log("in");
        location.reload();
      }
      else{}
    });
  }

}
</script>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit