Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/mobile/ |
<?php session_start(); require(dirname(__FILE__) . '/include/modules/integrates/saetv2.ex.class.php'); $c = new SaeTClientV2( WB_AKEY , WB_SKEY , $_SESSION['token']['access_token'] ); $ms = $c->home_timeline(); // done $uid_get = $c->get_uid(); $uid = $uid_get['uid']; $user_message = $c->show_user_by_id( $uid);//根据ID获取用户等基本信息 ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>新浪微博V2接口演示程序-Powered by Sina App Engine</title> </head> <body> <?=$user_message['screen_name']?>,您好! <h2 align="left">发送新微博</h2> <form action="" > <input type="text" name="text" style="width:300px" /> <input type="submit" /> </form> <?php if( isset($_REQUEST['text']) ) { $ret = $c->update( $_REQUEST['text'] ); //发送微博 if ( isset($ret['error_code']) && $ret['error_code'] > 0 ) { echo "<p>发送失败,错误:{$ret['error_code']}:{$ret['error']}</p>"; } else { echo "<p>发送成功</p>"; } } ?> <?php if( is_array( $ms['statuses'] ) ): ?> <?php foreach( $ms['statuses'] as $item ): ?> <div style="padding:10px;margin:5px;border:1px solid #ccc"> <?=$item['text'];?> </div> <?php endforeach; ?> <?php endif; ?> </body> </html>