/* style modified from glish: http://www.glish.com/css/ */ body{margin:0px 0px 0px 0px;font-family:trebuchet ms, verdana, sans-serif;background-color:white;} #Title{font-size:63px;padding-left:15px;padding-top:10px;text-transform:uppercase;font-family:trebuchet ms, verdana, sans-serif;} #Title a {text-decoration:none;color:inherit;} #Description{padding:0px;padding-top:10px;font-size:12px;font-weight:normal} .DateHeader{border-bottom:none;font-size:15px;text-align:left;margin-top:20px;margin-bottom:14px;padding:1px;padding-left:17px;color:gray;font-family:trebuchet ms, verdana, sans-serif;} .PostTitle{font-size:18px;font-weight:bold} .Post{padding-left:20px;margin-bottom:20px;text-indent:10px;padding-right:20px;line-height:22px} .PostFooter{margin-bottom:15px;margin-left:0px;color:black;font-size:10px} .comment-link {margin-left:.6em;} @media all { #leftcontent{background-color:whitesmoke;border-right:2px dashed #000;border-bottom:0px dashed #000;float:left;padding-bottom:20px;margin-right:15px;padding:0px;width:67%;border-top:0px dashed #000} } @media handheld { #leftcontent{border-right:0px dashed #000;float:none;margin:0 5% 0 5%;width:90%;} } .SideBarTitle{font-weight:bold;font-size:18px} h1{font-size:14px;padding-top:10px} a{text-decoration:none} a:hover{border-bottom:dashed 1px red} @media all { #rightcontent{font-size:12px;height:100%;margin-left:0px;text-transform:none;padding-right:10px;background-color:white;} } @media handheld { #rightcontent{margin:0 5% 0 5%;} } .blogComments{font-size:15px;text-align:left;margin-top:20px;margin-bottom:14px;padding:1px;padding-left:17px;color:gray;font-family:trebuchet ms, verdana, sans-serif;} .blogComment{margin-top:10px;margin-bottom:10px;color:black;text-indent:10px;padding-right:20px;line-height:22px} .deleted-comment {font-style:italic;color:gray;} .byline{margin-bottom:20px;margin-left:0px;margin-right:10px;color:black;font-size:10px;display:inline} #profile-container { } .profile-datablock { } .profile-img {display:inline;} .profile-img img {float:left;margin:0 10px 0px 0;border:4px solid #ccc;} #profile-container p { } #profile-container .profile-textblock { } .profile-data strong {display:block;} '); require ('config.php'); $debug = 0; function getrootaddress ($address) { $slash_slash_pos = strpos ($address, "://"); $protocol = substr($address, 0, $slash_slash_pos+3); $return_val = substr($address, $slash_slash_pos + 3); $slash_pos = strpos ($return_val, "/"); if ($slash_pos) { $return_val = $protocol.substr($return_val, 0, $slash_pos); } else { $return_val = $protocol.$return_val; } return($return_val); } //getrootaddress function add_link ($in_link, $out_link, $userIP, $date) { $out_link_short = getrootaddress($out_link); if ($debug == 1) { echo ("$out_link
"); echo ("$out_link_short
"); } // check if we already have a hit for today and this IP mysql_query("SELECT id FROM hits_in WHERE out_link='$out_link' AND ip='$userIP' AND date = '$date' LIMIT 1") or die ("couldn't check ip"); $row=mysql_fetch_array($result); if ($row) { $duplicate = 1; } else { $duplicate = 0; } // add the new hit mysql_query("INSERT into hits_in (in_link, out_link, ip, date) VALUES ('$in_link','$out_link_short','$userIP', '$date')") or die ("unable to insert into hits_in"); if ($duplicate == 0) { $result = mysql_query("SELECT * FROM links WHERE out_link='$out_link_short'") or die ("out_link_short query failed"); $row=mysql_fetch_array($result); if ($row) { $id = $row["id"]; $in_count = $row["in_count"] + 1; mysql_query("UPDATE links set in_count = $in_count WHERE id=$id") or die ("failed to update in_count"); } else { // add to the database mysql_query("INSERT into links (in_link, out_link) VALUES ('$in_link','$out_link_short')") or die ("failed to add $out_link_short"); } } //dumplicate } //add_link $userIP=getenv("REMOTE_ADDR"); $date = date("Y-m-d"); $Connection=mysql_connect($db_host, $db_user, $db_pass) or die ("Failed to connect to $db_host"); mysql_select_db ($db_name) or die ("Failed to select $db_name"); if (isset($_POST['manual_out_link'])) { $manual_out_link = $_POST['manual_out_link']; if ($debug == 1) { echo ("Got Manual - $manual_out_link"); } $slash_slash_pos = strpos ($manual_out_link, "://"); $protocol = substr($manual_out_link, 0, $slash_slash_pos+3); if ($protocol == "http://") { add_link ("manual", $manual_out_link, $userIP, $date); if ($debug == 1) { echo ("-- $manual_out_link link will be added"); } } } else if (isset($_SERVER['HTTP_REFERER'])) { $out_link = $_SERVER['HTTP_REFERER']; $in_link = $out_link; add_link ($in_link, $out_link, $userIP, $date); } else { // did not get referrer } echo (' AutoDump - A Better Link Dump '); echo ('
'); echo ('
Auto Link Dump
'); echo ('
Welcome to the easiest possible way to link dump!
Simply send traffic to http://www.cheapadulttrials.com/dump from any page on your site and your main page will show up in this link dump. Top inbound links and most recent inbound links are displayed on this page. Sub pages will display the remainder of the links. Descriptions of links are automatically added based on website meta data for the top inbound links.
Of course you can also use this page as a traditional link dump. Just see the help secion for more details
'); echo ('
Top 20 Hits In (see top 100) '); // echo ("

