Read the blog at http://fokkezb.nl/2013/09/20/url-schemes-for-ios-and-android-2/
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
#pour forcer version php 5 | |
SetEnv PHP_VER 5 | |
#http://www.manuelphp.com/php/security.globals.php, pour ovh | |
SetEnv REGISTER_GLOBALS 0 | |
#supprimer les variable de session pour les moteurs de recherche | |
SetEnv SESSION_USE_TRANS_SID 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
$profile = $modx->getObject('modUserProfile', $id); | |
$fullname = $profile->get('fullname'); | |
return $fullname; |
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 | |
/* UserGroups snippet*/ | |
$user =& $modx->user; | |
if ($user->isMember('membres') { | |
$output = $modx->getChunk('membres'); | |
} elseif ($user->isMember('administrateurs') { | |
$output = $modx->getChunk('administrateurs'); | |
} elseif ($user->isMember('employés') { | |
$output = $modx->getChunk('employés'); |
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 | |
// First fetch all the children of the current resource | |
$children = $modx->resource->getMany('Children'); | |
// Check if there are any. If not, return false | |
if (!$children) { return false; } | |
// Check if there is a tpl set, if not return an error | |
$tpl = $modx->getOption('tpl',$scriptProperties,''); | |
if (!$tpl) { return 'No template given.'; } | |
// Start the output |
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
[[+idx:mod=`5`:default=`class="test5"`]] |
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
[[~[[*id]]? &scheme=`full`]] |
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
var firstCombo = new Ext.form.ComboBox({ | |
store: store_combo_1, | |
typeAhead: true, | |
forceSelection: true, | |
triggerAction: 'all', | |
emptyText:'Select a state...', | |
selectOnFocus:true, | |
id:'combo1' | |
}); |
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
{"id:NOT IN":[12,13,14,15]} | |
{"id:IN":[12,13,14,15]} |
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
[ | |
{"formname":"Bloc1", "formtabs": | |
[ | |
{"caption":"Marque de bateau", "fields": [ | |
{"field":"MarqueBateau","caption":"Marque"} | |
]} | |
] | |
},{"formname":"Bloc2", "formtabs": | |
[ | |
{"caption":"Détail", "fields": [ |