Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
addes code to capture openURL and write to text file
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Felk committed Mar 22, 2012
1 parent b708112 commit 0858659
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 360link-reset.2.0.js
Expand Up @@ -372,6 +372,17 @@ jQuery("#360link-reset ul li a").click(function() {


if(clicks > 1) { if(clicks > 1) {
jQuery(".doc-del-tooltip").show(); jQuery(".doc-del-tooltip").show();
//lets also grap the openURL we are passing to the browser and pass it off
//to a PHP script that will write it elsewhere, so it can be checked
var URL = jQuery("div#ArticleCL a").attr('href');
jQuery.ajax({
type: "POST"
data: {URL : URL},
dataType: "text",
url: "url_write.php"

});

} }


}); });
Expand Down
19 changes: 19 additions & 0 deletions url_write.php
@@ -0,0 +1,19 @@
<?
if () {
$url = trim($_POST['URL']) . "\n";
$DataFile = fopen("dodgy_urls.txt", "a");
fwrite($DataFile, $url);
fclose($DataFile);

} else {
die;


}






?>

0 comments on commit 0858659

Please sign in to comment.