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
location ~ ^/i/(.*) { | |
error_log /c0324/log/image.log notice; | |
rewrite_log on; | |
set $phptfn $1; | |
rewrite ^(.*?)\/w\/(\d+)\/(.*)$ $1/$3?w=$2&$args; | |
rewrite ^(.*?)\/h\/(\d+)\/(.*)$ $1/$3?h=$2&$args; | |
rewrite ^(.*?)\/new\/(\d+)\/(.*)$ $1/$3?new=$2&$args; | |
rewrite ^(.*?)\/wp\/(\d+)\/(.*)$ $1/$3?wp=$2&$args; | |
rewrite ^(.*?)\/hp\/(\d+)\/(.*)$ $1/$3?hp=$2&$args; | |
rewrite ^(.*?)\/w1\/(\d+)\/(.*)$ $1/$3?w1=$2&$args; |
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 | |
if($modx->context->get('key') != "mgr"){ | |
/* grab the current langauge from the cultureKey request var */ | |
switch ($_REQUEST['cultureKey']) { | |
case 'en': | |
/* switch the context */ | |
$modx->switchContext('en'); | |
break; | |
default: | |
/* Set the default context here */ |
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 | |
$simplx_debugger_js = $modx->getChunk('simplx.debugger.js'); | |
$simplx_rpc_js = $modx->getChunk('simplx.jsonrpc.js'); | |
$modx->regClientStartupHTMLBlock($simplx_rpc_js); | |
$modx->regClientStartupHTMLBlock($simplx_debugger_js); |