include_once('micropayment.de.php'); break; } break; case "doc_download": JHTML::_('behavior.modal'); //mail('*****@*****.**', 'DEBUG DOC DOWNLOAD', print_r($_REQUEST,true)); $task2 = JRequest::getVar('task2'); if ($task2 == 'order_canceled') { $mainframe->redirect(JRoute::_('index.php?&task=order_canceled&option=com_docmanpaypal')); } else if ($task2 == 'ipn') { include_once 'netcash.php'; //netcash fix. die(); } $mode = JRequest::getVar('mode'); $order = $dm->getOrder(JRequest::getInt('order_id')); if ($order->completed == 0) { $mainframe->enqueueMessage(JText::_('WAITING_FOR_PAYPAL'),'info'); echo '<script> setTimeout("location.reload(true);",5000);</script>'; break; } if ($mode == 'single') { $gid = (int)$_GET['gid']; $order_id = JRequest::getVar('order_id',null,null,'int'); $key = JRequest::getVar('key'); $database->setQuery("select * from #__docman_documents where docman_document_id = '$gid'"); $tmp = $database->loadAssocList(); $tmp = $tmp[0]; $dmname = $tmp['dmname'];