public function __construct() { global $lC_Language; $lC_Language->loadIniFile('modules/summary/revenue.php'); $this->_title = $lC_Language->get('summary_revenue_title'); $this->_title_link = lc_href_link_admin(FILENAME_DEFAULT, 'revenue'); if (lC_Access::hasAccess('orders')) { $this->_setData(); } }
public function lC_Summary_products() { global $lC_Language; $lC_Language->loadIniFile('modules/summary/products.php'); $lC_Language->loadIniFile('products.php'); $this->_title = $lC_Language->get('summary_products_title'); $this->_title_link = lc_href_link_admin(FILENAME_DEFAULT, 'products'); if (lC_Access::hasAccess('products')) { $this->_setData(); } }
public function __construct() { global $lC_Language; $lC_Language->loadIniFile('modules/summary/administrators_log.php'); $lC_Language->loadIniFile('administrators_log.php'); $this->_title = $lC_Language->get('summary_administrators_log_title'); $this->_title_link = lc_href_link_admin(FILENAME_DEFAULT, 'administrators_log'); if (lC_Access::hasAccess('administrators_log')) { $this->_setData(); } }
if (!isset($_SESSION['admin'])) { if (isset($_GET['action']) && $_GET['action'] == 'validateLogin' || isset($_GET['action']) && $_GET['action'] == 'lostPasswordConfirmEmail' || isset($_GET['action']) && $_GET['action'] == 'lostPasswordConfirmKey' || isset($_GET['action']) && $_GET['action'] == 'passwordChange' || isset($_GET['action']) && $_GET['action'] == 'apiHealthCheck' || isset($_GET['action']) && $_GET['action'] == 'validateSerial') { } else { echo json_encode(array('rpcStatus' => RPC_STATUS_NO_SESSION)); exit; } } $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;