| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/components/com_morfeoshow/tpl/resources/phpFlickr/ |
Upload File : |
<?
/* Last updated with phpFlickr 1.3.1
*
* Edit these variables to reflect the values you need. $default_redirect
* and $permissions are only important if you are linking here instead of
* using phpFlickr::auth() from another page or if you set the remember_uri
* argument to false.
*/
$api_key = "[your api key]";
$api_secret = "[your api secret]";
$default_redirect = "/";
$permissions = "read";
$path_to_phpFlickr_class = "./";
ob_start();
require_once($path_to_phpFlickr_class . "phpFlickr.php");
unset($_SESSION['phpFlickr_auth_token']);
if (!empty($_GET['extra'])) {
$redirect = $_GET['extra'];
}
$f = new phpFlickr($api_key, $api_secret);
if (empty($_GET['frob'])) {
$f->auth($permissions, false);
} else {
$f->auth_getToken($_GET['frob']);
}
if (empty($redirect)) {
header("Location: " . $default_redirect);
} else {
header("Location: " . $redirect);
}
?>