diff --git a/README.md b/README.md index 314d2619..33256f58 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ # lbry.io -The [lbry.io](https://lbry.io) website +The [lbry.io](https://lbry.io) website. + +## Running lbry.io + +It's very easy to have lbry.io running locally: + +- Install PHP7 +- Checkout the project +- Run `./dev.sh` from the project root +- Access `localhost:8000` in your browser + +To run remotely, simply install PHP and configure Apache or your server of choice to serve `web/index.php`. + +Note that some pages and interactions rely on API keys that will not be available to you in your install. diff --git a/controller/action/DownloadActions.class.php b/controller/action/DownloadActions.class.php index b7120d20..f74fffa3 100644 --- a/controller/action/DownloadActions.class.php +++ b/controller/action/DownloadActions.class.php @@ -86,6 +86,11 @@ class DownloadActions extends Actions Session::set(Session::KEY_PREFINER_USED_CUSTOM_CODE, true); } } + catch (CurlException $e) + { + $failure = true; + Slack::sendErrorIfProd($e); + } catch (PrefineryException $e) { $failure = true; diff --git a/lib/tools/Debug.class.php b/lib/tools/Debug.class.php index 253c9bfb..fb104f59 100644 --- a/lib/tools/Debug.class.php +++ b/lib/tools/Debug.class.php @@ -36,7 +36,7 @@ class Debug return $rtn; } - public static function exceptionFrameArgsToString($args) + public static function exceptionFrameArgsToString(array $args) { $ret = []; foreach ($args as $arg) @@ -72,4 +72,4 @@ class Debug } return join(', ', $ret); } -} \ No newline at end of file +} diff --git a/lib/tools/Slack.class.php b/lib/tools/Slack.class.php new file mode 100644 index 00000000..5f233654 --- /dev/null +++ b/lib/tools/Slack.class.php @@ -0,0 +1,19 @@ + ' ' . $_SERVER['REQUEST_URI'] . "\n" . $e], ['json_data' => true]); + } + } +} diff --git a/lib/vendor/MCAPI.class.php b/lib/vendor/MCAPI.class.php index 5d40ccaf..c122a7e1 100644 --- a/lib/vendor/MCAPI.class.php +++ b/lib/vendor/MCAPI.class.php @@ -36,7 +36,7 @@ class MCAPI { * @param string $apikey Your MailChimp apikey * @param string $secure Whether or not this should use a secure connection */ - function MCAPI($apikey, $secure=false) { + function __construct($apikey, $secure=false) { $this->secure = $secure; $this->apiUrl = parse_url("http://api.mailchimp.com/" . $this->version . "/?output=php"); $this->api_key = $apikey; diff --git a/posts/bounty/modified-block-explorer.md b/posts/bounty/modified-block-explorer.md index 7f7d4cfa..93804f70 100644 --- a/posts/bounty/modified-block-explorer.md +++ b/posts/bounty/modified-block-explorer.md @@ -14,5 +14,9 @@ Iquidus explorer is great, but does not currently support LBRY specific operatio The explorer should be modified to: -- Display what LBRY name claims and supports -- Exploration of name claims in a way similar to transactions \ No newline at end of file +- Display name claims in a transaction and link to claim info provided a txid +- Display a support transaction and link to claim info provided a txid +- Display claim information (name, claim txid, value, total amount, supports, and previous updates) provided a claim id +- Display information for contesting name claims provided a lbry name + +This will likely require polling for changes in the result of `lbrycrd-cli getclaimsintrie` after each block, and subsiquently populating values from `lbrycrd-cli getclaimsforname` and `lbrycrd-cli getclaimsfortx`. diff --git a/posts/bounty/social-media-cover-images.md b/posts/bounty/social-media-cover-images.md index 6e530db8..21e1cbef 100644 --- a/posts/bounty/social-media-cover-images.md +++ b/posts/bounty/social-media-cover-images.md @@ -6,11 +6,12 @@ status: available date: '2016-07-01' --- -The current background images on our [Twitter](https://twitter.com/lbryio) and [Facebook](https://facebook.com/lbryio) are the same stock photo -that is on our homepage. We'd like to do something a little more unique. +**Update: we have received new cover images that we like a lot more than our old ones! We're leaving this open because there is always room for improvement, but this won't be an easy one to win.** + +The current background images on our [Twitter](https://twitter.com/lbryio) and [Facebook](https://facebook.com/lbryio) are the same stock photo that is on our homepage. We'd like to do something a little more unique. Candidate replacements could be either a photo or a graphic design. Either way, the image should: - Connote what LBRY is about: openness and fun - Be unique to LBRY or otherwise not in significant use -- Suitable for white or LBRY green (#155B4A) text on top \ No newline at end of file +- Suitable for white or LBRY green (#155B4A) text on top diff --git a/posts/bounty/transaction-history.md b/posts/bounty/transaction-history.md index ea631b6e..77c9c112 100644 --- a/posts/bounty/transaction-history.md +++ b/posts/bounty/transaction-history.md @@ -2,11 +2,12 @@ category: browser title: Add Transaction History to LBRY Browser award: 2000 -status: available +status: complete +pr: https://github.com/lbryio/lbry-web-ui/pull/46 date: '2016-07-01' --- -Add a screen showing transaction history the LBRY Browser [`lbry-web-ui`](https://github.com/lbry/lbry-web-ui). +Add a screen showing transaction history the LBRY Browser [`lbry-web-ui`](https://github.com/lbryio/lbry-web-ui). The screen must: @@ -15,4 +16,4 @@ The screen must: The LBRY daemon already supports an API call, `get_transaction_history` to retrieve transaction history. While running LBRY, type the following in your browser console: -`lbry.call('get_transaction_history', {}, function(response) { console.log(response); });` \ No newline at end of file +`lbry.call('get_transaction_history', {}, function(response) { console.log(response); });` diff --git a/posts/bounty/wallet-ui.md b/posts/bounty/wallet-ui.md index 55b61dcf..8ac1f4a4 100644 --- a/posts/bounty/wallet-ui.md +++ b/posts/bounty/wallet-ui.md @@ -3,7 +3,7 @@ category: browser title: Add Wallet Interface to LBRY Browser award: 2000 status: complete -pr: https://github.com/lbryio/lbry-web-ui/pull/23/files +pr: https://github.com/lbryio/lbry-web-ui/pull/23 date: '2016-07-01' --- diff --git a/posts/faq/credit-policy.md b/posts/faq/credit-policy.md index d74a504e..916cfc03 100644 --- a/posts/faq/credit-policy.md +++ b/posts/faq/credit-policy.md @@ -13,9 +13,9 @@ The initial 400m credits are broken down as follows: | Name | Amount | Purpose | Wallet (initial) | | ---- | ------ | ---------------- | -------- | -| Community | 200m | Reward early adopters, new users, and community contributions. | [link](https://explorer.lbry.io/address/rMT5Sg8SyFP3ax2PRaweRCRZoMeYw4znEi) | -| Operational | 100m | To allow LBRY, Inc. to function and profit. | [link](https://explorer.lbry.io/address/rEQKyb7nd7UUGyEEn5xRkk1fgXdTCf2ZCg) | -| Institutional | 100m | For strategic partnerships or assistance with charities, non-profits, or other institutions. | [link](https://explorer.lbry.io/address/r9DarmxyPjWkF7ocyxMzaNZN3a9gJvNTZJ) | +| Community | 200m | Reward early adopters, new users, and community contributions. | [link](https://explorer.lbry.io/address/rRmURzvpHTysU4xUSp9CXeosBTbYfKs7n5) | +| Operational | 100m | To allow LBRY, Inc. to function and profit. | [link](https://explorer.lbry.io/address/rTZF9RvfkLJ6hwCwERwFd7dppRMeddKjpe) | +| Institutional | 100m | For strategic partnerships or assistance with charities, non-profits, or other institutions. | [link](https://explorer.lbry.io/address/rVRMmGLZenVXpT1NwYMGcnwFc642kEgWTV) | ## Quartery Reports @@ -68,4 +68,4 @@ LBRY, Inc. anticipates a dispersion period for these tokens significantly exceed ## More Details -For specific details of fund utilization, check the most recent quarterly report. \ No newline at end of file +For specific details of fund utilization, check the most recent quarterly report. diff --git a/posts/news/57-lbry-bounties.md b/posts/news/57-lbry-bounties.md new file mode 100644 index 00000000..8093ea43 --- /dev/null +++ b/posts/news/57-lbry-bounties.md @@ -0,0 +1,35 @@ +--- +author: lbry +title: 'Be Like Boba Fett – Earn Bounties for Helping LBRY Grow' +date: '2016-08-18 00:06:18' +cover: 'boba-fett.png' +--- +The [LBRY Bounty Program](https://lbry.io/bounty) is now open to the public. Anyone in the world can now improve the future of the internet and digital content and *earn money at the same time*! + +LBRY has already benefited from significant community contributions, including basic debugging, content testing, publishing improvements... the list goes on and on. It’s now time to formalize our relationship with this awesome community by offering significant LBRY Credit (LBC) rewards for helping LBRY grow. + +![LBRY Bounties](/img/news/lbrybounties.png) + +On our [official bounty page](https://lbry.io/bounty), you’ll find details for each individual job, the compensation for completion, and the process for claiming a bounty. + +The bounty list will be constantly growing, so bookmark it and check in regularly for updates. You’ll currently find: + +- [Adding support for BitTorrent](https://lbry.io/bounty/bittorrent-support) – 4,000 LBC +- [Add transaction history to LBRY browser](https://lbry.io/bounty/transaction-history) – 2,000 LBC +- [Modified block explorer](https://lbry.io/bounty/modified-block-explorer) – 1,500 LBC +- [PKG installer for OS X](https://lbry.io/bounty/pkg-installer-for-osx) – 1,500 LBC +- [Create URL handler for Slack](https://lbry.io/bounty/slack-lbry-url-handler) – 1,000 LBC +- [Internationalization of lbry.io](https://lbry.io/bounty/web-i18n) – 1,000 LBC +- [LBRY Community Rep](https://lbry.io/bounty/lbry-club) – 500 LBC +- [Write, broadcast or share LBRY](https://lbry.io/bounty/pr-for-lbry) – 500 LBC +- [Create social media cover images](https://lbry.io/bounty/social-media-cover-images) - 400 LBC +- [Publish open content](https://lbry.io/bounty/publish-open-content) – 250-1,000+ LBC +- [Refer a publisher to LBRY](https://lbry.io/bounty/refer-publisher) – 100 LBC + +You can even [pitch us your own custom project](https://lbry.io/bounty/custom-project) and earn as much as *20,000 LBC* (reward determined by LBRY team). + +**Please note:** These bounties are intended for LBRY updates our official team does not plan on addressing in the immediate future. The bounties you see are *not representative of all desired changes to LBRY*. + +All bounties are funded through genesis block LBRY Credits – [get the details here](https://lbry.io/news/lbry-blockchain-live-mine-lbc-now). + +If you have questions about the bounty program or want more information about a specific bounty, please join [LBRY’s public Slack](http://slack.lbry.io/). diff --git a/posts/news/58-reweighting-wait-list.md b/posts/news/58-reweighting-wait-list.md new file mode 100644 index 00000000..b16f45b5 --- /dev/null +++ b/posts/news/58-reweighting-wait-list.md @@ -0,0 +1,26 @@ +--- +author: lbry +title: 'LBRY Re-Weighting Massive Beta Waiting List' +date: '2016-08-22 00:06:18' +--- +The waiting list to download the LBRY beta is *well over 100,000 strong!* If you [join our Slack](http://slack.lbry.io/) (the best place to stay on top of updates and get questions answered), one of the top inquiries is: + +**When will I get my beta invite code?** + +![Waiting for LBRY](/img/news/waiting.png) + +Now that publishing tools have been added to the beta, we will be steadily expanding the user base. + +To that end, we have changed the way we weight those on the waiting list. Previously, we rewarded potential beta users for spreading the word about LBRY. Those who referred users to our waiting list were moved further towards the front of the line. + +**We now factor in how long you have been on the waiting list.** Your position on LBRY’s waiting list is now determined by: + +

