Index: trunk/admin/category/category_maint.php
===================================================================
diff -u -N
--- trunk/admin/category/category_maint.php (revision 6093)
+++ trunk/admin/category/category_maint.php (revision 0)
@@ -1,128 +0,0 @@
-GetVariable('PermCache_UpdateRequired'))
-{
-
- $application->ApplicationDie(header('Location: '.$adminURL.'/'.$objSession->GetVariable('ReturnScript').'?env='.BuildEnv()));
-}
-if(isset($_GET['continue']))
-{
- $updater =& new clsCacheUpdater(1);
- if(!intval($_GET['continue']))
- {
- $updater->clearData();
- $application->ApplicationDie(header('Location: '.$adminURL.'/'.$objSession->GetVariable('ReturnScript').'?env='.BuildEnv()));
- }
-}
-else
-{
- $updater =& new clsCacheUpdater();
- $no_url = $_SERVER['PHP_SELF'].'?env='.BuildEnv().'&continue=0';
- $yes_url = $_SERVER['PHP_SELF'].'?env='.BuildEnv().'&continue=1';
-
-
- if(!isset($_GET['force']))
- if($updater->totalCats > CACHE_PERM_CHUNK_SIZE)
- {
- $updater->setData();
- $title = prompt_language("la_prompt_updating")." ".prompt_language("la_Text_Categories");
- int_header(NULL,NULL,$title);
- flush();
-?>
-
-
-ApplicationDie();
- }
-}
-$title = prompt_language("la_prompt_updating")." ".prompt_language("la_Text_Categories");
-int_header(NULL,NULL,$title);
-flush();
-$percent=$updater->getDonePercent();
-echo '';
-if ($percent == 0)
- echo ''.$percent.'% |
';
-else if ($percent < 60)
- echo ' | '.$percent.'% |
';
-else if ($percent == 100)
- echo ''.$percent.'% | ';
-else
- echo '
'.$percent.'% | |
';
-echo '
';
-flush();
-
-$needs_more = TRUE;
-while ($needs_more && $updater->iteration < CACHE_PERM_CHUNK_SIZE) {
- $needs_more = $updater->DoTheJob();
-}
-
-if ($needs_more)
-{
- $updater->setData();
- $url=$adminURL.'/category/category_maint.php?env='.BuildEnv().'&continue=1';
-}
-else
-{
- $updater->clearData();
- $url = $adminURL.'/'.$objSession->GetVariable('ReturnScript').'?env='.BuildEnv();
- $objSession->SetVariable('PermCache_UpdateRequired', 0);
-}
-print "";
-int_footer();
-exit;
-?>
\ No newline at end of file