-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
34 lines (27 loc) · 874 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
session_start();
//if( isset($_SESSION['last_key']) ) header("Location: weibolist.php");
include_once( 'config.php' );
include_once( 'weibooauth.php' );
$o = new WeiboOAuth( WB_AKEY , WB_SKEY );
$keys = $o->getRequestToken();
//echo APP_ROOT . "callback.php" . "<br>";
$aurl = $o->getAuthorizeURL( $keys['oauth_token'] ,false , WEB_ROOT . 'callback.php');
$_SESSION['keys'] = $keys;
?>
<html>
<head>
<title>拼板工厂-wbpuzzle.com</title>
<link rel="stylesheet" type="text/css" href="static/css/style.css" media="screen" />
</head>
<div id="welcome_words">
<div id="welcome_words_left_side">
<div id="welcome_words_left_side_text">
<h2>欢迎来到拼板工厂!<br>创建自己的拼板游戏,寻找童年的回忆!</h2>
</div>
</div>
<div id="welcome_words_right_side">
<a href="<?=$aurl?>" id="login_button"></a>
</div>
</div>
</html>