Esempio n. 1
0
function get_bitcion_solicitation($sol_size = 'leaderboard')
{
    $suggested_donation_amount = get_suggested_donation_amount();
    $bitcoin_address = get_bitcoin_address();
    $copy = get_copy($sol_size);
    return '
    <div class="bitcoin_solicitation ' . $sol_size . '">
        <p>' . $copy . '
        <span class="hidden" id="donation-usd" data-usd-amount="' . $suggested_donation_amount . '" >$' . $suggested_donation_amount . '</span>
        <p class="text-center">
            <strong class="bitcoin-address" data-bc-address="' . $bitcoin_address . '">' . $bitcoin_address . '</strong>
        <span class="poweredby"> (powered by <a href="https://github.com/owocki/adblock-to-bitcoin">adblock-to-bitcoin</a>)</span>
        </p>
    </div>
                ';
}
Esempio n. 2
0
         break;
     }
 } else {
     if (preg_match('/\\/$/', $ICS)) {
         if (file_put_contents($filename, WebDAVFetch($ICS, $enable_cache, $cache_time, $verify_peer)) === FALSE) {
             break;
         }
     } else {
         if (function_exists('curl_init')) {
             if (!curl_get_copy($ICS, $filename, $verify_peer)) {
                 break;
             }
         } else {
             // try without curl
             // works for public source and basic authentication only
             $copy_result = get_copy($ICS, $filename, $verify_peer);
             if (!($copy_result === TRUE)) {
                 echo $copy_result;
                 break;
             }
         }
     }
     if ($enable_cache) {
         copy($filename, $cachefile);
     }
 }
 $ICS = $filename;
 $ical = new SG_iCalReader($ICS);
 $query = new SG_iCal_Query();
 $evts = $ical->getEvents();
 $tzinfo = $ical->getTimeZoneInfo();