Пример #1
0
 function uploadPhotoUP($path, $title, $description)
 {
     global $bhfpf;
     create_uplFlickr_obj();
     return $bhfpf->async_upload($path, $title, $description, null, 0, 0, 0, 2);
 }
Пример #2
0
}
function upl_auth_read()
{
    if (isset($_GET['frob'])) {
        global $bhfpf;
        print_R($_GET);
        $auth = $bhfpf->auth_getToken($_GET['frob']);
        //print_R($auth);
        update_option('afg_flickr_token', $auth['token']['_content']);
        $bhfpf->setToken($auth['token']['_content']);
        //exit;
        header('Location: ' . $_SESSION['uplFlickr_auth_redirect']);
        exit;
    }
}
create_uplFlickr_obj();
function upl_admin_html_page()
{
    ?>
   <div class='wrap'>
  

<?php 
    if ($_POST) {
        global $bhfpf;
        print_R($_POST);
        if (isset($_POST['submit']) && $_POST['submit'] == 'Save Changes') {
            update_option('afg_api_key', $_POST['afg_api_key']);
            if (!$_POST['afg_api_secret'] || $_POST['afg_api_secret'] != get_option('afg_api_secret')) {
                update_option('afg_flickr_token', '');
            }