Файл: oauth_twitter.php
Строк: 19
<?php
/**
* twitter | oaouth handler
*
* @package Sngine
* @author Zamblek
*/
// fetch kernal
require('kernal.php');
// If the oauth_token is old redirect to the index page
if(!isset($_REQUEST['oauth_token']) || $_REQUEST['oauth_token'] !== $_SESSION['tw_oauth_token']) {
session_destroy();
header('Location: '.SITE_URL.'/index.php');
}
// check user
try {
$user->twitter_checkUser();
}catch(Exception $e) {
SystemError($translate->__("Internal Error"), $e->getMessage());
}
header('Location: '.SITE_URL.'/home.php');
?>