function makeStandalone($a, $b) { $axH = file_get_contents($a); $axH = str_replace("<!--CompilierConfig-->", inlJS("var altStatic = true;"), $axH); $axH = str_replace('../', 'http://ajaxanimator.googlecode.com/svn/trunk/Animator/stable/', $axH); echo strlen($axH); echo "<br>DoneA"; writeF($b, $axH); }
function makeStandalone($a, $b) { $axH = file_get_contents($a); //$axH =str_replace('.php','',$axH); $axH = str_replace('<script type="text/javascript" src="../ajaxanimator/full.js"></script>', "<script type='text/javascript'>var altStatic = true;</script>\r\n<script type='text/javascript' src='http://ajaxanimator.googlecode.com/svn/trunk/Animator/stable/ajaxanimator/full.js'></script>", $axH); $axH = str_replace('../', 'http://ajaxanimator.googlecode.com/svn/trunk/Animator/stable/', $axH); echo strlen($axH); echo "<br>DoneA"; writeF($b, $axH); }
function rewriteIDs() { $x = 1; $newgf = array(); $grandfaq = explode("|;|", file_get_contents("../doc/faqindex.txt")); foreach ($grandfaq as $gf) { $gt = explode("|,|", $gf); $gt[0] = $x; $x++; array_push($newgf, implode("|,|", $gt)); } $newDB = implode("|;|", $newgf); writeF("../doc/faqindex.txt", $newDB); }