From 907f4e4f64c5f59dfdd019cd0adeb771150dceb4 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Wed, 6 Feb 2013 22:31:28 +0100 Subject: [PATCH] modified: _experimental/autoblog-0.3.php modified: _experimental/config.php modified: _experimental/gatitac/vvb.ini (restore du commit -eaab880909ac1d94bf35d867ece41fbf56dab408) --- _experimental/autoblog-0.3.php | 26 +++----------------------- _experimental/config.php | 4 ---- _experimental/gatitac/vvb.ini | 6 +++--- 3 files changed, 6 insertions(+), 30 deletions(-) diff --git a/_experimental/autoblog-0.3.php b/_experimental/autoblog-0.3.php index 9a486db..666e72d 100755 --- a/_experimental/autoblog-0.3.php +++ b/_experimental/autoblog-0.3.php @@ -225,6 +225,7 @@ class VroumVroum_Blog $create_articles_db = file_exists(ARTICLES_DB_FILE) ? false : true; $this->articles = new SQLite3(ARTICLES_DB_FILE); + if ($create_articles_db) { $this->articles->exec(' @@ -322,13 +323,7 @@ class VroumVroum_Blog if (isset($_GET['update'])) return true; - if($this->articles->busyTimeout(2000)){ - $last_update = $this->articles->querySingle('SELECT date FROM update_log ORDER BY date DESC LIMIT 1;'); - }else{ - return false; - } - - $this->articles->busyTimeout(0); + $last_update = $this->articles->querySingle('SELECT date FROM update_log ORDER BY date DESC LIMIT 1;'); if (!empty($last_update) && (int) $last_update > (time() - $this->config->update_interval)) return false; @@ -595,20 +590,6 @@ if (isset($_GET['feed'])) // FEED exit; } - -if (isset($_GET['media'])) // MEDIA -{ - header('Content-Type: application/json'); - if(is_dir(MEDIA_DIR)) - { - $files = scandir(MEDIA_DIR); - unset($files[0]); // . - unset($files[1]); // .. - echo json_encode(array("url"=> LOCAL_URL.substr(MEDIA_DIR, strlen(ROOT_DIR)+1).'/', "files" => $files)); - } - exit; -} - if (isset($_GET['update'])) { $_SERVER['QUERY_STRING'] = ''; @@ -810,8 +791,7 @@ echo ' '; if ($vvb->mustUpdate()) diff --git a/_experimental/config.php b/_experimental/config.php index de7d943..1c3ec6a 100755 --- a/_experimental/config.php +++ b/_experimental/config.php @@ -40,10 +40,6 @@ function __($str) case 'configuration': case 'articles': return $str; - case 'Media export': - return 'Export fichiers media'; - default: - return $str; } } diff --git a/_experimental/gatitac/vvb.ini b/_experimental/gatitac/vvb.ini index 18bf39e..e7cdee8 100644 --- a/_experimental/gatitac/vvb.ini +++ b/_experimental/gatitac/vvb.ini @@ -1,9 +1,9 @@ [VroumVroumBlogConfig] -SITE_TYPE="generic" +SITE_TYPE="microblog" SITE_TITLE="identica-gatitac" SITE_DESCRIPTION="Automicroblog de @gatitac" -SITE_URL="http://korben.info/" -FEED_URL="http://korben.info/feed" +SITE_URL="http://identi.ca/gatitac" +FEED_URL="http://identi.ca/api/statuses/user_timeline/gatitac.rss" ARTICLES_PER_PAGE=10 UPDATE_INTERVAL=3600 UPDATE_TIMEOUT=30