403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/imusiccircle/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/imusiccircle/signupTutorVerification.php
<? include('_init.php');

$id = intval($_SESSION['member_login']);

if(!$id){
	$path = 'signupTutor.php';
	@header("Location: {$path}");
	echo "<script language='JavaScript'>window.location='{$path}'</script>";
	exit();
}else{
	$sql        = "select * from tutor_main where id = ? and deleted = ? and status = ?";
	$parameters = array($id,0,2);
	$row = bind_pdo($sql, $parameters, "selectone");
	
	if(!$row['id']){
		$path = 'index.php';
		@header("Location: {$path}");
		echo "<script language='JavaScript'>window.location='{$path}'</script>";
		exit();
	}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<? include('_head.php')?>
<link href="css/_sign.css" type="text/css" rel="stylesheet">
<script src='https://www.google.com/recaptcha/api.js?hl=en'></script>
<script>
	function refreshcode(){
		$('#LiCodeiframe').html('<iframe width="160" height="50" src="../_verifyCode.php" frameborder="0" scrolling="no" marginwidth="0"></iframe>');
	}
	var sms_process = true;
	function sendSMS(){
		if(sms_process == true){
			sms_process = false;
			$('.loading_icon').show();
			$('#sms_box,#smstelError3').hide();
			$.post('../_ajax.php', {
				ajax: 'sendSMS',
				type: 'tutor'
			}, function(json) {
				var json = JSON.parse ( json );
				//console.log(json);
				if(json.sms_status == 'true'){
					$('#sms_box').slideDown(1000);
					$('.loading_icon').hide();
					sms_process = true; 
				}else if(json.sms_status == 'false'){
					$('#smstelError4').show();
				}else if(json.sms_status == 'same'){
					$('#smstelError3').show();
				}else if(json.sms_status == 'time'){
					$('.loading_icon').hide();
					$('#smstelError6').show();
				}
			});
		}
	}
	$(function(){
		$('#confirmSMS').click(
			function(){
				$('#smstelError6,#smstelError5,#smstelError4,#smstelError3,#smstelError2,#smstelError').hide();
				if(!$('input[name="sms_tel"]').val()){
					$("#smstelError").show();
					$('input[name="sms_tel"]').focus();
				}else{
					$('.loading_icon').show();
					$.post('../_ajax.php', {
						ajax:	'confirmSMSCode',
						type:   'tutor',
						code:	$('input[name="sms_tel"]').val()
					}, function(json) {
						var json = JSON.parse ( json );
						//console.log(json);
						$('.loading_icon').hide();
						$('#sms_box').slideUp(1000);
						if(json.status == false){
							$("#smstelError2").show();
						}else{
							$('#LiConnectSMS').val('<?=_lang("Verified")?>');
							$('.loading_icon').hide();
						}
					});
				}
			}
		);
		$('#submitBTN').click(
			function(){
				var thisform = $('#LiForm');
				$.post('../_ajax.php', {
					async: false,
					ajax:			'checkverifyCode',
					verifyCode:		$('input[name="verifyCode"]',thisform).val(),
					type:			'tutor'
				}, function(json) {
					var json = JSON.parse ( json );
					var error = false;
					$('.error').hide();
					if(!$('input[name="verifyCode"]',thisform).val()){
						$("#verifyCodeError").show();
						error = true;
					}else{
						if(json.status == false){
							$("#verifyCode2Error").show();
							error = true;
						}
					}
					if(json.smsstatus == false){
						$("#smstelError5").show();
						error = true;
					}
					if($('input[name="is_provision"]:checked',thisform).val() != 1){
						$("#provisionError").show();
						error = true;
					}
					if(error == false){
						$('#LiForm').submit();
					}else{
						return false;
					}
			    });
			}
		);
	});
</script>
<script type="text/javascript" src="js/facebook.js"></script>
</head>

<body>

<!-- Navigation -->
<? include('_header.php');?>
<div class="formSection">
  <? $signupMenu='menu'?>
  <? include('_signupTutorMenu.php')?>
  <div class="TutorForm">
    <form action="../_process.php" method="post" enctype="multipart/form-data" id="LiForm">
      <input type="hidden" name="action" value="signup_tutorverification"/>
      <input type="hidden" name="facebook_id" value="<? if($row['facebook_id']){ echo $row['facebook_id']; }?>"/>
      <!--<div class="VerifyHeading">將你的帳戶進行認證和與社交網絡聯繫 是最容易獲取學生信任的方法 !!!</div>-->
      <div class="SocialNetwork">
        <div class="SocialSet">
          <div class="SocialLeft">
            <div><img src="../img/signup/Icon_Phone.png"><?=_lang("SMS Verification")?></div>
            <div><font color="#0012ff" style="font-size:12px; font-weight:100;"><?=_lang("You can chat with student after SMS verification.")?></font></div>
          </div>
          <div class="SocialRight">
            <? if($row['isphoneverified'] == 1){?>
            <input type="button" value="<?=_lang("Verified")?>" class="SocialSend">
            <? }else{?>
            <input type="button" value="<?=_lang("SMS Verification")?>" class="SocialSend" onClick="sendSMS()" id="LiConnectSMS">
            <img src="img/loading_icon.gif" height="36" style="margin-left:5px; display:none;" class="loading_icon"/>
            <div id="sms_box" style="margin-top:5px; display:none;">
              <input type="text" name="sms_tel" class="inputPrice" value="" style="width:100px; height:36px;" maxlength="6"/>
              <input type="button" value="認証" class="SocialSend" id="confirmSMS">
              <div style="color:#F00; display:none;" class="error" id="smstelError"><?=_lang('Please enter verification code.')?></div>
              <div style="color:#F00; display:none;" class="error" id="smstelError2"><?=_lang('Verification code is wrong.')?></div>
              <div style="color:#F00; display:none;" class="error" id="smstelError3"><?= _lang("Mobile number has used by someone.") ?></div>
              <div style="color:#F00; display:none;" class="error" id="smstelError4"><?= _lang("Mobile number send fail") ?></div>
              
            </div>
			<? }?>
            <div style="color:#F00; display:none;" class="error" id="smstelError6"><?= _lang("Please try again after 15 mins") ?></div>
            <div style="color:#F00; display:none;" class="error" id="smstelError5"><?=_lang("Please verify mobile number.")?></div>
          </div>
        </div>
        <div class="SocialSet" style="margin-top:10px;">
          <div class="SocialLeft">
            <div><img src="../img/signup/Icon_Facebook.png"><?=_lang("Connect Facebook")?></div>
            <div><font color="#0012ff" style="font-size:12px; font-weight:100;"><?=_lang("Student can know more about us through Facebook.")?></font></div>
          </div>
          <div class="SocialRight">
            <? if($row['facebook_id']){?>
            <input type="button" value="<?=_lang("Connected")?>" id="LiConnectFB"  class="SocialSend">
            <? }else{?>
            <input type="button" value="<?=_lang("Connect")?>" id="LiConnectFB"  class="SocialSend" sname="<?=_lang("Connected")?>" onclick="statusChangeCallback()">
            <div style="color:#F00; display:none;" class="error" id="fbError">
	            <?=_lang('This facebook account has been used.')?>
            </div>
            <? }?>
          </div>
        </div>
        <!--
        <div class="SocialSet">
          <div class="SocialLeft"><img src="../img/signup/Icon_GooglePlus.png">Google+</div>
          <div class="SocialRight">
            <input type="button" value="CONNECT" class="SocialSend">
          </div>
        </div>--> 
      </div>
      <div class="HalfLeft">
        <div class="BoxTitle"><font style="color:#ff0000;">*</font>
          <?=_lang('Verification Code')?>
        </div>
        <div>
          <table border="0" cellpadding="0" cellspacing="0">
          	<tr>
            	<td id="LiCodeiframe"><iframe width="160" height="50" src="../_verifyCode.php" frameborder="0" scrolling="no" marginwidth="0"></iframe></td>
                <td><img src="img/refresh_icon.png" alt="" height="50" style="cursor:pointer;" onClick="refreshcode()"/></td>
            </tr>
          </table>  
        </div>
        <div>
          <input name="verifyCode" type="text" class="inputPrice" value="" maxlength="6" style="width:160px;"/>
        </div>
        <div style="color:#F00; display:none;" class="error" id="verifyCodeError">
          <?=_lang('Please enter verification code.')?>
        </div>
        <div style="color:#F00; display:none;" class="error" id="verifyCode2Error">
          <?=_lang('Verification code is wrong.')?>
        </div>
      </div>
      <div class="InputDataIII">
        <input type="checkbox" name="is_provision" value="1">
        <?=html_entity_decode(_lang('Read and understand all of the above&nbsp;'))?>
        <a href="tnc.php" target="_blank">
        <?=_lang('Terms of Service')?>
        </a>
        <div style="color:#F00; display:none;" class="error" id="provisionError">
          <?=_lang('Please click if you have read')?>
        </div>
      </div>
      <input type="button" value="<?=_lang('SUBMIT')?>" id="submitBTN" class="submitBTN">
    </form>
  </div>
</div>
<? include('_footer.php')?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit