Skip to content

Instantly share code, notes, and snippets.

@atsu666
Created June 6, 2016 08:01
Show Gist options
  • Save atsu666/002246c42c61d73033ce8b51a3d4dd9c to your computer and use it in GitHub Desktop.
Save atsu666/002246c42c61d73033ce8b51a3d4dd9c to your computer and use it in GitHub Desktop.
ACMS_POST_2GET
<?php
class ACMS_POST_2GET extends ACMS_POST
{
var $isCacheDelete = false;
function post()
{
$Post = new Field($this->Post);
$Cookie =& Field::singleton('cookie');
if ( SESSION_USE_COOKIE and $Cookie->get(SESSION_NAME) ) {
$Post->delete(SESSION_NAME);
}
if ( $Post->get('nocache') === 'yes' ) {
$Post->add('query', 'nocache');
}
return $this->redirect(acmsLink($this->getUriObject($Post), true, true));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment