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
| FROM php:8.0-fpm | |
| RUN apt-get update && apt-get install -y \ | |
| libfreetype6-dev \ | |
| libjpeg-dev \ | |
| libpng-dev \ | |
| libwebp-dev \ | |
| --no-install-recommends \ | |
| && docker-php-ext-configure gd --with-freetype --with-jpeg \ | |
| && docker-php-ext-install pdo_mysql -j$(nproc) gd |
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
| var timer = function() { | |
| $.ajax({ | |
| url: '/scripts/timer.php', | |
| type: 'post', | |
| dataType: 'json', | |
| data: {}, | |
| }) | |
| .done(function(data) { | |
| console.log("success"); | |
| console.log(data); |
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 | |
| /* | |
| * Quick 'n Dirty Laravel 5.1 decrypter. | |
| * | |
| * Based directly off the source code at: | |
| * https://github.com/laravel/framework/blob/5.1/src/Illuminate/Encryption/Encrypter.php | |
| * | |
| * Have access to an application key from a .env? | |
| * Have some encrypted data you want to decrypt? | |
| * Well: (new Crypt($key))->decrypt($payload); should have you sorted |
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
| var filename = ""; | |
| var disposition = xhr.getResponseHeader('Content-Disposition'); | |
| if (disposition && disposition.indexOf('attachment') !== -1) { | |
| var filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/; | |
| var matches = filenameRegex.exec(disposition); | |
| if (matches != null && matches[1]) filename = matches[1].replace(/['"]/g, ""); | |
| } | |
| var contentType = xhr.getResponseHeader("Content-Type"); | |
| var blob = this.b64ToBlob(response, contentType); |
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 | |
| class Controller_Admin_Judges extends Controller_Admin_Base { | |
| public function action_add() { | |
| //Setting various view variables | |
| $this->view->section_title = 'Add a New Judge'; | |
| $this->view->body = View::factory('admin/judges/form'); | |
| $this->view->body->button_text = 'Add Judge'; | |
| //Process our form POST |