View Single Post
  #4  
Old 1st December 2012, 22:58
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
make a file and add to root testingpre.php



PHP Code:
<?php

function getpre($name$type)
{
$pre['regexp'] = "|<tr><td>(.*)<td>(.*)<td>(.*)|";
$pre['url'] = "http://doopes.com/?cat=454647&lang=0&num=2&mode=0&from=&to=&exc=&inc=" $name "&opt=0";
$pre['file'] = file_get_contents($pre['url']);
preg_match($pre['regexp'], $pre['file'], $pre['matches']);
/**
* Types:
* 1 = Time
* 2 = Category
* 3 = Realesename
*/
return $pre['matches'][$type];
}
// Example:
print getpre("Kellys.Heroes.1970.WS.DVDRip.XVID.INT-WalMaRT"1);

?>
make a file and add to root test.php

PHP Code:
<? print($_SERVER["HTTP_HOST"]); ?>
will post rest latrs


@ bittorrrent.php

PHP Code:
  }
  
$q sql_query("select count(id) as num, YEAR(added) as year, MONTH(added) as month , DAY(added) as day FROM torrents  group by year,month,day ORDER BY day,month,year DESC") or print("error");
  while(
$amysql_fetch_assoc($q))
  
$split[$a["year"].$a["month"].$a["day"]] = $a["num"];
  while (
$row mysql_fetch_assoc($res)) {

  if (
$CURUSER['split'] == "yes" && isset($CURUSER)) {
  
/** Make some date varibles **/
  
$day_added $row['added'];
  
$day_show strtotime($day_added);
  
$thisdate date('Y-m-d',$day_show);

  
$numtorrents number_format(get_row_count("torrents""WHERE added LIKE '%".$thisdate." %'"));


  
/** If date already exist, disable $cleandate varible **/
  
if($thisdate==$prevdate){
  
$cleandate '';

  
/** If date does not exist, make some varibles **/
  
}else{
  
$day_added '  '.date('l j-M-Y'strtotime($row['added'])); // You can change this to something else
  //$cleandate = "<tr><td colspan=15 class=colhead><b>$day_added - $numtorrents torrent" . ($numtorrents > 1 ? "s" : "") . "</b></td></tr>\n"; // This also...
  
$num = isset($split[date("Ynj"$day_show)]) ? $split[date("Ynj"$day_show)] : 0;
  
$cleandate "<tr><td colspan=\"15\" class=\"colhead\"><b>$day_added (".$num." torrent".($num "s" "").")</b></td></tr>\n";
  }

  
/** Prevent that "torrents added..." wont appear again with the same date **/
  
$prevdate $thisdate;

  
$man = array(
  
'Jan' => 'January',
  
'Feb' => 'February',
  
'Mar' => 'March',
  
'Apr' => 'April',
  
'May' => 'May',
  
'Jun' => 'June',
  
'Jul' => 'July',
  
'Aug' => 'August',
  
'Sep' => 'September',
  
'Oct' => 'October',
  
'Nov' => 'November',
  
'Dec' => 'December'
  
);

  foreach(
$man as $eng => $ger){
  
$cleandate str_replace($eng$ger,$cleandate);
  }

  
$dag = array(
  
'Mon' => 'Monday',
  
'Tues' => 'Tuesday',
  
'Wednes' => 'Wednesday',
  
'Thurs' => 'Thursday',
  
'Fri' => 'Friday',
  
'Satur' => 'Saturday',
  
'Sun' => 'Sunday'
  
);

  foreach(
$dag as $eng => $ger){
  
$cleandate str_replace($eng.'day'$ger.'',$cleandate);
  }
  
/** If torrents not listed by added date **/
  
if ($row["sticky"] == "no")
  if(!
$_GET['sort'] && !$_GET['d']){
  echo 
$cleandate."\n";
  }
  } 

PHP Code:
ALTER TABLE `usersADD  `splitenum('yes','no'NOT NULL DEFAULT 'yes'

Last edited by wMan; 1st December 2012 at 23:25.
Reply With Quote