Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <?
  2. define("STOP_STATISTICS", true);
  3. define("PUBLIC_AJAX_MODE", true);
  4. define("NO_KEEP_STATISTIC", "Y");
  5. define("NO_AGENT_STATISTIC","Y");
  6. define("DisableEventsCheck", true);
  7.  
  8. require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
  9. if ($_REQUEST["action"] == "uncloud")
  10. {
  11. $loader = new \Bitrix\Main\UI\FileInputUnclouder();
  12. $loader->setValue($_REQUEST["file"])->setSignature($_REQUEST["signature"])->exec($_REQUEST["mode"], array("width" => $_REQUEST["width"], "height" => $_REQUEST["height"]));
  13. }
  14. else if ($_REQUEST["action"] == "error")
  15. {
  16. $errorCatcher = new \Bitrix\Main\UI\Uploader\ErrorCatcher();
  17. $errorCatcher->log($_REQUEST["path"], $_REQUEST["data"]);
  18. }
  19. else
  20. {
  21. $receiver = new \Bitrix\Main\UI\FileInputReceiver;
  22. $receiver->setSignature($_POST["signature"])->exec();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement