This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MT::Plugin::ReturnURI; | |
use strict; | |
use MT; | |
use MT::Plugin; | |
our $VERSION = '1.00'; | |
use base qw( MT::Plugin ); | |
my $plugin = MT::Plugin::ReturnURI->new; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ls -l test.jpg | |
-rw-r--r-- 1 taku taku 30861 9月 9 16:39 test.jpg | |
% rpm -qa | grep -i 'png\|jpe\?g\|magick' | |
libpng-devel-1.2.10-7.1.el5_3.2 | |
ImageMagick-perl-6.2.8.0-4.el5_1.1 | |
libjpeg-6b-37 | |
ImageMagick-6.2.8.0-4.el5_1.1 | |
libpng-1.2.10-7.1.el5_3.2 | |
% perl -MImage::Magick -e '$m = Image::Magick->new; $m->Read("test.jpg"); $m->Resize('width' => 10, 'height' => 10); open($fh, ">", "resized.jpg"); print($fh $m->ImageToBlob);' | |
% ls -l resized.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mt:TagOverride name="Entries"> | |
<mt:ContentsOverride> | |
<li><mt:SuperContents /></li> | |
</mt:ContentsOverride> | |
<ul> | |
<mt:SuperTag> | |
</ul> | |
</mt:TagOverride> | |
<mt:Entries> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menus: | |
quickrebuild: | |
label: Rebuild | |
order: 1000 | |
mode: rebuild_confirm | |
args: | |
quick_rebuild: 1 | |
quickrebuild:index: | |
label: Only Indexes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub init_app { | |
my ($plugin, $app) = @_; | |
my $menus = $plugin->{registry}->{applications}->{cms}->{menus}; | |
$menus->{'quickrebuild'} = { | |
label => 'Rebuild', | |
order => 1000, | |
mode => 'rebuild_confirm', | |
}; | |
$menus->{'quickrebuild:index'} = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MT::Plugin::UserDashboard; | |
use strict; | |
use MT; | |
use MT::Plugin; | |
use base qw( MT::Plugin ); | |
MT->add_plugin(MT::Plugin::UserDashboard->new); | |
sub init_registry { | |
my $plugin = shift; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ArchiveUploader/App.pm b/lib/ArchiveUploader/App.pm | |
index 4e9e58d..82f50ed 100644 | |
--- a/lib/ArchiveUploader/App.pm | |
+++ b/lib/ArchiveUploader/App.pm | |
@@ -125,7 +125,6 @@ sub archive_asset_select_file { | |
} | |
$param{'upload_mode'} = 'archive_asset_upload_file'; | |
- $param{'have_sort_order'} = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- MTwave.pl.orig 2009-11-29 15:56:58.000000000 +0900 | |
+++ MTwave.pl 2009-11-29 16:19:29.000000000 +0900 | |
@@ -1,13 +1,16 @@ | |
package MT::Plugin::MTwave; | |
use strict; | |
use MT; | |
+use MT::Plugin; | |
use MT::Entry; | |
+use base qw/ MT::Plugin /; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub _width_height { | |
my $src = shift; | |
my $content = get($src); | |
if (! $content) { | |
return ''; | |
} | |
my ($x, $y) = imgsize(\$content); | |
return ' width="' . $x . '" height="' . $y .'" '; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function create_cache($file, $cachefile) { | |
$x = 240; // 横サイズ | |
$y = 320; // 縦サイズ | |
$q = 60; // 画質 | |
$size = getimagesize($file); | |
if($size[0] > $x){ |
OlderNewer