Changeset 65 for www


Ignore:
Timestamp:
Apr 4, 2008, 8:16:56 AM (17 years ago)
Author:
george
Message:

Implicitní nastavení parametrů zobrazování aktualit podle configuračního souboru.

Location:
www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • www/config.sample.php

    r49 r65  
    2222    'WebcamPassword' => '',
    2323    'WebcamRefresh' => 5,
    24   ),
     24    'News' => array(
     25      'DaysAgo' => 30,
     26      'Count' => 5,
     27    ),      ),
    2528);
    2629
  • www/index.php

    r64 r65  
    221221while($NewsCategory = $DbResult->fetch_array())
    222222{
    223   $NewsSetting[] = array('CategoryId' => $NewsCategory['id'], 'Index' => $I, 'Enabled' => 1, 'ItemCount' => 5, 'DaysAgo' => 14);
     223  $NewsSetting[] = array('CategoryId' => $NewsCategory['id'], 'Index' => $I, 'Enabled' => 1, 'ItemCount' => $Config['Web']['News']['Count'], 'DaysAgo' => $Config['Web']['News']['DaysAgo']);
    224224  $I++;
    225225}
Note: See TracChangeset for help on using the changeset viewer.