This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fp = fsockopen('127.0.0.1', 6379, $errno, $errstr, 30); | |
$data = array(); | |
if (!$fp) { | |
die($errstr); | |
} else { | |
fwrite($fp, "INFO\r\nQUIT\r\n"); | |
while (!feof($fp)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fdrop_Plugin_AcceptHandler extends Zend_Controller_Plugin_Abstract | |
{ | |
protected function getQuality($media) | |
{ | |
$data = explode(";q=", $media); | |
return isset($data[1]) ? $data[1] : 1.0; | |
} | |
protected function sortMediaByQuality($a, $b) | |
{ |
NewerOlder