Merged master into dashboards2
This commit is contained in:
@@ -98,7 +98,7 @@ class Upgrade
|
||||
$installedMD5 = "";
|
||||
} else {
|
||||
$time = microtime(1);
|
||||
$installedMD5 = md5_file($installedFile);
|
||||
$installedMD5 = G::encryptFileOld($installedFile);
|
||||
$checksumTime += microtime(1) - $time;
|
||||
}
|
||||
$archiveMD5 = $checksum;
|
||||
|
||||
@@ -260,7 +260,7 @@ class System
|
||||
continue;
|
||||
}
|
||||
if (file_exists( realpath( $filename ) )) {
|
||||
if (strcmp( $checksum, md5_file( realpath( $filename ) ) ) != 0) {
|
||||
if (strcmp( $checksum, G::encryptFileOld( realpath( $filename ) ) ) != 0) {
|
||||
$result['diff'][] = $filename;
|
||||
}
|
||||
} else {
|
||||
@@ -542,7 +542,7 @@ class System
|
||||
$file = PATH_TRUNK . trim( $line[2] );
|
||||
if (is_readable( $file )) {
|
||||
$size = sprintf( "%07d", filesize( $file ) );
|
||||
$checksum = sprintf( "%010u", crc32( file_get_contents( $file ) ) );
|
||||
$checksum = sprintf( "%010u", G::encryptCrc32( file_get_contents( $file ) ) );
|
||||
if (! ($line[0] == $size && $line[1] == $checksum) && substr( $file, - 4 ) != '.xml') {
|
||||
$distinctFiles .= $file . "\n";
|
||||
$distinct ++;
|
||||
|
||||
@@ -61,7 +61,7 @@ class AddonsManager extends BaseAddonsManager
|
||||
if ($download_md5 == null) {
|
||||
return null;
|
||||
}
|
||||
return (strcasecmp(md5_file($filename), $download_md5) == 0);
|
||||
return (strcasecmp(G::encryptFileOld($filename), $download_md5) == 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -367,7 +367,7 @@ class Application extends BaseApplication
|
||||
|
||||
$pin = G::generateCode(4, 'ALPHANUMERIC');
|
||||
$this->setAppData(serialize(array('PIN' => $pin)));
|
||||
$this->setAppPin(md5($pin));
|
||||
$this->setAppPin(G::encryptOld($pin));
|
||||
|
||||
$c = new Criteria();
|
||||
$c->clearSelectColumns();
|
||||
|
||||
Reference in New Issue
Block a user