diff --git a/auto_restrict.php b/auto_restrict.php index b6a54a0..b4a8e60 100644 --- a/auto_restrict.php +++ b/auto_restrict.php @@ -1,4 +1,4 @@ - \ No newline at end of file diff --git a/index.php b/index.php index 6b08588..7d327d0 100644 --- a/index.php +++ b/index.php @@ -33,11 +33,15 @@ else{$publicarg='';$bodyclass='';$GLOBAL['public']=false;include 'auto_restrict. if (isset($_GET['tag'])){$search_tags=strip_tags($_GET['tag']);}else{$search_tags='';} // CONFIGURABLE OPTIONS -// change those directories'names for more security +// adapter la configuration dans le fichier config.php include('config.php'); -$GLOBAL['version']='2.1'; +$GLOBAL['version']='2.2'; $GLOBAL['respawn_url']=returncurrenturl(); +$GLOBAL['css_folder']='design/'.$GLOBAL['skin']; +$GLOBAL['private_data_folder']=$GLOBAL['data_folder'].'/private'; +$GLOBAL['public_data_folder']=$GLOBAL['data_folder'].'/public'; +$GLOBAL['default_data_folder']=$GLOBAL['data_folder'].'/'.$GLOBAL['default_data_folder']; $bookmarklet='Bookmarklet'; $column_width='width:47%'; @@ -85,13 +89,14 @@ function settags($tags,$path,$id=false,$status=false){ store($GLOBAL['data_folder'].'/tags.txt',$GLOBAL['tag_array']); } function link2favicon($dir){ - if (!is_dir($dir)){return '';} + global $GLOBAL; + if (!is_dir($dir)){echo '';} $favs=glob($dir.'/*favicon*'); if (count($favs)>0){$fav=basename($favs[0]); $extension=pathinfo($dir,PATHINFO_EXTENSION); echo ''; }else{ - echo '';; + echo '';; } } function search($public='public',$tag=false){ @@ -816,19 +821,21 @@ if ($GLOBAL['done']['d'] !== FALSE) { }else if (!empty($search_tags)){ $page_title='Tag: '.$search_tags; } - else{$page_title='Respawn – a PHP WebPage Saver'; } + else if ($GLOBAL['public']){$page_title=$GLOBAL['public_title']; } + else{$page_title='Respawn';} ?> <?php echo $page_title; ?> - + > -
+