예제 #1
0
 case 'copycoupon':
     $db = JFactory::getDBO();
     foreach ($id as $pid) {
         $c = explode('.', $pid);
         $row = new Coupon($c[0]);
         $row->load($c[1]);
         $row->copy();
     }
     aecRedirect('index.php?option=' . $option . '&task=showCoupons');
     break;
 case 'hacks':
     $undohack = aecGetParam('undohack', 0);
     $filename = aecGetParam('filename', 0);
     $check_hack = $filename ? 0 : 1;
     hackcorefile($filename, $check_hack, $undohack);
     HTML_AcctExp::hacks(hackcorefile(0, 1, 0));
     break;
 case 'quicklookup':
     $return = quicklookup($option);
     if (is_array($return)) {
         aecCentral($return['return'], $return['search']);
     } elseif (strpos($return, '</a>') || strpos($return, '</div>')) {
         aecCentral($return);
     } elseif (!empty($return)) {
         aecRedirect('index.php?option=com_acctexp&task=edit&amp;entity=Membership&userid=' . $return, JText::_('AEC_QUICKSEARCH_THANKS'));
     } else {
         aecRedirect('index.php?option=com_acctexp&task=showcentral', JText::_('AEC_QUICKSEARCH_NOTFOUND'));
     }
     break;
 case 'quicksearch':
     $search = quicklookup($option);