Skip to content

Commit

Permalink
Add scripts for adding profa and for adding the admin professor
Browse files Browse the repository at this point in the history
  • Loading branch information
mgage committed Jun 24, 2012
1 parent e692a16 commit 04217e8
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 2 deletions.
Empty file modified DATA/uploads/README
100644 → 100755
Empty file.
10 changes: 10 additions & 0 deletions bin/addadmin
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

$db->addUser($db->newUser(user_id=>"admin", first_name=>"Prof", last_name=>"Admin",email_address=>"", student_id=>"admin", status=>"C",section=>"", recitation=>"",comment=>"administrator"));

$db->addPassword($db->newPassword(user_id=>"admin", password=>crypt("admin", "dc")));

$db->addPermissionLevel($db->newPermissionLevel(user_id=>"admin", permission=>"10"));


exit;

10 changes: 10 additions & 0 deletions bin/addprofa
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

$db->addUser($db->newUser(user_id=>"profa", first_name=>"Prof", last_name=>"A",email_address=>"", student_id=>"profa", status=>"C",section=>"", recitation=>"",comment=>"administrator"));

$db->addPassword($db->newPassword(user_id=>"profa", password=>crypt("profa", "dc")));

$db->addPermissionLevel($db->newPermissionLevel(user_id=>"profa", permission=>"10"));


exit;

3 changes: 2 additions & 1 deletion bin/wwsh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ wwdb - command-line interface to the WeBWorK libraries.
=cut

use Data::Dumper;


BEGIN {
DB::parse_options("NonStop=1");
Expand All @@ -33,6 +33,7 @@ BEGIN {
use lib "$ENV{WEBWORK_ROOT}/lib";
use WeBWorK::CourseEnvironment;
use WeBWorK::DB;
use Data::Dumper;

our $ce;
our $db;
Expand Down
1 change: 0 additions & 1 deletion htdocs/tmp/equations/README
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
$CVSHeader$

Equation images are stored in this directory.
Empty file modified logs/README
100644 → 100755
Empty file.
Empty file modified tmp/README
100644 → 100755
Empty file.

0 comments on commit 04217e8

Please sign in to comment.