* Extension supported by the syntax highlighter.␊ |
*/␊ |
public static $supportedExtenstions = array(␊ |
'ascx', 'ashx', 'asmx', 'aspx', 'browser', 'bsh', 'c', 'cc', ␊ |
'config', 'cpp', 'cs', 'csh',␉'csproj', 'css', 'cv', 'cyc', ␊ |
'html', 'html', 'java', 'js', 'master', 'perl', 'php', 'pl', ␊ |
'pm', 'py', 'rb', 'sh', 'sitemap', 'skin', 'sln', 'svc', 'vala', ␊ |
'ascx', 'ashx', 'asmx', 'aspx', 'browser', 'bsh', 'c', 'cc',␊ |
'config', 'cpp', 'cs', 'csh',␉'csproj', 'css', 'cv', 'cyc',␊ |
'html', 'html', 'java', 'js', 'master', 'perl', 'php', 'pl',␊ |
'pm', 'py', 'rb', 'sh', 'sitemap', 'skin', 'sln', 'svc', 'vala',␊ |
'vb', 'vbproj', 'wsdl', 'xhtml', 'xml', 'xsd', 'xsl', 'xslt');␊ |
␊ |
/**␊ |
|
$scm->getMainBranch()));␊ |
return new Pluf_HTTP_Response_Redirect($url);␊ |
}␊ |
$info = self::getRequestedFileMimeType($request_file_info, ␊ |
$info = self::getRequestedFileMimeType($request_file_info,␊ |
$commit, $scm);␊ |
$rep = new Pluf_HTTP_Response($scm->getFile($request_file_info),␊ |
$info[0]);␊ |
|
public static function getMimeTypeFromContent($file, $filedata)␊ |
{␊ |
$info = pathinfo($file);␊ |
$res = array('application/octet-stream', ␊ |
$res = array('application/octet-stream',␊ |
$info['basename'],␊ |
isset($info['extension']) ? $info['extension'] : 'bin');␊ |
if (function_exists('finfo_open')) {␊ |
|
return Pluf_Utils::prettySize($size);␊ |
}␊ |
␊ |
function IDF_Views_Source_ShortenString($string, $length)␊ |
{␊ |
$ellipse = "...";␊ |
$length = max(strlen($ellipse) + 2, $length);␊ |
$preflen = ceil($length / 10);␊ |
␊ |
if (mb_strlen($string) < $length)␊ |
return $string;␊ |
␊ |
return substr($string, 0, $preflen).$ellipse.␊ |
substr($string, -($length - $preflen - mb_strlen($ellipse)));␊ |
}␊ |
␊ |