File tree Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -75,4 +75,4 @@ requires:
75
75
Time::HiRes : 0
76
76
YAML::Syck : 1.04
77
77
perl : 5.6.1
78
- version : 0.5.6
78
+ version : 0.5.7
Original file line number Diff line number Diff line change 2
2
OpenResty - General-purpose web service platform for web applications
3
3
4
4
VERSION
5
- This document describes OpenResty 0.5.6 released on May 3 , 2009.
5
+ This document describes OpenResty 0.5.7 released on May 4 , 2009.
6
6
7
7
DESCRIPTION
8
8
This module implements the server-side OpenResty web service protocol.
Original file line number Diff line number Diff line change 1
- # !/usr/ bin/env perl
1
+ # !/opt/perl/ bin/perl
2
2
3
3
use strict;
4
4
use warnings;
Original file line number Diff line number Diff line change @@ -51,3 +51,7 @@ upload2: pack
51
51
upload : all
52
52
script/upload
53
53
54
+ push :
55
+ -mkdir -p /opt/eeeeresty/htdocs/admin/
56
+ cp -rup ` pwd` /out/* /opt/eeeeresty/htdocs/admin/
57
+
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use warnings;
5
5
6
6
use utf8;
7
7
8
- use File::ShareDir qw( module_dir ) ;
8
+ use File::ShareDir qw( dist_dir ) ;
9
9
use File::Spec;
10
10
use Crypt::CBC;
11
11
use MIME::Base64;
@@ -24,12 +24,19 @@ sub level2name {
24
24
25
25
my $FontPath = " $FindBin::Bin /../share/font/wqy-zenhei.ttf" ;
26
26
eval {
27
- if ( !-f $FontPath )
28
- {
29
- $FontPath = File::Spec-> catfile( module_dir(' OpenResty' ),
27
+ if ( !-f $FontPath ) {
28
+ $FontPath = File::Spec-> catfile( dist_dir(' OpenResty' ),
30
29
' font/wqy-zenhei.ttf' );
30
+ if ( ! -f $FontPath || !-r $FontPath ) {
31
+ warn " WARNING: Chinese font file $FontPath not found or not readable.\n " ;
32
+ } else {
33
+ # warn "Found chinese font file $FontPath.\n";
34
+ }
31
35
}
32
36
};
37
+ if ($@ ) {
38
+ warn $@ ;
39
+ }
33
40
34
41
my $PLAINTEXT_SEP = " :" ; # separator character in plaintext str
35
42
my $MIN_TIMESPAN = 1; # minimum timespan(sec) for a valid Captcha,
You can’t perform that action at this time.
0 commit comments