A modern, network-enabled music player platform built on Rockbox technology. rockboxd.tsiry-sandratraina.com
rust deno navidrome airplay libadwaita zig mpris snapcast mpd rockbox audio subsonic
2

Configure Feed

Select the types of activity you want to include in your feed.

api: Fix some basic syntax problems with the plugin API generator

Change-Id: I9e6afa5b75e7fb803ee4c29f8306b56d7f8d7f64

+17 -17
+11 -11
utils/rockbox_api/functions.php
··· 1 - <? 1 + <?php 2 2 $svn = "http://svn.rockbox.org/viewvc.cgi/trunk/"; 3 3 $wiki = "http://www.rockbox.org/wiki/"; 4 4 ··· 12 12 function get_newest() 13 13 { 14 14 global $svn; 15 - 16 - $mypath = $_SERVER['SCRIPT_FILENAME']; 17 - $mypath = substr($mypath, 0, strrpos($mypath, "/"))."/"; 18 - 15 + 16 + $mypath = "./"; //$_SERVER['SCRIPT_FILENAME']; 17 + // $mypath = substr($mypath, 0, strrpos($mypath, "/"))."/"; 18 + 19 19 $text = file_get_contents($mypath."../../apps/plugin.h"); 20 20 21 21 $text = str_replace(array("\r\n", "\r"), "\n", $text); ··· 55 55 for($i=0; $i<count($text); $i++) 56 56 { 57 57 $tmp = trim($text[$i]); 58 - 58 + 59 59 if(substr($tmp, 0, 1) == '#') 60 60 { 61 61 $tmp = trim(substr($tmp, 1)); ··· 196 196 $buffer = ""; 197 197 for($i=0; $i<strlen($func); $i++) 198 198 { 199 - switch($func{$i}) 199 + switch($func[$i]) 200 200 { 201 201 case "(": 202 202 $level++; ··· 234 234 $buffer .= ","; 235 235 break; 236 236 default: 237 - $buffer .= $func{$i}; 237 + $buffer .= $func[$i]; 238 238 break; 239 239 } 240 240 } ··· 295 295 296 296 function _simplify($text) 297 297 { 298 - $text = ereg_replace('\(!\( (.*)[ ]?\)\)', '!\1', $text); 299 - $text = ereg_replace('\(\(([^ ])\)\)', '\1', $text); 298 + // $text = ereg_replace('\(!\( (.*)[ ]?\)\)', '!\1', $text); 299 + // $text = preg_replace('/\(\((.*])\)\)/', '${1}', $text); 300 300 return $text; 301 301 } 302 302 ··· 313 313 foreach($data as $el) 314 314 { 315 315 $el = trim($el); 316 - 316 + 317 317 if(substr($el, 0, 1) != "[") 318 318 $ret[] = do_markup("[F[".$el."]]"); 319 319 else
+2 -2
utils/rockbox_api/gen_html.php
··· 1 1 #!/usr/bin/php 2 - <? 2 + <?php 3 3 require_once("functions.php"); 4 4 5 5 function get_group($text) ··· 134 134 } 135 135 136 136 copy($mypath."layout.css", "output/layout.css"); 137 - ?> 137 + ?>
+2 -2
utils/rockbox_api/generate.php
··· 1 1 #!/usr/bin/php 2 - <? 2 + <?php 3 3 require_once("functions.php"); 4 4 5 5 echo '# Auto generated documentation by Rockbox plugin API generator v2'."\n"; ··· 60 60 } 61 61 62 62 echo "\n# END\n"; 63 - ?> 63 + ?>
+2 -2
utils/rockbox_api/update.php
··· 1 1 #!/usr/bin/php 2 - <? 2 + <?php 3 3 require_once("functions.php"); 4 4 5 5 $input = file_get_contents($argv[1]); ··· 158 158 } 159 159 160 160 echo "\n# END\n"; 161 - ?> 161 + ?>