IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2012, 9:14:56 AM (14 years ago)
Author:
eugene
Message:

adding makefile installation and markdown.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905/dvodist/www-util/ipp.php

    r33986 r34543  
    165165  // loop over the lines in the file and generate lines in the menu
    166166  while ($line = fgets ($file, 1024)) {
     167    echo "line: $line<br>\n";
    167168    if (strlen($line) < 2) {
    168169      if (!$addbreak) {
     
    177178  }
    178179  fclose ($file);
     180}
     181
     182function do_markdown ($source) {
     183  $file = fopen ($source, "r");
     184
     185  // loop over the lines in the file and generate lines in the menu
     186  $ascii = "";
     187  while ($line = fgets ($file, 1024)) {
     188    $ascii .= $line;
     189  }
     190  fclose ($file);
     191  $my_html = Markdown($ascii);
     192  echo "$my_html";
    179193}
    180194
Note: See TracChangeset for help on using the changeset viewer.