コード例 #1
0
                }
            } else {
                foreach ($c_nodes as $node) {
                    $page .= "* [[MDN: " . '/' . $node . $title_append . '| ' . $node . "]]\n";
                }
            }
        }
    } else {
        ksort($texts);
        $page = "The magic data node {$linked_node_path} is a {$type} node.\n";
        if (array_key_exists($node_path, $child_nodes) && count($child_nodes[$node_path]) > 0) {
            $c_nodes = $child_nodes[$node_path];
            sort($c_nodes);
            $page .= "\nThis node  has the following children:\n";
            if ($node_path != "/") {
                foreach ($c_nodes as $node) {
                    $page .= "* [[MDN: " . $node_path . '/' . $node . $title_append . '| ' . $node . "]]\n";
                }
            } else {
                foreach ($c_nodes as $node) {
                    $page .= "* [[MDN: " . '/' . $node . $title_append . '| ' . $node . "]]\n";
                }
            }
        }
        $page .= "It is referenced as follows:\n" . implode("", $texts);
    }
    echo "Uploading {$node_path}\n";
    if (!wikiUploadVersioned('__PAGE:' . $title . "\n" . $page)) {
        I2CE::raiseError("Could not upload \${$title}");
    }
}
コード例 #2
0
ファイル: wikidoc.php プロジェクト: apelon-ohie/ihris-site
if ($do_wiki_task && prompt("Upload role list  to wiki?", $upload, $rout)) {
    if (!wikiUploadVersioned($rout)) {
        I2CE::raiseError("Could not upload role list");
    } else {
        I2CE::raiseError("Uploaded role list");
    }
}
if ($do_wiki_template && prompt("Upload tempalte list  to wiki?", $upload, $tout)) {
    if (!wikiUploadVersioned($tout)) {
        I2CE::raiseError("Could not upload template list");
    } else {
        I2CE::raiseError("Uploaded template list");
    }
}
if ($do_wiki_class && prompt("Upload class list  to wiki?", $upload, $class_list)) {
    if (!wikiUploadVersioned($class_list)) {
        I2CE::raiseError("Could not upload class list");
    } else {
        I2CE::raiseError("Uploaded class list");
    }
}
$upload = null;
foreach ($wout as $pkg => $text) {
    if (prompt("Upload module list \"{$pkg}\" to wiki?", $upload, $text)) {
        if (!wikiUploadVersioned($text)) {
            I2CE::raiseError("Could not upload module list \"{$pkg}\"");
        } else {
            I2CE::raiseError("Uploaded module list \"{$pkg}\"");
        }
    }
}