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
#!/bin/bash | |
RED='\033[0;31m' | |
YELLOW='\033[0;33m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
dest=$1 | |
keep_local=( |
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
<?xml version="1.0" encoding="utf-8"?> | |
<modification> | |
<name>Custom Model Support</name> | |
<code>custom_model_support</code> | |
<version>1.0</version> | |
<author>Sergii Matrunchyk</author> | |
<link>mailto: [email protected]</link> | |
<file path="system/engine/loader.php"> | |
<operation> | |
<search trim="true"><![CDATA[ |
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 | |
// ... | |
public function model($model, $data = array()) { | |
// $this->event->trigger('pre/model/' . str_replace('/', '.', (string)$model), $data); | |
$model = str_replace('../', '', (string)$model); | |
/* <custom_model_support> */ |
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
diff --git a/actions/admin/settings/131.ssl.php b/actions/admin/settings/131.ssl.php | |
index 016de80..113de12 100644 | |
--- a/actions/admin/settings/131.ssl.php | |
+++ b/actions/admin/settings/131.ssl.php | |
@@ -40,6 +40,15 @@ return array( | |
'default' => 'ECDH+AESGCM:ECDH+AES256:!aNULL:!MD5:!DSS:!DH:!AES128', | |
'save_method' => 'storeSettingField', | |
), | |
+ 'system_ssl_letsencrypt_path' => array( | |
+ 'label' => $lng['serversettings']['ssl']['ssl_letsencrypt_path'], |
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 | |
class ThemeView | |
{ | |
private $args; | |
private $file; | |
public function __get($name) | |
{ | |
return $this->args[$name]; |
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 | |
public function renderSamplePage($data) { | |
$view = new \ThemeView('sample_page', $data); | |
$view->render(); | |
} |
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
Homebrew build logs for homebrew/php/php70 on Mac OS X 10.12 | |
Build date: 2016-09-12 13:54:43 |
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
Route::get('/js/lang.js', function () { | |
$lang = config('app.locale'); | |
$files = glob(resource_path('lang/' . $lang . '/*.php')); | |
$strings = []; | |
foreach ($files as $file) { | |
$name = basename($file, '.php'); | |
$strings[$name] = require $file; | |
} |
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
const webpackConfig = require('../../../../../node_modules/laravel-mix/setup/webpack.config'); | |
// const path = require('path'); | |
// safari >=4 | |
// no need for app entry during tests | |
delete webpackConfig.entry; | |
module.exports = (config) => { | |
// noinspection ES6ConvertVarToLetConst |
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
// This file is specified to load ing karma.conf.js (Files section) | |
// @see https://gist.github.com/matrunchyk/a79accea739f586074e005e0542200ea | |
// | |
// Polyfill fn.bind() for PhantomJS | |
/* eslint-disable no-extend-native */ | |
// Function.prototype.bind = require('function-bind'); | |
require('babel-polyfill'); | |
// require all test files (files that ends with .spec.js) | |
const testsContext = require.context('./specs', true, /\.spec$/); |
OlderNewer