Kyra ツ KyraD

View gist:7736471
1 2 3 4 5 6 7 8 9
<?php
 
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
 
class Csp implements HttpKernelInterface
{
private $app;
private $options;
View gist:6319806

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
View detect_locales.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/**
* Fetches array of user locales in order of preference
*
* @param string $displayLocale ISO language locale to use for display
* @return bool|mixed[] List of locales or FALSE on failure
*/
function getUserLocales($displayLocale = 'en')
{
View check_cdn.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/**
* Checks if primary/secondary CDNs are online. If online load one or the other,
* or fall back to local file if provided, otherwise return false.
*
* @param string $primary Primary CDN to check and load
* @param bool|string $secondary Secondary CDN to check and load
* @param bool|string $local Local file to load if provided CDNs fail
* @return bool|string The file location to load
View ipv6_reserved.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/**
* Checks if an IPv6 address is in an IPv6 reserved range
*
* @param string $ipv6 IPv6 address to check
* @return bool Is the IPv6 address a reserved IP
*/
function isReservedIpv6($ipv6)
{
View ipv4_reserved.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/**
* Checks if an IPv4 address is in an IPv4 reserved range
*
* @param string $ipv4 IPv4 address to check
* @return bool Is the IPv4 address a reserved IP
*/
function isReservedIpv4($ipv4)
{
View mysql_deprecation_comment.md
All `mysql_*()` functions are [**officially deprecated**](http://j.mp/XqV7Lp) *(no longer supported/maintained)* and will be [**removed**](http://j.mp/11j2t6j) in the future. You should update your code using [PDO](http://php.net/pdo) or [MySQLi](http://php.net/msqli) to ensure future functionality.

All mysql_*() functions are officially deprecated (no longer supported/maintained) and will be removed in the future. You should update your code using PDO or MySQLi to ensure future functionality.


Something went wrong with that request. Please try again.