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 | |
$mypattern = "([\w-.]+)+(:\d+)?(/([\w/_\-.]*(\?\S+)?)?)?(.*)?"; | |
$pattern = '[a-zA-Z0-9&?_.,=%\-\/#]'; | |
$url = "http://formaciononline.nccextremadura.org#formacion-desempleados"; | |
$newurl = preg_replace('@(https?://'.$pattern.'*)@i', '<a href="$1">$1</a>', $url); | |
//echo "Old URL-> ".$url; | |
//echo "<br/>"; | |
//echo "New URL -> ".htmlspecialchars($newurl); | |
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
[color] | |
status = auto | |
diff = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
[alias] | |
amend = !"git commit --amend -C HEAD" | |
st = status | |
ci = commit |
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
#!sh | |
# Filename: RestoreBackups.sh | |
# Description: This Shell script helps you restore multiple Joomla! site backups created with Akeeba Backup | |
# Author: Carlos Camara www.cmcamara.com | |
# License: GPL v2.0 or later | |
################# | |
# Configuration # | |
################# | |
# |
NewerOlder