[TEP-COMMIT] [CVS admin] remove redundant files

hpdl-OfajU3CKLf1/[email protected] 15 Aug 2004 18:20:33 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in admin/admin on MAIN

banner_statistics.php 1.6 removed

includes/filenames.php -1 1.5 -> 1.6

includes/functions/html_graphs.php 1.7 removed

includes/languages/english/banner_statistics.php 1.1 removed

includes/languages/espanol/banner_statistics.php 1.2 removed

includes/languages/german/banner_statistics.php 1.3 removed

-1

5 removed + 1 modified, total 6 files

remove redundant files

----------

admin /admin

banner_statistics.php removed after 1.6

diff -N banner_statistics.php
--- /tmp/cvsAAAKEaar3 Sun Aug 15 20:20:30 2004
+++ /dev/null Sun Aug 15 20:20:29 2004
@@ -1,181 +0,0 @@

-<?php
-/*
- $Id$
-
- osCommerce, Open Source E-Commerce Solutions
- http://www.oscommerce.com
-
- Copyright (c) 2003 osCommerce
-
- Released under the GNU General Public License
-*/
-
- require('includes/application_top.php');
-
- $selected_box = 'tools';
-
- $type = (isset($HTTP_GET_VARS['type']) ? $HTTP_GET_VARS['type'] : '');
-
- $banner_extension = tep_banner_image_extension();
-
-// check if the graphs directory exists
- $dir_ok = false;
- if (function_exists('imagecreate') && tep_not_null($banner_extension)) {
- if (is_dir(DIR_WS_IMAGES . 'graphs')) {
- if (is_writeable(DIR_WS_IMAGES . 'graphs')) {
- $dir_ok = true;
- } else {
- $messageStack->add(ERROR_GRAPHS_DIRECTORY_NOT_WRITEABLE, 'error');
- }
- } else {
- $messageStack->add(ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST, 'error');
- }
- }
-
- $banner_query = tep_db_query("select banners_title from " . TABLE_BANNERS . " where banners_id = '" . (int)$HTTP_GET_VARS['bID'] . "'");
- $banner = tep_db_fetch_array($banner_query);
-
- $years_array = array();
- $years_query = tep_db_query("select distinct year(banners_history_date) as banner_year from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . (int)$HTTP_GET_VARS['bID'] . "'");
- while ($years = tep_db_fetch_array($years_query)) {
- $years_array[] = array('id' => $years['banner_year'],
- 'text' => $years['banner_year']);
- }
-
- $months_array = array();
- for ($i=1; $i<13; $i++) {
- $months_array[] = array('id' => $i,
- 'text' => strftime('%B', mktime(0,0,0,$i)));
- }
-
- $type_array = array(array('id' => 'daily',
- 'text' => STATISTICS_TYPE_DAILY),
- array('id' => 'monthly',
- 'text' => STATISTICS_TYPE_MONTHLY),
- array('id' => 'yearly',
- 'text' => STATISTICS_TYPE_YEARLY));
-?>
-<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-</head>
-<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
- <tr>
- <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr><?php echo tep_draw_form('year', FILENAME_BANNER_STATISTICS, '', 'get'); ?>
- <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
- <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '1', HEADING_IMAGE_HEIGHT); ?></td>
- <td class="main" align="right"><?php echo TITLE_TYPE . ' ' . tep_draw_pull_down_menu('type', $type_array, (tep_not_null($type) ? $type : 'daily'), 'onChange="this.form.submit();"'); ?><noscript><input type="submit" value="GO"></noscript><br>
-<?php
- switch ($type) {
- case 'yearly': break;
- case 'monthly':
- echo TITLE_YEAR . ' ' . tep_draw_pull_down_menu('year', $years_array, (isset($HTTP_GET_VARS['year']) ? $HTTP_GET_VARS['year'] : date('Y')), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
- break;
- default:
- case 'daily':
- echo TITLE_MONTH . ' ' . tep_draw_pull_down_menu('month', $months_array, (isset($HTTP_GET_VARS['month']) ? $HTTP_GET_VARS['month'] : date('n')), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript><br>' . TITLE_YEAR . ' ' . tep_draw_pull_down_menu('year', $years_array, (isset($HTTP_GET_VARS['year']) ? $HTTP_GET_VARS['year'] : date('Y')), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
- break;
- }
-?>
- </td>
- <?php echo tep_draw_hidden_field('page', $HTTP_GET_VARS['page']) . tep_draw_hidden_field('bID', $HTTP_GET_VARS['bID']); ?></form></tr>
- </table></td>
- </tr>
- <tr>
- <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
- </tr>
- <tr>
- <td align="center">
-<?php
- if (function_exists('imagecreate') && ($dir_ok == true) && tep_not_null($banner_extension)) {
- $banner_id = (int)$HTTP_GET_VARS['bID'];
-
- switch ($type) {
- case 'yearly':
- include(DIR_WS_INCLUDES . 'graphs/banner_yearly.php');
- echo tep_image(DIR_WS_IMAGES . 'graphs/banner_yearly-' . $banner_id . '.' . $banner_extension);
- break;
- case 'monthly':
- include(DIR_WS_INCLUDES . 'graphs/banner_monthly.php');
- echo tep_image(DIR_WS_IMAGES . 'graphs/banner_monthly-' . $banner_id . '.' . $banner_extension);
- break;
- default:
- case 'daily':
- include(DIR_WS_INCLUDES . 'graphs/banner_daily.php');
- echo tep_image(DIR_WS_IMAGES . 'graphs/banner_daily-' . $banner_id . '.' . $banner_extension);
- break;
- }
-?>
- <table border="0" width="600" cellspacing="0" cellpadding="2">
- <tr class="dataTableHeadingRow">
- <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_SOURCE; ?></td>
- <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_VIEWS; ?></td>
- <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_CLICKS; ?></td>
- </tr>
-<?php
- for ($i=0, $n=sizeof($stats); $i<$n; $i++) {
- echo ' <tr class="dataTableRow">' . "\n" .
- ' <td class="dataTableContent">' . $stats[$i][0] . '</td>' . "\n" .
- ' <td class="dataTableContent" align="right">' . number_format($stats[$i][1]) . '</td>' . "\n" .
- ' <td class="dataTableContent" align="right">' . number_format($stats[$i][2]) . '</td>' . "\n" .
- ' </tr>' . "\n";
- }
-?>
- </table>
-<?php
- } else {
- include(DIR_WS_FUNCTIONS . 'html_graphs.php');
-
- switch ($type) {
- case 'yearly':
- echo tep_banner_graph_yearly($HTTP_GET_VARS['bID']);
- break;
- case 'monthly':
- echo tep_banner_graph_monthly($HTTP_GET_VARS['bID']);
- break;
- default:
- case 'daily':
- echo tep_banner_graph_daily($HTTP_GET_VARS['bID']);
- break;
- }
- }
-?>
- </td>
- </tr>
- <tr>
- <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
- </tr>
- <tr>
- <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $HTTP_GET_VARS['bID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>
- </tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

----------

admin /admin /includes

filenames.php 1.5 -> 1.6

diff -u -r1.5 -r1.6
--- filenames.php 2004/07/22 23:13:54 1.5
+++ filenames.php 2004/08/15 18:20:30 1.6
@@ -13,7 +13,6 @@

// define the filenames used in the project
define('FILENAME_BACKUP', 'backup.php');
define('FILENAME_BANNER_MANAGER', 'banner_manager.php');

- define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php');

define('FILENAME_CACHE', 'cache.php');
define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php');
define('FILENAME_CATEGORIES', 'categories.php');

----------

admin /admin /includes /functions

html_graphs.php removed after 1.7

diff -N html_graphs.php
--- /tmp/cvsAAA_La4r3 Sun Aug 15 20:20:30 2004
+++ /dev/null Sun Aug 15 20:20:29 2004
@@ -1,568 +0,0 @@

-<?php
-/*
- $Id$
-
- osCommerce, Open Source E-Commerce Solutions
- http://www.oscommerce.com
-
- Copyright (c) 2002 osCommerce
-
- Released under the GNU General Public License
-
- HTML_Graphs (v1.5 1998/11/05 06:15:52) by Phil Davis, http://www.pobox.com/~pdavis/
-*/
-
-////
-// calls routines to initialize defaults, set up table
-// print data, and close table.
- function html_graph($names, $values, $bars, $vals, $dvalues = 0, $dbars = 0) {
-// set the error level on entry and exit so as not to interfear with anyone elses error checking.
- $er = error_reporting(1);
-
-// set the values that the user didn't
- $vals = hv_graph_defaults($vals);
- $html_graph_string = start_graph($vals, $names);
-
- if ($vals['type'] == 0) {
- $html_graph_string .= horizontal_graph($names, $values, $bars, $vals);
- } elseif ($vals['type'] == 1) {
- $html_graph_string .= vertical_graph($names, $values, $bars, $vals);
- } elseif ($vals['type'] == 2) {
- $html_graph_string .= double_horizontal_graph($names, $values, $bars, $vals, $dvalues, $dbars);
- } elseif ($vals['type'] == 3) {
- $html_graph_string .= double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars);
- }
-
- $html_graph_string .= end_graph();
-
-// Set the error level back to where it was.
- error_reporting($er);
-
- return $html_graph_string;
- }
-
-////
-// sets up the $vals array by initializing all values to null. Used to avoid
-// warnings from error_reporting being set high. This routine only needs to be
-// called if you are worried about using uninitialized variables.
- function html_graph_init() {
- $vals = array('vlabel'=>'',
- 'hlabel'=>'',
- 'type'=>'',
- 'cellpadding'=>'',
- 'cellspacing'=>'',
- 'border'=>'',
- 'width'=>'',
- 'background'=>'',
- 'vfcolor'=>'',
- 'hfcolor'=>'',
- 'vbgcolor'=>'',
- 'hbgcolor'=>'',
- 'vfstyle'=>'',
- 'hfstyle'=>'',
- 'noshowvals'=>'',
- 'scale'=>'',
- 'namebgcolor'=>'',
- 'valuebgcolor'=>'',
- 'namefcolor'=>'',
- 'valuefcolor'=>'',
- 'namefstyle'=>'',
- 'valuefstyle'=>'',
- 'doublefcolor'=>'');
-
- return($vals);
- }
-
-////
-// prints out the table header and graph labels
- function start_graph($vals, $names) {
- $start_graph_string = '<table cellpadding="' . $vals['cellpadding'] . '" cellspacing="' . $vals['cellspacing'] . '" border="' . $vals['border'] . '"';
-
- if ($vals['width'] != 0) $start_graph_string .= ' width="' . $vals['width'] . '"';
- if ($vals['background']) $start_graph_string .= ' background="' . $vals['background'] . '"';
-
- $start_graph_string .= '>' . "\n";
-
- if ( ($vals['vlabel']) || ($vals['hlabel']) ) {
- if ( ($vals['type'] == 0) || ($vals['type'] == 2) ) {
-// horizontal chart
- $rowspan = sizeof($names) + 1;
- $colspan = 3;
- } elseif ( ($vals['type'] == 1) || ($vals['type'] == 3) ) {
-// vertical chart
- $rowspan = 3;
- $colspan = sizeof($names) + 1;
- }
-
- $start_graph_string .= ' <tr>' . "\n" .
- ' <td align="center" valign="center"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $start_graph_string .= ' bgcolor="' . $vals['hbgcolor'] . '"';
-
- $start_graph_string .= ' colspan="' . $colspan . '"><font color="' . $vals['hfcolor'] . '" style="' . $vals['hfstyle'] . '"><b>' . $vals['hlabel'] . '</b></font></td>' . "\n" .
- ' </tr>' . "\n" .
- ' <tr>' . "\n" .
- ' <td align="center" valign="center"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $start_graph_string .= ' bgcolor="' . $vals['vbgcolor'] . '"';
-
- $start_graph_string .= ' rowspan="' . $rowspan . '"><font color="' . $vals['vfcolor'] . '" style="' . $vals['vfstyle'] . '"><b>' . $vals['vlabel'] . '</b></font></td>' . "\n" .
- ' </tr>' . "\n";
- }
-
- return $start_graph_string;
- }
-
-////
-// prints out the table footer
- function end_graph() {
- return '</table>' . "\n";
- }
-
-////
-// sets the default values for the $vals array
- function hv_graph_defaults($vals) {
- if (!$vals['vfcolor']) $vals['vfcolor'] = '#000000';
- if (!$vals['hfcolor']) $vals['hfcolor'] = '#000000';
- if (!$vals['vbgcolor']) $vals['vbgcolor'] = '#FFFFFF';
- if (!$vals['hbgcolor']) $vals['hbgcolor'] = '#FFFFFF';
- if (!$vals['cellpadding']) $vals['cellpadding'] = '0';
- if (!$vals['cellspacing']) $vals['cellspacing'] = '0';
- if (!$vals['border']) $vals['border'] = '0';
- if (!$vals['scale']) $vals['scale'] = '1';
- if (!$vals['namebgcolor']) $vals['namebgcolor'] = '#FFFFFF';
- if (!$vals['valuebgcolor']) $vals['valuebgcolor'] = '#FFFFFF';
- if (!$vals['namefcolor']) $vals['namefcolor'] = '#000000';
- if (!$vals['valuefcolor']) $vals['valuefcolor'] = '#000000';
- if (!$vals['doublefcolor']) $vals['doublefcolor'] = '#886666';
-
- return $vals;
- }
-
-////
-// prints out the actual data for the horizontal chart
- function horizontal_graph($names, $values, $bars, $vals) {
- $horizontal_graph_string = '';
- for($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $horizontal_graph_string .= ' <tr>' . "\n" .
- ' <td align="right"';
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $horizontal_graph_string .= ' bgcolor="' . $vals['namebgcolor'] . '"';
-
- $horizontal_graph_string .= '><font size="-1" color="' . $vals['namefcolor'] . '" style="' . $vals['namefstyle'] . '">' . $names[$i] . '</font></td>' . "\n" .
- ' <td';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $horizontal_graph_string .= ' bgcolor="' . $vals['valuebgcolor'] . '"';
-
- $horizontal_graph_string .= '>';
-
-// decide if the value in bar is a color code or image.
- if (ereg('^#', $bars[$i])) {
- $horizontal_graph_string .= '<table cellpadding="0" cellspacing="0" bgcolor="' . $bars[$i] . '" width="' . ($values[$i] * $vals['scale']) . '">' . "\n" .
- ' <tr>' . "\n" .
- ' <td>&nbsp;</td>' . "\n" .
- ' </tr>' . "\n" .
- '</table>';
- } else {
- $horizontal_graph_string .= '<img src="' . $bars[$i] . '" height="10" width="' . ($values[$i] * $vals['scale']) . '">';
- }
-
- if (!$vals['noshowvals']) {
- $horizontal_graph_string .= '<i><font size="-2" color="' . $vals['valuefcolor'] . '" style="' . $vals['valuefstyle'] . '">(' . $values[$i] . ')</font></i>';
- }
-
- $horizontal_graph_string .= '</td>' . "\n" .
- ' </tr>' . "\n";
- } // endfor
-
- return $horizontal_graph_string;
- }
-
-////
-// prints out the actual data for the vertical chart
- function vertical_graph($names, $values, $bars, $vals) {
- $vertical_graph_string = ' <tr>' . "\n";
-
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $vertical_graph_string .= ' <td align="center" valign="bottom"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $vertical_graph_string .= ' bgcolor="' . $vals['valuebgcolor'] . '"';
-
- $vertical_graph_string .= '>';
-
- if (!$vals['noshowvals']) {
- $vertical_graph_string .= '<i><font size="-2" color="' . $vals['valuefcolor'] . '" style="' . $vals['valuefstyle'] . '">(' . $values[$i] . ')</font></i><br>';
- }
-
- $vertical_graph_string .= '<img src="' . $bars[$i] . '" width="5" height="';
-
-// values of zero are displayed wrong because a image height of zero
-// gives a strange behavior in Netscape. For this reason the height
-// is set at 1 pixel if the value is zero. - Jan Diepens
- if ($values[$i] != 0) {
- $vertical_graph_string .= $values[$i] * $vals['scale'];
- } else {
- $vertical_graph_string .= '1';
- }
-
- $vertical_graph_string .= '"></td>' . "\n";
- } // endfor
-
- $vertical_graph_string .= ' </tr>' . "\n" .
- ' <tr>' . "\n";
-
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $vertical_graph_string .= ' <td align="center" valign="top"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $vertical_graph_string .= ' bgcolor="' . $vals['namebgcolor'] . '"';
-
- $vertical_graph_string .= '><font size="-1" color="' . $vals['namefcolor'] . '" style="' . $vals['namefstyle'] . '">' . $names[$i] . '</font></td>' . "\n";
- } // endfor
-
- $vertical_graph_string .= ' </tr>' . "\n";
-
- return $vertical_graph_string;
- }
-
-////
-// prints out the actual data for the double horizontal chart
- function double_horizontal_graph($names, $values, $bars, $vals, $dvalues, $dbars) {
- $double_horizontal_graph_string = '';
- for($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $double_horizontal_graph_string .= ' <tr>' . "\n" .
- ' <td align="right"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $double_horizontal_graph_string .= ' bgcolor="' . $vals['namebgcolor'] . '"';
-
- $double_horizontal_graph_string .= '><font size="-1" color="' . $vals['namefcolor'] . '" style="' . $vals['namefstyle'] . '">' . $names[$i] . '</font></td>' . "\n" .
- ' <td';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $double_horizontal_graph_string .= ' bgcolor="' . $vals['valuebgcolor'] . '"';
-
- $double_horizontal_graph_string .= '><table align="left" cellpadding="0" cellspacing="0" width="' . ($dvalues[$i] * $vals['scale']) . '">' . "\n" .
- ' <tr>' . "\n" .
- ' <td';
-
-// set background to a color if it starts with # or an image otherwise.
- if (ereg('^#', $dbars[$i])) {
- $double_horizontal_graph_string .= ' bgcolor="' . $dbars[$i] . '">';
- } else {
- $double_horizontal_graph_string .= ' background="' . $dbars[$i] . '">';
- }
-
- $double_horizontal_graph_string .= '<nowrap>';
-
-// decide if the value in bar is a color code or image.
- if (ereg('^#', $bars[$i])) {
- $double_horizontal_graph_string .= '<table align="left" cellpadding="0" cellspacing="0" bgcolor="' . $bars[$i] . '" width="' . ($values[$i] * $vals['scale']) . '">' . "\n" .
- ' <tr>' . "\n" .
- ' <td>&nbsp;</td>' . "\n" .
- ' </tr>' . "\n" .
- '</table>';
- } else {
- $double_horizontal_graph_string .= '<img src="' . $bars[$i] . '" height="10" width="' . ($values[$i] * $vals['scale']) . '">';
- }
-
- if (!$vals['noshowvals']) {
- $double_horizontal_graph_string .= '<i><font size="-3" color="' . $vals['valuefcolor'] . '" style="' . $vals['valuefstyle'] . '">(' . $values[$i] . ')</font></i>';
- }
-
- $double_horizontal_graph_string .= '</nowrap></td>' . "\n" .
- ' </tr>' . "\n" .
- ' </table>';
-
- if (!$vals['noshowvals']) {
- $double_horizontal_graph_string .= '<i><font size="-3" color="' . $vals['doublefcolor'] . '" style="' . $vals['valuefstyle'] . '">(' . $dvalues[$i] . ')</font></i>';
- }
-
- $double_horizontal_graph_string .= '</td>' . "\n" .
- ' </tr>' . "\n";
- } // endfor
-
- return $double_horizontal_graph_string;
- }
-
-////
-// prints out the actual data for the double vertical chart
- function double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars) {
- $double_vertical_graph_string = ' <tr>' . "\n";
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $double_vertical_graph_string .= ' <td align="center" valign="bottom"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $double_vertical_graph_string .= ' bgcolor="' . $vals['valuebgcolor'] . '"';
-
- $double_vertical_graph_string .= '><table>' . "\n" .
- ' <tr>' . "\n" .
- ' <td align="center" valign="bottom"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $double_vertical_graph_string .= ' bgcolor="' . $vals['valuebgcolor'] . '"';
-
- $double_vertical_graph_string .= '>';
-
- if (!$vals['noshowvals'] && $values[$i]) {
- $double_vertical_graph_string .= '<i><font size="-2" color="' . $vals['valuefcolor'] . '" style="' . $vals['valuefstyle'] . '">(' . $values[$i] . ')</font></i><br>';
- }
-
- $double_vertical_graph_string .= '<img src="' . $bars[$i] . '" width="10" height="';
-
- if ($values[$i] != 0) {
- $double_vertical_graph_string .= $values[$i] * $vals['scale'];
- } else {
- $double_vertical_graph_string .= '1';
- }
-
- $double_vertical_graph_string .= '"></td>' . "\n" .
- ' <td align="center" valign="bottom"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $double_vertical_graph_string .= ' bgcolor="' . $vals['valuebgcolor'] . '"';
-
- $double_vertical_graph_string .= '>';
-
- if (!$vals['noshowvals'] && $dvalues[$i]) {
- $double_vertical_graph_string .= '<i><font size="-2" color="' . $vals['doublefcolor'] . '" style="' . $vals['valuefstyle'] . '">(' . $dvalues[$i] . ')</font></i><br>';
- }
-
- $double_vertical_graph_string .= '<img src="' . $dbars[$i] . '" width="10" height="';
-
- if ($dvalues[$i] != 0) {
- $double_vertical_graph_string .= $dvalues[$i] * $vals['scale'];
- } else {
- $double_vertical_graph_string .= '1';
- }
-
- $double_vertical_graph_string .= '"></td>' . "\n" .
- ' </tr>' . "\n" .
- ' </table></td>' . "\n";
- } // endfor
-
- $double_vertical_graph_string .= ' </tr>' . "\n" .
- ' <tr>' . "\n";
-
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $double_vertical_graph_string .= ' <td align="center" valign="top"';
-
-// if a background was choosen don't print cell BGCOLOR
- if (!$vals['background']) $double_vertical_graph_string .= ' bgcolor="' . $vals['namebgcolor'] . '"';
-
- $double_vertical_graph_string .= '><font size="-1" color="' . $vals['namefcolor'] . '" style="' . $vals['namefstyle'] . '">' . $names[$i] . '</font></td>' . "\n";
- } // endfor
-
- $double_vertical_graph_string .= ' </tr>' . "\n";
-
- return $double_vertical_graph_string;
- }
-
-////
-// draws a double vertical bar graph for the banner views vs clicks statistics
- function tep_banner_graph_infoBox($banner_id, $days) {
- $names = array();
- $values = array();
- $dvalues = array();
-
- $banner_stats_query = tep_db_query("select dayofmonth(banners_history_date) as name, banners_shown as value, banners_clicked as dvalue from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . $banner_id . "' and to_days(now()) - to_days(banners_history_date) < " . $days . " order by banners_history_date");
- while ($banner_stats = tep_db_fetch_array($banner_stats_query)) {
- $names[] = $banner_stats['name'];
- $values[] = $banner_stats['value'];
- $dvalues[] = $banner_stats['dvalue'];
- }
- $largest = @max($values);
-
- $bars = array();
- $dbars = array();
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $bars[$i] = DIR_WS_IMAGES . 'graph_hbar_blue.gif';
- $dbars[$i] = DIR_WS_IMAGES . 'graph_hbar_red.gif';
- }
-
- $graph_vals = @array('vlabel'=>TEXT_BANNERS_DATA,
- 'hlabel'=>TEXT_BANNERS_LAST_3_DAYS,
- 'type'=>'3',
- 'cellpadding'=>'',
- 'cellspacing'=>'1',
- 'border'=>'',
- 'width'=>'',
- 'vfcolor'=>'#ffffff',
- 'hfcolor'=>'#ffffff',
- 'vbgcolor'=>'#81a2b6',
- 'hbgcolor'=>'#81a2b6',
- 'vfstyle'=>'Verdana, Arial, Helvetica',
- 'hfstyle'=>'Verdana, Arial, Helvetica',
- 'scale'=>100/$largest,
- 'namebgcolor'=>'#f3f5fe',
- 'valuebgcolor'=>'#f3f5fe',
- 'namefcolor'=>'',
- 'valuefcolor'=>'#0000d0',
- 'namefstyle'=>'Verdana, Arial, Helvetica',
- 'valuefstyle'=>'',
- 'doublefcolor'=>'#ff7339');
-
- return html_graph($names, $values, $bars, $graph_vals, $dvalues, $dbars);
- }
-
-////
-// draws a double vertical bar graph for the banner views vs clicks statistics
- function tep_banner_graph_yearly($banner_id) {
- global $banner, $HTTP_GET_VARS;
-
- $banner_stats_query = tep_db_query("select year(banners_history_date) as year, sum(banners_shown) as value, sum(banners_clicked) as dvalue from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . $banner_id . "' group by year(banners_history_date)");
- while ($banner_stats = tep_db_fetch_array($banner_stats_query)) {
- $names[] = $banner_stats['year'];
- $values[] = (($banner_stats['value']) ? $banner_stats['value'] : '0');
- $dvalues[] = (($banner_stats['dvalue']) ? $banner_stats['dvalue'] : '0');
- }
-
- $largest = @max($values);
-
- $bars = array();
- $dbars = array();
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $bars[$i] = DIR_WS_IMAGES . 'graph_hbar_blue.gif';
- $dbars[$i] = DIR_WS_IMAGES . 'graph_hbar_red.gif';
- }
-
- $graph_vals = @array('vlabel'=>TEXT_BANNERS_DATA,
- 'hlabel'=>sprintf(TEXT_BANNERS_YEARLY_STATISTICS, $banner['banners_title']),
- 'type'=>'3',
- 'cellpadding'=>'',
- 'cellspacing'=>'1',
- 'border'=>'',
- 'width'=>'',
- 'vfcolor'=>'#ffffff',
- 'hfcolor'=>'#ffffff',
- 'vbgcolor'=>'#81a2b6',
- 'hbgcolor'=>'#81a2b6',
- 'vfstyle'=>'Verdana, Arial, Helvetica',
- 'hfstyle'=>'Verdana, Arial, Helvetica',
- 'scale'=>100/$largest,
- 'namebgcolor'=>'#f3f5fe',
- 'valuebgcolor'=>'#f3f5fe',
- 'namefcolor'=>'',
- 'valuefcolor'=>'#0000d0',
- 'namefstyle'=>'Verdana, Arial, Helvetica',
- 'valuefstyle'=>'',
- 'doublefcolor'=>'#ff7339');
-
- return html_graph($names, $values, $bars, $graph_vals, $dvalues, $dbars);
- }
-
-////
-// draws a double vertical bar graph for the banner views vs clicks statistics
- function tep_banner_graph_monthly($banner_id) {
- global $banner, $HTTP_GET_VARS;
-
- $year = (($HTTP_GET_VARS['year']) ? $HTTP_GET_VARS['year'] : date('Y'));
-
- for ($i=1; $i<13; $i++) {
- $names[] = strftime('%b', mktime(0,0,0,$i));
- $values[] = '0';
- $dvalues[] = '0';
- }
-
- $banner_stats_query = tep_db_query("select month(banners_history_date) as banner_month, sum(banners_shown) as value, sum(banners_clicked) as dvalue from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . $banner_id . "' and year(banners_history_date) = '" . $year . "' group by month(banners_history_date)");
- while ($banner_stats = tep_db_fetch_array($banner_stats_query)) {
- $names[($banner_stats['banner_month']-1)] = strftime('%b', mktime(0,0,0,$banner_stats['banner_month']));
- $values[($banner_stats['banner_month']-1)] = (($banner_stats['value']) ? $banner_stats['value'] : '0');
- $dvalues[($banner_stats['banner_month']-1)] = (($banner_stats['dvalue']) ? $banner_stats['dvalue'] : '0');
- }
-
- $largest = @max($values);
-
- $bars = array();
- $dbars = array();
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $bars[$i] = DIR_WS_IMAGES . 'graph_hbar_blue.gif';
- $dbars[$i] = DIR_WS_IMAGES . 'graph_hbar_red.gif';
- }
-
- $graph_vals = @array('vlabel'=>TEXT_BANNERS_DATA,
- 'hlabel'=>sprintf(TEXT_BANNERS_MONTHLY_STATISTICS, $banner['banners_title'], date('Y')),
- 'type'=>'3',
- 'cellpadding'=>'',
- 'cellspacing'=>'1',
- 'border'=>'',
- 'width'=>'',
- 'vfcolor'=>'#ffffff',
- 'hfcolor'=>'#ffffff',
- 'vbgcolor'=>'#81a2b6',
- 'hbgcolor'=>'#81a2b6',
- 'vfstyle'=>'Verdana, Arial, Helvetica',
- 'hfstyle'=>'Verdana, Arial, Helvetica',
- 'scale'=>100/$largest,
- 'namebgcolor'=>'#f3f5fe',
- 'valuebgcolor'=>'#f3f5fe',
- 'namefcolor'=>'',
- 'valuefcolor'=>'#0000d0',
- 'namefstyle'=>'Verdana, Arial, Helvetica',
- 'valuefstyle'=>'',
- 'doublefcolor'=>'#ff7339');
-
- return html_graph($names, $values, $bars, $graph_vals, $dvalues, $dbars);
- }
-
-////
-// draws a double vertical bar graph for the banner views vs clicks statistics
- function tep_banner_graph_daily($banner_id) {
- global $banner, $HTTP_GET_VARS;
-
- $year = (isset($HTTP_GET_VARS['year']) ? $HTTP_GET_VARS['year'] : date('Y'));
- $month = (isset($HTTP_GET_VARS['month']) ? $HTTP_GET_VARS['month'] : date('n'));
-
- $days = (date('t', mktime(0,0,0,$month))+1);
- $stats = array();
- for ($i=1; $i<$days; $i++) {
- $names[] = $i;
- $values[] = '0';
- $dvalues[] = '0';
- }
-
- $banner_stats_query = tep_db_query("select dayofmonth(banners_history_date) as banner_day, banners_shown as value, banners_clicked as dvalue from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . $banner_id . "' and month(banners_history_date) = '" . $month . "' and year(banners_history_date) = '" . $year . "'");
- while ($banner_stats = tep_db_fetch_array($banner_stats_query)) {
- $names[($banner_stats['banner_day']-1)] = $banner_stats['banner_day'];
- $values[($banner_stats['banner_day']-1)] = (($banner_stats['value']) ? $banner_stats['value'] : '0');
- $dvalues[($banner_stats['banner_day']-1)] = (($banner_stats['dvalue']) ? $banner_stats['dvalue'] : '0');
- }
-
- $largest = @max($values);
-
- $bars = array();
- $dbars = array();
- for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
- $bars[$i] = DIR_WS_IMAGES . 'graph_hbar_blue.gif';
- $dbars[$i] = DIR_WS_IMAGES . 'graph_hbar_red.gif';
- }
-
- $graph_vals = @array('vlabel'=>TEXT_BANNERS_DATA,
- 'hlabel'=>sprintf(TEXT_BANNERS_DAILY_STATISTICS, $banner['banners_title'], strftime('%B', mktime(0,0,0,$month)), $year),
- 'type'=>'3',
- 'cellpadding'=>'',
- 'cellspacing'=>'1',
- 'border'=>'',
- 'width'=>'',
- 'vfcolor'=>'#ffffff',
- 'hfcolor'=>'#ffffff',
- 'vbgcolor'=>'#81a2b6',
- 'hbgcolor'=>'#81a2b6',
- 'vfstyle'=>'Verdana, Arial, Helvetica',
- 'hfstyle'=>'Verdana, Arial, Helvetica',
- 'scale'=>100/$largest,
- 'namebgcolor'=>'#f3f5fe',
- 'valuebgcolor'=>'#f3f5fe',
- 'namefcolor'=>'',
- 'valuefcolor'=>'#0000d0',
- 'namefstyle'=>'Verdana, Arial, Helvetica',
- 'valuefstyle'=>'',
- 'doublefcolor'=>'#ff7339');
-
- return html_graph($names, $values, $bars, $graph_vals, $dvalues, $dbars);
- }
-?>

