Changeset 1078 for trunk


Ignore:
Timestamp:
Mar 14, 2006, 12:27:34 AM (19 years ago)
Author:
rub
Message:

Step 1 improvement issue 0000127:

o Add field enabled_high of table #_user_infos
o Add $confnewuser_default_enabled_high
o Used field on picture.php

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config_default.inc.php

    r1062 r1078  
    127127$conf['newcat_default_status'] = 'public';
    128128
     129// newuser_default_enabled_high : at creation, must a user with enabled_high or not
     130$conf['newuser_default_enabled_high'] = 'true';
     131
    129132// level_separator : character string used for separating a category level
    130133// to the sub level. Suggestions : ' / ', ' » ', ' → ', ' - ',
  • trunk/install/phpwebgallery_structure.sql

    r1071 r1078  
    305305  `template` varchar(255) NOT NULL default 'yoga/clear',
    306306  `registration_date` datetime NOT NULL default '0000-00-00 00:00:00',
     307  `enabled_high` enum('true','false') NOT NULL default 'true',
    307308  UNIQUE KEY `user_infos_ui1` (`user_id`)
    308309) TYPE=MyISAM;
  • trunk/picture.php

    r1072 r1078  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
     
    337337    if ($i == 'current')
    338338    {
    339       if ($row['has_high']=='true')
     339      if (($row['has_high'] == 'true') and ($user['enabled_high'] == 'true'))
    340340      {
    341341        $url_high=$cat_directory.'/pwg_high/'.$row['file'];
Note: See TracChangeset for help on using the changeset viewer.