Esempio n. 1
0
	public function checkRestore()
	{
		$key = addEventHandler('main', 'OnAutoSaveRestore', array($this, 'Restore'));
		CUndo::Escape($this->GetID());
		removeEventHandler('main', 'OnAutoSaveRestore', $key);
	}
Esempio n. 2
0
<?php

require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
if ($_SERVER["REQUEST_METHOD"] == "GET" && isset($_REQUEST['undo']) && check_bitrix_sessid()) {
    if (!CUndo::Escape($_REQUEST['undo'])) {
        echo 'ERROR';
    }
}