Changeset 1538 for trunk/admin/intro.php


Ignore:
Timestamp:
Aug 16, 2006, 6:30:35 AM (18 years ago)
Author:
rvelices
Message:

added number of tags, image-tag associations and image-category association
on the main admin page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/intro.php

    r1226 r1538  
    5656    $versions = array('current' => PHPWG_VERSION);
    5757    $lines = @file('http://www.phpwebgallery.net/latest_version');
    58    
     58
    5959    // if the current version is a BSF (development branch) build, we check
    6060    // the first line, for stable versions, we check the second line
     
    148148;';
    149149list($nb_physical) = mysql_fetch_row(pwg_query($query));
     150
     151$query = '
     152SELECT COUNT(*)
     153  FROM '.IMAGE_CATEGORY_TABLE.'
     154;';
     155list($nb_image_category) = mysql_fetch_row(pwg_query($query));
     156
     157$query = '
     158SELECT COUNT(*)
     159  FROM '.TAGS_TABLE.'
     160;';
     161list($nb_tags) = mysql_fetch_row(pwg_query($query));
     162
     163$query = '
     164SELECT COUNT(*)
     165  FROM '.IMAGE_TAG_TABLE.'
     166;';
     167list($nb_image_tag) = mysql_fetch_row(pwg_query($query));
    150168
    151169$query = '
     
    181199        $nb_virtual
    182200        ),
     201    'DB_IMAGE_CATEGORY' =>sprintf(l10n('%d associations'), $nb_image_category),
     202    'DB_TAGS' => sprintf(l10n('%d tags'), $nb_tags),
     203    'DB_IMAGE_TAG' => sprintf(l10n('%d associations'), $nb_image_tag),
    183204    'DB_USERS' => sprintf(l10n('%d users'), $nb_users),
    184205    'DB_GROUPS' => sprintf(l10n('%d groups'), $nb_groups),
Note: See TracChangeset for help on using the changeset viewer.