removing add new album button, removing logs, and unused code

This commit is contained in:
Bartek Przybylski 2011-10-01 22:36:01 +02:00
parent 83e7f9d54a
commit 339d417420
4 changed files with 2 additions and 4 deletions

View File

@ -2,6 +2,7 @@ ErrorDocument 404 //owncloud/core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value memory_limit 128M
SetEnv htaccessWorking true
</IfModule>
Options -Indexes

View File

@ -49,7 +49,6 @@ $box_size = 200;
$img = $_GET['img'];
$tmp = OC::$CONFIG_DATADIRECTORY . $img;
$imagesize = getimagesize($tmp);
header('Content-Type: image/png');
$image = CroppedThumbnail($tmp, $box_size, $box_size);

View File

@ -39,8 +39,6 @@ class OC_GALLERY_SCANNER {
$albumId = $result->fetchRow();
$albumId = $albumId['album_id'];
foreach ($current_album['images'] as $img) {
error_log($img);
error_log($albumId);
$stmt = OC_DB::prepare('SELECT * FROM *PREFIX*gallery_photos WHERE "album_id" = ? AND "file_path" = ?');
$result = $stmt->execute(array($albumId, $img));
if ($result->numRows() == 0) {

View File

@ -5,7 +5,7 @@ OC_Util::addScript('gallery', 'album_cover');
?>
<div id="controls">
<input type="button" value="New album" onclick="javascript:createNewAlbum();" />
<!-- <input type="button" value="New album" onclick="javascript:createNewAlbum();" />-->
<input type="button" value="Rescan" onclick="javascript:scanForAlbums();" /><br/>
</div>
<div id="gallery_list">