This file contains 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 | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Contracts\Foundation\Application; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
class CheckForMaintenanceMode | |
{ |
This file contains 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 | |
namespace App; | |
use Exception; | |
class ImageUtils | |
{ | |
public static $_JPG = "jpg"; | |
public static $_PNG = "png"; |
This file contains 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
public static function stripXSS() | |
{ | |
$sanitized = static::cleanArray(Input::get()); | |
Input::merge($sanitized); | |
} | |
public static function cleanArray($array) | |
{ | |
$result = array(); | |
foreach ($array as $key => $value) { |
This file contains 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
.btn:focus, .btn.focus, .btn:active:focus, .btn:active.focus, .btn.active:focus, .btn.active.focus { | |
color: white; | |
} | |
&:focus, &.focus, &:active:focus, &:active.focus, &.active:focus, &.active.focus { | |
color: white; | |
} |
NewerOlder