亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? blogger.inc.php

?? Serendipity是一個(gè)php+mysql的blog程序
?? PHP
字號(hào):
<?php # $Id$# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)# All rights reserved.  See LICENSE file for licensing detailsclass Serendipity_Import_Blogger extends Serendipity_Import {    var $info        = array('software' => 'Blogger.com');    var $data        = array();    var $inputFields = array();    function Serendipity_Import_Blogger($data) {        global $serendipity;        $this->data = $data;        $this->inputFields = array(array('text'    => 'Path to your Blogger export file',                                         'type'    => 'input',                                         'name'    => 'bloggerfile',                                         'value'   => $serendipity['serendipityPath']),                                   array('text'    => 'New author default password (used for non-existing authors on the serendipity backend, as author passwords from Blogger are not migrated)',                                         'type'    => 'input',                                         'name'    => 'defaultpass',                                         'value'   => ''),                                   array('text'    => CHARSET,                                         'type'    => 'list',                                         'name'    => 'charset',                                         'value'   => 'UTF-8',                                         'default' => $this->getCharsets()),                                    array('text'   => RSS_IMPORT_BODYONLY,                                         'type'    => 'bool',                                         'name'    => 'bodyonly',                                         'value'   => 'false'));    }    function validateData() {        return sizeof($this->data);    }    function getInputFields() {        return $this->inputFields;    }    function getImportNotes() {        $out = '<style type="text/css"><!--.style1 {    font-size: large;    font-weight: bold;    font-family: Arial, Helvetica, sans-serif;}.style2 {    font-family: Arial, Helvetica, sans-serif;    font-size: x-small;}--></style><p class="style1">BLOGGER.COM to SERENDIPITY IMPORT</p><p class="style2">Version 0.1,( 29/10/2005 )</p><p class="style2"> <br />  1. First go to Blogger.com, login.</p><p class="style2">2. Go to the templates section. Set the following as your template. You should backup the current template if you want to reset it back after this operation. Click &quot;Save template changes&quot; button to save this new template.</p><p class="style2">  <label>  <textarea name="textarea" cols="60" rows="20"><Blogger>STARTPOSTTITLE: <PostSubject><$BlogItemSubject$></PostSubject>AUTHOR: <$BlogItemAuthor$>DATE: <$BlogItemDateTime$>-----BODY:<$BlogItemBody$>-----<BlogItemCommentsEnabled><BlogItemComments>COMMENT:AUTHOR: <$BlogCommentAuthor$>DATE: <$BlogCommentDateTime$>BODY: <$BlogCommentBody$>-----</BlogItemComments></BlogItemCommentsEnabled>ENDPOST</Blogger>  </textarea>  </label></p><p class="style2">3. Go to the &quot;Settings&quot; section of blogger. </p><p class="style2">4. Click the &quot;Formatting&quot; link. From the formatting options, find the &quot;Timestamp Format&quot; option and set it to the top most option. i.e the one with the date and time showing. Find the &quot;Show&quot; option, and set it to 999. Save changes</p><p class="style2">5. Now click the &quot;Comments&quot; link. Find the &quot;Comments Timestamp Format&quot; option and set it to the 2nd option from the list. i.e the one with the date and time showing. Save changes. </p><p class="style2">6. On the server with your Serendipity installation, create a directory called &quot;blogger&quot;. </p><p class="style2">7. Next, back on Blogger.com, go to the &quot;Publishing&quot; section. Set it to publish to an FTP server. Enter the details of the server with your Serendipity installation. Set the FTP path as the path to the &quot;blogger&quot; directory you created in the previous step. </p><p class="style2">8. Go back to Blogger.com and find &quot;Publish Entire Blog&quot; under &quot;Posting&quot; -&gt; &quot;Status&quot;. Click the Publish entire blog button to let blogger publish the blog to your ftp server.</p><p class="style2">9. Now in the box below type in the path to the &quot;index.html&quot; file blogger created under your &quot;blogger&quot; directory.  File path should then look something like &quot;/httpdocs/blogger/index.html&quot;.</p><p class="style2">10. This script will create the users as from the blogger blog being imported. However if a user already exists, then that user will be used instead of creating a new user with similar name. For the new users that this script will create, you need to provide a default password. Type it in the box below.</p><p class="style2">11. Click &quot;Submit&quot;. Your posts and comments should be imported to serendipity!</p><p class="style2"> If you have questions or problems, feel free to drop me a mail at jaa at technova dot com dot mv.<br />  <br />Jaa<br />http://jaa.technova.com.mv</p>';        return $out;    }    function import() {        global $serendipity;        if (empty($this->data['bloggerfile']) || !file_exists($this->data['bloggerfile'])) {            echo "Path to blogger file empty or path to file wrong! Go back and correct.";            return false;        }        # get default pass from request        $defaultpass = $this->data['defaultpass'];        # get blogger uploaded file path from request and load file        $html = file_get_contents($this->data['bloggerfile']);        # find posts using pattern matching        preg_match_all("/STARTPOST(.*)ENDPOST/sU", $html, $posts);        # iterate through all posts        foreach($posts[1] as $post) {            # locate the post title            if (preg_match("/TITLE:(.*)/", $post, $title)) {                $title = trim($title[1]);                echo "<b>" . htmlspecialchars($title) . "</b><br />";            } else {                $title = "";                echo "<b>Empty title</b><br />";            }            # locate the post author            if (preg_match("/AUTHOR:(.*)/", $post, $author)) {                $author = trim($author[1]);                echo "<em>" . htmlspecialchars($author[1]) . "</em><br />";            } else {                $author = "";                echo "<em>Unknown author</em><br />";            }            # locate the post date            if (preg_match("/DATE:(.*)/", $post, $date)) {                $date = strtotime(trim($date[1]));                echo "Posted on " . htmlspecialchars($date[1]) . ".<br />";            } else {                $date = time();                echo "Unknown posting time.<br />";            }            # locate the post body            if (preg_match("/BODY:(.*)-----/sU", $post, $body)) {                $body = trim($body[1]);                echo strlen($body) . " Bytes of text.<br />";            } else {                $body = "";                echo "<strong>Empty Body!</strong><br />";            }            # find all comments for the post using pattern matching            if (preg_match_all( "/COMMENT:(.*)----/sU", $post, $commentlist)) {                echo count($commentlist[1]) . " comments found.<br />";            } else {                $commentlist = array();                echo "No comments found.<br />";            }            $result = serendipity_db_query("SELECT authorid FROM ". $serendipity['dbPrefix'] ."authors WHERE username = '". serendipity_db_escape_string($author) ."' LIMIT 1", true, 'assoc');            if (!is_array($result)) {                $data = array('right_publish' => 1,                              'realname'      => $author,                              'username'      => $author,                              'userlevel'     => 0,                              'password'      => md5($defaultpass)); // MD5 compatible                serendipity_db_insert('authors', $data);                $authorid = serendipity_db_insert_id('authors', 'authorid');            } else {                $authorid = $result['authorid'];            }            $entry = array('title'          => $title,                           'isdraft'        => 'false',                           'allow_comments' => 'true',                           'timestamp'      => $date,                           'body'           => $body,                           'extended'       => '',                           'author'            => $author,                           'authorid'       => $authorid                           );            echo "Entry insert...<br />";            if (!is_int($id = serendipity_updertEntry($entry))) {                echo "Inserting entry failed.<br />";                return $id;            } else {                echo "Entry $id inserted.<br />";            }            # iterate through all comments            $c = 0;            foreach($commentlist[1] as $comment) {                $c++;                # locate the author and author url                $curl    = '';                $cauthor = '';                $cdate   = time();                $cbody   = '';                if (preg_match("/AUTHOR:(.*)/", $comment, $cauthor) && preg_match("/href=\"(.*)\"/", $cauthor[1], $curl)) {                    $curl    = (isset($curl[1]) ? trim($curl[1]) : '');                    $cauthor = trim(strip_tags($cauthor[1]));                }                # locate the date                if (preg_match("/DATE:(.*)/", $comment, $cdate)) {                    $cdate = strtotime($cdate[1]);                }                # locate the comment body                if (preg_match("/BODY:(.*)/s", $comment, $cbody)) {                    $cbody = trim($cbody[1]);                }                $icomment = array('entry_id ' => $id,                                 'parent_id' => 0,                                 'timestamp' => $cdate,                                 'author'    => $cauthor,                                 'email'     => '',                                 'url'       => $curl,                                 'ip'        => '',                                 'status'    => 'approved',                                 'body'      => $cbody,                                 'subscribed'=> 'false',                                 'type'      => 'NORMAL');                serendipity_db_insert('comments', $icomment);            }            serendipity_db_query("UPDATE ". $serendipity['dbPrefix'] ."entries SET comments = ". $c ." WHERE id = ". $id);            echo "Comment count set to: ". $c ."<br />";        }        echo "Import finished.<br />";        return true;    }}return 'Serendipity_Import_Blogger';/* vim: set sts=4 ts=4 expandtab : */?>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区婷婷月色| 国产精品久久久久aaaa| 久久久久国产精品人| 美女一区二区三区在线观看| 国产综合色在线| 欧美性一级生活| 国产女同性恋一区二区| 日本va欧美va瓶| 91免费视频网址| 久久先锋影音av鲁色资源| 夜夜揉揉日日人人青青一国产精品 | 成人欧美一区二区三区| 日本视频一区二区| 91高清在线观看| 国产日韩精品一区| 久久99蜜桃精品| 4hu四虎永久在线影院成人| 亚洲色图另类专区| 国产 欧美在线| 欧美白人最猛性xxxxx69交| 亚洲第一成年网| 91麻豆精品在线观看| 久久久久久毛片| 精品一区二区三区免费毛片爱 | 成人一区二区三区视频在线观看| 欧美一区二视频| 日韩精品福利网| 欧美日韩亚洲高清一区二区| 亚洲人成亚洲人成在线观看图片| 国产999精品久久久久久绿帽| 日韩一区二区免费视频| 秋霞午夜av一区二区三区| 欧美性猛交xxxx黑人交| 亚洲精品一二三| 91国产视频在线观看| 亚洲欧美电影一区二区| 91成人在线观看喷潮| 亚洲视频在线一区| 色老头久久综合| 亚洲一区二区三区在线| 欧美唯美清纯偷拍| 丝袜美腿一区二区三区| 欧美精品在线视频| 人人狠狠综合久久亚洲| 日韩一区二区在线播放| 激情综合网av| 国产校园另类小说区| 成人性生交大片免费看视频在线| 国产精品视频一二三区| 91在线精品秘密一区二区| 日韩码欧中文字| 色综合天天综合网天天看片| 亚洲精品免费一二三区| 欧美日韩一区不卡| 奇米四色…亚洲| 欧美极品aⅴ影院| 91丨porny丨最新| 亚洲高清久久久| 欧美一二三在线| 成人在线综合网站| 亚洲卡通动漫在线| 日韩免费观看高清完整版在线观看 | 国产麻豆9l精品三级站| 国产精品久久久久永久免费观看 | 精品国产亚洲在线| 99久久精品情趣| 日韩高清不卡在线| 亚洲国产精品国自产拍av| 一本到高清视频免费精品| 日韩精品成人一区二区在线| 国产亚洲精久久久久久| 91成人免费网站| 激情深爱一区二区| 亚洲色图欧美激情| 欧美α欧美αv大片| 色哟哟国产精品| 美女精品一区二区| 亚洲精品国产精华液| 欧美不卡在线视频| 91麻豆国产精品久久| 老司机精品视频线观看86| 日韩一区中文字幕| 欧美一级夜夜爽| 色又黄又爽网站www久久| 蜜芽一区二区三区| 亚洲精品成人精品456| 精品成人一区二区三区四区| 一本一本久久a久久精品综合麻豆| 另类小说一区二区三区| 一区二区三区在线影院| 欧美激情综合网| 欧美成人一级视频| 欧美亚洲日本一区| 91在线观看下载| 国产成人自拍网| 日本va欧美va精品发布| 亚洲电影激情视频网站| 国产精品国产三级国产普通话99| 日韩亚洲欧美在线| 6080午夜不卡| 一本色道久久加勒比精品| 国产成人自拍网| 国产精品综合久久| 蜜桃久久av一区| 日日夜夜精品免费视频| 亚洲精品视频观看| ●精品国产综合乱码久久久久| 久久综合国产精品| 欧美电影免费观看高清完整版在线 | 麻豆一区二区三| 日本成人中文字幕| 亚洲成人av福利| 亚洲一区中文在线| 亚洲国产日韩综合久久精品| 亚洲人成网站精品片在线观看| 国产精品女同互慰在线看| 国产三级精品三级| 国产欧美日韩视频在线观看| 国产午夜亚洲精品午夜鲁丝片 | 国产乱对白刺激视频不卡| 韩国欧美国产1区| 国产一区二区三区av电影| 国产精品一线二线三线精华| 韩国理伦片一区二区三区在线播放| 久久国产日韩欧美精品| 狠狠色丁香婷婷综合| 高清久久久久久| 成人av在线电影| www.亚洲免费av| 国产免费成人在线视频| 亚洲国产高清在线| 亚洲三级理论片| 亚洲愉拍自拍另类高清精品| 一个色在线综合| 秋霞影院一区二区| 国产麻豆成人传媒免费观看| 成人午夜大片免费观看| 91美女蜜桃在线| 91.com在线观看| 久久五月婷婷丁香社区| 亚洲欧美综合色| 天堂在线亚洲视频| 国产一区视频导航| 成人97人人超碰人人99| 欧美专区日韩专区| 日韩欧美中文一区| 中文字幕不卡一区| 亚洲国产美国国产综合一区二区| 免费观看在线综合| 国产乱码精品一区二区三| 色哟哟欧美精品| 日韩精品一区二区三区视频播放 | 国产精品99久久不卡二区| 91视视频在线观看入口直接观看www| 一本在线高清不卡dvd| 日韩欧美资源站| 亚洲视频一二三区| 久久精品久久99精品久久| 成人午夜av电影| 欧美一卡2卡3卡4卡| 亚洲国产精品精华液2区45| 丝袜国产日韩另类美女| 成人综合在线视频| 91精品国产一区二区三区蜜臀| 国产欧美一区二区精品仙草咪 | 色婷婷精品久久二区二区蜜臀av| 欧美一区二区三区免费视频| 国产精品二三区| 精品影院一区二区久久久| 在线观看国产精品网站| 久久久久久久久久美女| 天使萌一区二区三区免费观看| 国产 日韩 欧美大片| 日韩一区二区高清| 亚洲国产cao| 99在线精品观看| 久久久久久久久97黄色工厂| 日韩激情一二三区| 色综合久久中文字幕| 国产精品每日更新在线播放网址| 青青国产91久久久久久| 欧美三级资源在线| 一区视频在线播放| 粉嫩13p一区二区三区| 精品国产免费人成在线观看| 首页综合国产亚洲丝袜| 在线观看一区不卡| 亚洲图片激情小说| 成人91在线观看| 国产精品视频观看| 国产成人亚洲综合a∨婷婷 | 中文字幕日韩精品一区| 国产中文字幕精品| 欧美一三区三区四区免费在线看| 亚洲一区二区欧美| 欧日韩精品视频| 夜夜精品浪潮av一区二区三区| 色婷婷久久综合| 亚洲一区国产视频| 欧美色综合影院|