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
UPDATE jos_content SET | |
alias = TRIM(title), | |
alias = REPLACE(REPLACE(REPLACE(title, ' ', '-'), ' ', '-'), '--', ''), | |
alias = UCASE(alias), | |
alias = REPLACE(alias, 'Á', 'A'), | |
alias = REPLACE(alias, 'À', 'A'), | |
alias = REPLACE(alias, 'Ã', 'A'), | |
alias = REPLACE(alias, 'Â', 'A'), | |
alias = REPLACE(alias, 'É', 'E'), | |
alias = REPLACE(alias, 'È', 'E'), |
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
<p>Atenciosamente,<br /><br /><b>Bruno Batista</b><br />Desenvolvedor Web</p> | |
<p><img src="http://www.atomtech.com.br/images/logo-email.png" /></p> | |
<p>QSB 02 Lote 14 Sala 101 Taguatinga Sul - DF<br />Tel.: 61 3021 0010 Cel.: 61 8170 2222</p> |
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 | |
$ip = '189.114.10.215'; | |
var_dump(geoCheckIP($ip)); | |
// Get an array with geoip-infodata | |
function geoCheckIP($ip) | |
{ | |
// Check, if the provided ip is valid | |
if (!filter_var($ip, FILTER_VALIDATE_IP)) |
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 | |
/** | |
* @package Vehicles | |
* @subpackage com_vehicles | |
* @copyright Copyright (C) 2012 AtomTech, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
// No direct access | |
defined('_JEXEC') or die; |
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"?> | |
<extension type="module" version="2.5" client="site" method="upgrade"> | |
<name>mod_hello</name> | |
<author>Bruno Batista</author> | |
<creationDate>03/08/2012</creationDate> | |
<copyright>Copyright (C) 2012 AtomTech, Inc. All rights reserved.</copyright> | |
<license>GNU General Public License version 2 or later; see LICENSE.txt</license> | |
<authorEmail>bruno@atomtech.com.br</authorEmail> | |
<authorUrl>http://www.atomtech.com.br</authorUrl> | |
<releaseDate>2012-08-03</releaseDate> |
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
$directory = 'uploads/'; | |
// Get all image files with a .jpg extension. | |
$images = glob($directory . "*_small.jpg"); | |
// Print each file name | |
foreach($images as $image) | |
{ | |
echo '<img src=' . $image . ' />'; | |
} |
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
jQuery(function ($) { | |
// Add Button Before | |
$('nav .menu').before('<a href="#" class="btn btn-lightblue btn-extensions">Download Extensões</a>'); | |
}); |
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
# Get href | |
href="?([^">]+)" |
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
// Pattern Switcher | |
if ($.cookie('background') != '') { | |
var pattern = $.cookie('background'); | |
$('body').css('background-image', 'url(' + pattern + ')'); | |
} | |
$('.main ul li a').click(function () { | |
var pattern = $(this).attr('href'); |
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
/** | |
* Restyle value | |
* | |
* @param int $value The value to convert. | |
* | |
* @return string | |
* | |
* @since 2.5 | |
*/ | |
public static function restyleValue($value) |
NewerOlder