mirror of
https://github.com/danbee/neompc
synced 2025-03-04 08:39:10 +00:00
* Fixed issue with Symbols In Folder Name causing problems. (thanks themaniac)
* Added iPhone specific viewport meta tag to default template. (not tested)
This commit is contained in:
parent
f4d0e75c24
commit
90cb63cc7e
@ -197,8 +197,14 @@ class mpd {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (strlen($arg1) > 0) $cmdStr .= " \"$arg1\"";
|
||||
if (strlen($arg2) > 0) $cmdStr .= " \"$arg2\"";
|
||||
if (strlen($arg1) > 0) {
|
||||
$arg1 = str_replace("\"", "\\\"", $arg1);
|
||||
$cmdStr .= " \"$arg1\"";
|
||||
}
|
||||
if (strlen($arg2) > 0) {
|
||||
$arg2 = str_replace("\"", "\\\"", $arg2);
|
||||
$cmdStr .= " \"$arg2\"";
|
||||
}
|
||||
fputs($this->mpd_sock,"$cmdStr\n");
|
||||
while(!feof($this->mpd_sock)) {
|
||||
$response = fgets($this->mpd_sock,1024);
|
||||
@ -241,8 +247,14 @@ class mpd {
|
||||
if ( strlen($this->command_queue) == 0 ) {
|
||||
$this->command_queue = MPD_CMD_START_BULK . "\n";
|
||||
}
|
||||
if (strlen($arg1) > 0) $cmdStr .= " \"$arg1\"";
|
||||
if (strlen($arg2) > 0) $cmdStr .= " \"$arg2\"";
|
||||
if (strlen($arg1) > 0) {
|
||||
$arg1 = str_replace("\"", "\\\"", $arg1);
|
||||
$cmdStr .= " \"$arg1\"";
|
||||
}
|
||||
if (strlen($arg2) > 0) {
|
||||
$arg2 = str_replace("\"", "\\\"", $arg2);
|
||||
$cmdStr .= " \"$arg2\"";
|
||||
}
|
||||
|
||||
$this->command_queue .= $cmdStr ."\n";
|
||||
|
||||
@ -781,7 +793,7 @@ class mpd {
|
||||
$plistFile = "";
|
||||
$plCounter = -1;
|
||||
while ( $plistLine ) {
|
||||
list ( $element, $value ) = split(": ",$plistLine);
|
||||
list ( $element, $value ) = split(": ",$plistLine, 2);
|
||||
if ( $element == "file" ) {
|
||||
$plCounter++;
|
||||
$plistArray[$plCounter]["file"] = $value;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
|
||||
{if $browselist_item.directory}
|
||||
|
||||
<li><a href="index.php?browse={$browselist_item.directory}"><img src="templates/{$template}/images/dir.gif" class="icon" /> {$browselist_item.directory_name|escape:'html'}</a></li>
|
||||
<li><a href="index.php?browse={$browselist_item.directory|escape:'url'}"><img src="templates/{$template}/images/dir.gif" class="icon" /> {$browselist_item.directory_name|escape:'html'}</a></li>
|
||||
|
||||
{elseif $browselist_item.metaArtist}
|
||||
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
|
||||
<head>
|
||||
<title>NeoMPC {$version}</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=240, user-scalable=no"/>
|
||||
|
||||
<style>
|
||||
{include file="default/styles.css"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user