Bläddra i källkod

adding new options to plugin defines.
undoing centering changes in plugin. align attribute is deprecated, but
css does not provide options for table alignment.

tokul 19 år sedan
förälder
incheckning
39a79e0725
2 ändrade filer med 6 tillägg och 6 borttagningar
  1. 2 2
      plugins/administrator/defines.php
  2. 4 4
      plugins/administrator/options.php

+ 2 - 2
plugins/administrator/defines.php

@@ -267,10 +267,10 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
                  '$hide_auth_header' => array( 'name' => _("Remove username from headers"),
                  '$hide_auth_header' => array( 'name' => _("Remove username from headers"),
                                                'comment' => _("Used only when identities can't be modified"),
                                                'comment' => _("Used only when identities can't be modified"),
                                                'type' => SMOPT_TYPE_BOOLEAN ),
                                                'type' => SMOPT_TYPE_BOOLEAN ),
-                 '$allow_server_sort' => array( 'name' => _("Use server-side sorting"),
+                 '$disable_server_sort' => array( 'name' => _("Disable server-side sorting"),
                                                 'type' => SMOPT_TYPE_BOOLEAN,
                                                 'type' => SMOPT_TYPE_BOOLEAN,
                                                 'default' => false ),
                                                 'default' => false ),
-                 '$allow_thread_sort' => array( 'name' => _("Use server-side thread sorting"),
+                 '$disable_thread_sort' => array( 'name' => _("Disable server-side thread sorting"),
                                                 'type' => SMOPT_TYPE_BOOLEAN,
                                                 'type' => SMOPT_TYPE_BOOLEAN,
                                                 'default' => false ),
                                                 'default' => false ),
                  '$allow_charset_search' => array( 'name' => _("Allow server charset search"),
                  '$allow_charset_search' => array( 'name' => _("Allow server charset search"),

+ 4 - 4
plugins/administrator/options.php

@@ -272,7 +272,7 @@ if ( sqgetGlobalVar('switch', $switch, SQ_GET) ) {
 }
 }
 
 
 echo '<form action="options.php" method="post" name="options">' .
 echo '<form action="options.php" method="post" name="options">' .
-     '<div style="text-align: center;"><table width="95%" bgcolor="'.$color[5].'"><tr><td>'.
+     '<table width="95%" align="center" bgcolor="'.$color[5].'"><tr><td>'.
      '<table width="100%" cellspacing="0" bgcolor="'.$color[4].'">'.
      '<table width="100%" cellspacing="0" bgcolor="'.$color[4].'">'.
      '<tr bgcolor="'.$color[5].'"><th colspan="2">'.
      '<tr bgcolor="'.$color[5].'"><th colspan="2">'.
      _("Configuration Administrator").'</th></tr>'.
      _("Configuration Administrator").'</th></tr>'.
@@ -581,7 +581,7 @@ if ( $colapse['Group8'] == 'off' ) {
                 $i++;
                 $i++;
             }
             }
         }
         }
-        echo '<tr><td colspan="2"><input type="hidden" name="plg" value="on" /><div style="text-align: center;"><table>';
+        echo '<tr><td colspan="2"><input type="hidden" name="plg" value="on" /><table align="center">';
         foreach ( $op_plugin as $plg ) {
         foreach ( $op_plugin as $plg ) {
             if ( in_array( $plg, $plugins ) ) {
             if ( in_array( $plg, $plugins ) ) {
                 $sw = ' checked="checked"';
                 $sw = ' checked="checked"';
@@ -598,7 +598,7 @@ if ( $colapse['Group8'] == 'off' ) {
                  "<td><input$sw type=\"checkbox\" name=\"plgs_$plg\" /></td>".
                  "<td><input$sw type=\"checkbox\" name=\"plgs_$plg\" /></td>".
                  "</tr>\n";
                  "</tr>\n";
         }
         }
-        echo '</table></div></td></tr>';
+        echo '</table></td></tr>';
     } else {
     } else {
         echo '<tr><td colspan="2" align="center">'.
         echo '<tr><td colspan="2" align="center">'.
              sprintf(_("Plugin directory could not be found: %s"), $plugpath).
              sprintf(_("Plugin directory could not be found: %s"), $plugpath).
@@ -609,7 +609,7 @@ echo '<tr bgcolor="'.$color[5].'"><th colspan="2"><input value="'.
      _("Change Settings").'" type="submit" /><br />'.
      _("Change Settings").'" type="submit" /><br />'.
      '<a href="'.SM_PATH.'src/configtest.php" target="_blank">'.
      '<a href="'.SM_PATH.'src/configtest.php" target="_blank">'.
      _("Test Configuration")."</a></th></tr>\n".
      _("Test Configuration")."</a></th></tr>\n".
-     '</table></td></tr></table></div></form>';
+     '</table></td></tr></table></form>';
 
 
 /*
 /*
     Write the options to the file.
     Write the options to the file.