[LinkPlz.com] New DDL - Apply for Rating - All DDL

Status
Not open for further replies.
@JJJ sorry for that i did not add the new downloads because rardownload was down and the submission count was preety low so its not good.

:) All back to normal, we are planning to have warezlinkers submissions to us as i have mailed them.

Thanks & Regards
 
@inferno it seems like the downloads either were not added or something is wrong, first of all why is there a smileyface in your domain?

Give me the full domain name so i can check for the downloads of your domain last updated.

Thanks & Regards
 
Yes i see thast your ddl is not on that autosubmitter. I have my own private autosubmitter but is the same code with that

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Auto Submitter</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #505050;
  padding: 0 0 15px 0;
}
label { cursor: pointer; }
.katz {
  float: right;
  color: #c8eaea;
  font-size: 25px;
  font-weight: bold;
}
.katz a {
  color: #c8eaea;
  text-decoration: none;
}
.katz a:hover {
  text-decoration: underline;
}
.suburl {
  background-color: #edf9f9;
  border: 1px solid #e4f0f0;
  padding: 4px;
  margin: 3px;
  width: 370px;
  display: inline-block;
  text-align: left;
}
</style>
<script type="text/javascript">
<!--
function selectAll() {
  void(d=document);
  void(el=d.getElementsByTagName('INPUT'));

  for(i=0;i<el.length;i++)
  void(el[i].checked=1)
}

function UnselectAll() {
  void(d=document);
  void(el=d.getElementsByTagName('INPUT'));

  for(i=0;i<el.length;i++)
  void(el[i].checked=0)
}

function slctall() { 
var se = document.getElementsByName("type[]");

  for(var i=0; i<se.length; i++) {
   se[i].value = document.getElementById("suBtype").value;
  }
}
//-->
</script>
</head>
<body>
<?php
/*
Credits:
- Original author/coder
- Katz Downloads (http://katz.cd)

Modified by: el_jentel1
*/

require('ban.php');

// Username and IP Logging by Vista
$dt = date("j-F-Y  H:i:s");
$fp = fopen("IPlog.txt", "a+");
$ip = $_SERVER['REMOTE_ADDR'];

$mg = "Date and Time: $dt | From IP address $ip | Submitted url: $_POST[surl]\n";

// change the line to fwrite($fp, "$mg\n\n"); for unix
// or leave as-is for Windows
fwrite($fp, "$mg\r\n");
fclose($fp);

set_time_limit(0);

function submit($url, $query) {
global $errno, $errstr;
$uri = parse_url($url);

if (!isset($uri['port'])) { $uri['port'] = 80; }

$req = "POST {$uri['path']} HTTP/1.1\r\n"
       . "Host: {$uri['host']}\r\n"
       . "Content-type: application/x-www-form-urlencoded\r\n"
       . "User-Agent: Mozilla 4.0\r\n"
       . "Content-length: " . strlen($query) . "\r\n"
       . "Connection: close\r\n\r\n"
       . $query;

$errno = 0;
$errstr = '';

if (!$fp = @fsockopen($uri['host'], $uri['port'], $errno, $errstr, 3)) {
  return false;
}

fputs($fp, $req);

$buff = fread($fp, 1024);
$ret = strpos($buff, '200 OK') ? true : false;

fclose($fp);
return $ret;
}

$urls = array_map('trim', file('urls.txt'));

if($_POST) {

  if(!$_POST['title'][0] || !$_POST['url'][0] || !$_POST['sname'] || !$_POST['surl']) {
    echo '<div style="text-align: center; width: 800px; padding: 8px; margin: 10px auto; background: #faffff; border: 1px solid #7bc4df;">'."\n";
    echo "<span style=\"font-weight:bold;color:#c00;font-size:16px;\">You did not fill in all required fields!</span><br />\r\n";
    echo '</div>'."\n";
  } 
  
  else {
    $compile = "sname={$_POST['sname']}&surl={$_POST['surl']}&email={$_POST['email']}";
    $i = $x = 0;

    foreach ($_POST['title'] as $key => $val) {
      if($val && $_POST['url'][$key] && $_POST['type'][$key]) {
        $i++;
        $compile .= "&title[]=$val&url[]={$_POST['url'][$key]}&type[]={$_POST['type'][$key]}";
      }
    }
    
    echo '<div style="width: 800px; padding: 8px; margin: 10px auto; background: #faffff; border: 2px solid #7bc4df;">'."\n";
    
    foreach ($_POST['submit_to'] as $line) {
      if(submit($urls[--$line], $compile)) {
        echo "<span style=\"color:green\">Submitted to {$urls[$line]}</span><br />\r\n";
        $x++;
      }
      
      else {
        $err = $errno ? "(failed to connect to server)" : "(server is up but couldn't submit)";
        echo "<span style=\"color:red\">Failed to submit to {$urls[$line]} ($err)</span><br />\r\n";
      }
    }
    echo '<div style="text-align: center; width: 600px; padding: 8px; margin: 10px auto; background: #faffff; border: 1px solid #7bc4df;">'."\n";
    echo "<strong>All done - $i downloads submitted to $x sites!</strong>";
    echo '</div></div>'."\n";
    }   
} 

