예제 #1
0
파일: opentag.php 프로젝트: reubano/opentag
     }
     //<-- end if -->
     if ($varmode) {
         print_r($general->getVars(get_defined_vars()));
     }
     //<-- end if -->
     exit(0);
 }
 //<-- end if -->
 // execute program
 if ($stdin) {
     $files = $general->readSTDIN();
     $files = $general->lines2Array($files);
 }
 //<-- end if -->
 $files = $general->getFullPath($files);
 $openmeta = new openmeta($files, $thisProjectDir);
 if ($spotlight) {
     if ($addTag) {
         $spotlightTags = str_replace(',', ' ', $addTag);
         $openmeta->addSpotlightTags($spotlightTags, $prefix);
     }
     //<-- end if -->
     if ($setTag) {
         $spotlightTags = str_replace(',', ' ', $setTag);
         $openmeta->setSpotlightTags($spotlightTags, $prefix);
     }
     //<-- end if -->
     if ($clearTag) {
         $openmeta->clearSpotlightTags($prefix);
     }