Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
3.0-dev update 5
Browse files Browse the repository at this point in the history
Major Changes
- New theme engine supporting jQuery UI and Uniform;
- New theme: "default". "oxygen" and "dark" themes are no more
supported;
- New jQuery version;
- jQuery plugins replacements;
- Many changes in the JavaScript code.
  • Loading branch information
sunhater committed Mar 8, 2014
1 parent 86a721e commit 1a498b5
Show file tree
Hide file tree
Showing 391 changed files with 3,640 additions and 2,323 deletions.
2 changes: 1 addition & 1 deletion cache/base.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cache/theme_dark.css

This file was deleted.

1 change: 0 additions & 1 deletion cache/theme_dark.js

This file was deleted.

1 change: 1 addition & 0 deletions cache/theme_default.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cache/theme_default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
new Image().src="themes/default/img/loading.gif";
1 change: 0 additions & 1 deletion cache/theme_oxygen.css

This file was deleted.

1 change: 0 additions & 1 deletion cache/theme_oxygen.js

This file was deleted.

4 changes: 2 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

// GENERAL SETTINGS

'disabled' => false,
'theme' => "oxygen",
'disabled' => true,
'theme' => "default",
'uploadURL' => "upload",
'uploadDir' => "",

Expand Down
30 changes: 21 additions & 9 deletions core/class/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,16 +709,28 @@ protected function getFiles($dir) {
if ($files === false)
return $return;

$thumbsFor = array(
IMAGETYPE_GIF,
IMAGETYPE_JPEG,
IMAGETYPE_PNG
);

foreach ($files as $file) {
$size = @getimagesize($file);
if (is_array($size) && count($size)) {
$thumb_file = "$thumbDir/" . basename($file);
if (!is_file($thumb_file))
$this->makeThumb($file, false);
$smallThumb =
($size[0] <= $this->config['thumbWidth']) &&
($size[1] <= $this->config['thumbHeight']) &&
in_array($size[2], array(IMAGETYPE_GIF, IMAGETYPE_PNG, IMAGETYPE_JPEG));

if (!function_exists("exif_imagetype") ||
in_array(@exif_imagetype($file), $thumbsFor)
) {
$size = @getimagesize($file);
if (is_array($size) && count($size)) {
$thumb_file = "$thumbDir/" . basename($file);
if (!is_file($thumb_file))
$this->makeThumb($file, false);
$smallThumb =
($size[0] <= $this->config['thumbWidth']) &&
($size[1] <= $this->config['thumbHeight']) &&
in_array($size[2], $thumbsFor);
} else
$smallThumb = false;
} else
$smallThumb = false;

Expand Down

0 comments on commit 1a498b5

Please sign in to comment.