PageRenderTime 79ms CodeModel.GetById 74ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/hosts/hosts.php

https://github.com/gartz/RapidLeetch
PHP | 16 lines | 16 code | 0 blank | 0 comment | 13 complexity | c8ed9c38b86389001142f390a75f11ff MD5 | raw file
 1<?php
 2$d = dir("hosts/");
 3while (false !== ($entry = $d->read())) {
 4   if (stristr($entry,'.php') && !stristr($entry,'.JD')) {
 5		$hostname = substr($entry,0,-4);
 6		$hostname = str_replace('_','.',$hostname);
 7		if ($hostname == 'easy.share.com') $hostname = 'easy-share.com';
 8		if ($hostname == 'generic.minifilehost') continue;
 9		if ($hostname == 'youtube.com(1)') continue;
10		if ($hostname == 'vBulletin.plug') continue;
11		if ($hostname == 'hosts') continue;
12		$host[$hostname] = $entry;
13   }
14}
15$d->close();
16?>