Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <pre><?php print_r($_SESSION); ?></pre>
- <?php if ($user):
- ?>
- <a href="<?php echo $logoutUrl;?>"><img id="fb_logout_image" src="http://static.ak.fbcdn.net/images/fbconnect/logout-buttons/logout_medium.gif" alt="Logout Facebook"/></a>
- <?php else:?>
- <a href="<?php echo $loginUrl;?>"><img id="fb_login_image" src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_short.gif" alt="Login Facebook"/></a>
- <?php endif?>
- <?php }?>
- <img src="https://graph.facebook.com/<?php echo $user;?>/picture?type=large">
- <?php
- $url = "http://graph.facebook.com/$user/picture?type=large";
- $sourceFilePath = CurlHelper::downloadFile($url, array('followLocation' => true, 'maxRedirs' => 5, ));
- $theimageinfo = getimagesize($sourceFilePath);
- $thepp = $_SESSION['USERID'];
- if ($theimageinfo[2] == 1) {
- $thepp .= ".gif";
- } elseif ($theimageinfo[2] == 2) {
- $thepp .= ".jpg";
- } elseif ($theimageinfo[2] == 3) {
- $thepp .= ".png";
- }
- $myvideoimgnew = "/home/entendu/public_html/images/membersprofilepic/" . $thepp;
- $thumb = PhpThumbFactory::create($sourceFilePath);
- $thumb -> save($myvideoimgnew);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement