Changeset 7342
- Timestamp:
- Oct 22, 2010, 1:20:19 PM (14 years ago)
- Location:
- extensions/rv_db_integrity
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_db_integrity/check_db.php
r3417 r7342 1 1 <?php 2 2 defined('PHPWG_ROOT_PATH') or trigger_error('Hacking attempt!', E_USER_ERROR); 3 4 load_language('plugin.lang', RVDI_PATH); 3 5 4 6 function check_table_ref($t, $f, $reft, $reff) … … 88 90 $tpl_var = array( 89 91 'ID' => 'permalinks', 90 'LABEL' => 'Pemalinks',92 'LABEL' => l10n('Pemalinks'), 91 93 'CHECKED' => isset($_POST['permalinks']) ? 'checked="checked"' : $default_checked, 92 94 'COUNT' => 1, … … 110 112 $tpl_var = array( 111 113 'ID' => 'id_storage_category_id', 112 'LABEL' => '#images(id,storage_category_id) in #image_category',114 'LABEL' => l10n('#images(id,storage_category_id) in #image_category'), 113 115 'CHECKED' => isset($_POST['id_storage_category_id']) ? 'checked="checked"' : $default_checked, 114 116 'COUNT' => 1, … … 134 136 $tpl_var = array( 135 137 'ID' => 'uploadable_virtual_cats', 136 'LABEL' => 'Uploadable virtual cats',138 'LABEL' => l10n('Uploadable virtual cats'), 137 139 'CHECKED' => isset($_POST['uploadable_virtual_cats']) ? 'checked="checked"' : $default_checked, 138 140 'COUNT' => 1, -
extensions/rv_db_integrity/check_db.tpl
r3417 r7342 8 8 <table class="table2"> 9 9 <tr class="throw"> 10 <td> Test</td>11 <td> Result</td>10 <td>{'Test'|@translate}</td> 11 <td>{'Result'|@translate}</td> 12 12 </tr> 13 13 {foreach from=$reference_tests item=reference_test} … … 22 22 <span style="color:white;background-color:red">{$reference_test.result} FAILED</span> 23 23 {else} 24 Passed24 {'Passed'|@translate} 25 25 {/if} 26 26 {/if} -
extensions/rv_db_integrity/main.inc.php
r7302 r7342 1 1 <?php /* 2 2 Plugin Name: RV DB Integrity 3 Version: 2. 0.b3 Version: 2.1.a 4 4 Description: Checks database integrity. After install go to Administration /Tools/Maintenance: "Check database integrity". 5 5 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=179 … … 8 8 */ 9 9 10 define('RVDI_DIR' , basename(dirname(__FILE__))); 11 define('RVDI_PATH' , PHPWG_PLUGINS_PATH . RVDI_DIR . '/'); 12 13 10 14 add_event_handler('get_admin_advanced_features_links', 'rvint_get_admin_advanced_features_links'); 11 15 12 16 function rvint_get_admin_advanced_features_links($advanced_features) 13 17 { 18 load_language('plugin.lang', RVDI_PATH); 14 19 array_push($advanced_features, 15 20 array 16 21 ( 17 'CAPTION' => 'Check database integrity',22 'CAPTION' => l10n('Check database integrity'), 18 23 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/check_db.php') 19 24 ));
Note: See TracChangeset
for help on using the changeset viewer.