----------

admin /admin /includes /languages /english

banner_statistics.php removed after 1.1

diff -N banner_statistics.php
--- /tmp/cvsAAA.Pays3 Sun Aug 15 20:20:31 2004
+++ /dev/null Sun Aug 15 20:20:29 2004
@@ -1,34 +0,0 @@

-<?php
-/*
- $Id$
-
- osCommerce, Open Source E-Commerce Solutions
- http://www.oscommerce.com
-
- Copyright (c) 2002 osCommerce
-
- Released under the GNU General Public License
-*/
-
-define('HEADING_TITLE', 'Banner Statistics');
-
-define('TABLE_HEADING_SOURCE', 'Source');
-define('TABLE_HEADING_VIEWS', 'Views');
-define('TABLE_HEADING_CLICKS', 'Clicks');
-
-define('TEXT_BANNERS_DATA', 'D<br>a<br>t<br>a');
-define('TEXT_BANNERS_DAILY_STATISTICS', '%s Daily Statistics For %s %s');
-define('TEXT_BANNERS_MONTHLY_STATISTICS', '%s Monthly Statistics For %s');
-define('TEXT_BANNERS_YEARLY_STATISTICS', '%s Yearly Statistics');
-
-define('STATISTICS_TYPE_DAILY', 'Daily');
-define('STATISTICS_TYPE_MONTHLY', 'Monthly');
-define('STATISTICS_TYPE_YEARLY', 'Yearly');
-
-define('TITLE_TYPE', 'Type:');
-define('TITLE_YEAR', 'Year:');
-define('TITLE_MONTH', 'Month:');
-
-define('ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST', 'Error: Graphs directory does not exist. Please create a \'graphs\' directory inside \'images\'.');
-define('ERROR_GRAPHS_DIRECTORY_NOT_WRITEABLE', 'Error: Graphs directory is not writeable.');
-?>

\ No newline at end of file

----------

admin /admin /includes /languages /espanol

banner_statistics.php removed after 1.2

diff -N banner_statistics.php
--- /tmp/cvsAAAKTaWs3 Sun Aug 15 20:20:31 2004
+++ /dev/null Sun Aug 15 20:20:29 2004
@@ -1,34 +0,0 @@

-<?php
-/*
- $Id$
-
- osCommerce, Open Source E-Commerce Solutions
- http://www.oscommerce.com
-
- Copyright (c) 2003 osCommerce
-
- Released under the GNU General Public License
-*/
-
-define('HEADING_TITLE', 'Estadisticas de Banners');
-
-define('TABLE_HEADING_SOURCE', 'Fecha');
-define('TABLE_HEADING_VIEWS', 'Vistas');
-define('TABLE_HEADING_CLICKS', 'Clicks');
-
-define('TEXT_BANNERS_DATA', 'D<br>a<br>t<br>o<br>s');
-define('TEXT_BANNERS_DAILY_STATISTICS', '%s Estadisticas Diarias de %s %s');
-define('TEXT_BANNERS_MONTHLY_STATISTICS', '%s Estadisticas Mensuales de %s');
-define('TEXT_BANNERS_YEARLY_STATISTICS', '%s Estadisticas Anuales');
-
-define('STATISTICS_TYPE_DAILY', 'Diarias');
-define('STATISTICS_TYPE_MONTHLY', 'Mensuales');
-define('STATISTICS_TYPE_YEARLY', 'Anuales');
-
-define('TITLE_TYPE', 'Tipo:');
-define('TITLE_YEAR', 'A&ntilde;o:');
-define('TITLE_MONTH', 'Mes:');
-
-define('ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST', 'Error: No existe el directorio de gr&aacute;ficos. Por favor cree un directorio llamado \'graphs\' dentro de \'images\'.');
-define('ERROR_GRAPHS_DIRECTORY_NOT_WRITEABLE', 'Error: No se puede escribir en el directorio de gr&aacute;ficos.');
-?>

\ No newline at end of file

----------

admin /admin /includes /languages /german

banner_statistics.php removed after 1.3

diff -N banner_statistics.php
--- /tmp/cvsAAAiXait3 Sun Aug 15 20:20:31 2004
+++ /dev/null Sun Aug 15 20:20:29 2004
@@ -1,34 +0,0 @@

-<?php
-/*
- $Id$
-
- osCommerce, Open Source E-Commerce Solutions
- http://www.oscommerce.com
-
- Copyright (c) 2003 osCommerce
-
- Released under the GNU General Public License
-*/
-
-define('HEADING_TITLE', 'Bannerstatistik');
-
-define('TABLE_HEADING_SOURCE', 'Grundlage');
-define('TABLE_HEADING_VIEWS', 'Anzeigen');
-define('TABLE_HEADING_CLICKS', 'Klicks');
-
-define('TEXT_BANNERS_DATA', 'D<br>a<br>t<br>a');
-define('TEXT_BANNERS_DAILY_STATISTICS', '%s Tagesstatistik für %s %s');
-define('TEXT_BANNERS_MONTHLY_STATISTICS', '%s Monatsstatistik für %s');
-define('TEXT_BANNERS_YEARLY_STATISTICS', '%s Jahresstatistik');
-
-define('STATISTICS_TYPE_DAILY', 't&auml;glich');
-define('STATISTICS_TYPE_MONTHLY', 'monatlich');
-define('STATISTICS_TYPE_YEARLY', 'j&auml;hrlich');
-
-define('TITLE_TYPE', 'Typ:');
-define('TITLE_YEAR', 'Jahr:');
-define('TITLE_MONTH', 'Monat:');
-
-define('ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST', 'Fehler: Das Verzeichnis \'graphs\' ist nicht vorhanden! Bitte erstellen Sie ein Verzeichnis \'graphs\' im Verzeichnis \'images\'.');
-define('ERROR_GRAPHS_DIRECTORY_NOT_WRITEABLE', 'Fehler: Das Verzeichnis \'graphs\' ist schreibgesch&uuml;tzt!');
-?>

\ No newline at end of file
CVSspam 0.2.9

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285