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 | |
/** | |
* Part of the Joomla Tracker's Tracker Application | |
* | |
* @copyright Copyright (C) 2012 - 2014 Open Source Matters, Inc. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later | |
*/ | |
namespace App\Tracker\View\Issue; |
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
Michaels-MacBook:framework-status mbabker$ composer update --dry-run -vvv joomla/compat | |
Reading ./composer.json | |
Executing command (CWD): git describe --exact-match --tags | |
Executing command (CWD): git branch --no-color --no-abbrev -v | |
Loading composer repositories with package information | |
Downloading https://packagist.org/packages.json | |
Writing ~/.composer/cache/repo/https---packagist.org/packages.json into cache | |
Updating dependencies (including require-dev) | |
Reading ./composer.lock | |
Downloading https://packagist.org/p/provider-active$6b1e374d6277a97170d8771d3cd383a2ee95e302739ab394e9f2a53c5e15635f.json |
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
<pre class='xdebug-var-dump' dir='ltr'> | |
<b>array</b> <i>(size=7)</i> | |
'site_name' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'J!'</font> <i>(length=2)</i> | |
'site_metadesc' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i> | |
'admin_email' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'admin@localhost.test'</font> <i>(length=20)</i> | |
'admin_user' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'admin'</font> <i>(length=5)</i> | |
'admin_password' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'admin'</font> <i>(length=5)</i> | |
'admin_password2' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'admin'</font> <i>(length=5)</i> | |
'site_offline' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'0'</font> <i>(length=1)</i> | |
</pre><pre class='xdebug-var-dump' dir='ltr'> |
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 | |
/** | |
* Password Reset Script | |
* | |
* This command line script can be run as a cron job or on user request to flag user accounts on a site | |
* as requiring their passwords reset. This script flags all users who have not reset their passwords | |
* in the number of days specified by the user and compares to the lastResetTime column in the #__users | |
* table. | |
* | |
* The number of days can be specified in one of two manners: |
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 | |
/** | |
* Module Resave Script | |
* | |
* @copyright Copyright (C) 2014 Michael Babker. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later | |
*/ | |
// Set flag that this is a parent file. | |
const _JEXEC = 1; |
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
// Instead of a simple call to JHtml::_('behavior.framework') I have to deal with this... | |
if (JVERSION >= '1.6.0') { | |
$file = JUri::root() . '/media/system/js/core.js'; | |
$loaded = false; | |
foreach ($document->_scripts as $key => $value) { | |
if ($key == $file) { | |
$loaded = true; | |
} |
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 | |
/** | |
* Joomla! Framework Status Application | |
* | |
* @copyright Copyright (C) 2014 Open Source Matters, Inc. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later | |
*/ | |
namespace Joomla\Status\View; |
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 | |
/** | |
* Application powering http://michaels.website | |
* | |
* @copyright Copyright (C) 2014 Michael Babker. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later | |
*/ | |
namespace BabDev\Website; |
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 | |
/** | |
* Podcast Manager Batch Save Script | |
* | |
* @copyright Copyright (C) 2014 Michael Babker. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later | |
*/ | |
// Set flag that this is a parent file. | |
const _JEXEC = 1; |
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 getInstance($options = array()) | |
{ | |
// Sanitize the database connector options. | |
$options['driver'] = (isset($options['driver'])) ? preg_replace('/[^A-Z0-9_\.-]/i', '', $options['driver']) : 'mysqli'; | |
$options['database'] = (isset($options['database'])) ? $options['database'] : null; | |
$options['select'] = (isset($options['select'])) ? $options['select'] : true; | |
// If the selected driver is `mysql` and we are on PHP 7 or greater, switch to the `mysqli` driver. | |
if ($options['driver'] === 'mysql' && PHP_MAJOR_VERSION >= 7) | |
{ |
OlderNewer