Blame view

phpSitemapNG/inc/shutdown.php 1.09 KB
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  <?php
  /* 
  	This is phpSitemapNG, a php script that creates your personal google sitemap
  	It can be downloaded from http://enarion.net/google/
  	License: GPL
  	
  	Tobias Kluge, enarion.net
  */
  print $LAYOUT->getFooterLayout();
  // check and maybe remove timeout stuff
  if ($SETTINGS[PSNG_TIMEOUT] == PSNG_TIMEOUT_NONE || $SETTINGS[PSNG_TIMEOUT_IS] !== TRUE) {
  //	echo ('Removing timeout information(done, todo, file, file_lastrun)!');
  	unset($SETTINGS[PSNG_TIMEOUT_DONE]);
  	unset($SETTINGS[PSNG_TIMEOUT_TODO]);
  	unset($SETTINGS[PSNG_TIMEOUT_FILE]);
  	unset($SETTINGS[PSNG_TIMEOUT_FILE_LASTRUN]);
  	unset($SETTINGS[PSNG_TIMEOUT_ACTION]);	
  } else {
      $timeout = true;
  }
  unset($SETTINGS[PSNG_TIMEOUT_IS]);
  unset($SETTINGS[PSNG_TIMEOUT_TIME]);
  unset($SETTINGS[PSNG_TIMEOUT_TIME_START]);
  // unset($SETTINGS[PSNG_TIMEOUT_TIME_DURATION]); should be stored in settings
  unset($SETTINGS[PSNG_TIMEOUT_TIME_SHUTDOWN]);
  unset($SETTINGS[PSNG_TIMEOUT_TIME_DEADLINE]);
  
  $_SESSION[PSNG_SETTINGS] = $SETTINGS;
  if ($timeout) {
  	echo '<script type="text/javascript">window.location.href="'.$SETTINGS['script'].'?action=parse";</script>';
  }
  ?>