Index: trunk/admin/category/category_maint.php =================================================================== diff -u -r591 -r606 --- trunk/admin/category/category_maint.php (.../category_maint.php) (revision 591) +++ trunk/admin/category/category_maint.php (.../category_maint.php) (revision 606) @@ -12,7 +12,7 @@ ## result in revocation of the license and support ## ## privileges along maximum prosecution allowed by law. ## ############################################################## -if(!defined('CACHE_PERM_CHUNK_SIZE'))define('CACHE_PERM_CHUNK_SIZE',30); +if(!defined('CACHE_PERM_CHUNK_SIZE'))define('CACHE_PERM_CHUNK_SIZE',5); if(!strlen($pathtoroot)) { @@ -74,16 +74,58 @@ if(!$objSession->GetVariable('PermCache_UpdateRequired')) die(header('Location: '.$adminURL.'/'.$objSession->GetVariable('ReturnScript').'?env='.BuildEnv())); - -if (isset($_GET['continue'])) { +if(isset($_GET['continue'])) +{ $updater =& new clsCacheUpdater(1); + if(!intval($_GET['continue'])) + { + $updater->clearData(); + die(header('Location: '.$adminURL.'/'.$objSession->GetVariable('ReturnScript').'?env='.BuildEnv())); + } } -else { +else +{ $updater =& new clsCacheUpdater(); -} + $no_url = $_SERVER['PHP_SELF'].'?env='.BuildEnv().'&continue=0'; + $yes_url = $_SERVER['PHP_SELF'].'?env='.BuildEnv().'&continue=1'; + $title = prompt_language("la_prompt_updating")." ".prompt_language("la_Text_Categories"); + int_header(NULL,NULL,$title); + flush(); + + if($updater->totalCats > CACHE_PERM_CHUNK_SIZE) + { + $updater->setData(); +?> + + + + + + + + + + + + + +
+ " onclick="javascript:goto_url('');" class="button"> + + " onclick="javascript:goto_url('');" class="button"> +
+getDonePercent(); @@ -117,7 +159,7 @@ } print ""; +print ""; int_footer(); exit; ?>