protected function _process() { global $lC_ShoppingCart, $lC_Shipping, $lC_Vqmod; require_once $lC_Vqmod->modCheck('includes/classes/address_book.php'); if (!empty($_POST['comments'])) { $_SESSION['comments'] = lc_sanitize_string($_POST['comments']); } // added to carry ship to address as billing address if (!empty($_POST['shipto_as_billable'])) { $_SESSION['shipto_as_billable'] = $_POST['shipto_as_billable']; } if ($lC_Shipping->hasQuotes()) { if (isset($_POST['shipping_mod_sel']) && strpos($_POST['shipping_mod_sel'], '_')) { list($module, $method) = explode('_', $_POST['shipping_mod_sel']); $module = 'lC_Shipping_' . $module; if (is_object($GLOBALS[$module]) && $GLOBALS[$module]->isEnabled()) { $quote = $lC_Shipping->getQuote($_POST['shipping_mod_sel']); if (isset($quote['error'])) { $lC_ShoppingCart->resetShippingMethod(); } else { $lC_ShoppingCart->setShippingMethod($quote); $_SESSION['SelectedShippingMethodCost'] = $quote['cost']; lc_redirect(lc_href_link(FILENAME_CHECKOUT, 'payment', 'SSL')); } } else { $lC_ShoppingCart->resetShippingMethod(); } } } else { $lC_ShoppingCart->resetShippingMethod(); lc_redirect(lc_href_link(FILENAME_CHECKOUT, 'payment', 'SSL')); } }
protected function _process() { global $lC_Language, $lC_MessageStack, $lC_Product; if (empty($_POST['from_name'])) { $lC_MessageStack->add('tell_a_friend', $lC_Language->get('error_tell_a_friend_customers_name_empty')); } if (!lc_validate_email_address($_POST['from_email_address'])) { $lC_MessageStack->add('tell_a_friend', $lC_Language->get('error_tell_a_friend_invalid_customers_email_address')); } if (empty($_POST['to_name'])) { $lC_MessageStack->add('tell_a_friend', $lC_Language->get('error_tell_a_friend_friends_name_empty')); } if (!lc_validate_email_address($_POST['to_email_address'])) { $lC_MessageStack->add('tell_a_friend', $lC_Language->get('error_tell_a_friend_invalid_friends_email_address')); } if ($lC_MessageStack->size('tell_a_friend') < 1) { $email_subject = sprintf($lC_Language->get('email_tell_a_friend_subject'), lc_sanitize_string($_POST['from_name']), STORE_NAME); $email_body = sprintf($lC_Language->get('email_tell_a_friend_intro'), lc_sanitize_string($_POST['to_name']), lc_sanitize_string($_POST['from_name']), $lC_Product->getTitle(), STORE_NAME) . "\n\n"; if (!empty($_POST['message'])) { $email_body .= lc_sanitize_string($_POST['message']) . "\n\n"; } $email_body .= sprintf($lC_Language->get('email_tell_a_friend_link'), lc_href_link(HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCTS, $lC_Product->getKeyword(), 'NONSSL', false)) . "\n\n" . sprintf($lC_Language->get('email_tell_a_friend_signature'), STORE_NAME . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n"); lc_email(lc_sanitize_string($_POST['to_name']), lc_sanitize_string($_POST['to_email_address']), $email_subject, $email_body, lc_sanitize_string($_POST['from_name']), lc_sanitize_string($_POST['from_email_address'])); lc_redirect(lc_href_link(FILENAME_PRODUCTS, 'tell_a_friend&' . $lC_Product->getID() . '&success=' . urlencode(sprintf($lC_Language->get('success_tell_a_friend_email_sent'), $lC_Product->getTitle(), lc_output_string_protected($_POST['to_name']))))); } }
public function __construct() { if (empty($_GET) === false) { $first_array = array_slice($_GET, 0, 1); $module = lc_sanitize_string(basename(key($first_array))); if (array_key_exists('login', $_GET)) { return false; } } if (!isset($_SESSION['lC_Addons_data'])) { $this->_initialize(); } }
protected function _process() { global $lC_Language, $lC_MessageStack; $name = lc_sanitize_string($_POST['name']); $email_address = lc_sanitize_string($_POST['email']); $inquiry = lc_sanitize_string($_POST['inquiry']); if (lc_validate_email_address($email_address)) { lc_email(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $lC_Language->get('contact_email_subject'), $inquiry, $name, $email_address); lc_redirect(lc_href_link(FILENAME_INFO, 'contact&success=' . urlencode($lC_Language->get('contact_email_sent_successfully')), 'AUTO')); } else { $lC_MessageStack->add('contact', $lC_Language->get('field_customer_email_address_check_error')); } }
public function setup($module) { global $lC_Vqmod; $class = 'lC_Application_' . ucfirst($module); if (isset($_GET['action']) && !empty($_GET['action'])) { $_action = lc_sanitize_string(basename($_GET['action'])); if (file_exists('includes/applications/' . $module . '/actions/' . $_action . '.php')) { include $lC_Vqmod->modCheck('includes/applications/' . $module . '/actions/' . $_action . '.php'); $class = 'lC_Application_' . ucfirst($module) . '_Actions_' . $_action; } else { if (lC_Addons_Admin::hasAdminModuleActions($module, $_action)) { include $lC_Vqmod->modCheck(lC_Addons_Admin::getAdminModuleActionsPath($module, $_action)); $class = 'lC_Application_' . ucfirst($module) . '_Actions_' . $_action; } } } $object = new $class(); return $object; }
// define our general functions used application-wide require $lC_Vqmod->modCheck('../includes/functions/general.php'); require $lC_Vqmod->modCheck('includes/functions/general.php'); require $lC_Vqmod->modCheck('../includes/functions/html_output.php'); require $lC_Vqmod->modCheck('includes/functions/html_output.php'); // include session class require $lC_Vqmod->modCheck('../includes/classes/session.php'); $lC_Session = lC_Session::load('lCAdminID'); $lC_Session->start(); if (!isset($_SESSION['admin']) && basename($_SERVER['PHP_SELF']) != FILENAME_RPC) { $redirect = false; if (empty($_GET)) { $redirect = true; } else { $first_array = array_slice($_GET, 0, 1); $_module = lc_sanitize_string(basename(key($first_array))); if ($_module != 'login') { if (!isset($_SESSION['redirect_origin'])) { $_SESSION['redirect_origin'] = array('module' => $_module, 'get' => $_GET); } $redirect = true; } } if ($redirect === true) { lc_redirect_admin(lc_href_link_admin(FILENAME_DEFAULT, 'login')); } unset($redirect); } require $lC_Vqmod->modCheck('includes/classes/access.php'); require $lC_Vqmod->modCheck('../includes/classes/directory_listing.php'); require $lC_Vqmod->modCheck('../includes/classes/address.php');
<?php /** @package catalog::templates::boxes @author Loaded Commerce @copyright Copyright 2003-2014 Loaded Commerce, LLC @copyright Portions Copyright 2003 osCommerce @copyright Template built on DevKit http://www.bootstraptor.com under GPL license @license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt @version $Id: tell_a_friend.php v1.0 2013-08-08 datazen $ */ ?> <!--modules/boxes/tell_a_friend.php start--> <div class="well" > <form role="form" class="box-tell-a-friend-form no-margin-bottom form-inline" name="tell_a_friend" action="<?php echo lc_href_link(FILENAME_PRODUCTS, 'tell_a_friend&' . lc_sanitize_string(basename(key(array_slice($_GET, 0, 1))))); ?> " method="post"> <ul class="box-search list-unstyled list-indent-large"> <li class="box-header small-margin-bottom"><?php echo $lC_Box->getTitle(); ?> </li> <?php echo $lC_Box->getContent(); ?> </ul> </form> </div> <script> $(document).ready(function() {
public function lC_Shipping($module = '') { global $lC_Database, $lC_Language, $lC_Addons, $lC_Vqmod; $this->_quotes =& $_SESSION['lC_ShoppingCart_data']['shipping_quotes']; $Qmodules = $lC_Database->query("select code, modules_group from :table_templates_boxes where modules_group LIKE '%shipping%'"); $Qmodules->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES); $Qmodules->setCache('modules-shipping'); $Qmodules->execute(); while ($Qmodules->next()) { if ($Qmodules->value('modules_group') == 'shipping') { if (!file_exists('includes/modules/shipping/' . $Qmodules->value('code') . '.' . substr(basename(__FILE__), strrpos(basename(__FILE__), '.') + 1))) { $this->removeModule($Qmodules->value('code')); continue; } $this->_modules[] = $Qmodules->value('code'); } else { // addons $addon = end(explode("|", $Qmodules->value('modules_group'))); $module = $Qmodules->value('code'); if (!file_exists(DIR_FS_CATALOG . 'addons/' . $addon . '/modules/shipping/' . $module . '.php')) { $this->removeModule($Qmodules->value('code')); continue; } if ($_SESSION['lC_Addons_data'][$addon]['enabled'] == '1') { $this->_modules[] = $Qmodules->value('code') . '|' . $addon; } } } $Qmodules->freeResult(); if (empty($this->_modules) === false) { if (empty($module) === false && in_array(substr($module, 0, strpos($module, '_')), $this->_modules)) { $this->_selected_module = $module; $this->_modules = array(substr($module, 0, strpos($module, '_'))); } $lC_Language->load('modules-shipping'); foreach ($this->_modules as $module) { if (strstr($module, '|')) { $mArr = explode('|', $module); $module = $mArr[0]; $addon = $mArr[1]; } $module_class = 'lC_Shipping_' . $module; if (class_exists($module_class) === false) { if (file_exists('includes/modules/shipping/' . $module . '.' . substr(basename(__FILE__), strrpos(basename(__FILE__), '.') + 1))) { include $lC_Vqmod->modCheck('includes/modules/shipping/' . $module . '.' . substr(basename(__FILE__), strrpos(basename(__FILE__), '.') + 1)); } else { if (file_exists(DIR_FS_CATALOG . 'addons/' . $addon . '/modules/shipping/' . $module . '.php')) { // addons include $lC_Vqmod->modCheck(DIR_FS_CATALOG . 'addons/' . $addon . '/modules/shipping/' . $module . '.php'); } } } $GLOBALS[$module_class] = new $module_class(); $GLOBALS[$module_class]->initialize(); } usort($this->_modules, array('lC_Shipping', '_usortModules')); } if (empty($_GET) === false) { $first_array = array_slice($_GET, 0, 1); $_module = lc_sanitize_string(basename(key($first_array))); } if (empty($this->_quotes) || $_module == 'shipping') { $this->_calculate(); } }
public function lC_Checkout_Confirmation() { global $lC_Session, $lC_Services, $lC_Language, $lC_ShoppingCart, $lC_Customer, $lC_MessageStack, $lC_NavigationHistory, $lC_Breadcrumb, $lC_Payment, $lC_Vqmod; require $lC_Vqmod->modCheck('includes/classes/address_book.php'); if ($lC_Customer->isLoggedOn() === false) { $lC_NavigationHistory->setSnapshot(); lc_redirect(lc_href_link(FILENAME_ACCOUNT, 'login', 'SSL')); } if ($lC_ShoppingCart->hasContents() === false) { lc_redirect(lc_href_link(FILENAME_CHECKOUT, null, 'SSL')); } // if no shipping method has been selected, redirect the customer to the shipping method selection page if ($lC_ShoppingCart->hasShippingAddress() == false) { if (defined('SKIP_CHECKOUT_SHIPPING_PAGE') && SKIP_CHECKOUT_SHIPPING_PAGE == '1') { } else { lc_redirect(lc_href_link(FILENAME_CHECKOUT, 'shipping', 'SSL')); } } include $lC_Vqmod->modCheck('includes/classes/order.php'); $this->_page_title = $lC_Language->get('confirmation_heading'); $lC_Language->load('order'); if ($lC_Services->isStarted('breadcrumb')) { $lC_Breadcrumb->add($lC_Language->get('breadcrumb_checkout_confirmation'), lc_href_link(FILENAME_CHECKOUT, $this->_module, 'SSL')); } // added due to bootstrap not having order comments before confirmation page $_POST['comments'] = $_POST['comments']; //////////////////////////////////////////// if (isset($_POST['comments']) && isset($_SESSION['comments']) && empty($_POST['comments'])) { unset($_SESSION['comments']); } elseif (!empty($_POST['comments'])) { $_SESSION['comments'] = lc_sanitize_string($_POST['comments']); } if (isset($_POST['po_number']) && isset($_SESSION['po_number']) && empty($_POST['po_number'])) { unset($_SESSION['po_number']); } elseif (!empty($_POST['po_number'])) { $_SESSION['po_number'] = lc_sanitize_string($_POST['po_number']); } // added for payment terms if (isset($_POST['payment_terms']) && empty($_POST['payment_terms']) === false) { $_SESSION['payment_terms'] = $_POST['payment_terms']; } // load the selected payment module include $lC_Vqmod->modCheck('includes/classes/payment.php'); $lC_Payment = new lC_Payment(isset($_POST['payment_method']) ? $_POST['payment_method'] : $lC_ShoppingCart->getBillingMethod('id')); if (isset($_POST['payment_method'])) { $lC_ShoppingCart->setBillingMethod(array('id' => $_POST['payment_method'], 'title' => $GLOBALS['lC_Payment_' . $_POST['payment_method']]->getMethodTitle())); } if ($lC_Payment->hasActive() && (isset($GLOBALS['lC_Payment_' . $lC_ShoppingCart->getBillingMethod('id')]) === false || isset($GLOBALS['lC_Payment_' . $lC_ShoppingCart->getBillingMethod('id')]) && is_object($GLOBALS['lC_Payment_' . $lC_ShoppingCart->getBillingMethod('id')]) && $GLOBALS['lC_Payment_' . $lC_ShoppingCart->getBillingMethod('id')]->isEnabled() === false)) { $lC_MessageStack->add('checkout_payment', $lC_Language->get('error_no_payment_module_selected'), 'error'); } if (isset($_SESSION['SKIP_PAYMENT_PAGE']) && $_SESSION['SKIP_PAYMENT_PAGE'] == '1') { } else { if ($lC_MessageStack->size('checkout_payment') > 0) { lc_redirect(lc_href_link(FILENAME_CHECKOUT, 'payment', 'SSL')); } } if ($lC_Payment->hasActive()) { $lC_Payment->pre_confirmation_check(); } // Stock Check if (STOCK_CHECK == '1' && AUTODISABLE_OUT_OF_STOCK_PRODUCT == '1') { foreach ($lC_ShoppingCart->getProducts() as $product) { if (!$lC_ShoppingCart->isInStock($product['item_id'])) { lc_redirect(lc_href_link(FILENAME_CHECKOUT, null, 'AUTO')); } } } }
public function lC_Checkout_Process() { global $lC_Session, $lC_ShoppingCart, $lC_Customer, $lC_NavigationHistory, $lC_Payment, $lC_Vqmod; require $lC_Vqmod->modCheck('includes/classes/address_book.php'); if (isset($_SESSION['PPEC_TOKEN']) && $_SESSION['PPEC_TOKEN'] != NULL && isset($_GET['token']) && $_GET['token'] == $_SESSION['PPEC_TOKEN']) { } else { if ($lC_Customer->isLoggedOn() === false) { $lC_NavigationHistory->setSnapshot(); lc_redirect(lc_href_link(FILENAME_ACCOUNT, 'login', 'SSL')); } } if ($lC_ShoppingCart->hasContents() === false) { lc_redirect(lc_href_link(FILENAME_CHECKOUT, null, 'SSL')); } // added for removal of order comments from shipping and payment pages and placed on confirmation page only during checkout if (!empty($_POST['comments'])) { $_SESSION['comments'] = lc_sanitize_string($_POST['comments']); } // if no shipping method has been selected, redirect the customer to the shipping method selection page if ($lC_ShoppingCart->hasShippingMethod() === false && $lC_ShoppingCart->getContentType() != 'virtual') { if (defined('SKIP_CHECKOUT_SHIPPING_PAGE') && SKIP_CHECKOUT_SHIPPING_PAGE == '1') { } else { lc_redirect(lc_href_link(FILENAME_CHECKOUT, 'shipping', 'SSL')); } } // load selected payment module include $lC_Vqmod->modCheck('includes/classes/payment.php'); /*VQMOD-003*/ if (isset($_SESSION['PPEC_TOKEN']) && $_SESSION['PPEC_TOKEN'] != NULL && isset($_GET['token']) && $_GET['token'] == $_SESSION['PPEC_TOKEN']) { $lC_Payment = new lC_Payment($lC_ShoppingCart->getBillingMethod('id')); //$lC_ShoppingCart->setBillingMethod(array('id' => 'paypal_adv', 'title' => $GLOBALS['lC_Payment_paypal_adv']->getMethodTitle())); if (isset($_SESSION['cartSync']['cartID']) && $_SESSION['cartSync']['cartID'] != NULL) { $_SESSION['cartID'] = $_SESSION['cartSync']['cartID']; $_SESSION['prepOrderID'] = $_SESSION['cartSync']['prepOrderID']; } } else { if (isset($_SESSION['cartSync']['paymentMethod']) && $_SESSION['cartSync']['paymentMethod'] != NULL) { $lC_Payment = new lC_Payment($_SESSION['cartSync']['paymentMethod']); $lC_ShoppingCart->setBillingMethod(array('id' => $_SESSION['cartSync']['paymentMethod'], 'title' => $GLOBALS['lC_Payment_' . $_SESSION['cartSync']['paymentMethod']]->getMethodTitle())); } else { $lC_Payment = new lC_Payment($lC_ShoppingCart->getBillingMethod('id')); } } if ($lC_Payment->hasActive() && $lC_ShoppingCart->hasBillingMethod() === false) { lc_redirect(lc_href_link(FILENAME_CHECKOUT, 'payment', 'SSL')); } include $lC_Vqmod->modCheck('includes/classes/order.php'); $lC_Payment->process(); $lC_ShoppingCart->reset(true); // unregister session variables used during checkout if (isset($_SESSION['comments'])) { unset($_SESSION['comments']); } if (isset($_SESSION['cartSync'])) { unset($_SESSION['cartSync']); } /*VQMOD-004*/ if (isset($_SESSION['PPEC_TOKEN'])) { unset($_SESSION['PPEC_TOKEN']); } if (isset($_SESSION['PPEC_PROCESS'])) { unset($_SESSION['PPEC_PROCESS']); } if (isset($_SESSION['PPEC_PAYDATA'])) { unset($_SESSION['PPEC_PAYDATA']); } if (isset($_SESSION['this_handling'])) { unset($_SESSION['this_handling']); } if (isset($_SESSION['this_payment'])) { unset($_SESSION['this_payment']); } if (isset($_SESSION['SelectedShippingMethodCost'])) { unset($_SESSION['SelectedShippingMethodCost']); } lc_redirect(lc_href_link(FILENAME_CHECKOUT, 'success', 'SSL')); }
/** * Setup the template class with the requested page module * * @param string $module The default page module to setup * @return object */ public function &setup($module) { global $lC_Vqmod; $group = basename($_SERVER['SCRIPT_FILENAME']); if (($pos = strrpos($group, '.')) !== false) { $group = substr($group, 0, $pos); } if (empty($_GET) === false) { $first_array = array_slice($_GET, 0, 1); $_module = lc_sanitize_string(basename(key($first_array))); if (file_exists('includes/content/' . $group . '/' . $_module . '.php')) { $module = $_module; } } include $lC_Vqmod->modCheck(DIR_FS_CATALOG . '/includes/content/' . $group . '/' . $module . '.php'); $_page_module_name = 'lC_' . ucfirst($group) . '_' . ucfirst($module); $object = new $_page_module_name(); if (isset($_GET['action']) && !empty($_GET['action'])) { include $lC_Vqmod->modCheck(DIR_FS_CATALOG . 'includes/classes/actions.php'); lC_Actions::parse($_GET['action']); } return $object; }
/** @package catalog @author Loaded Commerce @copyright Copyright 2003-2014 Loaded Commerce, LLC @copyright Portions Copyright 2003 osCommerce @license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt @version $Id: account.php v1.0 2013-08-08 datazen $ */ $_SERVER['SCRIPT_FILENAME'] = __FILE__; require 'includes/application_top.php'; if ($lC_Customer->isLoggedOn() === false) { if (!empty($_GET)) { $first_array = array_slice($_GET, 0, 1); } if (empty($_GET) || !empty($_GET) && !in_array(lc_sanitize_string(basename(key($first_array))), array('login', 'create', 'password_forgotten'))) { $lC_NavigationHistory->setSnapshot(); lc_redirect(lc_href_link(FILENAME_ACCOUNT, 'login', 'SSL')); } } // VQMOD-hookpoint; DO NOT MODIFY OR REMOVE THE LINE BELOW $lC_Language->load('account'); if ($lC_Services->isStarted('breadcrumb')) { $lC_Breadcrumb->add($lC_Language->get('breadcrumb_my_account'), lc_href_link(FILENAME_ACCOUNT, null, 'SSL')); } $lC_Template = lC_Template::setup('account'); $countries_array = array(array('id' => '', 'text' => $lC_Language->get('pull_down_default'))); foreach (lC_Address::getCountries() as $country) { $countries_array[] = array('id' => $country['id'], 'text' => $country['name']); } require $lC_Vqmod->modCheck('templates/' . $lC_Template->getCode() . '.php');
define('RPC_STATUS_SUCCESS', 1); define('RPC_STATUS_NO_SESSION', -10); define('RPC_STATUS_NO_MODULE', -20); define('RPC_STATUS_NO_ACCESS', -50); define('RPC_STATUS_CLASS_NONEXISTENT', -60); define('RPC_STATUS_METHOD_NONEXISTENT', -65); define('RPC_STATUS_NO_ACTION', -70); define('RPC_STATUS_ACTION_NONEXISTENT', -71); $class = 'rpc'; $first_array = array_slice($_GET, 0, 1); $module = lc_sanitize_string(basename(key($first_array))); if ($module == 'action') { $module = strtolower($lC_Template->getCode()); } $action = isset($_GET['action']) && !empty($_GET['action']) ? lc_sanitize_string(basename($_GET['action'])) : ''; $addon = isset($_GET['addon']) && !empty($_GET['addon']) ? lc_sanitize_string(basename($_GET['addon'])) : NULL; if ($addon != NULL) { if (file_exists('addons/' . $addon . '/templates/' . $module . '/classes/' . $class . '.php')) { include $lC_Vqmod->modCheck('addons/' . $addon . '/templates/' . $module . '/classes/' . $class . '.php'); if (method_exists('lC_' . ucfirst($module) . '_' . $class, $action)) { call_user_func(array('lC_' . ucfirst($module) . '_' . $class, $action)); exit; } else { echo json_encode(array('rpcStatus' => RPC_STATUS_METHOD_NONEXISTENT . ': lC_' . ucfirst($module) . '_' . $class . ' ' . $stat)); exit; } } else { if (file_exists('addons/' . $addon . '/rpc/' . $module . '/' . $class . '.php')) { include $lC_Vqmod->modCheck('addons/' . $addon . '/rpc/' . $module . '/' . $class . '.php'); if (method_exists('lC_' . ucfirst($module) . '_' . $class, $action)) { call_user_func(array('lC_' . ucfirst($module) . '_' . $class, $action));
} } $module = null; $class = null; if (empty($_GET) && $_GET['action'] != 'validateLogin') { echo json_encode(array('rpcStatus' => RPC_STATUS_NO_MODULE)); exit; } else { $first_array = array_slice($_GET, 0, 1); $_module = lc_sanitize_string(basename(key($first_array))); if (!lC_Access::hasAccess($_module) && $_GET['action'] != 'validateLogin' && $_GET['action'] != 'apiHealthCheck' && !isset($_GET['addon'])) { echo json_encode(array('rpcStatus' => RPC_STATUS_NO_ACCESS)); exit; } $class = isset($_GET['class']) && !empty($_GET['class']) ? lc_sanitize_string(basename($_GET['class'])) : 'rpc'; $action = isset($_GET['action']) && !empty($_GET['action']) ? lc_sanitize_string(basename($_GET['action'])) : ''; if (empty($action)) { echo json_encode(array('rpcStatus' => RPC_STATUS_NO_ACTION)); exit; } if ($action != 'search' && $action != 'productSearch') { if (file_exists('includes/applications/' . $_module . '/classes/' . $class . '.php') && !isset($_GET['addon'])) { include $lC_Vqmod->modCheck('includes/applications/' . $_module . '/classes/' . $class . '.php'); if (method_exists('lC_' . ucfirst($_module) . '_Admin_' . $class, $action)) { call_user_func(array('lC_' . ucfirst($_module) . '_Admin_' . $class, $action)); exit; } else { echo json_encode(array('rpcStatus' => RPC_STATUS_METHOD_NONEXISTENT . ': lC_' . ucfirst($_module) . '_Admin_' . $class . ' ' . $stat)); exit; } } else {