line |
l |
!l |
condition |
19
|
0 |
0 |
$o->{'schema'}{'savedSearchAlertMaxRecs'} ||= 1000 |
20
|
0 |
0 |
$o->{'schema'}{'savedSearchAlertEmailCharLimit'} ||= 500000 |
64
|
0 |
0 |
$o->{'q'}->param('save_search_default') || 0 |
69
|
0 |
0 |
$o->{'q'}->param('alert_mask') || 0 |
176
|
0 |
0 |
$rec ||= {} |
178
|
0 |
0 |
$rec->{'ALERT_MASK'} ||= 1 |
179
|
0 |
0 |
$rec->{'ALERT_INTERVAL_MIN'} ||= 1440 |
180
|
0 |
0 |
$rec->{'ALERT_DOW'} ||= '12345' |
181
|
0 |
0 |
$rec->{'ALERT_START_HOUR'} ||= 8 |
182
|
0 |
0 |
$rec->{'ALERT_END_HOUR'} ||= 17 |
230
|
0 |
0 |
$rec ||= {} |
251
|
0 |
0 |
$o->{'schema'}{'tools'}{'savereport'} ||= {'title', 'Save Report', 'on_init', \&CGI::OptimalQuery::SaveSearchTool::on_init, 'on_open', \&CGI::OptimalQuery::SaveSearchTool::on_open} |
396
|
0 |
0 |
$ENV{'USER'} || 'root' |
|
0 |
0 |
$ENV{'HOSTNAME'} || 'localhost' |
420
|
0 |
0 |
$opts{'sendmail_handler'} ||= \&CGI::OptimalQuery::SaveSearchTool::sendmail_handler |
440
|
0 |
0 |
$opts{'error_handler'} ||= sub {
my($type, @msg) = @_;
my $dt = strftime('%F %T', localtime $^T);
my $msg = join(' ', $dt, lc $type, @msg) . "\n";
if ($type =~ /^(err|debug)$/i) {
print STDERR $msg;
}
else {
print $msg;
};
}
|
533
|
0 |
0 |
local $ENV{'REQUEST_METHOD'} ||= 'GET' |
534
|
0 |
0 |
local $ENV{'REMOTE_ADDR'} ||= '127.0.0.1' |
730
|
0 |
0 |
$func ||= 'handler' |
line |
l |
!l&&r |
!l&&!r |
condition |
35
|
0 |
0 |
0 |
$data{'rows_page'} eq 'All' or $data{'rows_page'} > 25 |
134
|
0 |
0 |
0 |
$rec{'id'} ||= $o->{'dbh'}->last_insert_id('', '', '', '') |
150
|
0 |
0 |
0 |
$err =~ /unique\ constraint/i or $err =~ /duplicate\ entry/i |
|
0 |
0 |
0 |
$err =~ /unique\ constraint/i or $err =~ /duplicate\ entry/i or $err =~ /unique\_violation/i |
|
0 |
0 |
0 |
$err =~ /unique\ constraint/i or $err =~ /duplicate\ entry/i or $err =~ /unique\_violation/i or $err =~ /unique\ key/i |
|
0 |
0 |
0 |
$err =~ /unique\ constraint/i or $err =~ /duplicate\ entry/i or $err =~ /unique\_violation/i or $err =~ /unique\ key/i or $err =~ /duplicate\ key/i |
|
0 |
0 |
0 |
$err =~ /unique\ constraint/i or $err =~ /duplicate\ entry/i or $err =~ /unique\_violation/i or $err =~ /unique\ key/i or $err =~ /duplicate\ key/i or $err =~ /constraint\_unique/i |
327
|
0 |
0 |
0 |
$CGI::OptimalQuery::SaveSearchTool::current_saved_search->{'ALERT_MASK'} & 4 || $CGI::OptimalQuery::SaveSearchTool::current_saved_search->{'ALERT_MASK'} & 1 && $CGI::OptimalQuery::SaveSearchTool::current_saved_search->{'uids'}{$rec->{'U_ID'}} == 3 |
396
|
0 |
0 |
0 |
$email{'from'} ||= ($ENV{'USER'} || 'root') . '@' . ($ENV{'HOSTNAME'} || 'localhost') |
403
|
0 |
0 |
0 |
$dbh->{'Driver'}{'Name'} eq 'Pg' or $dbh->{'Driver'}{'Name'} eq 'Microsoft SQL Server' |
540
|
0 |
0 |
0 |
local $ENV{'HTTP_HOST'} ||= $opts{'base_url'} =~ m[https?\://([^/]+)] ? $1 : 'localhost' |
541
|
0 |
0 |
0 |
local $ENV{'SERVER_NAME'} ||= $ENV{'HTTP_HOST'} |
575
|
0 |
0 |
0 |
$rec->{'email_from'} || $opts{'email_from'} |
|
0 |
0 |
0 |
$rec->{'email_Reply-To'} || $opts{'email_Reply-To'} |
613
|
0 |
0 |
0 |
$rec->{'ALERT_MASK'} & 1 and $total_new > 0 or $rec->{'ALERT_MASK'} & 2 and $total_deleted > 0 |
|
0 |
0 |
0 |
$rec->{'ALERT_MASK'} & 1 and $total_new > 0 or $rec->{'ALERT_MASK'} & 2 and $total_deleted > 0 or $rec->{'ALERT_MASK'} & 4 and $total_count > 0 |
620
|
0 |
0 |
0 |
$rec->{'email_from'} || $opts{'email_from'} |
|
0 |
0 |
0 |
$rec->{'email_Reply-To'} || $opts{'email_Reply-To'} |