include('include/start.inc.php'); $ok=true; $extraheader=""; $FRESH= true; $loginmenu="";//loginmenu(); $topten="";//topten(); $title="Lyrics4Mp3.com Links exchange"; $description="Lyrics links exchange with Lyrics4Mp3.com."; $buffer=''; // $db->close(); /////////// Config AREA ///////////////// $dbhost="localhost"; $dbuser="versuri_links"; $dbpass="R94G687757c2hEa3"; $dbase="versuri_versuri"; $dbtable="links"; $admin_email="links@adecy.com"; $site_url="http://www.lyrics4mp3.com"; $site_title="Lyrics 4 Mp3 . com"; $site_description="A huge lyrics collection."; /////////// End Config AREA ///////////////// ///////////////////////////// Links Query /////////////////////////////////// function clean($buffer) { $holdit=$buffer; $holdit=str_replace(" ", " ", $holdit); $holdit=str_replace("\n", "", $holdit); $holdit=str_replace("\r", "", $holdit); return $holdit; } if($_GET['action']=='adlink') { $buffer='
We are here to welcome you to be our partner!
We require a reciprocal link for all our partners. A reciprocal link is a link on your site to our site. The Reciprocal URL in the form below refers to the specific page on your site where our link is located. To create a link to our site, you may copy the HTML inside the box and paste it in your related page.
Please fill out the form completely. Remember, you should add our link first before we add your link. If we don\'t find our link on your site than your link will not be added here.
'; } elseif(strlen($_POST['submit'])>1){ ///// instert shit if(eregi("^http://", $_POST['url']) or eregi("^https://", $_POST['url']) or eregi("^ftp://", $_POST['url'])) { $surl=clean(mysql_escape_string($_POST['url'])); } if(strlen($_POST['title'])>0) { $stitle=clean(mysql_escape_string($_POST['title'])); } if(strlen($_POST['description'])>0) { $sdescription=clean(mysql_escape_string($_POST['description'])); } if(strlen($_POST['email'])>0) { $semail=clean(mysql_escape_string($_POST['email'])); } if(eregi("^http://", $_POST['linkback'])) { $slinkback=clean(mysql_escape_string($_POST['linkback'])); } if(strlen($surl)>0 and strlen($stitle)>0 and strlen($semail)>0 and strlen($slinkback)>0) { // $db = mysql_connect($dbhost, $dbuser, $dbpass) or die('Could not connect: ' . mysql_error()); // mysql_select_db($dbase) or die('Could not select database'); $sql="INSERT INTO `$dbtable` ( `link_id` , `link_link` , `link_title` , `link_desc` , `link_hits` , `link_linkback` , `link_approved` , `link_email` ) VALUES (NULL , '$surl', '$stitle', '$sdescription', '0', '$slinkback', '0', '$semail');"; $result = mysql_query($sql) or $sql_error=mysql_error(); // mysql_close($db); if(eregi("Duplicate entry", $sql_error)) { $buffer="'.stripslashes($val['link_title']).''; if(strlen($val['link_desc'])>0) { $buffer.=" - ".stripslashes($val['link_desc']); } $buffer.="
"; } $buffer=$buffer.'