Results 1 to 10 of 11
-
6th Jan 2012, 04:15 PM #1OPBannedWebsite's:
WarezRelease.org ThatHosting.coHosts Bot Chk DDL - BBcode
hi
this is the bot too chk for hosts:
the problem is it only chks live links, eg.
www.oron.com/myfile.txt <-- the bot can see this "live link" btw
[ c o d e ]www.oron.com/myfile.txt[ / c o d e ] <-- it cnt see it. why? beccos its got tags aaround...
how to make it chk inside tags to........?Chris2k Reviewed by Chris2k on . Hosts Bot Chk DDL - BBcode hi this is the bot too chk for hosts: the problem is it only chks live links, eg. www.oron.com/myfile.txt <-- the bot can see this "live link" btw www.oron.com/myfile.txt <-- it cnt see it. why? beccos its got tags aaround... Rating: 5
-
6th Jan 2012, 04:48 PM #2Super Member
Work around/more ideas in this thread:
http://www.besthostingforums.com/64-...clickable.html
So kiss me and smile for me, say that you'll wait for me <'3
-
6th Jan 2012, 05:11 PM #3Respected MemberWebsite's:
DL4Everything.com Soft2050.inWell, the whole checking of code is:
PHP Code:<?php
$hosts = array('test', 'www.oron.com');
foreach($hosts as $host) if(strpos('[code]www.oron.com/myfile.txt', $host)) echo 'Yeah, it contains ' . $host . ' link. <br />';
?>
PHP Code:<?php
$hosts = array('test', 'www.oron.com');
foreach($hosts as $host) if(strpos('www.oron.com/myfile.txt', $host) !== false) echo 'Yeah, it contains ' . $host . ' link. <br />';
?>
Reposting since original post got deleted. Removed the original code since its some other user work this time though
-
6th Jan 2012, 11:51 PM #4OPBannedWebsite's:
WarezRelease.org ThatHosting.coso, forgive me if im asking dumb question btw wud this work:
PHP Code:foreach($hosts as $host)
if(strpos('[code]'.$host.'[/code]')) $keyword[] = $host; else if(strpos($file['content'],$host)) $keyword[] = $host;
-
7th Jan 2012, 12:14 AM #5Member
This site is using a hacked database of W junction
Last edited by Gavo; 4th Jan 2015 at 02:37 PM.
-
7th Jan 2012, 04:11 AM #6Respected MemberWebsite's:
DL4Everything.com Soft2050.in
-
7th Jan 2012, 12:05 PM #7MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comuse regex if you want more certainty
PHP Code:$string = '[code]www.oron.com/myfile.txt'; //your string here
$host = 'oron.com'; //mind the format, host.com, no www.
$host = str_replace('.', '\.', $host); //escape dots
$pattern = '/(w{3}|)\.' . $host . '[a-zA-Z0-9_\\-.:#\/~}]/i'; //pattern to use
$found = preg_match($pattern, $string);
echo ($found ? 'found' : 'not found');
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
7th Jan 2012, 02:17 PM #8OPBannedWebsite's:
WarezRelease.org ThatHosting.cohi i think soft2050 is on the rite track... btw will it chk live links aswll as linkss in tags likee [code] and <pre>
-
7th Jan 2012, 02:38 PM #9Respected MemberWebsite's:
DL4Everything.com Soft2050.inWell, it does work for [code] and <pre> tags. because it does work for:
PHP Code:<?php
$hosts = array('test', 'www.oron.com');
foreach($hosts as $host) if(strpos('[code]<pre>www.oron.com/myfile.txt</pre>[/code]', $host) !== false) echo 'Yeah, it contains ' . $host . ' link. <br />';
?>
Also, the above method will check for the string in the page, it will add it if it found even the domain name in the page. so either you have to specify the full link starter (eg: filesonic.com/file) or use regex so that no one can spoof.
-
7th Jan 2012, 03:47 PM #10OPBannedWebsite's:
WarezRelease.org ThatHosting.coso the code i gave in post #4 not work...
cos its chking if it has tags and if it dont.......
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] PHP Dev for BBCODE
By tarung2010 in forum Completed TransactionsReplies: 0Last Post: 5th Jan 2012, 05:43 PM -
vb 4.1.4 BBCode
By muditha in forum vBulletinReplies: 0Last Post: 27th Jul 2011, 07:34 AM -
Youtube plugin icon/bbcode after "Slide Tag" bbcode?
By CyberAff in forum Feedback and SuggestionsReplies: 9Last Post: 20th May 2011, 03:35 PM -
BBcode help
By zay in forum Webmaster ResourcesReplies: 4Last Post: 17th Mar 2011, 02:28 AM -
CMS that allows [bbcode]
By Hatefed in forum Webmaster DiscussionReplies: 2Last Post: 31st Dec 2010, 09:29 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...