/* $order_id = (int)$_GET['order_id']; $database->setQuery("select user_id from #__docmanpaypalorders where order_id = '$order_id' limit 1"); $seller_id = $database->loadResult(); $cfg = $dm->getConfig($seller_id);*/ $doc_id = JRequest::getVar('id'); $mainframe->enqueueMessage(sprintf(_DMP_DOWNLOADSLIMITREACHED,JURI::base() . 'index.php?&option=com_docmanpaypal&task=order&id=' . $doc_id), 'notice'); echo $dm->cfg['downloadslimitpage']; break; case "saleslimit": $seller_id = (int)$_GET['user_id']; $cfg = $dm->getConfig($seller_id); echo $cfg['saleslimitpage']; break; case "ipn": $Merchant = JRequest::getVar('merchant','PayPal'); $merchants = $dm->getMerchants(); if (in_array($Merchant,$merchants)) { if ($Merchant == 'PayPal') { include_once 'paypal.php'; } if ($Merchant == 'Micropayment.de') { include_once 'micropayment.de.php'; } } break; case "addToCart": if ($dm->cfg['useCart'] == 0) { echo json_encode(array('html' => _DMP_CART_DISABLED)); break; } $session = JFactory::getSession(); $session->set('Itemid',(int)JRequest::getVar('Itemid')); $dm->cartAdd(JRequest::getVar('id')); echo json_encode(array('html' => $dm->cartShow())); break;