function create_user($sender, $dtsel) { $is_exist = get_member_status($sender); $msg = ''; if (!$is_exist) { $pass = md5($sender); $password = substr($pass, strlen($pass) - 5, 5); $msg = "Login: {$sender} dan Password: {$password}. "; //$url = "http://118.98.96.53/system/createuser?userAccount={$sender}&username={$sender}&password={$password}&userType=3"; $url = "http://www.useetv.com/api/createuser?userAccount={$sender}&username={$sender}&password={$password}&userType=3"; $sent = @file_get_contents($url); } return $msg; }
function create_user($sender, $dtsel, $inpass = false) { $is_exist = get_member_status($sender); $msg = ''; if (!$is_exist) { //$connect = mysql_connect('118.98.96.49','bestv','bestv'); //$db = mysql_select_db('ottaaa', $connect); $pass = md5($sender); $password = substr($pass, strlen($pass) - 5, 5); if ($inpass) { $password = $inpass; } $msg = "Login: {$sender} dan Password: {$password}. "; $url = "http://www.useetv.com/api/createuser?userAccount={$sender}&username={$sender}&password={$password}&userType=2"; //$url = "http://118.98.96.53/system/createuser?userAccount={$sender}&username={$sender}&password={$password}&userType=2"; $sent = @file_get_contents($url); } return $msg; }
$sent = true; break; case "stop": $msg = "Terimakasih anda telah berhenti pada layanan UseeTV "; $is_exist = get_member_status($sender); if (!$is_exist) { $msg = "Anda belum terdaftar pada layanan UseeTV, silahkan ketik FREE untuk registrasi"; } $sid = 'SDPCHG000'; $desc = 'stop'; $sent = true; break; case "list": $oldpassword = getoldpass($sender); $msg = "User Login: {$sender} dan Password: {$oldpassword}, anda dapat mengganti password melalui www.useetv.com"; $is_exist = get_member_status($sender); if (!$is_exist) { $msg = "Anda belum terdaftar pada layanan UseeTV, silahkan ketik FREE untuk registrasi"; } $sid = 'SDPCHG000'; $desc = 'list'; $sent = true; break; default: $sid = 'SDPCHG000'; $desc = 'info'; $msg = "Keyword salah, ketik FREE untuk registrasi dan ketik PROMO untuk membeli paket TOVI "; $sent = true; break; } if ($sid == 'SDPCHG035') {