Changeset 5271 in spip-zone
- Timestamp:
- Sep 12, 2006, 9:28:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/habillages/exec/config_habillages.php
r5270 r5271 83 83 84 84 if ($search_comment_backup) { 85 echo "commentaire backup trouve dans mes options";85 ###echo "commentaire backup trouve dans mes options"; 86 86 fclose($open_options_file); 87 87 88 88 # Debut routine. 89 89 if (file_exists($theme_duplicated) AND file_exists($theme_xml)) { 90 echo "theme.xml existe dans img_pack";90 ###echo "theme.xml existe dans img_pack"; 91 91 $open_theme_xml = fopen($theme_xml, 'r'); 92 92 $theme_xml_size = filesize ($theme_xml); … … 102 102 103 103 if ($theme_name[1] != $duplicated_name[1]) { 104 echo "le theme choisi n'est pas le même que dans img_pack UN";104 ###echo "le theme choisi n'est pas le même que dans img_pack UN"; 105 105 if (is_dir('img_pack_backup') AND !is_dir('img_pack')) { 106 106 mkdir ("img_pack", 0700); … … 139 139 } 140 140 else if ($theme_name[1] == $duplicated_name[1]) { 141 echo "le theme choisi est le même que dans img_pack TROIS";141 ###echo "le theme choisi est le même que dans img_pack TROIS"; 142 142 if (($duplicated_version[1] != $theme_version[1]) AND ($duplicated_version[1] < $theme_version[1])) { 143 143 … … 180 180 181 181 else if (file_exists($theme_duplicated) AND !file_exists($theme_xml)) { 182 echo "fichier theme.xml n'exite pas dans le theme";182 ###echo "fichier theme.xml n'exite pas dans le theme"; 183 183 if (is_dir('img_pack_backup') AND !is_dir('img_pack')) { 184 echo "backup existe, pas img_pack";185 mkdir ("img_pack", 0700); 186 mkdir ("img_pack/icones_barre", 0700); 187 mkdir ("img_pack/icones", 0700); 188 } 189 else if (!is_dir('img_pack_backup') AND is_dir('img_pack')){ 190 echo "backup n'existe pas, img_pack si";184 ###echo "backup existe, pas img_pack"; 185 mkdir ("img_pack", 0700); 186 mkdir ("img_pack/icones_barre", 0700); 187 mkdir ("img_pack/icones", 0700); 188 } 189 else if (!is_dir('img_pack_backup') AND is_dir('img_pack')){ 190 ###echo "backup n'existe pas, img_pack si"; 191 191 rename ("img_pack", "img_pack_backup"); 192 192 mkdir ("img_pack", 0700); … … 195 195 } 196 196 else if (is_dir('img_pack_backup') AND is_dir('img_pack')){ 197 echo "backup existe, img_pack aussi";197 ###echo "backup existe, img_pack aussi"; 198 198 } 199 199 … … 222 222 223 223 else if (!file_exists($theme_duplicated)){ 224 echo "le theme.xml existe pas dans img_pack";224 ###echo "le theme.xml existe pas dans img_pack"; 225 225 if (is_dir('img_pack_backup') AND !is_dir('img_pack')) { 226 226 mkdir ("img_pack", 0700); … … 261 261 262 262 else if (!$search_comment_backup AND $search_define) { 263 echo "commentaire backup options pas trouvé mais define";263 ###echo "commentaire backup options pas trouvé mais define"; 264 264 fclose($open_options_file); 265 265 # Definir un fichier de sauvegarde. … … 279 279 # Debut routine. 280 280 if (file_exists($theme_duplicated)) { 281 echo "theme.xml existe dans img_pack";281 ###echo "theme.xml existe dans img_pack"; 282 282 $open_theme_xml = fopen($theme_xml, 'r'); 283 283 $theme_xml_size = filesize ($theme_xml); … … 293 293 294 294 if ($theme_name[1] != $duplicated_name[1]) { 295 echo "le theme choisi n'est pas le même que dans img_pack";295 ###echo "le theme choisi n'est pas le même que dans img_pack"; 296 296 if (is_dir('img_pack_backup') AND !is_dir('img_pack')) { 297 297 mkdir ("img_pack", 0700); … … 330 330 } 331 331 else if ($theme_name[1] == $duplicated_name[1]) { 332 echo "le theme choisi est le même que dans img_pack UN";332 ###echo "le theme choisi est le même que dans img_pack UN"; 333 333 if (($duplicated_version[1] != $theme_version[1]) AND ($duplicated_version[1] < $theme_version[1])) { 334 334 … … 372 372 373 373 else if (!file_exists($theme_duplicated)){ 374 echo "le theme.xml existe pas dans img_pack";374 ###echo "le theme.xml existe pas dans img_pack"; 375 375 if (is_dir('img_pack_backup') AND !is_dir('img_pack')) { 376 376 mkdir ("img_pack", 0700); … … 416 416 # Routines a mettre en fonction. 417 417 if (file_exists($theme_duplicated)) { 418 echo "theme.xml existe dans img_pack";418 ###echo "theme.xml existe dans img_pack"; 419 419 $open_theme_xml = fopen($theme_xml, 'r'); 420 420 $theme_xml_size = filesize ($theme_xml); … … 430 430 431 431 if ($theme_name[1] != $duplicated_name[1]) { 432 echo "le theme choisi n'est pas le meme que dans img_pack";432 ###echo "le theme choisi n'est pas le meme que dans img_pack"; 433 433 if (is_dir('img_pack_backup') AND !is_dir('img_pack')) { 434 434 mkdir ("img_pack", 0700); … … 467 467 } 468 468 else if ($theme_name[1] == $duplicated_name[1]) { 469 echo "le theme choisi est le même que dans img_pack DEUX";469 ###echo "le theme choisi est le même que dans img_pack DEUX"; 470 470 if (($duplicated_version[1] != $theme_version[1]) AND ($duplicated_version[1] < $theme_version[1])) { 471 471 … … 509 509 510 510 else if (!file_exists($theme_duplicated)){ 511 echo "le theme.xml existe pas dans img_pack";511 ###echo "le theme.xml existe pas dans img_pack"; 512 512 if (is_dir('img_pack_backup') AND !is_dir('img_pack')) { 513 513 mkdir ("img_pack", 0700);
Note: See TracChangeset
for help on using the changeset viewer.