|
|
@ -119,7 +119,7 @@ class Af_Psql_Trgm extends Plugin {
|
|
|
|
|
|
|
|
|
|
|
|
if (DB_TYPE != "pgsql") {
|
|
|
|
if (DB_TYPE != "pgsql") {
|
|
|
|
print_error("Database type not supported.");
|
|
|
|
print_error("Database type not supported.");
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
$result = db_query("select 'similarity'::regproc");
|
|
|
|
$result = db_query("select 'similarity'::regproc");
|
|
|
|
|
|
|
|
|
|
|
@ -163,25 +163,25 @@ class Af_Psql_Trgm extends Plugin {
|
|
|
|
|
|
|
|
|
|
|
|
print "<table>";
|
|
|
|
print "<table>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<tr><td width=\"40%\">".__("Minimum similarity:")."</td>";
|
|
|
|
print "<tr><td width=\"40%\">" . __("Minimum similarity:") . "</td>";
|
|
|
|
print "<td>
|
|
|
|
print "<td>
|
|
|
|
<input dojoType=\"dijit.form.ValidationTextBox\"
|
|
|
|
<input dojoType=\"dijit.form.ValidationTextBox\"
|
|
|
|
placeholder=\"0.75\"
|
|
|
|
placeholder=\"0.75\"
|
|
|
|
required=\"1\" name=\"similarity\" value=\"$similarity\"></td></tr>";
|
|
|
|
required=\"1\" name=\"similarity\" value=\"$similarity\"></td></tr>";
|
|
|
|
print "<tr><td width=\"40%\">".__("Minimum title length:")."</td>";
|
|
|
|
print "<tr><td width=\"40%\">" . __("Minimum title length:") . "</td>";
|
|
|
|
print "<td>
|
|
|
|
print "<td>
|
|
|
|
<input dojoType=\"dijit.form.ValidationTextBox\"
|
|
|
|
<input dojoType=\"dijit.form.ValidationTextBox\"
|
|
|
|
placeholder=\"32\"
|
|
|
|
placeholder=\"32\"
|
|
|
|
required=\"1\" name=\"min_title_length\" value=\"$min_title_length\"></td></tr>";
|
|
|
|
required=\"1\" name=\"min_title_length\" value=\"$min_title_length\"></td></tr>";
|
|
|
|
print "<tr><td width=\"40%\">".__("Enable for all feeds:")."</td>";
|
|
|
|
print "<tr><td width=\"40%\">" . __("Enable for all feeds:") . "</td>";
|
|
|
|
print "<td>
|
|
|
|
print "<td>
|
|
|
|
<input dojoType=\"dijit.form.CheckBox\"
|
|
|
|
<input dojoType=\"dijit.form.CheckBox\"
|
|
|
|
$enable_globally_checked name=\"enable_globally\"></td></tr>";
|
|
|
|
$enable_globally_checked name=\"enable_globally\"></td></tr>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</table>";
|
|
|
|
print "</table>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
|
|
|
|
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">" .
|
|
|
|
__("Save")."</button>";
|
|
|
|
__("Save") . "</button>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</form>";
|
|
|
|
print "</form>";
|
|
|
|
|
|
|
|
|
|
|
@ -199,11 +199,12 @@ class Af_Psql_Trgm extends Plugin {
|
|
|
|
print "<li>" .
|
|
|
|
print "<li>" .
|
|
|
|
"<img src='images/pub_set.png'
|
|
|
|
"<img src='images/pub_set.png'
|
|
|
|
style='vertical-align : middle'> <a href='#'
|
|
|
|
style='vertical-align : middle'> <a href='#'
|
|
|
|
onclick='editFeed($f)'>".
|
|
|
|
onclick='editFeed($f)'>" .
|
|
|
|
getFeedTitle($f) . "</a></li>";
|
|
|
|
getFeedTitle($f) . "</a></li>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print "</ul>";
|
|
|
|
print "</ul>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</div>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|