Skip to content

Commit 04217e8

Browse files
committed
Add scripts for adding profa and for adding the admin professor
1 parent e692a16 commit 04217e8

File tree

7 files changed

+22
-2
lines changed

7 files changed

+22
-2
lines changed

DATA/uploads/README

100644100755
File mode changed.

bin/addadmin

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
$db->addUser($db->newUser(user_id=>"admin", first_name=>"Prof", last_name=>"Admin",email_address=>"", student_id=>"admin", status=>"C",section=>"", recitation=>"",comment=>"administrator"));
3+
4+
$db->addPassword($db->newPassword(user_id=>"admin", password=>crypt("admin", "dc")));
5+
6+
$db->addPermissionLevel($db->newPermissionLevel(user_id=>"admin", permission=>"10"));
7+
8+
9+
exit;
10+

bin/addprofa

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
$db->addUser($db->newUser(user_id=>"profa", first_name=>"Prof", last_name=>"A",email_address=>"", student_id=>"profa", status=>"C",section=>"", recitation=>"",comment=>"administrator"));
3+
4+
$db->addPassword($db->newPassword(user_id=>"profa", password=>crypt("profa", "dc")));
5+
6+
$db->addPermissionLevel($db->newPermissionLevel(user_id=>"profa", permission=>"10"));
7+
8+
9+
exit;
10+

bin/wwsh

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ wwdb - command-line interface to the WeBWorK libraries.
2121
2222
=cut
2323

24-
use Data::Dumper;
24+
2525

2626
BEGIN {
2727
DB::parse_options("NonStop=1");
@@ -33,6 +33,7 @@ BEGIN {
3333
use lib "$ENV{WEBWORK_ROOT}/lib";
3434
use WeBWorK::CourseEnvironment;
3535
use WeBWorK::DB;
36+
use Data::Dumper;
3637

3738
our $ce;
3839
our $db;

htdocs/tmp/equations/README

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$CVSHeader$
21

32
Equation images are stored in this directory.

logs/README

100644100755
File mode changed.

tmp/README

100644100755
File mode changed.

0 commit comments

Comments
 (0)