Activity Stream
48,167 MEMBERS
6767 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1.     
    #1
    Member
    Website's:
    warezxtc.com

    Default [PHP] CyberJ37's Link Checker

    Just a little something I lost interest in, therefore, I will not be updating this script nor will I be adding the features I planned to.

    Code: 
    <?php
    set_time_limit(0); // Cheat PHP's set_time_limit configuration
    
    define('MAX_LINKS', 50); // Maximum links allowed to be checked at once.
    
    $sites = array // Supported sites
        (
            'rapidshare.com' => 'FILE DOWNLOAD',
            'rapidshare.de' => 'Choose download-type',
            'megaupload.com' => 'Filename:',
            'filefactory.com' => 'file uploaded',
            'netload.in' => 'dl_first_tacho.gif',    
            'depositfiles.com' => 'File name:',
            'sendspace.com' => '<b>Size:',
            'uploading.com' => 'ico_download_file',
            'ul.to' => '"inputActive"',
            'ziddu.com' => 'File Size',
            'uploaded.to' => '"inputActive"',
            'easy-share.com' => 'dwait',
            'hotfile.com' => '<td>Downloading ',
            'mediafire.com' => 'Processing download request...',
            'storage.to' => 'Downloading:',
            'uploadbox.com' => 'Free Download',
            '2shared.com' => 'File size',
            'zshare.net' => 'File Name'
        );
    ?>
    <!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">
    <head>
    <title>CyberJ37's Link Checker</title>
    <style type="text/css">
    <!--
    body {
        font:9pt verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;
    }
    .green {
        color:green;
    }
    .red {
        color: red;
    }
    -->
    </style>
    </head>
    <body>
    <b> Supported File Hosts:</b><br />
    <?php // List supported sites
    $es = 0;
    echo '<table cellspacing="2" cellpadding="2"><tr>';
    foreach ($sites as $site => $match){
        echo '<td>'.$site.'</td>';
        ++$es;
        echo ($es%5) ? '' : '</tr><tr>';
    }
    echo '</tr></table>';
    ?>
    <br />
    <br />
    <form action="" method="post">
        <b>Links To Check:</b><br />
        <textarea rows="8" cols="52" name="links" class="textarea"></textarea><br />
        <br />
        <input type="submit" value="Check Links" name="checklinks" class="button" /><input type="reset" value="Clear" class="button">
    </form>
    <br />
    <br />
    
    <?php
    // Try not to edit anything below this ... seriously.
    function getPage($url){
        if(function_exists('curl_init')) {
            $ch = curl_init($url);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            $page = curl_exec($ch);
            curl_close ($ch);
            return $page;
        }
        return file_get_contents($url);
    }
    
    if($_POST){
    
        $links = explode("\n", implode("\n", explode(" ", $_POST['links'])));
        $checked = 0;
        $alive = 0;
    
        foreach($links as $link){
           $link = trim($link); 
           
            foreach($sites as $site => $match){
                if(stristr($link,$site)){
                    $page = getPage($link);
                    $link = htmlentities($link);
                    if(stristr($page,$match)) {
                        echo '<span class="green">Alive: <a href="'.$link.'"><b>'.$link.'</b></a></span><br />'; 
                        $alive++;
                    } else echo '<span class="red">Dead: <a href="'.$link.'"><b>'.$link.'</b></a></span><br />';            
                    
                    $checked++;
                }
                    
                if($checked >= MAX_LINKS){
                    echo '<br />Maximum No ('.MAX_LINKS.') of links has been reached.</body></html>';
                    break 2;
                }
            }
        }
        echo ($checked == 0) ? '<span class="red">No supported links could be found.</span><br />' : '<br />'.$checked.' link'.(($checked == 1) ? '' : 's').' checked. ('.round($alive/$checked*100).'% alive)<br />';
    }
    ?>
    <br /><br />
    Coded by CyberJ37 - <a href="http://www.warezlobby.org/">WarezLobby.org</a>
    </body></html>
    CyberJ37 Reviewed by CyberJ37 on . [PHP] CyberJ37's Link Checker Just a little something I lost interest in, therefore, I will not be updating this script nor will I be adding the features I planned to. <?php set_time_limit(0); // Cheat PHP's set_time_limit configuration define('MAX_LINKS', 50); // Maximum links allowed to be checked at once. $sites = array // Supported sites ( 'rapidshare.com' => 'FILE DOWNLOAD', Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    Website's:
    X4B.org
    mate curl_close, other than that good job.

  4.     
    #3
    Member
    Website's:
    warezxtc.com
    Quote Originally Posted by SplitIce View Post
    mate curl_close, other than that good job.
    Thanks for reminding, edited the first post

  5.     
    #4
    Google Corp.
    Thanks works perfectly

    Life asked Death: "Why do people love me, but hate you?"
    Death responded: "Because you're a beautiful lie and I'm the painful truth."


  6.     
    #5
    Member
    This won't work with megashares btw, because of their landing page.
    You need to request the page once, store the cookies in a cookiefile, then set the referrer to the URL requesting then request the page again with the cookies collected. Yeah its a pain I know.

  7.     
    #6
    Member
    Website's:
    warezxtc.com
    Quote Originally Posted by ddlshack View Post
    This won't work with megashares btw, because of their landing page.
    You need to request the page once, store the cookies in a cookiefile, then set the referrer to the URL requesting then request the page again with the cookies collected. Yeah its a pain I know.
    Totally forgot about that.

    Removed MegaShares from the list.
    CBA to add the cookies part now, as I said, won't be updating this

  8.     
    #7
    Member
    ok fair enough lol

  9.     
    #8
    Member
    yea good script

  10.     
    #9
    Member
    Website's:
    wrzc.eu watchfreemoviez.eu
    Hmm nice thanks for the share.

    Respect: SMLMATS, M-R-T, Elio, exel, SLiM, UltimA, Hx, Rick

    MechoDDL - All Your Needs

  11.     
    #10
    Banned
    Website's:
    FusionWarez.info SmokeHost.net Leechers.co
    Awesome work bro.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IPB 3 Link Checker Bot Need
    By makfun in forum IP.Board
    Replies: 18
    Last Post: 30th Oct 2012, 08:10 PM
  2. Link checker for WP
    By DeathRS in forum Webmaster Discussion
    Replies: 7
    Last Post: 14th Apr 2011, 05:20 PM
  3. Link checker for 4.x.x
    By ibby in forum vBulletin
    Replies: 3
    Last Post: 17th Jan 2011, 12:14 AM
  4. Link checker bot
    By cyberz in forum Webmaster Discussion
    Replies: 0
    Last Post: 22nd Jul 2010, 11:54 PM
  5. CyberJ37's Post Generator 1.0.0
    By CyberJ37 in forum Webmaster Resources
    Replies: 19
    Last Post: 2nd Oct 2009, 02:43 PM

Tags for this Thread

BE SOCIAL