Project

General

Profile

« Previous | Next » 

Revision 1593

Added by Dietmar almost 13 years ago

rebuild protectfile in pages/posts

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
=========================== add small Features 2.8.2 ==========================
14
01 Feb-2012 Build 1593 Dietmar Woellbrink (Luisehahne)
15
# rebuild protectfile in pages/posts
14 16
31 Jan-2012 Build 1592 Werner v.d.Decken(DarkViper)
15 17
# little Typo-fix in database::SqlImport(). (grummel)
16 18
31 Jan-2012 Build 1591 Werner v.d.Decken(DarkViper)
branches/2.8.x/wb/upgrade-script.php
501 501
		print '<br /><strong>Upgrade '.MEDIA_DIRECTORY.'/ protect files</strong>'." $FAIL!<br />";
502 502
		print implode ('<br />',$array);
503 503
	}
504
/**********************************************************
505
 * upgrade posts folder index protect files
506
 */
507
	$sPostsPath = WB_PATH.PAGES_DIRECTORY.'/posts';
508
	echo '<h4>Upgrade /posts/ index.php protect files</h4><br />';
509
	$array = rebuildFolderProtectFile($sPostsPath);
510
	if( sizeof( $array ) ){
511
		print '<br /><strong>Upgrade '.sizeof( $array ).' /posts/ protect files</strong>'." $OK<br />";
512
	} else {
513
		print '<br /><strong>Upgrade /posts/ protect files</strong>'." $FAIL!<br />";
514
		print implode ('<br />',$array);
515
	}
504 516
/* *****************************************************************************
505 517
 * - check for deprecated / never needed files
506 518
 */
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.2');
54
if(!defined('REVISION')) define('REVISION', '1592');
54
if(!defined('REVISION')) define('REVISION', '1593');
55 55
if(!defined('SP')) define('SP', 'SP2');
branches/2.8.x/wb/modules/news/upgrade.php
78 78
			$sql .= 'SET `created_by`=`posted_by`, `created_when`=`posted_when`';
79 79
			$database->query($sql);
80 80
		}
81

  
82
	$array = rebuildFolderProtectFile($sPostsPath);
81 83
	// now iterate through all existing accessfiles,
82 84
	// write its creation date into database
83 85
		$oDir = new DirectoryIterator($sPostsPath);

Also available in: Unified diff