Changeset 3586
- Timestamp:
- Jul 15, 2009, 5:01:21 PM (15 years ago)
- Location:
- extensions/floPure
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/floPure/header.tpl
r3585 r3586 74 74 <div id="the_page"> 75 75 {php} 76 if (is_admin() and !(pwg_get_session_var('flopure_checked_version')) ) 77 //if (is_admin()) 76 if (is_admin() and !(pwg_get_session_var('flopure_array_version')) and !(pwg_get_session_var('flopure_checked_version')) ) 78 77 { 79 78 global $template, $page; … … 87 86 { 88 87 $template->append('header_msgs', l10n('floPure_update_needed')); 89 $name_is_nutd[]='floPure'; 88 $name_is_nutd['floPure']=$floPure_conf['version']; 89 //$name_is_nutd['version'][]=$floPure_conf['version']; 90 90 } 91 91 $floPure->theme_version_search(PHPWG_ROOT_PATH.'template/floPure/theme'); 92 $name_is_nutd=array_merge($name_is_nutd,$floPure->is_nutd); 93 pwg_set_session_var('flopure_checked_version',$name_is_nutd); 94 foreach($name_is_nutd as $i) 92 $name_is_nutd= $name_is_nutd + $floPure->is_nutd; 93 pwg_set_session_var('flopure_array_version',$name_is_nutd); 94 pwg_set_session_var('flopure_checked_version', true); 95 /*foreach($name_is_nutd as $cle => $val ) 95 96 { 96 $template->append('test_a', array( 'A'=> $i) ); 97 } 98 99 100 //pwg_set_session_var('flopure_checked_version'); 97 $template->append('test_a', array( 'A'=>$cle,'B'=>$val, ) ); 98 }*/ 101 99 102 100 103 101 } 104 else if ( pwg_get_session_var('flopure_checked_version') )102 else if (is_admin() and pwg_get_session_var('flopure_array_version') ) 105 103 { 106 104 … … 110 108 load_language('template.lang', PHPWG_ROOT_PATH.'template/floPure/tools/'); 111 109 $floPure = new floPure(); 112 $floPure->display(pwg_get_session_var('flopure_ checked_version'));113 foreach(pwg_get_session_var('flopure_checked_version') as $i)110 $floPure->display(pwg_get_session_var('flopure_array_version')); 111 /*foreach(pwg_get_session_var('flopure_checked_version') as $cle => $val ) 114 112 { 115 $template->append('test_a', array( 'A'=> $i) ); 116 } 113 $template->append('test_a', array( 'A'=>$cle,'B'=>$val, ) ); 114 }*/ 115 $template->append('test_a', array( 'A'=>'a','B'=>'a', ) ); 117 116 } 118 117 //pwg_unset_session_var('flopure_checked_version'); -
extensions/floPure/theme/autumn/themeconf.inc.php
r3580 r3586 9 9 'local_head' => '<!-- no theme specific head content -->', 10 10 'eid' => '233', 11 'version' => ' 1.0.0',11 'version' => '5.0.1', 12 12 ); 13 13 ?> -
extensions/floPure/theme/clear_blue/themeconf.inc.php
r3580 r3586 9 9 'local_head' => '<!-- no theme specific head content -->', 10 10 'eid' => '143', 11 'version' => ' 2.0.0',11 'version' => '5.0.0', 12 12 ); 13 13 ?> -
extensions/floPure/tools/floPure.class.php
r3585 r3586 47 47 $msg=l10n('theme_update_needed_1').$themeconf['theme'].l10n('theme_update_needed_2').$themeconf['eid'].l10n('theme_update_needed_3').$themeconf['theme'].l10n('theme_update_needed_4'); 48 48 $template->append('header_msgs', $msg); 49 $this->is_nutd[ ]=$themeconf['theme'];49 $this->is_nutd[$themeconf['theme']]=$themeconf['version']; 50 50 } 51 51 } … … 115 115 if (!is_array($names)) 116 116 { 117 global $template; 117 118 $template->assign( 118 119 array( … … 125 126 global $template, $user; 126 127 load_language('template.lang', PHPWG_ROOT_PATH.'template/floPure/tools/'); 127 foreach($names as $name) 128 $r_names=$names; 129 foreach($names as $name => $version) 128 130 { 129 131 if ($name=='floPure') 130 132 { 131 $template->append('header_msgs', l10n('floPure_update_needed')); 133 include(PHPWG_ROOT_PATH.'template/floPure/tools/version.conf.php'); 134 if ($this->floPure_version_compare($version, $floPure_conf['version'])) 135 { 136 $template->append('header_msgs', l10n('floPure_update_needed')); 137 } 138 else 139 { 140 $p=array_search($name,array_keys($r_names)); 141 array_splice ($r_names,$p,1); 142 } 143 132 144 } 133 145 else … … 136 148 { 137 149 include(PHPWG_ROOT_PATH.'template/floPure/theme/'.$name.'/themeconf.inc.php'); 138 $msg=l10n('theme_update_needed_1').$themeconf['theme'].l10n('theme_update_needed_2').$themeconf['eid'].l10n('theme_update_needed_3').$themeconf['theme'].l10n('theme_update_needed_4'); 139 $template->append('header_msgs', $msg); 150 if ($this->floPure_version_compare($version, $themeconf['version'])) 151 { 152 $msg=l10n('theme_update_needed_1').$themeconf['theme'].l10n('theme_update_needed_2').$themeconf['eid'].l10n('theme_update_needed_3').$themeconf['theme'].l10n('theme_update_needed_4'); 153 $template->append('header_msgs', $msg); 154 } 155 else 156 { 157 $p=array_search($name,array_keys($r_names)); 158 array_splice ($r_names,$p,1); 159 } 140 160 } 141 161 } 142 162 } 143 163 }//else 144 return true;145 164 165 pwg_set_session_var('flopure_array_version',$r_names); 146 166 } 147 167 }
Note: See TracChangeset
for help on using the changeset viewer.