ftn_upload.inc.php 560 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: ftn_upload.inc.php 29265 2012-03-31 06:03:26Z yexinhao $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $storageService = Cloud::loadClass('Service_Storage');
  12. $formhash = formhash();
  13. if($_GET['formhash'] == $formhash && $_GET['inajax']){
  14. $ftnFormhash = $storageService->ftnFormhash();
  15. $iframeurl = $storageService->makeIframeUrl($ftnFormhash);
  16. } else {
  17. $iframeurl = '';
  18. }
  19. include template('xf_storage:upload');