This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
--light-gray: #f7f7fc; | |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | |
margin: 0; | |
display: grid; | |
grid-gap: 10px; | |
grid-template-columns: 300px 1fr; | |
grid-template-rows: 100px 1fr; | |
min-height: 100vh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param string $url The URL to fetch | |
* @param boolean $json if true, returns decoded json array | |
* @param boolean $show_error if true, prints curl error to screen | |
* @author CodeBrauer <https://github.com/CodeBrauer> | |
* @return string result of fetched url, false on failure | |
*/ | |
function curl_get_contents($url, $json = false, $show_error = false) { | |
if (!function_exists('curl_init')) { return file_get_contents($url); } // fallback |