else {
  echo '<form name="add" action="" method="post">
<div style="width: 800px; margin: 0 auto; padding: 0;">
   <span class="katz"><em><a href="http://katz.cd/">Katz Downloads</a></em></span>
   <div style="width: 190px; padding: 8px; margin: 10px 0 0 0; background: #faffff; border: 1px solid #7bc4df; border-bottom: 0;">
     <input type="button" name="CheckAll" value="Select All" onclick="selectAll()" />&nbsp;&nbsp;<input type="button" name="UnCheckAll" value="Unselect All" onclick="UnselectAll()" />
   </div>
</div>

<div style="width: 800px; height: 200px; overflow: auto; padding: 8px; margin: 0 auto 10px auto; background: #faffff; border: 1px solid #7bc4df;">'."\n";
  
  $s_x = 0;

  foreach ($urls as $id => $url) {
          if(!$url)
            continue;
    $s_x++;
    echo "<div class=\"suburl\"><label for=\"s-$s_x\"><input type=\"checkbox\" name=\"submit_to[". ($id++) ."]\" value=\"$id\" checked=\"checked\" id=\"s-$s_x\" /> $url</label></div>\r\n";
  }
  
  echo '</div>'."\n";
  
  echo '<div style="width: 800px; padding: 8px; margin: 10px auto; background: #faffff; border: 1px solid #7bc4df;">
<table cellspacing="0" align="center" style="border-bottom: 0; padding: 15px 10px; width: 800px;">
<tr>
  <th>No.</th>
  <th>Download Title</th>
  <th>Download URL</th>
  <th>Type</th>
</tr>

<tr>
  <td></td>
  <td style="text-align: center;">Please refrain from using FULL CAPS</td>
  <td style="text-align: center;">Always start with <strong>http://</strong></td>
  <td style="text-align: center;"><select id="suBtype" onchange="slctall(this.id);this.blur();" style="font-size:10px;padding:2px;"><option value="" selected="selected">Select All</option><option value="App">App</option><option value="Game">Game</option><option value="Movie">Movie</option><option value="TV">TV</option><option value="Music">Music</option><option value="XXX">XXX</option><option value="eBook">eBook</option><option value="Template">Template</option><option value="Other">Other</option></select></td>
</tr>'."\n";

  for ($i=1; $i<11; $i++) {
    echo '<tr>
      <td>'.$i.'</td>
      <td><input type="text" name="title[]" size="45" maxlength="72" /></td>
      <td><input type="text" name="url[]" size="50" /></td>
      <td><select name="type[]"><option value="" selected="selected">Select</option><option value="App">App</option><option value="Game">Game</option><option value="Movie">Movie</option><option value="TV">TV</option><option value="Music">Music</option><option value="XXX">XXX</option><option value="eBook">eBook</option><option value="Template">Template</option><option value="Other">Other</option></select></td>
    </tr>'."\n";
  }

    echo '</table>

<table align="center" style="padding: 15px 10px; width: 800px;">
 <tr>
  <td>Site Name:* </td>
  <td><input type="text" name="sname" size="25" maxlength="20" value="" /></td>
  <td>&nbsp; Site URL:* </td>
  <td><input type="text" name="surl" size="30" value="" /></td>
 </tr>

 <tr>
  <td>E-mail:*</td>
  <td colspan="4"><input type="text" name="email" size="25" maxlength="40" value="" /> <em>* required</em></td>
 </tr>

 <tr>
  <td colspan="4"><br />&nbsp; <input type="submit" value="Submit Downloads" style="width: 216px; cursor:pointer; height:30px;" /></td>
 </tr>
</table>

</div>
</form>'."\n";
}

?>
</body>
</html>
 
the error is "server is up but coudn't submit"

Maybe the problem is in value on category selection

In this script (and in other ddl) value for category is like this

<option value="App">App</option>
<option value="Movie">Movie</option>

in your script

<option value="app">app</option>
<option value="movie">movie</option>
 
Status
Not open for further replies.
Back
Top