HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/bs.kntsleep.com/cache/compile/f56fabed2a603e1992f44d9ab735e831.php
<?php defined('IS_OK') or exit('Access Forbidden'); ?>
var $G=[];
$G['lang']=<?php  if( isset($G['language']['id']) ){ ?><?php echo $G['language']['id']; ?><?php }else{ ?>0<?php } ?>;
$G['relative']='<?php echo $G['path']['relative']; ?>';
$G['items']=<?php  if( isset($G['items']['id']) ){ ?><?php echo $G['items']['id']; ?><?php }else{ ?>0<?php } ?>;
$G['type']=<?php  if( isset($G['items']['type']) ){ ?><?php echo $G['items']['type']; ?><?php }else{ ?>0<?php } ?>;

<?php  if( $G['config']['member_open'] && $G['items']['type']==11 ){ ?>
<?php  if( $G['config']['member_agreement_open'] ){ ?>
$('form[register]>div.button>button').click(function(){
	if(!$('form[register]>div.agreement input[name="agreement"]').is(':checked')){
		_alert('<?php echo $G['config']['member_agreement_error']; ?>');
		return false;
	}
});
<?php } ?>
<?php  if( $G['config']['member_captcha_type']==1 ){ ?>
(function($){
	ins = $('span.captcha>ins[resend]');
	if(ins.length>0){
		rt = 0;
		resend = ins.attr('resend');
		ini = ins.find('i');
		word = ini.html();
		phone = $('input[name="phone"]');
		ins.click(function(){
			if(rt == 0){
				if(!isPhone(phone.val())){
					_alert('<?php echo $G['config']['member_phone_error']; ?>');
					phone.focus();
				}else{
					$.post('<?php echo $G['path']['relative']; ?>api/member/?action=phonecode',{phone:phone.val()},function(data){
						if(data.state == 'success'){
							rt = 60;
							rdfunc();
							_alert(data.msg,'green');
						}else{
							_alert(data.msg);
						}
					},'json');
				}
			}
		});
		if(phone.length>0){
			$.get('<?php echo $G['path']['relative']; ?>api/member/?action=phonecode&rdtime=true',function(data){
				if(data.state == 'rdtime'){
					rt = data.msg;
					rdfunc();
				}
			},'json');
		}
		function rdfunc(){
			if(rt>0){
				ini.html( resend.replace('[time]',rt) );
				window.setTimeout(function(){
					rt--;
					rdfunc();
				},1000);
			}else{
				ini.html( word );
			}
		}
	}
	function isPhone(val) {
		reg =/^0?1[3|4|5|6|7|8][0-9]\d{8}$/;
		return reg.test(val);
	}
})($);
<?php } ?>
<?php  if( $G['config']['member_login_captcha_type']==1 ){ ?>
if($('script[captchaappid]').length>0){
	loginform = $('script[captchaappid]').parents('form');
	loginform.submit(function(){
		if(captchaappid = $('script[captchaappid]').attr('captchaappid')){
			if(!loginform.hasClass('rtstate')){
				try{
					TC = new TencentCaptcha(captchaappid, function(res){
						if(res.ret===0){
							loginform.find('input[name="randstr"]').val(res.randstr);
							loginform.find('input[name="ticket"]').val(res.ticket);
							loginform.addClass('rtstate').submit();
						}
					},{});
					TC.show(); 
				}catch(e){}
				return false;
			}	
		}else{
			_alert('APPID Error');
			return false;
		}
	});
}
<?php } ?>
<?php } ?>
	
<?php  if( preg_match('/^(2|3|4|5)\d?$/',$G['items']['type']) && isset($G['get']['id']) ){ ?>
$(document).ready(function(){
	$('notice[type][id]').each(function(){
		bosscms = true;
		$.post($G['relative']+'api/notice/?lang='+$G['lang'],{
			'type': $(this).attr('type'),
			'id': $(this).attr('id')
		},function(data){
			if(data){
				$('notice[type="'+data.type+'"][id="'+data.id+'"]').before(data.notice).remove();
			}
		},'json');
	});
	
	if($('div[comment*="_"]').length>0){
		var comment=$('div[comment]').attr('comment').match(/^(\d+)_(\d+)$/);
		$G['model']=comment[1];
		$G['gid']=comment[2];
		$(document).on('click','div[comment] a[pages][parent]',function(){
			(function(the){
				$.get($G['relative']+'api/member/?action=comment&lang='+$G['lang'],{
					'model': $G['model'],
					'gid': $G['gid'],
					'pages': the.attr('pages'),
					'parent': the.attr('parent')
				},function(data){
					div = $('<div>'+data.replace(/\.\.\/\.\.\//g,$G['relative'])+'</div>');
					the.prev('ul').append(div.children('ul').html());
					a = div.children('a');
					if(a.length > 0){
						the.attr('pages',a.attr('pages'));
						the.attr('parent',a.attr('parent'));
						the.html(a.html());
					}else{
						the.remove();
					}
				});
			})($(this));
		})
		.on('click','div[comment] ul>li>dl>dd>a[like][did]',function(){
			(function(the){
				$.post($G['relative']+'api/member/?action=comment&func=like&jsonmsg=true&lang='+$G['lang'],{'id':the.attr('did')},function(data){
					if(mat = data.msg.match(/^([+-])(\d+)$/)){
						the.html(mat[2]);
						if(mat[1] == '-'){
							the.addClass('fa-thumbs-o-up').removeClass('fa-thumbs-up');
						}else{
							the.addClass('fa-thumbs-up').removeClass('fa-thumbs-o-up');
						}
					}else{
						_alert(data.msg);
					}
				},'json');
			})($(this));
		})
		.on('click','div[comment] ul>li>dl>dd>a[reply][did]',function(){
			div = $(this).parent('dd').next('div');
			if(div.find('textarea').length>0){
				$(this).removeClass('fa-commenting on').addClass('fa-commenting-o');
				div.html('');
			}else{
				$('div[comment] ul>li>dl>dd>a[reply][did]').removeClass('fa-commenting on').addClass('fa-commenting-o');
				$(this).removeClass('fa-commenting-o').addClass('fa-commenting on');
				$('div[comment] ul>li>dl>div').html('');
				html = $('div[comment]>div').html();
				html = $(html).attr('placeholder',$(this).html()+$(this).parent('dd').parent('dl').find('dt>b').html());
				div.html( html );
			}
		})
		.on('click','div[comment] div>p>button',function(){
			(function(the){
				div = the.parent('p').parent('div');
				did = div[0].hasAttribute('did')?div.attr('did')*1:0;
				pid = div[0].hasAttribute('pid')?div.attr('pid')*1:0;
				$.post($G['relative']+'api/member/?action=comment&func=publish&jsonmsg=true&lang='+$G['lang'],{
					'model': $G['model'],
					'gid': $G['gid'],
					'parent': pid?pid:did,
					'superior': did,
					'content': the.parent('p').prev('textarea').val(),
					'anonymity': the.next('label').find('input').prop('checked')?1:0
				},function(data){
					if(!data.state.match(/^\w+$/)){
						div = the.parent('p').parent('div');
						if(div[0].hasAttribute('did')){
							div.prev('dd').find('a[reply]').click();
						}else{
							div.find('textarea').val('');
							div.find('input[type="checkbox"]').prop('checked',false);
						}
						_alert(data.msg,'green');
					}else{
						_alert(data.msg,'red');
					}
				},'json');
			})($(this));
		});
	}
});
<?php } ?>