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
$test = $modx->runSnippet('simplx.mygit.snippet.saveasgist',array('objectid'=>17)); | |
print json_encode($test); |
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 | |
/* | |
$Id: nusoap.php,v 1.114 2007/11/06 15:17:46 snichol Exp $ | |
NuSOAP - Web Services Toolkit for PHP | |
Copyright (c) 2002 NuSphere Corporation | |
This library is free software; you can redistribute it and/or |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> | |
<head> | |
<title> SIMPLX RPC </title> | |
<meta name="Generator" content="EditPlus"> | |
<meta name="Author" content=""> | |
<meta name="Keywords" content=""> | |
<meta name="Description" content=""> | |
<!-- | |
Below i load all the nice jQuery scripts plus Doug Crockfords json2.js |
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 | |
global $modx; | |
if(!class_exists('simplx_propertyset')){ | |
class simplx_propertyset{ | |
public static $initialized = false; | |
public static $currentPs; | |
public static $defaultPs; | |
private static $propertySetList; |
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 | |
$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); |
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 | |
/* | |
Snippet "simplx_toplaceholders" | |
KISS Snippet which wraps the $modx equivalent, only adds the ability to use JSON input. | |
Example: |
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
(function() { | |
// private variables | |
var | |
/** | |
* @var {string} JSON-RPC server address | |
*/ | |
apiUrl = '/api/json-rpc', | |
/** | |
* @var {string} API namespace | |
*/ |
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
/* | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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 | |
global $modx; | |
if(!class_exists('simplx_propertyset')){ | |
class simplx_propertyset{ | |
public static $initialized = false; | |
public static $currentPs; | |
public static $defaultPs; | |
private static $propertySetList; |
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 | |
if($useGetParam){ | |
$orderId = $_GET[$getParamName]; | |
if($orderId == ''){ | |
return false; | |
} | |
} | |
if (!$orderId) { | |
$modx->log(modX::LOG_LEVEL_ERROR, 'Snippet Error: visioncart.deleteorder, parameter orderid missing.'); |