The number of invited users credited to you **PLUS** the number of weeks you have been on the list.

+ +Many of you have been waiting for a long while. We halted new invites for about a month after closed beta launch to work a key feature: publishing tools. + +Since [publishing went live](https://lbry.io/news/publish-tools-live-earn-1000-dollars) in the first week of August, we have added about 2,000 new beta users using this updated waiting list. Going forward, we intend to add approximately 500 beta users a week. + +So if you’re still champing at the bit, then hang tight! + +Remember – you can potentially jump the waiting list (and earn $1,000 in LBC) if you are a content creator interested in uploading quality digital media to LBRY. [Learn more about this opportunity here](https://lbry.io/publish). diff --git a/posts/news/59-ui-publishing-tools-upgrades.md b/posts/news/59-ui-publishing-tools-upgrades.md new file mode 100644 index 00000000..0f27d7b6 --- /dev/null +++ b/posts/news/59-ui-publishing-tools-upgrades.md @@ -0,0 +1,20 @@ +--- +author: lbry +title: 'UI & Publishing Tools Upgrade with Reflector' +date: '2016-08-25 00:06:18' +--- +Content publishers can now use a new feature called Reflector to upload files to LBRY, providing an easier, friendlier, and more permanent publishing experience. This coincides with a beautiful update to our user-interface – a big upgrade to the look and functionality of LBRY’s front-end: + +**

LBRY’s New UI

** +![UI Screenshot](/img/news/lbryuiupgrade.png) + +LBRY [publishing tools came online](https://lbry.io/news/publish-tools-live-earn-1000-dollars) in the first week of August, but we found a significant number of people were still having trouble publishing. Reflector fixes these problems with a more robust form of publishing. + +**

Reflector Publishing Tools

** +![Reflector screenshot](/img/news/reflector.png) + +Basically, Reflector ensures content is copied by other hosts before the data is ever requested by a user. Since this initial data is not paid for by the recipients, we want to be clear – *Reflector is non-mandatory.* + +This feature is intended as a work around for network and firewall issues. + +If you have further questions, [please join LBRY’s public Slack](http://slack.lbry.io/). diff --git a/posts/news/60-heckbender-charney-on-lbry.md b/posts/news/60-heckbender-charney-on-lbry.md new file mode 100644 index 00000000..d8c8cddf --- /dev/null +++ b/posts/news/60-heckbender-charney-on-lbry.md @@ -0,0 +1,31 @@ +--- +author: lbry +title: 'Kinda Sketchy, Totally Legit' +date: '2016-08-26 00:06:18' +cover: 'heckbendercover.png' +--- +This week, we’ve added twice as many comedy partners as last week, starting with… + +**[Heck Bender](https://www.facebook.com/heckbender/)**, the Los Angeles-based sketch comedy channel with nothing to prove. + +![Heck Bender](/img/news/heckbender.png) + +Their latest sketch premieres exclusively on LBRY! *[The Colorado Bridge Incident](lbry://coloradobridge)*. + +When you’re done laughing, watch some of their greats like: + +- *[How to Help Non-Sports Fans Enjoy Sports](lbry://smallpenis)* – A new medication to help with those times when your buddies are really into the big game, but you? You just aren't... +- *[Eminem - Rap God (Unofficial Pug Edition)](lbry://pugrapgod)* – It’s Eminem. In top Pug form. +- *[True Christmas](lbry://truechristmas)* – Rust and Marty from HBO’s True Detective are in fact Santa and his top Elf, unraveling the mystery of the half eaten cookie plate. + +**[Charney Comedy](https://www.facebook.com/charneycomedy/)** + +![Charney Comedy](/img/news/charney.png) + +A whole ‘nother brand of Los Angeles comedy, Charney specializes in the art of the parody. Check out the top notes: + +- *[Lenders’ Den (Shark Tank)](lbry://LendersDen)* – America's most addicting reality sensation is back and BIGGER THAN EVER! +- *[Moneyweasel (Moneyball)](lbry://moneyweasel)* – The Los Angeles Snards have a new backdoorsman in left shield, in this recreation of the scene from Moneyball wherein no one still knows what was said. +- *[Loose Cannon (Resevoir Dogs)](lbry://LooseCannon)* – One last job, just like old times. Then they're on the next flight to Bora-Bora. ;^) + +**Not on LBRY yet?** [Get an invite here](https://lbry.io/get). Just can’t wait? If you’re a creator – filmmaker, musician, artist, writer – you can skip our waiting list line for a chance to earn $1,000 in LBRY Credits at the same time. [Learn more here](https://lbry.io/publish). diff --git a/view/template/page/canary.php b/view/template/page/canary.php new file mode 100644 index 00000000..813c7286 --- /dev/null +++ b/view/template/page/canary.php @@ -0,0 +1,27 @@ + + false ]) ?> +
+
+

LBRY Warrant Canary

+

+ Through September 1st, 2017, LBRY has received: +

+ +

+ The date on this page will be updated every 3 months. +

+

+ You can view the source code and revision history of this page + here. +

+

+ To receive an automated update when this file changes, try + changedetection.com. +

+
+
+ \ No newline at end of file diff --git a/web/img/blog-covers/boba-fett.png b/web/img/blog-covers/boba-fett.png new file mode 100644 index 00000000..310d73fa Binary files /dev/null and b/web/img/blog-covers/boba-fett.png differ diff --git a/web/img/blog-covers/heckbendercover.png b/web/img/blog-covers/heckbendercover.png new file mode 100644 index 00000000..a4cfd673 Binary files /dev/null and b/web/img/blog-covers/heckbendercover.png differ diff --git a/web/img/blog-covers/parchment.png b/web/img/blog-covers/parchment.png new file mode 100644 index 00000000..8b93a377 Binary files /dev/null and b/web/img/blog-covers/parchment.png differ diff --git a/web/img/news/charney.png b/web/img/news/charney.png new file mode 100644 index 00000000..a9a5be2e Binary files /dev/null and b/web/img/news/charney.png differ diff --git a/web/img/news/heckbender.png b/web/img/news/heckbender.png new file mode 100644 index 00000000..3951e622 Binary files /dev/null and b/web/img/news/heckbender.png differ diff --git a/web/img/news/lbrybounties.png b/web/img/news/lbrybounties.png new file mode 100644 index 00000000..6e1b342c Binary files /dev/null and b/web/img/news/lbrybounties.png differ diff --git a/web/img/news/lbryuiupgrade.png b/web/img/news/lbryuiupgrade.png index 53173390..713815d0 100644 Binary files a/web/img/news/lbryuiupgrade.png and b/web/img/news/lbryuiupgrade.png differ diff --git a/web/img/news/waiting.png b/web/img/news/waiting.png new file mode 100644 index 00000000..7b6d0da3 Binary files /dev/null and b/web/img/news/waiting.png differ diff --git a/web/index.php b/web/index.php index 8f07dbcc..5b57cb91 100644 --- a/web/index.php +++ b/web/index.php @@ -27,14 +27,10 @@ catch(Throwable $e) { if (IS_PRODUCTION) { - $slackErrorNotificationUrl = Config::get('slack_error_notification_url'); - if ($slackErrorNotificationUrl) - { - Curl::post($slackErrorNotificationUrl, ['text' => ' ' . $e->__toString()], ['json_data' => true]); - } + Slack::sendErrorIfProd($e); throw $e; } http_response_code(500); echo '
'.Debug::exceptionToString($e).'
'; -} \ No newline at end of file +}