phpthumb.php 581 B

12345678910111213141516171819
  1. <?php
  2. /*
  3. * This file is part of MODX Revolution.
  4. *
  5. * Copyright (c) MODX, LLC. All Rights Reserved.
  6. *
  7. * For complete copyright and license information, see the COPYRIGHT and LICENSE
  8. * files found in the top-level directory of this distribution.
  9. */
  10. /**
  11. * @var modX $modx
  12. * @package modx
  13. */
  14. session_cache_limiter('public');
  15. define('MODX_CONNECTOR_INCLUDED', 1);
  16. require_once dirname(__DIR__).'/index.php';
  17. $_SERVER['HTTP_MODAUTH'] = $modx->user->getUserToken($modx->context->get('key'));
  18. $modx->request->handleRequest(array('location' => 'system','action' => 'phpthumb'));