Skip to content

Instantly share code, notes, and snippets.

/GatewayTest Secret

Created December 22, 2012 02:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8f91ef1ebb14e79891f7 to your computer and use it in GitHub Desktop.
Save anonymous/8f91ef1ebb14e79891f7 to your computer and use it in GitHub Desktop.
require_once TOOLKIT . '/class.gateway.php';
$ch = new Gateway;
$ch->setopt('URL', SYMPHONY_URL . '/system/preferences/?auth-token=xxxxxxxx');
$ch->setopt('POST', 1);
$ch->setopt('POSTFIELDS', array(
'action' => array(
'resave' => '1',
),
'resave' => array(
'section' => '4'
)
));
$result = $ch->exec();
echo $result;
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment