[TEP-COMMIT] [CVS catalog] remove the counter file (now a service module)

anonymous-OfajU3CKLf1/[email protected] 13 Apr 2004 08:07:46 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in catalog/catalog/includes on MAIN

counter.php 1.6 removed

remove the counter file (now a service module)

----------

catalog /catalog /includes

counter.php removed after 1.6

diff -N counter.php
--- /tmp/cvsAAAxGaOta Tue Apr 13 10:07:44 2004
+++ /dev/null Tue Apr 13 10:07:43 2004
@@ -1,42 +0,0 @@

-<?php
-/*
- $Id$
-
- osCommerce, Open Source E-Commerce Solutions
- http://www.oscommerce.com
-
- Copyright (c) 2004 osCommerce
-
- Released under the GNU General Public License
-*/
-
- $Qcounter = $osC_Database->query('select startdate, counter from :table_counter');
- $Qcounter->bindRaw(':table_counter', TABLE_COUNTER);
- $Qcounter->execute();
-
- if ($Qcounter->numberOfRows()) {
- $counter_startdate = $Qcounter->value('startdate');
- $counter_now = $Qcounter->valueInt('counter') + 1;
-
- $Qcounterupdate = $osC_Database->query('update :table_counter set counter = :counter');
- $Qcounterupdate->bindRaw(':table_counter', TABLE_COUNTER);
- $Qcounterupdate->bindInt(':counter', $counter_now);
- $Qcounterupdate->execute();
-
- $Qcounterupdate->freeResult();
- } else {
- $counter_startdate = date('Ymd');
- $counter_now = 1;
-
- $Qcounterupdate = $osC_Database->query('insert into :table_counter (startdate, counter) values (:start_date, 1)');
- $Qcounterupdate->bindRaw(':table_counter', TABLE_COUNTER);
- $Qcounterupdate->bindValue(':start_date', $counter_startdate);
- $Qcounterupdate->execute();
-
- $Qcounterupdate->freeResult();
- }
-
- $Qcounter->freeResult();
-
- $counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));
-?>
CVSspam 0.2.8

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click