<?php

$model = $_REQUEST['model'];
$action = $_REQUEST['action'];
include_once MODELS . "/" . $model . "_model.php";
switch (strtoupper($action)) {
    case 'VERIFIED':
        $objVery = new verification();
        $objVery->verifyData();
        break;
    case 'PASSWORD':
        $objVery = new verification();
        $objVery->getMemberFromActivation();
        break;
    case 'CREATE':
        $objVery = new verification();
        $objVery->createPassword();
        break;
    default:
        $objVery = new verification();
        //$objVery->verifyData();
        break;
}
Beispiel #2
0
<?php

define('NO_CSRF', 1);
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/Verification.php';
$uid = get_uid(false);
if ($uid) {
    if (preg_match('/^[-_0-9a-zA-Z]+$/', $_GET['code'])) {
        $verification = new verification();
        if (!$verification->ffCommit($uid, $_GET['code'])) {
            $error = $verification->error;
        }
    } else {
        $error = 'Произошла ошибка при работе с сервисом FF.RU (no code).';
    }
} else {
    $error = 'Вы не авторизованы';
}
if (empty($error) && $verification->is_pro) {
    $_SESSION['verifyStatus'] = array('status' => 1);
    $_SESSION['is_verify'] = 't';
} elseif ($error) {
    $_SESSION['verifyStatus'] = array('status' => 0, 'text' => $error);
}
?>
<html>
<head>
    <title>Верификация через сервис FF.RU</title>
</head>
<body>
    <script type="text/javascript">
			$delivered = "fDelivered_".$fdid."_".$slid;
			$delive = $$delivered;
			$vqry = "insert into $verified_user set delivered='$delive',verified_user_id='$user_id',
				verified_date=now(),for_user_id='$uid',sl_id='$slid'";			
			$db_object->insert($vqry);
			
			$bqry = "select fd_id,boss_id  from $app_feedback where raters_id='$user_id' and user_id='$user_id' and
				active='A'";
			$bres = $db_object->get_rsltset($bqry);						

		}

		$boss_id=$common->immediate_boss($db_object,$uid);															
	}//end accept
}//end class
	$ob = new verification;
	if($reject!="")
	{
		$ob->rejected_verification($db_object,$common,$default,$user_id,$post_var);
		header("location:per_setting.php");
	}
	if($accept!="")
	{
		$ob->accepted_verification($db_object,$common,$default,$user_id,$post_var);
		header("location:per_setting.php");
	}
	
	$ob->view_form($db_object,$common,$default,$user_id,$uid);
include_once("footer.php");
?>