This commit is contained in:
franzz committed 2026-05-12 11:11:09 +02:00
1 parent c0c0b21290
commit eb9f2f4cac
12 files changed
-200

No files matched your search

Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
Whitespace-only changes.
-3
View File
@@ -1,3 +0,0 @@
german
xxx
pr0n
-119
View File
@@ -1,119 +0,0 @@
<?php
//Anti Spam List
$sMovieList = '';
if(file_exist('movie_list')) $sMovieList = file_get_contents('movie_list');
if(substr($sMovieList, 0, 8) != date('Ymd')) file_put_contents('movie_list', '');
$asMovieList = array_shift(explode("\n", $sMovieList));
//Black List
$sBlTitleContent = file_get_contents('bl_title');
$sBlDescContent = file_get_contents('bl_desc');
$asBlTitle = explode("\n", $sBlTitleContent);
$asBlDesc = explode("\n", $sBlTitleContent);
$asChannels = array('alt.binaries.hdtv.x264', 'alt.binaries.movies', 'alt.binaries.sleazemovies');
foreach($asChannels as $iChanKey=>$sChannel)
{
//Extract file
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://rss.binsearch.net/rss.php?max=300&g='.$sChannel);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING , "gzip");
$sRssIn = curl_exec($ch);
curl_close($ch);
//Rss Feed Input
$sRssIn = str_replace("\n", '', $sRssIn);
//Rss Feed Output
$sRssOut = '';
//Slice Rss feed into items
preg_match_all("/\<item\>(.+)\<\/item\>/U", $sRssIn, $asItems);
//print_r($asItems);die();
foreach($asItems[1] as $iItemKey=>$sItem)
{
//Slice item into tags
preg_match_all("/\<(?P<tag>\w+)\>(?P<text>.+)\<\/(?P<tag_fin>\w+)\>/U", $sItem, $asTags);
//print_r($asTags);die();
/*
[0] => Array
(
[0] => <title>dc96773fb88f2f75d581194a4320fedc[76/79] - "15321568f277a26d326baddfb33d62621fe93693187c474f8cac0fb13a0d5b8f.0" yEnc (1/1)</title>
[1] => <description>&lt;table border width="75%" style="border: solid 1px"&gt;&lt;tr&gt;&lt;td width="25%"&gt;Group:&lt;td&gt;alt.binaries.hdtv.x264&lt;tr&gt;&lt;td&gt;Subject:&lt;td&gt;dc96773fb88f2f75d581194a4320fedc[76/79] - "15321568f277a26d326baddfb33d62621fe93693187c474f8cac0fb13a0d5b8f.0" yEnc (1/1)&lt;tr&gt;&lt;td&gt;Poster:&lt;td&gt;Yenc@power-post.org (Yenc-PP-A&amp;amp;A)&lt;tr&gt;&lt;td&gt;Details:&lt;td&gt;&lt;span class="d"&gt;&lt;br&gt;&lt;a href="http://www.binsearch.info/?b=15321568f277a26d326baddfb33d62621fe93693187c474f8cac0fb13a0d5b8f&amp;amp;g=alt.binaries.hdtv.x264&amp;amp;p=Yenc%40power-post.org+%28Yenc-PP-A%26A%29&amp;amp;max=250"&gt;collection&lt;/a&gt; size: 2.35&amp;nbsp;MB, parts available: 7 / 7&lt;br&gt;- 2 par2 files&lt;br&gt;- 1 split file&lt;br&gt;- 1 other file&lt;br&gt;&lt;/span&gt;&lt;/table&gt;</description>
[2] => <pubDate>Thu, 03 Jan 2013 15:31:53 GMT</pubDate>
[3] => <link>http://www.binsearch.info/?action=nzb&amp;97515747=1</link>
)
[tag] => Array
(
[0] => title
[1] => description
[2] => pubDate
[3] => link
)
[text] => Array
(
[0] => dc96773fb88f2f75d581194a4320fedc[76/79] - "15321568f277a26d326baddfb33d62621fe93693187c474f8cac0fb13a0d5b8f.0" yEnc (1/1)
[1] => &lt;table border width="75%" style="border: solid 1px"&gt;&lt;tr&gt;&lt;td width="25%"&gt;Group:&lt;td&gt;alt.binaries.hdtv.x264&lt;tr&gt;&lt;td&gt;Subject:&lt;td&gt;dc96773fb88f2f75d581194a4320fedc[76/79] - "15321568f277a26d326baddfb33d62621fe93693187c474f8cac0fb13a0d5b8f.0" yEnc (1/1)&lt;tr&gt;&lt;td&gt;Poster:&lt;td&gt;Yenc@power-post.org (Yenc-PP-A&amp;amp;A)&lt;tr&gt;&lt;td&gt;Details:&lt;td&gt;&lt;span class="d"&gt;&lt;br&gt;&lt;a href="http://www.binsearch.info/?b=15321568f277a26d326baddfb33d62621fe93693187c474f8cac0fb13a0d5b8f&amp;amp;g=alt.binaries.hdtv.x264&amp;amp;p=Yenc%40power-post.org+%28Yenc-PP-A%26A%29&amp;amp;max=250"&gt;collection&lt;/a&gt; size: 2.35&amp;nbsp;MB, parts available: 7 / 7&lt;br&gt;- 2 par2 files&lt;br&gt;- 1 split file&lt;br&gt;- 1 other file&lt;br&gt;&lt;/span&gt;&lt;/table&gt;
[2] => Thu, 03 Jan 2013 15:31:53 GMT
[3] => http://www.binsearch.info/?action=nzb&amp;97515747=1
*/
//Extract item's tag names
foreach($asTags['tag'] as $iTagKey=>$sTageName)
{
$asTagIndex[$sTageName] = $iTagKey;
}
$sTitle = $asTags['text'][$asTagIndex['title']];
$sDesc = $asTags['text'][$asTagIndex['description']];
//Validator
$bValid = true;
//Check Poster
//preg_match('/Poster\:\&lt\;td\&gt\;(?P<address>\S*)\ \((?P<user>\S*)\)/i', $sTitle, $as);
foreach($asBlTitle as $sBlWord)
{
preg_match('/'.preg_quote($sBlWord).'/i', $sTitle, $asFoundBlWord);
if(count($asFoundBlWord) != 0) $bValid = false;
}
foreach($asBlDesc as $sBlWord)
{
preg_match('/'.preg_quote($sBlWord).'/i', $sDesc, $asFoundBlWord);
if(count($asFoundBlWord) != 0) $bValid = false;
}
//Check movie quality
preg_match('/1080p/i', $sTitle, $asQuality);
if(count($asQuality) == 0) $bValid = false;
//Jul - Remove German movies
//preg_match('/german/i', $sTitle, $asLang);
//if(count($asLang) != 0) $bValid = false;
//Check Series
preg_match('/s([0-9]{1,2})e([0-9]{2})/i', $sTitle, $asSeries);
if(count($asSeries) != 0) $bValid = false;
if($bValid) $asValidItems[] = $asItems[0][$iItemKey];
}
}
//rebuild RSS feed
date_default_timezone_set('Europe/Paris');
echo '<?xml version="1.0" encoding="utf-8"?><rss version="2.0">'.
'<channel>'.
'<title>'.implode(', ', $asChannels).'</title>'.
'<link>http://www.binsearch.info/</link>'.
'<description>Latest newsgroup posts as indexed by BinSearch.info</description>'.
'<copyright>This RSS collection is copyright (c) BinSearch team. Commercial use prohibited. This collection is generated by an automated process based on the posts found in global Usenet newsgroups. The posters retain copyright over their individual posts.</copyright>'.
'<lastBuildDate>'.date('r').'</lastBuildDate>'.
implode("\n\t\t", $asValidItems).
'</channel>'.
'</rss>';
?>
Executable → Regular
View File
File mode changed.
-78
View File
@@ -1,78 +0,0 @@
<?php
//error_reporting(-1);
error_reporting(0);
date_default_timezone_set('Europe/Paris');
$now = new DateTime();
$mins = $now->getOffset() / 60;
$sgn = ($mins < 0 ? -1 : 1);
$mins = abs($mins);
$hrs = floor($mins / 60);
$mins -= $hrs * 60;
$offset = sprintf('%+d:%02d', $hrs*$sgn, $mins);
echo '$mins='.$mins.'<br />hours='.$hrs.'<br />Offset='.$offset;
// $sFileContent = file_get_contents('dump');
// //$sFileContent = substr($sFileContent, 0, 1000);
// //echo strlen($sFileContent);
// $asToMatch = array(6632, 6656, 6657, 6675, 6680, 6682, 6683, 6686, 6691, 6693, 6697, 6699, 6700, 6751, 6753, 6830, 6855, 6902, 6912, 6920, 6923, 6934, 6947, 6975, 6992, 7022, 7036, 7047, 7049, 7085, 7087, 7106, 7113, 7128, 7138, 7238, 7268, 7285, 7287, 7322, 7325, 7330, 7344, 7355, 7362, 7363, 7383, 7388, 7448, 7488, 7493, 7494, 7495, 7496, 7498, 7506, 7507, 7560, 7597, 7640, 7654, 7659, 7662, 7694, 7698, 7711, 7713, 7731, 7732, 7733, 7743, 7769, 7772, 7826, 7852, 7954, 7983, 7986, 8007, 8008, 8028, 8125, 8166, 8189, 8212, 8213, 8270, 8278, 8279, 8326, 8327, 8332, 8339, 8360, 8442, 8467, 8473, 8490, 8529, 8554, 8557, 8559, 8567, 8568, 8608, 8632, 8691, 8728, 8731, 8762, 8769, 8789, 8799, 8808, 8809, 8815, 8834, 8841, 8844, 8850, 8852, 8863, 8865, 8874, 8887, 8892, 8896, 8900, 8903, 8906, 8917, 8944, 8945, 8957, 8959, 8965, 8983, 8989, 9031, 9041, 9046, 9047, 9048, 9051, 9063, 9076, 9080, 9085, 9089, 9090, 9099, 9102, 9115, 9152, 9156, 9169, 9207, 9249, 9252, 9258, 9267, 9298, 9300, 9373, 9381, 9402, 9403, 9407, 9477, 9519, 9521, 9541, 9543, 9631, 9642, 9644, 9654, 9676, 9680, 9695, 9700, 9707, 9735, 9740, 9747, 9751, 9752, 9756, 9757, 9781, 9785, 9792, 9796, 9798, 9806, 9808, 9809, 9816, 9825, 9826, 9836, 9840, 9844, 9849, 9856, 9871, 9889, 9956, 9968, 10019, 10033, 10066, 10086, 10088, 10091, 10094, 10100, 10102, 10106, 10113, 10155, 10161, 10198, 10199, 10200, 10201, 10243, 10246, 10260, 10337, 10400, 10415, 10436, 10462, 10464, 10508, 10510, 10511, 10523, 10542, 10545, 10552, 10554, 10563, 10568, 10574, 10670, 10729, 10740, 10745, 10756, 10757, 10765, 10769, 10770, 10776, 10815, 10818, 10822, 10837, 10877, 10913, 10916, 10978, 10991, 11020, 11025, 11026, 11048, 11164, 11176, 11190, 11240, 11244, 11245, 11246, 11247, 11248, 11249, 11253, 11258, 11260, 11276, 11284, 11285, 11292, 11295, 11298, 11302, 11332, 11363, 11364, 11366, 11367, 11368, 11369, 11377, 11386, 11392, 11402, 11405, 11410, 11416, 11417, 11420, 11423, 11426, 11427, 11430, 11433, 11454, 11460, 11502, 11584, 11590, 11593, 11598, 11637, 11650, 11667, 11681, 11682, 11716, 11718, 11741, 11747, 11775, 11820, 11823, 11840, 11884, 12037, 12147, 12162, 12193, 12246, 12250, 12302, 12307, 12323, 12331, 12345, 12365, 12369, 12388, 12399, 12409, 12410, 12414, 12415, 12417, 12427, 12449, 12471, 12472, 12478, 12481, 12486, 12491, 12556, 12561, 12574, 12587, 12605, 12608, 12637, 12666, 12694, 12706, 12716, 12727, 12779, 12791, 12811, 12817, 12822, 12833, 12837, 12841, 12846, 12863, 12876, 12880, 12921, 12935, 12955, 12956, 12961, 12964, 12984, 12992, 13012, 13017, 13051, 13068, 13079, 13093, 13098, 13117, 13127, 13154, 13156, 13194, 13250, 13297, 13310, 13334, 13335, 13346, 13384, 13391, 13396, 13404, 13418, 13442, 13445, 13446, 13452, 13453, 13506, 13583, 13597, 13636, 13657, 13795, 13814, 13818, 13820, 13828, 13837, 13838, 13866, 13868, 13884, 13937, 13940, 13957, 13990, 13992, 13993, 13995, 13996, 14005, 14018, 14021, 14030, 14032, 14035, 14055, 14119, 14121, 14122, 14130, 14133, 14152, 14173, 14187, 14188, 14201, 14204, 14207, 14208, 14267, 14282, 14304, 14311, 14327, 14403, 14417, 14423, 14427, 14443, 14470, 14560, 14592, 14619, 14645, 14647, 14670, 14680, 14708, 14714, 14719, 14721, 14724, 14731, 14748, 14771, 14796, 14800, 14801, 14803, 14809, 14811, 14827, 14837, 14844, 14853, 14873, 14875, 14883, 14886, 14889, 14893, 14902, 14906, 14938, 14939, 14944, 14952, 14967, 14987, 14989, 15000, 15014, 15023, 15049, 15069, 15070, 15082, 15086, 15097, 15104, 15113, 15118, 15124, 15129, 15130, 15131, 15135, 15151, 15166, 15175, 15177, 15184, 15186, 15206, 15211, 15216, 15246, 15255, 15269, 15284, 15288, 15293, 15384, 15430, 15435, 15438, 15441, 15447, 15459, 15497, 15510, 15513, 15532, 15539, 15550, 15573, 15589, 15595, 15640, 15645, 15666, 15698, 15702, 15703, 15704, 15705, 15707, 15717, 15721, 15722, 15767, 15770, 15816, 15818, 15836, 15844, 15851, 15856, 15859, 15864, 15865, 15889, 15890, 15902, 15907, 15920, 15933, 15951, 15955, 15956, 15976, 15987, 16013, 16029, 16042, 16054, 16059, 16062, 16074, 16091, 16095, 16098, 16111, 16117, 16127, 16130, 16187, 16226, 16266, 16282, 16289, 16304, 16310, 16349, 16368, 16374, 16381, 16395, 16419, 16433, 16463, 16504, 16533, 16534, 16553, 16565, 16612, 16614, 16622, 16635, 16660, 16664, 16666, 16695, 16697, 16710, 16740, 16767, 16768, 16777, 16779, 16787, 16805, 16847, 16858, 16864, 16875, 16929, 16940, 16942, 16955, 17013, 17019, 17043, 17046, 17158, 17185, 17210, 17218, 17222, 17223, 17249, 17253, 17268, 17307, 17311, 17326, 17350, 17351, 17393, 17394, 17401, 17403, 17411, 17432, 17433, 17442, 17443, 17574, 17630, 17642, 17653, 17655, 17657, 17688, 17740, 17742, 17761, 17775, 17776, 17784, 17802, 17804, 17809, 17823, 17846, 17888, 17904, 17930, 17934, 17956, 18015, 18016, 18026, 18032, 18052, 18089, 18091, 18095, 18142, 18174, 18225, 18227, 18237, 18285, 18303, 18326, 18339, 18364, 18370, 18403, 18430, 18482, 18495, 18496, 18503, 18504, 18525, 18536, 18541, 18547, 18548, 18551, 18600, 18604, 18618, 18623, 18659, Line truncated
// //preg_match_all("/\((?P<id_message>\d+)\,([^)]+)\,\'(?P<year>\d{4})\-(?P<month>\d{2})\-(?P<day>\d{2})\ (?P<hour>\d{2})\:(?P<minute>\d{2})\:(?P<second>\d{2})\'\)/", $sFileContent, $asMatches);
// //(6632,7,'Dany','En tout cas elle a été maligne pour pas être làpour le lavage de l\'appart ;)','U','2011-05-27 08:50:58')
// preg_match_all("/\((?P<id_message>\d+)\,(.+)\,\'(?P<year>\d{4})\-(?P<month>\d{2})\-(?P<day>\d{2})\ (?P<hour>\d{2})\:(?P<minute>\d{2})\:(?P<second>\d{2})\'\)/U", $sFileContent, $asMatches);
// $asMat = array();
// foreach($asMatches as $iKey=>$asMatch)
// {
// if(!is_numeric($iKey)) $asMat[$iKey] = $asMatch;
// }
// $sResult = '';
// foreach($asMat['id_message'] as $iKey=>$iMsgId)
// {
// $sLed = $asMat['year'][$iKey].'-'.$asMat['month'][$iKey].'-'.$asMat['day'][$iKey].' '.$asMat['hour'][$iKey].':'.$asMat['minute'][$iKey].':'.$asMat['second'][$iKey];
// if(strlen($sLed)==19 && in_array($iMsgId, $asToMatch)) $sResult .= "\nUPDATE messages2 SET led = '".$sLed."', date = DATE('".$sLed."') WHERE id_message = ".$iMsgId." LIMIT 1;";
// //if($iMsgId==6632) $sResult .= "\nUPDATE messages2 SET led = '".$sLed."', date = DATE('".$sLed."') WHERE id_message = ".$iMsgId." LIMIT 1;";
// }
// echo $sResult;
// $sSAPDomain = 'http://scn.sap.com';
// $sSAPBlogUrl = $sSAPDomain.'/community/data-warehousing/netweaver-bw/blog';
// $oDom = new DOMDocument;
// $oDom->loadHTML(file_get_contents($sSAPBlogUrl));
// $aoArticles = $oDom->getElementsByTagName('body')->item(0)->getElementsByTagName('header');
// foreach($aoArticles as $oArticle)
// {
// if($oArticle->getAttribute('class')=='jive-blog-post-subject')
// {
// $asArticleInfo = array();
// $aoLinks = $oArticle->getElementsByTagName('a');
// foreach($aoLinks as $oLink)
// {
// switch($oLink->getAttribute('class'))
// {
// //Title & link
// case 'font-color-normal':
// $asArticleInfo['item_title'] = ucfirst(trim($oLink->nodeValue));
// $asArticleInfo['item_title'] = substr($asArticleInfo['item_title'], -1)=='.'?substr($asArticleInfo['item_title'], 0, -1):$asArticleInfo['item_title'];
// $asArticleInfo['item_link'] = $oLink->getAttribute('href');
// $asArticleInfo['item_date'] = substr(str_replace(array($sSAPBlogUrl.'/', '/'), array('', '-'), $asArticleInfo['item_link']), 0, 10);
// break;
// //Author
// case 'jiveTT-hover-user jive-username-link':
// $asArticleInfo['author_name'] = ucwords(trim($oLink->nodeValue));
// $asArticleInfo['author_link'] = $sSAPDomain.$oLink->getAttribute('href');
// break;
// }
// }
// $asArticles[] = $asArticleInfo;
// }
// }
// print_r($asArticles);
//
//print_r($_SERVER);
?>