Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Anyone have the pre-time script for TBDEV '08 (http://www.bvlist.com/showthread.php?t=8556)

firefly 1st December 2012 16:18

Anyone have the pre-time script for TBDEV '08
 
I'm looking for the pre-time/scene script for TBDEV '08, if anyone might have it please post it.


Thanks

wMan 1st December 2012 18:04

something like for DB

THEN YOU NEED TO ADD TO THE bittorrent.PHP


PHP Code:

  ALTER TABLE `torrentsADD `mtimetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP;
  
ALTER TABLE `torrentsADD `ctimetimestamp NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `pretimedatetime NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `afterpretext


firefly 1st December 2012 22:16

Quote:

Originally Posted by bill123 (Post 37784)
something like for DB

THEN YOU NEED TO ADD TO THE bittorrent.PHP


PHP Code:

  ALTER TABLE `torrentsADD `mtimetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP;
  
ALTER TABLE `torrentsADD `ctimetimestamp NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `pretimedatetime NOT NULL DEFAULT '0000-00-00 00:00:00';
  
ALTER TABLE `torrentsADD `afterpretext


That and the php

wMan 1st December 2012 22:58

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'



All times are GMT +2. The time now is 08:52.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.