Skip to content

Commit

Permalink
add SYSOP login in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
xw2423 committed Aug 3, 2014
1 parent 3c5fadc commit 0cf0c3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/inc/shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
abstract class NF_Shell{
abstract public function main($argc, $argv);

protected function _initKbs(){
protected function _initKbs($sysop = false){
if (!bbs_ext_initialized())
bbs_init_ext();
bbs_setguest_nologin();
if($sysop)
bbs_setSYSOP_nologin();
else
bbs_setguest_nologin();
}

public static function help(){
Expand Down

0 comments on commit 0cf0c3f

Please sign in to comment.