-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
39 lines (26 loc) · 869 Bytes
/
Copy pathindex.php
File metadata and controls
39 lines (26 loc) · 869 Bytes
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
35
36
37
38
39
<?php
require_once'loq.php';
////////////////////////////////////
if(@$_SESSION['follow'] != 1){
if(trim($row['followe']) != ''){
require 'config/twconfig.php';
require_once('config/twitter.class.php');
@$access_token_oauth_token = $_SESSION['access_token']['oauth_token'] ;
@$access_token_oauth_token_secret = $_SESSION['access_token']['oauth_token_secret'];
@$twitter = new Twitter(YOUR_CONSUMER_KEY, YOUR_CONSUMER_SECRET, $access_token_oauth_token, $access_token_oauth_token_secret);
@$oksend = $twitter->follow($row['followe'],'','true');
$_SESSION['follow'] = 1;
}
}else{
echo'';
}
///////////////////////////////////
$template = "template";
if(isset($_SESSION['id'])){
require_once($template."/header.html");
require_once($template."/registered.html");
require_once($template."/footer.html");
}else{
require_once($template."/Login/index.html");
}
?>