View mt-plugin-get-list-files
This file contains 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
name: GetListFiles | |
id: GetListFiles | |
version: 0.1 | |
applications: | |
cms: | |
methods: | |
get_listfiles: > | |
sub { | |
my $app = shift; | |
if (! $app->user->is_superuser ) { |
View mt-plugin-garbage-cleaner
This file contains 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
name: Garbage Cleaner | |
id: GarbageCleaner | |
version: 0.1 | |
callbacks: | |
MT::FileInfo::post_remove: > | |
sub { | |
my ( $cb, $obj ) = @_; | |
my $path = $obj->file_path; | |
require MT::FileMgr; | |
my $fmgr = MT::FileMgr->new( 'Local' ) |
View mt-plugin-get-epoc
This file contains 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
tags: | |
function: | |
GetEpoc: sub{return time} |
View mt-plugin-rewritearchiver.php
This file contains 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 | |
class RewriteArchiver extends MTPlugin { | |
var $registry = array( | |
'config_settings' => array( | |
'RewriteArchiverRewriteTo' => array( 'default' => '/archiver.html' ), | |
), | |
'callbacks' => array( | |
'post_init' => 'rewrite_archiver', | |
), | |
); |
View mt-plugin-http-https-transfer.php
This file contains 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 | |
class HttpHttpsTransfer extends MTPlugin { | |
var $registry = array( | |
'config_settings' => array( | |
'HttpHttpsTransferPathBegin' => array( 'default' => '/entry_form/' ), | |
), | |
'callbacks' => array( | |
'post_init' => 'post_init', | |
), | |
); |
View mt-tool-rebuild-file
This file contains 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
#!/usr/bin/perl | |
package MT::Tool::RebuildFile; | |
use strict; | |
use warnings; | |
use File::Spec; | |
use FindBin; | |
use lib map File::Spec->catdir( $FindBin::Bin, File::Spec->updir, $_ ), qw/lib extlib/; | |
use base qw( MT::Tool ); | |
use MT::Util qw( log_time ); | |
sub usage { '--file /path/to/file or or --template_id n' } |
View mt-tool-speed-rebuild
This file contains 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
#!/usr/bin/perl | |
package MT::Tool::SpeedRebuild; | |
use strict; | |
use warnings; | |
use File::Spec; | |
use FindBin; | |
use lib map File::Spec->catdir( $FindBin::Bin, File::Spec->updir, $_ ), qw/lib extlib/; | |
use base qw( MT::Tool ); | |
use MT::FileMgr; | |
use MT::Util qw( log_time ); |
OlderNewer