version 1.1
- * duplicate / potential match url search
* older and newer link at the top no working
* bug with path to the jquery.js file
+ * some statistics
version 1.0 ()
+ jumpin.banana
}
+ # search by domain
+ if(defined(url_param('bydomain'))) {
+ my $sparm = url_param('bydomain');
+ $sql = "$sql where ($tbl_bookmarks.url like ?)";
+ $sparm =~ s/\%//;
+ $sparm = "\%$sparm\%";
+ push(@parms, $sparm);
+ }
+
+
# Search
if ($query ne "") {
- if ( (get_option("public_searches") eq "yes")
+ if ( (get_option("public_searches") eq "yes")
|| (logged_in() eq 1)) {
my $sparm = $query;
if (length($sparm) > 2) {
$sql = "$sql offset $offset";
}
+ #print $sql;
+
$sth = $dbh->prepare($sql);
$sth->execute(@parms);
require Exporter;
use URI;
+use URI::Escape;
use Data::Dumper;
if(%domains) {
-
-
print "<table cellpadding='2' cellspacing='0'>";
print "<tr><th>Domain</th><th>Count</th></tr>";
#for(sort keys %domains) {
foreach (reverse sort { $domains{$a} <=> $domains{$b} } keys %domains ) {
- print "<tr><td>$_</td><td>$domains{$_}</td></tr>";
+
+ print "<tr><td><a href='$site_url/insipid.cgi?bydomain=".uri_escape($_)."'>$_</a></td><td>$domains{$_}</td></tr>";
}
print "</table>";
}