本文整理汇总了PHP中Movie::orderWC方法的典型用法代码示例。如果您正苦于以下问题:PHP Movie::orderWC方法的具体用法?PHP Movie::orderWC怎么用?PHP Movie::orderWC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Movie
的用法示例。
在下文中一共展示了Movie::orderWC方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: userActivation
function userActivation()
{
Doo::loadClass('SDPAPI');
Doo::loadClass('UserNoCache');
Doo::loadClass('General');
Doo::loadClass('Movie');
$lib = new General();
$sdpapi = new SDPAPI();
$user = new UserNoCache();
$mv = new Movie();
$mail = $_GET['email'];
$dataUser = $lib->get_temp_user($mail);
if (!$dataUser) {
$dataUser = $user->get_user_by_uid($mail);
$dataUser['username'] = $dataUser[0]['user_id'];
$dataUser['password'] = $dataUser[0]['password'];
/* $out = 'Email anda sudah diaktivasi';
echo $out;
exit; */
} else {
if ($dataUser['status'] == 1) {
$dataUser['password'] = $dataUser['password'];
$opt = $dataUser['opt'];
$backurl = $opt->backurl;
} else {
$param = array('telkomId' => $dataUser['username'], 'email' => $mail, 'password' => $dataUser['password']);
$outCrt = $sdpapi->createUser($param);
$outActive = $sdpapi->activeUser($param);
//$url = "http://{$this->api_host}/system/createuser?userAccount=".urlencode($dataUser['username'])."&username=".urlencode($dataUser['fullname'])."&password={$dataUser['password']}&userType=1&email={$mail}";
$url = "http://{$this->new_api_host}/api/createuser?userAccount=" . urlencode($dataUser['username']) . "&username=" . urlencode($dataUser['fullname']) . "&password={$dataUser['password']}&userType=1&email={$mail}";
$sent = file_get_contents($url);
/* $subject = "Selamat datang di UseeTV";
$text = " Selamat anda berhasil registrasi account di useetv.com.<br/>
Login anda <b>{$dataUser['username']}</b> dan password <b>{$dataUser['password']}</b>, anda dapat mengganti password melalui website
<a href='http://www.useetv.com' >useetv.com</a><br/><br/>
Terimakasih,<br/><br/>
UseeTV Team
";
$this->sendMailSwift($mail,$subject,$text,3); */
$dataUser['password'] = $dataUser['password'];
$opt = $dataUser['opt'];
$backurl = $opt->backurl;
$mv->orderWC($dataUser['username'], $dataUser['nospeedy']);
}
}
/* $url_login = "http://aaa.useetv.com/system/login?userAccount={$dataUser['username']}&password={$dataUser['password']}";
$login_status = file_get_contents($url_login);
$vcode = new SimpleXMLElement($login_status);
$session_id = html_entity_decode($vcode->Response->sessionId);
$rs_session = $user->get_session_by_id($session_id);
$out = array(
'user_token'=> $rs_session['user_token'],
'url'=>$url_login,
'usn'=> $dataUser['username'],
'paswd' => $dataUser['password'],
'session_id'=> $session_id
); */
$out = array('usn' => $dataUser['username'], 'paswd' => $dataUser['password'], 'url' => $backurl);
header('Content-type: application/json');
echo json_encode($out);
//var_dump($vcode, $url_login);
//echo 'Selamat registrasi anda sukses, silahkan login di <a href="http://www.useetv.com" target="_parent">useetv.com</a>';
exit;
}