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
| server { | |
| listen 443; | |
| listen [::]:443; | |
| keepalive_timeout 70; | |
| ssl on; | |
| ssl_certificate /var/www/html/zt.pem; | |
| ssl_certificate_key /var/www/html/zt.key; | |
| root /var/www/html/z.hu/docroot; | |
| index index.php; |
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
| ## | |
| # @server studio | |
| # @host hackisition.com | |
| # @desc nginx host rules | |
| # @author Julien Le Coupanec <julien@gentlenode.com> | |
| ## | |
| # HTTP Server | |
| server { | |
| listen 80; |
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
| // If the paragraph type has got a background color field. | |
| if (isset($element['subform']['bp_background']) && isset($element['subform']['bp_background']['widget'])) { | |
| $configFactory = \Drupal::configFactory()->getEditable('varbase_bootstrap_paragraphs.settings'); | |
| $background_colors = $configFactory->get('background_colors'); | |
| $background_colors_options = ['_none' => t('N/A')]; | |
| $lines = explode(PHP_EOL, $background_colors); | |
| foreach($lines as $line) { | |
| $line = explode('|', $line); | |
| $background_colors_options[$line[0]] = $line[1]; |
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
| RewriteEngine on | |
| RewriteCond %{SERVER_NAME} =tk.opdev.eu | |
| RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] |
This file has been truncated, but you can view the full file.
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
| Notice típus: Undefined offset: 1 üzenet varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter() függvényben (/home/magnet/www/magnet/docroot/modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module fájl 141. sorában). => Array | |
| ( | |
| [33: varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter()] => Array | |
| ( | |
| [file] => modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module:141 | |
| [args] => Array | |
| ( | |
| [0] => Array | |
| ( | |
| [#title] => |
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
| .bg-edge2edge { | |
| width: 100vw; | |
| position: relative; | |
| left: 50%; | |
| right: 50%; | |
| margin-left: -50vw; | |
| margin-right: -50vw; | |
| } |
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
| add_action('wp', 'add_login_check'); | |
| add_action( 'template_redirect', function() { | |
| if ( is_page('szavaz') && ! is_user_logged_in() ){ | |
| wp_redirect( site_url( '/' ) ); | |
| exit(); | |
| } |
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 | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\SoftDeletes; | |
| class Article extends Model | |
| { | |
| // use soft delete instead of permanent delete |
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
| #!/bin/bash | |
| path=${1%/} | |
| user=${2} | |
| group=${2} | |
| help="\nHelp: This script is used to fix permissions of a Drupal 8 installation in which the PHP Handler is FastCGI\nYou need to provide the following arguments:\n\t 1) Path to your drupal installation\n\t 2) Username of the user that you want to give files/directories ownership\n\nNote: This script assumes that the group is the same as the username if your PHP is compiled to run as FastCGI. If this is different you need to modify it manually by editing this script or checking out forks on GitHub.\nUsage: bash ${0##*/} drupal_path user_name\n" | |
| echo "Refer to https://www.Drupal.org/node/244924" |