From 949d666c7df7a56a01c5ee4c7ef7d3cd6301bc08 Mon Sep 17 00:00:00 2001
From: Knah Tsaeb
Date: Mon, 8 Apr 2013 14:32:54 +0200
Subject: [PATCH 1/4] [upd] .gitignore
---
.gitignore | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 11ccef4..653e4ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,6 @@
0.3/.xsaflock
0.3/rss.xml
.project
-0.3/user.css
+0.3/resources/user.css
+0.3/autoblogs/*
+!0.3/autoblogs/autoblog.php
From 564c6a49625a8c42e1e4e219a84510316e66b778 Mon Sep 17 00:00:00 2001
From: Arthur
Date: Mon, 8 Apr 2013 16:01:57 +0300
Subject: [PATCH 2/4] Update .gitignore
---
.gitignore | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 653e4ba..a5f9aa4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
0.3/.versionlock
0.3/.xsaflock
-0.3/rss.xml
+0.3/resources/rss.xml
.project
0.3/resources/user.css
0.3/autoblogs/*
From 681a9bd94b51fa55b91a0964241f6126acbb5faa Mon Sep 17 00:00:00 2001
From: Mitsukarenai
Date: Mon, 8 Apr 2013 15:08:16 +0200
Subject: [PATCH 3/4] =?UTF-8?q?fix=20lien=20vers=20autoblog=20apr=C3=A8s?=
=?UTF-8?q?=20ajout?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
0.3/index.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/0.3/index.php b/0.3/index.php
index ff46929..cb48fff 100755
--- a/0.3/index.php
+++ b/0.3/index.php
@@ -566,7 +566,7 @@ if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_L
$error = array_merge( $error, createAutoblog('generic', $sitename, $siteurl, $rssurl, $error));
if( empty($error))
- $success[] = 'Autoblog '. $sitename .' crée avec succès. → afficher l\'autoblog';
+ $success[] = 'Autoblog '. $sitename .' crée avec succès. → afficher l\'autoblog';
}
else {
// checking procedure
From 9b96ceed085a101f4bda66d42543a888a2afaec3 Mon Sep 17 00:00:00 2001
From: Knah Tsaeb
Date: Mon, 8 Apr 2013 15:50:50 +0200
Subject: [PATCH 4/4] [add] div#contentVignette for center .vignette block
---
0.3/index.php | 65 +++++++++++++++++++-------------------
0.3/resources/autoblog.css | 5 +--
2 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/0.3/index.php b/0.3/index.php
index cb48fff..fc364bc 100755
--- a/0.3/index.php
+++ b/0.3/index.php
@@ -839,48 +839,47 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
-
-
+ $value)
+ if(is_dir($unit))
+ {
+ if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) {
+ $ini = parse_ini_file(ROOT_DIR . '/' . $unit . '/vvb.ini');
+ if($ini)
{
- $key = strtolower($key);
- $config->$key = $value;
+ $config = new stdClass;
+ $unit=substr($unit, 2);
+ foreach ($ini as $key=>$value)
+ {
+ $key = strtolower($key);
+ $config->$key = $value;
+ }
+ $autoblogs[$unit] = $config;
+ unset($ini);
}
- $autoblogs[$unit] = $config;
- unset($ini);
}
}
}
- }
- uasort($autoblogs, "objectCmp");
- $autoblogs_display = '';
+ uasort($autoblogs, "objectCmp");
+ $autoblogs_display = '';
- if(!empty($autoblogs)){
- foreach ($autoblogs as $key => $autoblog) {
- $opml_link='opml';
- $autoblogs_display .= '';
+ if(!empty($autoblogs)){
+ foreach ($autoblogs as $key => $autoblog) {
+ $opml_link='opml';
+ $autoblogs_display .= '';
+ }
}
- }
-
- echo $autoblogs_display;
- ?>
-
+ echo $autoblogs_display;
+ ?>
+
".count($autoblogs)." autoblogs hébergés"; ?>
diff --git a/0.3/resources/autoblog.css b/0.3/resources/autoblog.css
index ba74273..d181593 100644
--- a/0.3/resources/autoblog.css
+++ b/0.3/resources/autoblog.css
@@ -3,7 +3,7 @@
* ------------
* Please do NOT edit this file. Updating your Autoblogs farm will be easier.
* If you want to add your own CSS, use the file user.css
- *
+ *
*/
body {background-color:#efefef;text-align:center;color:#333;font-family:sans-serif;}
@@ -18,7 +18,8 @@ input[type="submit"] {width:8em;}
input[type="text"]#socialaccount, input[type="text"]#statusneturl, input[type="text"]#shaarliurl,input[type="text"].smallinput {width:20em;}
div.form {padding:0.2em;border:1px solid #fff;}
div.form:hover {background-color:#FAF4DA;border:1px dotted;}
-.vignette {width:20em;height:2em;float:left;margin:0; padding:20px;background-color:#eee;border: 1px solid #888;}
+#contentVignette {text-align: center;}
+.vignette {width:20em;height:2em;display: inline-block;text-align:justify;margin:0; padding:20px;background-color:#eee;border: 1px solid #888;}
.vignette:hover {background-color:#fff;}
.vignette .title {font-size: 14pt;text-shadow: #ccc 0px 5px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.vignette .title a:hover {color:darkred; text-decoration:none;}