Issue #19
This commit is contained in:
parent
5bf4b34a01
commit
b1200aadf2
3 changed files with 10 additions and 10 deletions
BIN
design/broken_noise.png
Normal file
BIN
design/broken_noise.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
|
@ -15,11 +15,11 @@ a { color: black; text-decoration: none;}
|
|||
.private .icon:hover{color:rgba(200,0,0,1);background-color:rgba(255,0,0,0.5);border-color:rgba(255,0,0,0.8);text-shadow:none;box-shadow: 0 0 1px red}
|
||||
.public .icon:hover{color:rgba(0,200,0,1);background-color:rgba(0,255,0,0.5);border-color:rgba(0,255,0,0.8);text-shadow:none;box-shadow: 0 0 1px green}
|
||||
.public .icon.suppr:hover,.private .icon.suppr:hover{color:pink;background-color:rgba(255,0,0,0.9);border-color:rgba(255,0,0,1);}
|
||||
input{outline:none;-moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; height:25px;padding : 3px ; vertical-align: bottom; margin-top : 3px ;}
|
||||
input{font-family: times,serif;outline:none; font-size:16px;border-radius: 3px; height:25px;padding : 3px ; vertical-align: bottom; margin-top : 3px ;}
|
||||
input[type=text]{width:80%;min-width:200px; background-color:rgba(255,255,255,0.8);border:1px solid #444;border-top-color:#333;border-bottom-color:#aaa; -moz-box-shadow: inset 0 1px 3px #000000; -webkit-box-shadow: inset 0 1px 3px #000000; box-shadow: inset 0 1px 3px #000000; }
|
||||
input[type=text]:hover{background-color:rgba(200,255,200,0.8);-moz-box-shadow: inset 0 1px 3px #040; -webkit-box-shadow: inset 0 1px 3px #040; box-shadow: inset 0 1px 3px #040; }
|
||||
input[type=text]:focus{background-color:rgba(200,255,200,0.9);-moz-box-shadow: inset 0 0 3px #040; -webkit-box-shadow: inset 0 0 3px #040; box-shadow: inset 0 0 3px #040; }
|
||||
input[type=submit]{cursor: pointer; border:1px solid #494;border-bottom-color:#272;border-top-color:#afa; background-color:rgba(0,200,0,0.8); -moz-box-shadow: 0 1px 2px #080; -webkit-box-shadow: 0 1px 2px #080; box-shadow: 0 1px 2px #080; -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#000')"; filter: progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#000'); }
|
||||
input[type=submit]{border:1px solid green;cursor: pointer; color:lightgreen; text-shadow: 0 1px 1px darkgreen; display:inline-block;border-radius:3px;padding:2px;margin:1px;background:rgba(100,255,100,0.4);}
|
||||
input[type=submit]:hover{ background-color:rgba(0,255,0,0.8);}
|
||||
input[type=submit]:active{border-color:black; background-color:rgba(0,255,0,0.8);}
|
||||
#____q{margin-top:20px;}
|
||||
|
|
16
index.php
16
index.php
|
@ -54,9 +54,6 @@ if (!creer_dossier($GLOBAL['public_data_folder'], TRUE)) { die('Cant create '.$G
|
|||
if (is_file($GLOBAL['data_folder'].'/tags.txt')){$GLOBAL['tag_array']=unstore($GLOBAL['data_folder'].'/tags.txt');}else{$GLOBAL['tag_array']=array('public'=>array(),'private'=>array());store($GLOBAL['data_folder'].'/tags.txt',$GLOBAL['tag_array']);}
|
||||
if (!isset($GLOBAL['tag_array']['public'])){$GLOBAL['tag_array']['public']=array();};
|
||||
if (!isset($GLOBAL['tag_array']['private'])){$GLOBAL['tag_array']['private']=array();};
|
||||
|
||||
|
||||
|
||||
|
||||
// Fonctions
|
||||
function aff($a,$stop=true){echo 'Arret a la ligne '.__LINE__.' du fichier '.__FILE__.'<pre>';var_dump($a);echo '</pre>';if ($stop){exit();}}
|
||||
|
@ -76,6 +73,7 @@ function deltags($tags,$path,$id=false,$status=false){
|
|||
if (is_string($tags)){$tags=explode(' ',$tags);}
|
||||
if (!$status){$status=statuspath($path);}
|
||||
if (!$id){$id=idfrompath($path);}
|
||||
|
||||
foreach($tags as $tag){
|
||||
if (isset($GLOBAL['tag_array'][$status][$id])){
|
||||
$GLOBAL['tag_array'][$status][$id]=trim(str_replace(' '.$tag.' ','',' '.$GLOBAL['tag_array'][$status][$id].' '));
|
||||
|
@ -94,9 +92,12 @@ function settags($tags,$path,$id=false,$status=false){
|
|||
function link2favicon($dir){
|
||||
if (!is_dir($dir)){return '<link rel="shortcut icon" type="/image/png" href="design/favicon2.png">';}
|
||||
$favs=glob($dir.'/*favicon*');
|
||||
$fav=basename($favs[0]);
|
||||
$extension=pathinfo($dir,PATHINFO_EXTENSION);
|
||||
echo '<link rel="shortcut icon" type="/image/'.$extension.'" href="'.$dir.'/'.$fav.'">';
|
||||
if (count($favs)>0){$fav=basename($favs[0]);
|
||||
$extension=pathinfo($dir,PATHINFO_EXTENSION);
|
||||
echo '<link rel="shortcut icon" type="/image/'.$extension.'" href="'.$dir.'/'.$fav.'">';
|
||||
}else{
|
||||
echo '<link rel="shortcut icon" type="/image/png" href="design/favicon2.png">';;
|
||||
}
|
||||
}
|
||||
function search($public='public',$tag=false){
|
||||
global $GLOBAL;
|
||||
|
@ -164,7 +165,6 @@ function tagcloud(){
|
|||
$tags=explode(' ',trim($tag));
|
||||
foreach ($tags as $t){
|
||||
if (!isset($array['private'][$t]['nb'])){$array['private'][$t]['nb']=1;}else{$array['private'][$t]['nb']++;}
|
||||
//if (!isset($array['private'][$t]['status'])){$array[$t]['status']='private';}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -172,6 +172,7 @@ function tagcloud(){
|
|||
$tags=explode(' ',trim($tag));
|
||||
foreach ($tags as $t){
|
||||
if (!isset($array['public'][$t]['nb'])){$array['public'][$t]['nb']=1;}else{$array['public'][$t]['nb']++;}
|
||||
//if (!isset($array[$t]['status'])){$array[$t]['status']='public';}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -733,7 +734,6 @@ function complete_url($url) {
|
|||
}
|
||||
|
||||
function add_table_and_replace(&$data, $retrievable, &$match1, $match, $url_p, $type) {
|
||||
global $GLOBAL;
|
||||
// get the filenam (basename)
|
||||
global $GLOBAL;
|
||||
$nom_fichier = (preg_match('#^https?://#', $match)) ? pathinfo(parse_url($match, PHP_URL_PATH), PATHINFO_BASENAME) : pathinfo($match, PATHINFO_BASENAME);
|
||||
|
|
Reference in a new issue