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 | |
/** | |
* @version 1.0.0 | |
* @author Rene Kreijveld <r.kreijveld@dsd.nl> | |
* @copyright 2019 DSD Business Internet | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
* | |
* Example form xml definition: | |
* <field name="established" | |
* type="yearlist" |
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
## Redirect WordPress attempts - BEGIN | |
Redirect 301 /wp-login.php http://127.0.0.1/wp-login.php | |
Redirect 301 /wp-admin.php http://127.0.0.1/wp-admin.php | |
RewriteRule ^wp-content(.*)$ http://127.0.0.1/$1 [L,R=301] | |
RewriteRule ^wp-admin(.*)$ http://127.0.0.1/$1 [L,R=301] | |
## Redirect WordPress attempts - END |
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/sh | |
# jdbdump -- Dump a Joomla database to sql file. | |
# | |
# This scripts supports Joomla versions 1.0 - 3.3 | |
# | |
# Copyright 2014 Rene Kreijveld - email@renekreijveld.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# |
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
# Open Terminal on your Mac and do the following: | |
cd "/Library/Application Support/appsolute/MAMP PRO/phpMyAdmin" | |
cp -R /Applications/MAMP/bin/phpMyAdmin/* . |
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/sh | |
# findjoomlas -- Find Joomla instances on your (DirectAdmin based) server. | |
# Supports Joomla versions 1.0/1.5/1.6/1.7/2.5/3.0/3.1/3.2/3.2 | |
# | |
# Copyright 2014 Rene Kreijveld - email@renekreijveld.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# Define variables |
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/sh | |
# jbackup -- Create a full backup (including database) of a Joomla website to .tgz file. | |
# Supports Joomla 1.0 - 3.3 | |
# | |
# Copyright 2014 Rene Kreijveld - email@renekreijveld.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# | |
# Warning! This script needs the file joomlafunctions. This has to be installed in the same directory as this script. |
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/sh | |
# jrestore - Restore a local site backup | |
# | |
# Copyright 2014 Rene Kreijveld - email@renekreijveld.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# General variables | |
VERSION=1.0 |
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/sh | |
# jbackupstore -- Create a full backup of a Joomla website to tar gzip file and store in backup directory | |
# | |
# Copyright 2012 Rene Kreijveld - email@renekreijveld.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# | |
# Warning! This script needs the file joomlafunctions. This has to be installed in the same directory as this script. | |
# |
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/sh | |
# jfunctions - general bash functions for use in Joomla bash scripts | |
# Supports Joomla versions 2.5 - 3.x | |
# | |
# Copyright 2014 - 2016 Rene Kreijveld - r.kreijveld@dsd.nu | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# | |
# Version history |
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/sh | |
# dbbackup - Create a backup of all your MySQL databases | |
# | |
# Copyright 2011 Rene Kreijveld - r.kreijveld@gakijken.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
NOW=$(date +"%Y%m%d-%H%M%S") | |
DBCONF=/usr/local/directadmin/conf/mysql.conf |