ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.81 by root, Tue Nov 7 17:38:22 2006 UTC vs.
Revision 1.83 by root, Mon Dec 11 01:30:41 2006 UTC

28our $TICK_WATCHER; 28our $TICK_WATCHER;
29our $NEXT_TICK; 29our $NEXT_TICK;
30 30
31our %CFG; 31our %CFG;
32 32
33our $uptime; 33our $uptime;#d#
34 34our $UPTIME;
35$uptime ||= time; 35$UPTIME ||= $uptime;#d#
36$UPTIME ||= time;
36 37
37############################################################################# 38#############################################################################
38 39
39=head2 GLOBAL VARIABLES 40=head2 GLOBAL VARIABLES
40 41
41=over 4 42=over 4
43
44=item $cf::UPTIME
45
46The timestamp of the server start (so not actually an uptime).
42 47
43=item $cf::LIBDIR 48=item $cf::LIBDIR
44 49
45The perl library directory, where extensions and cf-specific modules can 50The perl library directory, where extensions and cf-specific modules can
46be found. It will be added to C<@INC> automatically. 51be found. It will be added to C<@INC> automatically.
642 . "#line 1 \"$path\"\n{\n" 647 . "#line 1 \"$path\"\n{\n"
643 . (do { local $/; <$fh> }) 648 . (do { local $/; <$fh> })
644 . "\n};\n1"; 649 . "\n};\n1";
645 650
646 eval $source 651 eval $source
647 or die "$path: $@"; 652 or die $@ ? "$path: $@\n"
653 : "extension disabled.\n";
648 654
649 push @exts, $pkg; 655 push @exts, $pkg;
650 $ext_pkg{$base} = $pkg; 656 $ext_pkg{$base} = $pkg;
651 657
652# no strict 'refs'; 658# no strict 'refs';

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines