phpOpenTracker/phpOpenTracker/docs/examples/simple_report index.php,1.25.2.1,1.25.2.2

Sebastian Bergmann <[email protected]>
Newsgroups gmane.comp.web.phpopentracker.cvs
Message-ID <[email protected]>
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/docs/examples/simple_report
In directory sc8-pr-cvs1:/tmp/cvs-serv20619/phpOpenTracker/docs/examples/simple_report

Modified Files:
      Tag: phpOpenTracker_1
	index.php 
Log Message:
Add client id to client name mapping configuration.

Index: index.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/docs/examples/simple_report/index.php,v
retrieving revision 1.25.2.1
retrieving revision 1.25.2.2
diff -C2 -d -r1.25.2.1 -r1.25.2.2
*** index.php	22 Dec 2003 03:36:29 -0000	1.25.2.1
--- index.php	31 Dec 2003 10:05:13 -0000	1.25.2.2
***************
*** 15,23 ****
  //
  
- // Map client IDs to client names
- $clients = array(
-   1 => $_SERVER['HTTP_HOST']
- );
- 
  // Display Top <$limit> items
  $limit = 10;
--- 15,18 ----
***************
*** 172,176 ****
  
            array(
!             $clients[$clientID],
              $clientID,
  
--- 167,171 ----
  
            array(
!             $config['clients'][$clientID],
              $clientID,
  
***************
*** 229,233 ****
      $visitors = array();
  
!     foreach ($clients as $clientID => $client) {
        $resultSet = phpOpenTracker::get(
          array(
--- 224,228 ----
      $visitors = array();
  
!     foreach ($config['clients'] as $clientID => $client) {
        $resultSet = phpOpenTracker::get(
          array(
***************
*** 654,658 ****
    array(
      $content->parse(),
!     $clients[$clientID],
      PHPOPENTRACKER_VERSION
    )
--- 649,653 ----
    array(
      $content->parse(),
!     $config['clients'][$clientID],
      PHPOPENTRACKER_VERSION
    )




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.