Exemplo n.º 1
0
}
$lang_array = array();
$languages_selected = DEFAULT_LANGUAGE;
for ($i = 0, $n = sizeof($languages_array); $i < $n; $i++) {
    $lang_array[] = array('id' => $languages_array[$i]['code'], 'text' => $languages_array[$i]['name']);
    if ($languages_array[$i]['directory'] == $_SESSION['language']) {
        $languages_selected = $languages_array[$i]['code'];
    }
}
$software_content = '<a href="http://www.xos-shop.com" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br />' . '<a href="http://www.xos-shop.com/main/redirect.php?action=forum" target="_blank">' . BOX_ENTRY_SUPPORT_FORUMS . '</a><br />' . '<a href="http://www.xos-shop.com/main/redirect.php?action=mlists" target="_blank">' . BOX_ENTRY_MAILING_LISTS . '</a><br />' . '<a href="http://www.xos-shop.com/main/redirect.php?action=bugs" target="_blank">' . BOX_ENTRY_BUG_REPORTS . '</a><br />' . '<a href="http://www.xos-shop.com/main/redirect.php?action=faq" target="_blank">' . BOX_ENTRY_FAQ . '</a><br />' . '<a href="http://www.xos-shop.com/main/redirect.php?action=irc" target="_blank">' . BOX_ENTRY_LIVE_DISCUSSIONS . '</a><br />' . '<a href="http://www.xos-shop.com/main/redirect.php?action=cvs" target="_blank">' . BOX_ENTRY_CVS_REPOSITORY . '</a><br />' . '<a href="http://www.xos-shop.com/main/redirect.php?action=portal" target="_blank">' . BOX_ENTRY_INFORMATION_PORTAL . '</a>';
$orders_contents = '';
$orders_status_query = xos_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int) $_SESSION['used_lng_id'] . "'");
while ($orders_status = xos_db_fetch_array($orders_status_query)) {
    $orders_pending_query = xos_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");
    $orders_pending = xos_db_fetch_array($orders_pending_query);
    if (xos_admin_check_boxes(FILENAME_ORDERS, 'sub_boxes') == true) {
        $orders_contents .= '<a href="' . xos_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br />';
    } else {
        $orders_contents .= '' . $orders_status['orders_status_name'] . ': ' . $orders_pending['count'] . '<br />';
    }
}
$orders_contents = substr($orders_contents, 0, -6);
$customers_query = xos_db_query("select count(*) as count from " . TABLE_CUSTOMERS);
$customers = xos_db_fetch_array($customers_query);
$products_query = xos_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");
$products = xos_db_fetch_array($products_query);
$reviews_query = xos_db_query("select count(*) as count from " . TABLE_REVIEWS);
$reviews = xos_db_fetch_array($reviews_query);
$statistics_content = BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br />' . BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br />' . BOX_ENTRY_REVIEWS . ' ' . $reviews['count'];
if ($request_type == 'SSL') {
    $size = getenv('SSL_CIPHER_ALGKEYSIZE') ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>';
Exemplo n.º 2
0
    }
    if (xos_admin_check_boxes('menubox_configuration.php')) {
        require DIR_WS_BOXES . 'menubox_configuration.php';
    }
    if (xos_admin_check_boxes('menubox_modules.php')) {
        require DIR_WS_BOXES . 'menubox_modules.php';
    }
    if (xos_admin_check_boxes('menubox_content_manager.php')) {
        require DIR_WS_BOXES . 'menubox_content_manager.php';
    }
    if (xos_admin_check_boxes('menubox_catalog.php')) {
        require DIR_WS_BOXES . 'menubox_catalog.php';
    }
    if (xos_admin_check_boxes('menubox_customers.php')) {
        require DIR_WS_BOXES . 'menubox_customers.php';
    }
    // naechste zeile einkommentieren wenn gutscheine fertig
    //  if (xos_admin_check_boxes('menubox_gv_admin.php')) require(DIR_WS_BOXES . 'menubox_gv_admin.php');
    if (xos_admin_check_boxes('menubox_taxes.php')) {
        require DIR_WS_BOXES . 'menubox_taxes.php';
    }
    if (xos_admin_check_boxes('menubox_localization.php')) {
        require DIR_WS_BOXES . 'menubox_localization.php';
    }
    if (xos_admin_check_boxes('menubox_reports.php')) {
        require DIR_WS_BOXES . 'menubox_reports.php';
    }
    if (xos_admin_check_boxes('menubox_tools.php')) {
        require DIR_WS_BOXES . 'menubox_tools.php';
    }
}