rsync -azvvP -e [email protected]:/var/www/ /www --filter=". filter.txt"
With the SSH command for the port if needed.
rsync -azvvP -e 'ssh -p 2801' [email protected]:/var/www/ /www --filter=". filter.txt"
############ WordPress #################### | |
# Disable logging for favicon and robots.txt | |
location = /favicon.ico { | |
try_files /favicon.ico @empty; | |
access_log off; | |
log_not_found off; | |
expires max; | |
} |
<?php | |
// SiteSummary snippet for Dashboard widget | |
// W. Shawn Wilkerson | |
$o = '<table class="classy" style="width:100%;"><thead><tr style="background:#DDE3EA;color:#000;">'; | |
$o .= '<th style="width:50%;padding:8px 0;text-align:center;">Resources</th>'; | |
$o .= '<th style="width:50%;padding:8px 0;text-align:center;">Elements</th>'; | |
$o .= '</tr></thead><tbody><tr><td style="padding:0 1em;">'; | |
$o .= 'Published Resources: ' . $modx->getCount('modResource', array('published' => '1')); | |
$o .= '<br>Unpublished Resources: ' . $modx->getCount('modResource', array('published' => '0')); |
// Dashboard widget to show number of Manager messages | |
$id = $modx->user->get('id'); | |
$output = 'No messages.'; | |
$total = $modx->getCount('modUserMessage',array( | |
'recipient' => $id, | |
)); | |
if($total) { | |
$output = 'You have ' . $total . ' messages'; | |
$unread = $modx->getCount('modUserMessage',array( | |
'recipient' => $id, |
<?php | |
# hex2rgba | |
# converts hex value from ColorPicker TV to rgba value | |
# NOTE that the ColorPicker TV must use the default output option | |
# based on function from http://mekshq.com/how-to-convert-hexadecimal-color-code-to-rgb-or-rgba-using-php/ | |
if (!function_exists('hex2rgba')) { | |
function hex2rgba($color, $opacity = false) { | |
$default = 'rgb(0,0,0)'; | |
// Learn more about destination functions API at | |
// https://segment.com/docs/connections/destinations/destination-functions | |
/** | |
* Handle track event | |
* @param {SegmentTrackEvent} event | |
* @param {FunctionSettings} settings | |
*/ | |
async function onTrack(event, settings) { | |
// Learn more at https://segment.com/docs/connections/spec/track/ |
rsync -azvvP -e [email protected]:/var/www/ /www --filter=". filter.txt"
With the SSH command for the port if needed.
rsync -azvvP -e 'ssh -p 2801' [email protected]:/var/www/ /www --filter=". filter.txt"
<?php | |
include 'config.core.php'; | |
include MODX_CORE_PATH . 'model/modx/modx.class.php'; | |
$modx = new modX(); | |
$modx->setLogTarget(XPDO_CLI_MODE ? 'ECHO' : 'HTML'); | |
$modx->initialize('mgr'); | |
$modx->setLogLevel(modX::LOG_LEVEL_INFO); |
location ^~ /subdir(.*) {
return 301 $scheme://$http_host/$1$is_args$query_string;
}
<?php | |
/* | |
Quick fix for this problem until I have the time to look for the cause. | |
"Fatal Error: Cannot redeclare class modTemplateVarInputRenderText... | |
...in core/model/modx/processors/element/tv/renders/mgr/input/text.class.php onl line 10" | |
*/ | |
/** | |
* @package modx |