コード例 #1
0
 public function savemodified()
 {
     $result = tstorage::savemodified();
     $this->onsave($result);
     return $result;
 }
コード例 #2
0
ファイル: wp2lt.php プロジェクト: laiello/litepublisher
    clearposts();
    cleartags(tcategories::i());
    cleartags(ttags::i());
    clearmenu();
    if (dbversion) {
        $do = tdboptimizer::i();
        $do->optimize();
    }
}
try {
    clearall();
    echo "started\n";
    $from = isset($_REQUEST['from']) ? $_REQUEST['from'] : 0;
    if ($from == 0) {
        ExportOptions();
    }
    if ($from = ExportPosts()) {
        echo "</pre>\r\n<form name='form' action='' type='get'>\r\n<input type=hidden name='from' value='{$from}' />\r\n <p><input type='submit' name='Submit' value='Continue'/></p>\r\n</form>\r\n<br>";
    } else {
        echo "import finished<br>\n";
    }
    echo "final\n";
} catch (Exception $e) {
    echo $e->GetMessage();
    echo "\n";
    echo $e->getTraceAsString();
    //litepublisher::$options->showerror = true;
    //  litepublisher::$options->handexception($e);
}
tstorage::savemodified();
echo round(memory_get_usage() / 1024 / 1024, 2), 'MB <br>';