From bc1722c26cad29734dd3b9cb01e716d61d3205ac Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Mon, 8 Apr 2013 11:45:16 +0200 Subject: [PATCH] [add] Move css to external file --- 0.3/autoblog.css | 28 ++++ 0.3/index.php | 330 +++++++++++++++++++++-------------------------- 2 files changed, 178 insertions(+), 180 deletions(-) create mode 100644 0.3/autoblog.css diff --git a/0.3/autoblog.css b/0.3/autoblog.css new file mode 100644 index 0000000..e870beb --- /dev/null +++ b/0.3/autoblog.css @@ -0,0 +1,28 @@ +body {background-color:#efefef;text-align:center;color:#333;font-family:sans-serif;} +a {color:black;text-decoration:none;font-weight:bold;} +a:hover {color:darkred;} +h1 {text-align:center;font-size:40pt;text-shadow: #ccc 0px 5px 5px;} +h2 {text-align:center;font-size: 16pt;margin:0 0 1em 0;font-style:italic;text-shadow: #ccc 0px 5px 5px; } +.pbloc {background-color:white;padding: 12px 10px 12px 10px;border:1px solid #aaa;max-width:70em;margin:1em auto;text-align:justify;box-shadow:0px 5px 7px #aaa;} +input {width:30em;} +input[type="radio"] {width:1em;} +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;} +.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;} +.vignette .source {font-size:x-small;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} +.vignette .source a:hover {color:darkred; text-decoration:none;} +.clear {clear:both;text-align:right;font-size:small;} +#logo {float: right;} +.bouton{background: -moz-linear-gradient(center top , #EDEDED 5%, #DFDFDF 100%) repeat scroll 0 0 #EDEDED;border: 1px none;padding: 10px;border: 1px solid #7777777;border-radius: 8px 8px 8px 8px;box-shadow: 0 1px 0 0 #FFFFFF inset;display: inline-block;} +.success {color: green;} +.error {color: red;} +.button_list{display:none;} +.button{-moz-box-shadow:inset 0 1px 0 0 #d9fbbe;-webkit-box-shadow:inset 0 1px 0 0 #d9fbbe;box-shadow:inset 0 1px 0 0 #d9fbbe;background:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#b8e356',endColorstr='#a5cc52');background-color:#b8e356;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #83c41a;display:inline-block;color:#fff;font-family:arial;font-size:14px;font-weight:700;text-decoration:none;text-shadow:1px 1px 0 #86ae47;padding:6px 24px;} +.button:hover{background:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a5cc52',endColorstr='#b8e356');background-color:#a5cc52;} +.button:active{position:relative;top:1px;} +.buttonactive{background-color:#aaa;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #83c41a;display:inline-block;color:#fff;font-family:arial;font-size:14px;font-weight:700;text-decoration:none;text-shadow:1px 1px 0 #86ae47;padding:6px 24px;} \ No newline at end of file diff --git a/0.3/index.php b/0.3/index.php index 8b6feb5..ba180da 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -2,7 +2,7 @@ /* Projet Autoblog 0.3-beta Code: https://github.com/mitsukarenai/Projet-Autoblog - Authors: + Authors: Mitsu https://www.suumitsu.eu/ Oros https://www.ecirtam.net/ Arthur Hoaro http://hoa.ro @@ -56,14 +56,14 @@ function get_link_from_feed($url) { function get_link_from_datafeed($data) { if($data === false) { return 'url inaccessible'; } $xml = simplexml_load_string($data); // quick feed check - + // ATOM feed && RSS 1.0 /RDF && RSS 2.0 - if (!isset($xml->entry) && !isset($xml->item) && !isset($xml->channel->item)) - die('le flux n\'a pas une syntaxe valide'); + if (!isset($xml->entry) && !isset($xml->item) && !isset($xml->channel->item)) + die('le flux n\'a pas une syntaxe valide'); $check = substr($data, 0, 5); - if($check !== 'body->outline as $outline ) { if ( !empty( $outline['title'] ) && !empty( $outline['text'] ) && !empty( $outline['xmlUrl']) && !empty( $outline['htmlUrl'] )) { try { $rssurl = DetectRedirect(escape( $outline['xmlUrl'])); - - $sitename = escape( $outline['title'] ); + + $sitename = escape( $outline['title'] ); $siteurl = escape($outline['htmlUrl']); - $sitetype = escape($outline['text']); if ( $sitetype == 'generic' or $sitetype == 'microblog' or $sitetype == 'shaarli') { } else { $sitetype = 'generic'; } + $sitetype = escape($outline['text']); if ( $sitetype == 'generic' or $sitetype == 'microblog' or $sitetype == 'shaarli') { } else { $sitetype = 'generic'; } $error = array_merge( $error, createAutoblog( $sitetype, $sitename, $siteurl, $rssurl, $error ) ); - + if( empty ( $error )) $success[] = 'Autoblog "'. $sitename .'" crée avec succès. → afficher l\'autoblog.'; } @@ -133,23 +133,23 @@ function create_from_opml($opml) { **/ function versionCheck() { $versionfile = 'version'; - $lastestUrl = 'https://raw.github.com/mitsukarenai/Projet-Autoblog/master/0.3/version'; - + $lastestUrl = 'https://raw.github.com/mitsukarenai/Projet-Autoblog/master/0.3/version'; + $expire = time() - 84600 ; // 23h30 en secondes $lockfile = '.versionlock'; - + if (file_exists($lockfile) && filemtime($lockfile) > $expire) { if( file_get_contents($lockfile) == 'NEW' ) { // No new version installed if( filemtime( $lockfile ) > filemtime( $versionfile ) ) return true; else unlink($lockfile); - } + } else return false; - } - + } + if (file_exists($lockfile) && filemtime($lockfile) < $expire) { unlink($lockfile); } - + if( file_get_contents($versionfile) != file_get_contents($lastestUrl) ) { file_put_contents($lockfile, 'NEW'); return true; @@ -191,14 +191,14 @@ if (isset($_GET['check'])) $svg_twitter=''; $svg_identica=''; $svg_statusnet=''; - + $errorlog="./".escape( $_GET['check'] ) ."/error.log"; $oldvalue = null; if(file_exists($errorlog)) { $oldvalue = file_get_contents($errorlog); }; if(file_exists($errorlog) && filemtime($errorlog) < $expire) { unlink($errorlog); } /* errorlog périmé ? Suppression. */ if(file_exists($errorlog)) /* errorlog existe encore ? se contenter de lire sa taille pour avoir le statut */ - { + { if(filesize($errorlog) == "0") {die($svg_vert);} else if(filesize($errorlog) == "1") {die($svg_jaune);} else {die($svg_rouge);} @@ -219,9 +219,9 @@ if (isset($_GET['check'])) $rss = new AutoblogRSS(RSS_FILE); $rss->addUnavailable($ini['SITE_TITLE'], escape($_GET['check']), $ini['SITE_URL'], $ini['FEED_URL']); } - file_put_contents($errorlog, '..'); - die($svg_rouge); - } + file_put_contents($errorlog, '..'); + die($svg_rouge); + } $code=explode(" ", $headers[0]); /* code retour 200: flux disponible */ if($code[1] == "200") { @@ -230,9 +230,9 @@ if (isset($_GET['check'])) $rss = new AutoblogRSS(RSS_FILE); $rss->addAvailable($ini['SITE_TITLE'], escape($_GET['check']), $ini['SITE_URL'], $ini['FEED_URL']); } - file_put_contents($errorlog, ''); + file_put_contents($errorlog, ''); die($svg_vert); - } + } /* autre code retour: un truc a changé (redirection, changement de CMS, .. bref vvb.ini doit être corrigé) */ else { if( $oldvalue !== null && $oldvalue != '.' ) { @@ -240,9 +240,9 @@ if (isset($_GET['check'])) $rss = new AutoblogRSS(RSS_FILE); $rss->addCodeChanged($ini['SITE_TITLE'], escape($_GET['check']), $ini['SITE_URL'], $ini['FEED_URL'], $code[1]); } - file_put_contents($errorlog, '.'); + file_put_contents($errorlog, '.'); die($svg_jaune); - } + } } } @@ -253,23 +253,23 @@ if (isset($_GET['export'])) { header('Content-Type: application/json'); $directory = "./"; $subdirs = glob($directory . "*"); - + foreach($subdirs as $unit) { if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { $unit=substr($unit, 2); $ini = parse_ini_file($unit.'/vvb.ini'); $config = new stdClass; - + foreach ($ini as $key=>$value) { $key = strtolower($key); $config->$key = $value; } unset($ini); - + $feed=$config->feed_url; $type=$config->site_type; $title=$config->site_title; - $url=$config->site_url; + $url=$config->site_url; $reponse[$unit] = array("SITE_TYPE"=>"$type", "SITE_TITLE"=>"$title", "SITE_URL"=>"$url", "FEED_URL"=>"$feed"); } @@ -321,13 +321,13 @@ if (isset($_GET['exportopml'])) // OPML $directory = "./"; $subdirs = glob($directory . "*"); - + foreach($subdirs as $unit) { - if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { + if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { $unit=substr($unit, 2); $ini = parse_ini_file($unit.'/vvb.ini'); $config = new stdClass; - + foreach ($ini as $key=>$value) { $key = strtolower($key); $config->$key = $value; @@ -377,30 +377,30 @@ if (isset($_GET['sitemap'])) if( isset($_GET['updateall']) && ALLOW_FULL_UPDATE) { $expire = time() - 84600 ; // 23h30 en secondes - $lockfile = ".updatealllock"; + $lockfile = ".updatealllock"; if (file_exists($lockfile) && filemtime($lockfile) > $expire) { echo "too early"; die; - } + } else { if( file_exists($lockfile) ) unlink($lockfile); - + if( file_put_contents($lockfile, date(DATE_RFC822)) ===FALSE) { echo "Merci d'ajouter des droits d'écriture sur le fichier."; die; - } + } } - + $directory = "./"; $subdirs = glob($directory . "*"); foreach($subdirs as $unit) { if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) { - file_get_contents(serverUrl() . substr($_SERVER['PHP_SELF'], 0, -9) . $unit . '/index.php'); + file_get_contents(serverUrl() . substr($_SERVER['PHP_SELF'], 0, -9) . $unit . '/index.php'); } } - } + } } $antibot = generate_antibot(); @@ -417,20 +417,20 @@ $form = '
if(!empty($_GET['via_button']) && $_GET['number'] === '17' && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_BUTTON ) { $form = ''; - + if( empty($_GET['rssurl']) ) { $form .= '

URL du flux RSS incorrect.
Fermer la fenêtre.

'; } - else { + else { if(isset($_GET['add']) && $_GET['add'] === '1' && !empty($_GET['siteurl']) && !empty($_GET['sitename'])) { try { $rssurl = DetectRedirect(escape($_GET['rssurl'])); - + $siteurl = escape($_GET['siteurl']); $sitename = escape($_GET['sitename']); $sitetype = updateType($siteurl); // Disabled input doesn't send POST data $sitetype = $sitetype['type']; - + $error = array_merge( $error, createAutoblog($sitetype, $sitename, $siteurl, $rssurl, $error)); if( empty($error)) { $form .= ''; @@ -450,23 +450,23 @@ if(!empty($_GET['via_button']) && $_GET['number'] === '17' && ALLOW_NEW_AUTOBLOG } else { try { - $rssurl = DetectRedirect(escape($_GET['rssurl'])); + $rssurl = DetectRedirect(escape($_GET['rssurl'])); $datafeed = file_get_contents($rssurl); if( $datafeed !== false ) { $siteurl = get_link_from_datafeed($datafeed); - $sitename = get_title_from_datafeed($datafeed); + $sitename = get_title_from_datafeed($datafeed); $sitetype = updateType($siteurl); $sitetype = $sitetype['type']; - + $form .= 'Merci de vérifier les informations suivantes, corrigez si nécessaire.
-
+



'; - } + } else { $form .= '

URL du flux RSS incorrecte.
Fermer la fenêtre.

'; } @@ -477,7 +477,7 @@ if(!empty($_GET['via_button']) && $_GET['number'] === '17' && ALLOW_NEW_AUTOBLOG } } $form .= ''; - echo $form; die; + echo $form; die; } /** @@ -486,48 +486,48 @@ if(!empty($_GET['via_button']) && $_GET['number'] === '17' && ALLOW_NEW_AUTOBLOG if(!empty($_POST['socialaccount']) && !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_SOCIAL) { if( !empty($_POST['number']) && !empty($_POST['antibot']) && check_antibot($_POST['number'], $_POST['antibot']) ) { - + $socialaccount = strtolower(escape($_POST['socialaccount'])); $socialinstance = strtolower(escape($_POST['socialinstance'])); - - if($socialinstance === 'twitter') { + + if($socialinstance === 'twitter') { if( $apitwitter !== FALSE ) { - $sitetype = 'twitter'; - $siteurl = "http://twitter.com/$socialaccount"; + $sitetype = 'twitter'; + $siteurl = "http://twitter.com/$socialaccount"; $rssurl = $apitwitter.$socialaccount; } else $error[] = "Twitter veut mettre à mort son API ouverte. Du coup on peut plus faire ça comme ça."; - } - elseif($socialinstance === 'identica') { - $sitetype = 'identica'; - $siteurl = "http://identi.ca/$socialaccount"; - $rssurl = "http://identi.ca/api/statuses/user_timeline/$socialaccount.rss"; - } - elseif($socialinstance === 'statusnet' && !empty($_POST['statusneturl'])) { - $sitetype = 'microblog'; - $siteurl= NoProtocolSiteURL(escape($_POST['statusneturl'])); + } + elseif($socialinstance === 'identica') { + $sitetype = 'identica'; + $siteurl = "http://identi.ca/$socialaccount"; + $rssurl = "http://identi.ca/api/statuses/user_timeline/$socialaccount.rss"; + } + elseif($socialinstance === 'statusnet' && !empty($_POST['statusneturl'])) { + $sitetype = 'microblog'; + $siteurl= NoProtocolSiteURL(escape($_POST['statusneturl'])); try { - $rssurl = DetectRedirect("http://".$siteurl."/api/statuses/user_timeline/$socialaccount.rss"); - $siteurl = DetectRedirect("http://".$siteurl."/$socialaccount"); + $rssurl = DetectRedirect("http://".$siteurl."/api/statuses/user_timeline/$socialaccount.rss"); + $siteurl = DetectRedirect("http://".$siteurl."/$socialaccount"); } catch (Exception $e) { echo $error[] = $e->getMessage(); - } - } - elseif($socialinstance === 'shaarli' && !empty($_POST['shaarliurl'])) { - $sitetype = 'shaarli'; - $siteurl = NoProtocolSiteURL(escape($_POST['shaarliurl'])); + } + } + elseif($socialinstance === 'shaarli' && !empty($_POST['shaarliurl'])) { + $sitetype = 'shaarli'; + $siteurl = NoProtocolSiteURL(escape($_POST['shaarliurl'])); try { - $siteurl = DetectRedirect("http://".$siteurl."/"); + $siteurl = DetectRedirect("http://".$siteurl."/"); } catch (Exception $e) { echo $error[] = $e->getMessage(); } $rssurl = $siteurl."?do=rss"; - $socialaccount = get_title_from_feed($rssurl); - } - + $socialaccount = get_title_from_feed($rssurl); + } + if( empty($error) ) { // Twitterbridge do NOT allow this user yet => No check if( $sitetype != 'twitter' ) { @@ -543,7 +543,7 @@ if(!empty($_POST['socialaccount']) && !empty($_POST['socialinstance']) && ALLOW_ } } } - else + else $error[] = 'Antibot : Chiffres incorrects.'; } @@ -556,43 +556,43 @@ if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_L if(empty($_POST['number']) || empty($_POST['antibot']) ) {$error[] = "Vous êtes un bot ?";} elseif(! check_antibot($_POST['number'], $_POST['antibot'])) - {$error[] = "Antibot : Ce n'est pas le bon nombre.";} + {$error[] = "Antibot : Ce n'est pas le bon nombre.";} if(empty($error)) { try { $rssurl = DetectRedirect(escape($_POST['rssurl'])); - + if(!empty($_POST['siteurl'])) { - $siteurl = escape($_POST['siteurl']); + $siteurl = escape($_POST['siteurl']); $sitename = get_title_from_feed($rssurl); $error = array_merge( $error, createAutoblog('generic', $sitename, $siteurl, $rssurl, $error)); if( empty($error)) $success[] = 'Autoblog '. $sitename .' crée avec succès.afficher l\'autoblog'; - } + } else { // checking procedure - + $datafeed = file_get_contents($rssurl); if( $datafeed === false ) { $error[] = 'URL "'. $rssurl .'" inaccessible.'; } $sitetype = 'generic'; $siteurl = get_link_from_datafeed($datafeed); - $sitename = get_title_from_datafeed($datafeed); + $sitename = get_title_from_datafeed($datafeed); $form = 'Merci de vérifier les informations suivantes, corrigez si nécessaire.
-
+




'; - - } + + } } catch (Exception $e) { echo $error[] = $e->getMessage(); @@ -603,38 +603,38 @@ if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_L /** * ADD BY OPML File **/ -if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML_FILE) { +if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML_FILE) { if(empty($_POST['number']) || empty($_POST['antibot']) ) {$error[] = "Vous êtes un bot ?";} elseif(! check_antibot($_POST['number'], $_POST['antibot'])) - {$error[] = "Antibot : Ce n'est pas le bon nombre.";} - + {$error[] = "Antibot : Ce n'est pas le bon nombre.";} + if( empty( $error)) { if (is_uploaded_file($_FILES['file']['tmp_name'])) { $opml = null; if( ($opml = simplexml_load_file( $_FILES['file']['tmp_name'])) !== false ) { create_from_opml($opml); } - else + else $error[] = "Impossible de lire le contenu du fichier OPML."; unlink($_FILES['file']['tmp_name']); } else { $error[] = "Le fichier n'a pas été envoyé."; - } - } + } + } } /** * ADD BY OPML Link **/ - if( !empty($_POST['opml_link']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML_LINK) { + if( !empty($_POST['opml_link']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML_LINK) { if(empty($_POST['number']) || empty($_POST['antibot']) ) {$error[] = "Vous êtes un bot ?";} elseif(! check_antibot($_POST['number'], $_POST['antibot'])) - {$error[] = "Antibot : Ce n'est pas le bon nombre.";} + {$error[] = "Antibot : Ce n'est pas le bon nombre.";} if( empty( $_POST['opml_url'] )) {$error[] = 'Le lien est incorrect.';} - + if( empty( $error)) { $opml_url = escape($_POST['opml_url']); if(parse_url($opml_url, PHP_URL_HOST)==FALSE) { @@ -644,10 +644,10 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY create_from_opml($opml); } else { $error[] = "Impossible de lire le contenu du fichier OPML ou d'accéder à l'URL donnée."; - } + } } - } + } } ?> @@ -657,44 +657,14 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY Projet Autoblog<?php if(!empty($head_title)) { echo " | " . escape($head_title); } ?> - +

PROJET AUTOBLOG

- +
- +

Présentation

@@ -702,13 +672,13 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY Si l'article source est supprimé, et même si le site d'origine disparaît, les articles restent lisibles sur l'autoblog.
L'objectif premier de ce projet est de lutter contre la censure et toute sorte de pression...

- +

- Voici une liste d'autoblogs hébergés sur + Voici une liste d'autoblogs hébergés sur (plus d'infos sur le projet). -

+

- +

Mise à jour

@@ -722,9 +692,9 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
- +

Ajouter un autoblog

- + Message'. (count($error) ? 's' : '') .' :

    '; @@ -733,10 +703,10 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY } foreach ( $success AS $value ) { echo '
  • '. $value .'
  • '; - } + } echo '
'; } - + $button_list = '

Ajouter un autoblog via : '; if(ALLOW_NEW_AUTOBLOGS_BY_LINKS) $button_list .= 'Flux RSS '; @@ -752,31 +722,31 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY $button_list .= 'Marque page '; $button_list .= '

'; echo $button_list; - + if(ALLOW_NEW_AUTOBLOGS_BY_LINKS == TRUE) { ?> -
-

Ajouter un site web

+
+

Ajouter un site web

Si vous souhaitez que héberge un autoblog d'un site,
remplissez le formulaire suivant:

- - + +
- -
+

Ajouter un compte social


- Twitter
'; - else echo 'Twitter
'; ?> + else echo 'Twitter
'; ?> Identica
- +

@@ -786,7 +756,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY

Ajouter un Shaarli

- +
@@ -795,12 +765,12 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
- +

Ajouter par fichier OPML

- +

@@ -809,13 +779,13 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
- - + + - - + +

Marque page

-

Pour ajouter facilement un autoblog d'un site web, glissez ce bouton dans votre barre de marque-pages → - Pour ajouter facilement un autoblog d'un site web, glissez ce bouton dans votre barre de marque-pages → + ";var%20popup=window.open("","Add%20autoblog",'height=180,width=670');popup.document.writeln('');popup.document.write('Url%20feed%20%20:%20
');var%20feed_links=new%20Array();var%20links=document.getElementsByTagName('link');if(links.length>0){for(var%20i=0;i'+links[i].title+"%20(%20"+links[i].href+"%20)
");}}}popup.document.writeln("");popup.document.writeln("");popup.document.writeln("
");popup.document.writeln("");})();"> Projet Autoblog
@@ -844,22 +814,22 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY $directory = "./". DOC_FOLDER; $docs = array(); if( is_dir($directory) && !file_exists($directory . '.disabled') ) { - $subdirs = glob($directory . "*"); + $subdirs = glob($directory . "*"); foreach($subdirs as $unit) { if(!is_dir($unit) || file_exists( $unit . '/index.html' ) || file_exists( $unit . '/index.htm' ) || file_exists( $unit . '/index.php' ) ) { $docs[] = ''. substr($unit, (strrpos($unit, '/')) + 1 ) .''; - } + } } } if(!empty( $docs )) { echo '

Autres documents

    '; - foreach( $docs as $value ) + foreach( $docs as $value ) echo '
  • '. $value .'
  • '; echo '
'; } ?> - +

Autoblogs hébergés rss

@@ -868,7 +838,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY

- + $autoblog) { $opml_link='opml'; @@ -907,20 +877,20 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
'; } } - + echo $autoblogs_display; ?> - +
- + ".count($autoblogs)." autoblogs hébergés

"; ?>
Propulsé par Projet Autoblog 0.3 de Mitsu, Oros et Arthur Hoaro (Domaine Public) ".$HTML_footer; } ?> - + - +