$to_name = 'create task page';
delay_jump(3, $msg, $to_url, $to_name);
break;
case 2:
// sina_follow
if (!empty($_GET['comment']) && 'by_name' == $_GET['comment']) {
$name = strval($_POST['screen_name']);
// 任务中要关注的人的新浪屏显名称
$name_len = strlen($name);
if ($name_len > 45) {
$msg = '用户名不符合规定';
$to_url = $siteRoot . 'create_task.php';
$to_name = '任务创建页面';
delay_jump(3, $msg, $to_url, $to_name);
}
$person = $c->show_user_by_name($name);
if_weiboapi_fail($person);
$pid = $person['idstr'];
} else {
$pid = strval(intval($_POST['id']));
// person_id 任务中要关注的人的新浪uid
$pid_len = strlen($pid);
if (10 > $pid_len || 12 < $pid_len) {
$msg = 'improper user_id: perhaps you did choose correct person.';
$to_url = $siteRoot . 'create_task.php';
$to_name = '任务创建页面';
delay_jump(3, $msg, $ot_url, $to_name);
}
$person = $c->show_user_by_id($pid);
}
if (isset($pserson['error_code']) && '20003' == $person['error_code']) {