Subversion Repositories SvarDOS

Rev

Rev 216 | Rev 345 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 216 Rev 323
Line 67... Line 67...
67
 
67
 
68
if ($a === 'search') {
68
if ($a === 'search') {
69
  $matches = 0;
69
  $matches = 0;
70
  while (($pkg = fgetcsv($handle, 1024, "\t")) !== FALSE) {
70
  while (($pkg = fgetcsv($handle, 1024, "\t")) !== FALSE) {
71
    if ((stristr($pkg[0], $p)) || (stristr($pkg[2], $p))) {
71
    if ((stristr($pkg[0], $p)) || (stristr($pkg[2], $p))) {
72
      echo str_pad(strtoupper($pkg[0]), 12) . str_pad("ver: {$pkg[1]}", 13) . str_pad("size: " . nicesize(filesize($pkg[0] . '.zip')), 13) . "BSUM: {$pkg[3]}\r\n";
72
      echo str_pad(strtoupper($pkg[0]), 12) . str_pad("ver: {$pkg[1]}", 13) . str_pad("size: " . nicesize(filesize($pkg[0] . '.zip')), 13) . "BSUM: " . sprintf("%04X", $pkg[3]) . "\r\n";
73
      echo wordwrap($pkg[2], 79, "\r\n", true);
73
      echo wordwrap($pkg[2], 79, "\r\n", true);
74
      echo "\r\n\r\n";
74
      echo "\r\n\r\n";
75
      $matches++;
75
      $matches++;
76
    }
76
    }
77
  }
77
  }