Changeset 8897


Ignore:
Timestamp:
01/25/11 21:11:53 (9 years ago)
Author:
rvelices
Message:

rv_db_integrity with piwigo core 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_db_integrity/check_db.php

    r7342 r8897  
    4646    array(OLD_PERMALINKS_TABLE,   'cat_id'), 
    4747    array(USER_ACCESS_TABLE,      'cat_id'), 
    48     array(WAITING_TABLE,          'storage_category_id'), 
    4948    array(USER_CACHE_CATEGORIES_TABLE, 'cat_id'), 
    5049  ); 
     
    133132$template->append('reference_tests', $tpl_var); 
    134133 
    135 // uploadable virtual cats 
    136 $tpl_var = array( 
    137                 'ID' => 'uploadable_virtual_cats', 
    138                 'LABEL' => l10n('Uploadable virtual cats'), 
    139                 'CHECKED' => isset($_POST['uploadable_virtual_cats']) ? 'checked="checked"' : $default_checked, 
    140                 'COUNT' => 1, 
    141         ); 
    142 if (isset($_POST['uploadable_virtual_cats'])) 
    143 { 
    144   $query = ' 
    145 SELECT c.id, c.name 
    146   FROM '.CATEGORIES_TABLE.' c 
    147   WHERE c.dir IS NULL AND uploadable="true"'; 
    148         $result = pwg_query($query); 
    149         $tpl_var['result'] = mysql_num_rows($result); 
    150         $i=0; 
    151         while ($row=mysql_fetch_assoc($result) and $i<=50 ) 
    152         { 
    153                 $tpl_var['errors'][] = $row['id'].' ('.$row['name'].') is uploadable'; 
    154                 $i++; 
    155         } 
    156 } 
    157 $template->append('reference_tests', $tpl_var); 
    158134 
    159135$template->set_filename('check', dirname(__FILE__).'/check_db.tpl'); 
Note: See TracChangeset for help on using the changeset viewer.