Most Hits In:
"); echo ('

'); $result = mysql_query ("SELECT * FROM links order by in_count DESC limit 20"); while ($row=mysql_fetch_array($result)) { $out_link = $row["out_link"]; $meta_description = $row["meta_description"]; echo ("

$out_link"); if ($meta_description != "") { echo (" - $meta_description"); } echo ("

"); } echo ('
'); //post echo ('
Latest Hits In '); // echo ("

Lastest Hits In:
"); echo ('

'); $result = mysql_query ("SELECT out_link FROM links order by id DESC limit 20"); while ($row=mysql_fetch_array($result)) { $out_link = $row["out_link"]; // $meta_description = $row["meta_description"]; echo ("

$out_link"); // if ($meta_description != "") // { // echo (" - $meta_description"); // } echo ("

"); } echo ('
'); //post echo ('
What is an Auto Link Dump? '); echo ('
'); echo ('

Simply send traffic to this page from any subpage on your website and your link will be displayed here. This is a great way to easily increase your google pagerank rating and generate extra traffic for your site. My auto link dump code differs from the traidtional link dump in that no registration is required. I automatically add your link based on the http referer tag.

'); echo ('

You can also use this page as a traditional link dump. More details on how to do this will be posted here soon.

'); echo ('

Manual Submit:

'); echo ('

This code is currently being beta tested and some features have not been finished. When it is complete I will release the code under the GPL

'); echo ('
'); //post echo ('
'); //leftcontent echo ('

Categories
Main
Asian Trials
Teen Trials
Webcam Trials
Large Cock Trials

LINKS
camgirlshide
I Want a Camgirl
The NYC Princess

'); // echo ("

reload

"); /* $result = mysql_query ("SELECT * FROM links WHERE out_link='$out_link'") or die ("Outlink query failed"); $row=mysql_fetch_Array($result); if ($row) { $in_count = $row["in_count"] + 1; $id = $row["id"]; $result = mysql_query ("UPDATE links SET in_count = $in_count WHERE id=$id") or die ("failed to update in_count"); } else { mysql_query("INSERT into links (in_link, out_link) VALUES ('$in_link','$out_link')") or die ("unable to insert new link"); */ mysql_close($Connection); ?>