forked from blallo/rss-bridge
Remove usage of function file_get_contents.
This commit is contained in:
parent
55f112e034
commit
ba8542156c
1 changed files with 4 additions and 4 deletions
|
@ -52,14 +52,14 @@ class DemonoidBridge extends BridgeAbstract {
|
||||||
switch($critList) {
|
switch($critList) {
|
||||||
case 'search':
|
case 'search':
|
||||||
if($catBool == false) {
|
if($catBool == false) {
|
||||||
$html = file_get_contents(
|
$html = getContents(
|
||||||
self::URI .
|
self::URI .
|
||||||
'files/?category=0&subcategory=All&quality=All&seeded=2&external=2&query=' .
|
'files/?category=0&subcategory=All&quality=All&seeded=2&external=2&query=' .
|
||||||
urlencode($keywords) . #not rawurlencode so space -> '+'
|
urlencode($keywords) . #not rawurlencode so space -> '+'
|
||||||
'&uid=0&sort='
|
'&uid=0&sort='
|
||||||
) or returnServerError('Could not request Demonoid.');
|
) or returnServerError('Could not request Demonoid.');
|
||||||
} else {
|
} else {
|
||||||
$html = file_get_contents(
|
$html = getContents(
|
||||||
self::URI .
|
self::URI .
|
||||||
'files/?category=' .
|
'files/?category=' .
|
||||||
rawurlencode($catNum) .
|
rawurlencode($catNum) .
|
||||||
|
@ -70,7 +70,7 @@ class DemonoidBridge extends BridgeAbstract {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'usr':
|
case 'usr':
|
||||||
$html = file_get_contents(
|
$html = getContents(
|
||||||
self::URI .
|
self::URI .
|
||||||
'files/?uid=' .
|
'files/?uid=' .
|
||||||
rawurlencode($keywords) .
|
rawurlencode($keywords) .
|
||||||
|
@ -78,7 +78,7 @@ class DemonoidBridge extends BridgeAbstract {
|
||||||
) or returnServerError('Could not request Demonoid.');
|
) or returnServerError('Could not request Demonoid.');
|
||||||
break;
|
break;
|
||||||
case 'cat':
|
case 'cat':
|
||||||
$html = file_get_contents(
|
$html = getContents(
|
||||||
self::URI .
|
self::URI .
|
||||||
'files/?uid=0&category=' .
|
'files/?uid=0&category=' .
|
||||||
rawurlencode($keywords) .
|
rawurlencode($keywords) .
|
||||||
|
|
Loading…
Reference in a new issue