21
snakes
Re: Weblinks + Might be a DOS attack .... need a sec opinion !!!
  • 2005/10/3 18:22

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


some more lines to modify
templates/weblinks_link.html (about line 186)
<{if $link.flag_url == 1}>
    <!-- <
a href="<{$module_url}>/visit.php?lid=<{$link.lid}>" target="_blank"> -->
    <
a href="<{$link.url}>" onmousedown="return weblinks_hardlink(this,<{$link.lid}>)" target="_blank">
  <{/if}>


templates/weblinks_linklist.html (about line 67)
<{if $link.flag_url == 1}>
    <!-- <
a href="<{$module_url}>/visit.php?lid=<{$link.lid}>" target="_blank"> -->
    <
a href="<{$link.url}>" onmousedown="return weblinks_hardlink(this,<{$link.lid}>)" target="_blank">
  <{/if}>



22
snakes
Weblinks hack for anonymous email notification when link approved
  • 2005/10/3 18:04

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


I've posted the hack on the Weblinks' forum at Look at Happy Linux's forum



23
snakes
Re: Weblinks + Might be a DOS attack .... need a sec opinion !!!
  • 2005/10/3 8:08

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


For your DOS attack.
It is an attack to sshd not to mysqld.
Someone is trying to access to the server ssh daemon.
ssh is a secure Telnet that allow you to control the server in linux/unix command line.

Those attacks should not ba harmful cuz they all failed.

When I access the "popular site" page, I get all, the content AND the "xoops theme" not a white background. I get ALL.

Kewl for the thumbs.



24
snakes
Re: Weblinks: popular sites page hack
  • 2005/9/29 18:37

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


When accessing you "Popular site". The page is endless but it displays till the end. I can see everything.

BTW, Great design!
And that's great, your weblinks is well filled.
=> 620 links!! That's cool.

I think your MySQL problem is from Protector module or a problem with your MySQL from your host server. Try to deactivate Protector module or update it.

Quote:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/muli/www/meant4u.com/gifts/modules/protector/include/precheck.inc.php on line 26

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/muli/www/meant4u.com/gifts/modules/protector/class/protector.php on line 44

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/muli/www/meant4u.com/gifts/modules/protector/class/protector.php on line 45

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/muli/www/meant4u.com/gifts/modules/protector/include/precheck.inc.php on line 37

Warning: Invalid argument supplied for foreach() in /home/muli/www/meant4u.com/gifts/modules/protector/include/precheck.inc.php on line 46
This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Helpful infomation you should provide while asking for assistance:

Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34


Notice the last line:
Unable to connect to database in file class/database/databasefactory.php line 34
This certainly is a pb with the server



One more question.
I've noticed that most of your links or maybe all of them have thumbnails. Are they from submitters or did you screencapture them all ?



25
snakes
Re: Weblinks: popular sites page hack
  • 2005/9/29 18:25

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Got it.
It's meant4u
Seems to have pb with MySQL from protector module



26
snakes
Re: Weblinks: popular sites page hack
  • 2005/9/29 18:22

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Quote:
<script language="javascript">
function weblinks_hardlink(link,lid){
link.href='<{$module_url}>/visit.php?lid=' + lid;
return true;
}
</script>


Yeahhhh...
I was writing to fast and didn't notice this hehehe.
Thanks.

Is your site warpig ?
If not can I have the URL ?



27
snakes
Re: Weblinks: hardlink plus php support.
  • 2005/9/29 11:16

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


I'm using 2.0.10.
I didn't upgrade yet.

The script visit.php from WebLinks doesn't check if the lid exists. Thus when accessing visit.php?lid=299 and no link at this id will cause the browser to loop the redirection.

I added this
if(empty($url)) {
    
header("Location: /");
    exit;
}

after
$url $tbl_link->getSaniUrlByLid($lid);



28
snakes
Weblinks: hardlink plus php support.
  • 2005/9/29 8:23

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Weblinks is a great module!
I've started one and fill it with empty categories...

Inspired by a javascript from Google Suggest, I've modified some Weblinks templates to support hardlink and at the same time visit.php redirection support.

Explanation:
I've noticed that from Google Suggest, when you pass the mouse cursor over a link, it seems to be a hardlink cuz you see the destination URL. But when you right click and copy the link address and paste it, the pasted value is a Google redirection script. And when you pass the mouse over that link again it has changed from hardlink to redirection link.
This is a javascript that dynamically change the hardlink into redirection link.

This is a great idea for web links: you can have real hard links and thus it is better for referencing and thanks to javascript when your visitor click on the link it will be a redirection link and thus you can count the click. Spiders don't support javascript so they will always see the hardlink.

How to change Weblinks to support this:
You'll have to modifi 3 templates files and update the installation of Weblinks in the admin section.
Here are the modification:

weblinks/templates/weblinks_header.html
<script language="javascript">
function 
weblinks_hardlink(link,lid){
  
link.href='http://www.goloom.com/modules/weblinks/visit.php?lid=' lid;
  return 
true;
}
</
script>

This code is to be added on the first line of the file

weblinks/templates/weblinks_link.html and
weblinks/templates/weblinks_linklist.html
replace
<a href="<{$module_url}>/visit.php?lid=<{$link.lid}>" target="_blank">

with
<a href="<{$link.url}>" onmousedown="return weblinks_hardlink(this,<{$link.lid}>)" target="_blank">


Now update the weblinks installation.

You can see the demo at
http://www.goloom.com/modules/weblinks/
At the bottom of the page you'll see recent links.
Pass the mouse over a link, you'll see the hardlink.
Right click on it, and pass the mouse again. The hardlink is changed.



29
snakes
Re: SnX MetaSearch algorithm
  • 2005/9/13 15:52

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Thanks, I'd like some feedback about my ranking ?
Do you thinks the results are corrects ?



30
snakes
SnX MetaSearch algorithm
  • 2005/9/13 15:04

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Hi there,

I've just finished my SnX MetaSearch module. It is a XOOPS 2.x module that send your search request to multiple search engine (Google, Yahoo, Altavista & Lycos) and then analyse their response.

The algorithm I use is adding points to each URL depending on their position in the search engine page. Thus when a url is on
the first position (position = 0) its points are $points = 10 - $position; here $points will be equal to 10. If it is on 3rd position its points will be 10-2 = 8.

Example:
For a given URL. Here are its positions:
Google: 1st
Yahoo: 3rd
Altavista: 2nd
Lycos: 4th

Its points will be:
Google: 10-0 = 10
Yahoo: 10-2 = 8
Altavista: 10-1 = 9
Lycos: 10-3 = 7

Its total points will be: 10+8+9+7 = 34

I then order the display by the points value.

Demo is here




TopTop
« 1 2 (3) 4 5 6 7 »



Login

Who's Online

202 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits