| Server IP : 188.114.97.2 / Your IP : 104.23.197.231 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 : |
<style type="text/css">
#NS_alert { position:fixed;width:100%;height:100%;top:0;background-color:rgba(0,0,0,0.3);opacity:1; z-index:1000000;}
#NS_alert.loaded { opacity: 1; }
#NS_alert > .panel { margin: auto;max-width: 90%; }
#NS_alert > .panel > .panel-body { overflow: scroll; }
</style>
<div id="NS_alert" class="hidden">
<?php
$panels=array('failAlert'=>'danger');
foreach ($panels AS $ID=>$class){
echo '<div id="'.$ID.'" class="panel panel-'.$class.'">
<div class="panel-heading">'; echo '<p>1</p><p>2</p>'; echo '</div>
<div class="panel-body">'; echo '<p>1</p><p>2</p><p>3</p>'; echo '</div>
</div>';
}
?>
<div id="forbiddenAlert" class="panel panel-danger hidden">
<div class="panel-heading"><?php echo $this->lang->phrase('action_not_allowed'); ?></div>
<div class="panel-body"><?php $loginID=uniqid('l'); ?>
<div id="<?php echo $loginID; ?>">
<h3><?php echo $this->lang->phrase('login'); ?></h3>
<form>
<div>
<div class="row form-group">
<label class="col-xs-3 col-xs-offset-1 control-label"><?php echo $this->lang->phrase('email'); ?></label>
<div class="col-xs-7">
<input type="text" class="form-control" name="email"/>
</div>
</div>
<div class="row form-group">
<label class="col-xs-3 col-xs-offset-1 control-label"><?php echo $this->lang->phrase('password'); ?></label>
<div class="col-xs-7">
<input type="text" class="form-control" name="password"/>
</div>
</div>
</div>
<div class="row form-group">
<div class="col-xs-offset-4 col-xs-7">
<a class="btn btn-primary" onclick="login();"><?php echo $this->lang->phrase('login'); ?></a>
</div>
</div>
</form>
</div>
<script type="text/javascript">
function login(){
_NS.post('<?php echo NS_BASE_URL; ?>user/login',_NS.getFormData('#<?php echo $loginID; ?> form'),{
'success':function(reply){
if (document.location.href=='<?php echo NS_BASE_URL; ?>'){
document.location.replace('<?php echo NS_BASE_URL; ?>');
}
else {
_NS.alert.open('success','<?php echo $this->lang->phrase('success'); ?>','<?php echo $this->lang->phrase('page_will_refresh'); ?>',2);
setTimeout(function(){document.location.replace(document.location.href);},2000);
}
}
},1);
}
</script></div>
</div>
</div>