Skip to content

Commit

Permalink
Replace all occurrances of timelocal.pl with Time::Local https://sour…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 10, 2012
1 parent d572a06 commit 8a16bc7
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 16 deletions.
3 changes: 1 addition & 2 deletions at/create_job.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# create_job.cgi
# Create a new at job

require 'timelocal.pl';

require './at-lib.pl';
use Time::Local;
&ReadParse();
&error_setup($text{'create_err'});

Expand Down
2 changes: 1 addition & 1 deletion cluster-useradmin/create_group.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Creates a new group on all servers

require './cluster-useradmin-lib.pl';
require 'timelocal.pl';
use Time::Local;
&error_setup($text{'gsave_err'});
&ReadParse();
@hosts = &list_useradmin_hosts();
Expand Down
2 changes: 1 addition & 1 deletion cluster-useradmin/create_user.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Creates a new user on multiple machines

require './cluster-useradmin-lib.pl';
require 'timelocal.pl';
use Time::Local;
&foreign_require("useradmin", "user-lib.pl");
&error_setup($text{'usave_err'});
&ReadParse();
Expand Down
2 changes: 1 addition & 1 deletion cluster-useradmin/edit_user.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Display a form for editing a user, or creating a new user

require './cluster-useradmin-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();
&foreign_require("useradmin", "user-lib.pl");

Expand Down
2 changes: 1 addition & 1 deletion cluster-useradmin/save_user.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Updates an existing user across multiple servers

require './cluster-useradmin-lib.pl';
require 'timelocal.pl';
use Time::Local;
&error_setup($text{'usave_err'});
&ReadParse();
&foreign_require("useradmin", "user-lib.pl");
Expand Down
2 changes: 1 addition & 1 deletion cluster-useradmin/user_form.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Display a form for creating a new user

require './cluster-useradmin-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();
&foreign_require("useradmin", "user-lib.pl");

Expand Down
2 changes: 1 addition & 1 deletion dhcpd/list_leases.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# List all active leases

require './dhcpd-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();
$timenow = time();

Expand Down
2 changes: 1 addition & 1 deletion nis/edit_passwd_shadow.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Edit a NIS password/shadow files entry

require './nis-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();
&ui_print_header(undef, $text{'passwd_title'}, "");
$mode = ($0 =~ /passwd_shadow_full.cgi$/ ? 2 :
Expand Down
2 changes: 1 addition & 1 deletion nis/old_edit_passwd_shadow.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Edit a NIS password/shadow files entry

require './nis-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();
&ui_print_header(undef, $text{'passwd_title'}, "");

Expand Down
2 changes: 1 addition & 1 deletion nis/save_passwd_shadow.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Create, update or delete a password/shadow files entry

require './nis-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();

($t, $lnums, $passwd, $shadow) =
Expand Down
2 changes: 1 addition & 1 deletion time/apply.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local $format;
local $out;

require "./time-lib.pl";
require 'timelocal.pl';
use Time::Local;

&ReadParse();

Expand Down
2 changes: 1 addition & 1 deletion updown/download.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Save a download or start it right now

require './updown-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();
&error_setup($text{'download_err'});

Expand Down
2 changes: 1 addition & 1 deletion useradmin/edit_user.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Display a form for editing a user, or creating a new user

require './user-lib.pl';
require 'timelocal.pl';
use Time::Local;
&ReadParse();

# Show header and get the user
Expand Down
2 changes: 1 addition & 1 deletion useradmin/save_group.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Saves or creates a new group

require './user-lib.pl';
require 'timelocal.pl';
use Time::Local;
&error_setup($text{'gsave_err'});
&ReadParse();

Expand Down
2 changes: 1 addition & 1 deletion useradmin/save_user.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# home directory or changing file ownerships, do that as well

require './user-lib.pl';
require 'timelocal.pl';
use Time::Local;
&error_setup($text{'usave_err'});
&ReadParse();

Expand Down

0 comments on commit 8a16bc7

Please sign in to comment.