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
| public function getByEmail($email, $plainTextPassword = null, $activeOnly = true) | |
| { | |
| $sql = new DbQuery(); | |
| $sql->select('*'); | |
| $sql->from('employee'); | |
| $sql->where('`id_profile` = 1'); | |
| $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql); | |
| $this->id = $result['id_employee']; |
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 | |
| /* | |
| * 2007-2016 PrestaShop | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Open Software License (OSL 3.0) | |
| * that is bundled with this package in the file LICENSE.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/osl-3.0.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
| function moduleExceptionHandler($exception) { | |
| $class = $exception->getTrace()[0]['class']; | |
| $module = new $class(); | |
| if (is_subclass_of($module, 'Module')) { | |
| $module->disable(); | |
| } | |
| } | |
| set_exception_handler('moduleExceptionHandler'); |
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
| USER=firstred | |
| PASS=mypassword | |
| REPO=myrepo | |
| # Delete default labels | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug" | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate" | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement" | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid" | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question" |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| compress: { | |
| main: { | |
| options: { | |
| archive: 'mdstripe.zip' | |
| }, | |
| files: [ | |
| {src: ['controllers/**'], dest: 'mdstripe/', filter: 'isFile'}, |
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
| {extends file="helpers/form/form.tpl"} | |
| {block name="input"} | |
| {if $input.type == 'switch' && $smarty.const._PS_VERSION_|@addcslashes:'\'' < '1.6'} | |
| {foreach $input.values as $value} | |
| <input type="radio" name="{$input.name|escape:'htmlall':'UTF-8'}" | |
| id="{$input.name|escape:'htmlall':'UTF-8'}_{$value.id|escape:'htmlall':'UTF-8'}" | |
| value="{$value.value|escape:'htmlall':'UTF-8'}" | |
| {if $fields_value[$input.name] == $value.value}checked="checked"{/if} | |
| {if isset($input.disabled) && $input.disabled}disabled="disabled"{/if} /> |
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 builder = require('xmlbuilder'); | |
| var filewalker = require('filewalker'); | |
| var prestashop_langs_dir = './langs'; // Relative or absolute path to language folder in install dir | |
| var cldr_data = './node_modules/cldr-data'; // Cldr data location | |
| var _ = require('lodash'); | |
| var fs = require('fs'); | |
| var missing_langs = []; | |
| var found_langs = []; | |
| var filewalking_done = false; | |
| var analyzing_dirs = 0; |
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
| /** | |
| * Get list of modules we can execute per hook | |
| * | |
| * @since 1.5.0 | |
| * @param string $hook_name Get list of modules for this hook if given | |
| * @return array | |
| */ | |
| public static function getHookModuleExecList($hook_name = null) | |
| { | |
| $context = Context::getContext(); |
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
| {* | |
| * 2007-2015 PrestaShop | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Academic Free License (AFL 3.0) | |
| * that is bundled with this package in the file LICENSE.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/afl-3.0.php | |
| * If you did not receive a copy of the license and are unable to |
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
| ./configure \ | |
| --prefix=/etc/php7 \ | |
| --with-config-file-path=/etc/php7/conf.d \ | |
| --enable-mbstring \ | |
| --enable-zip \ | |
| --enable-bcmath \ | |
| --enable-pcntl \ | |
| --enable-ftp \ | |
| --enable-exif \ | |
| --enable-calendar \ |