Minor Changes

This commit is contained in:
earnolmartin 2023-07-11 19:55:49 -06:00
parent b4aa9ae324
commit df25d55a36

View file

@ -742,7 +742,7 @@ function runOp($op){ # these are like url to function mappers... maps op variab
case 'changemypass' : return $this->changeMyPass();break;
# for mysql, stop and start is meaningless, because if mysql cannot run, then, panel also cannot be accessible or this functions do not work.
case 'dorestartmysql' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'mysql','info2'=>'restart')); break;
case 'dorestartmysql' : $this->requireAdmin(); return passthru2_silent("service mysql restart", true, true); break;
case 'dostopapache2' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'apache2','info2'=>'stop')); break;
case 'dostartapache2' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'apache2','info2'=>'start')); break;
@ -760,9 +760,9 @@ function runOp($op){ # these are like url to function mappers... maps op variab
case 'dostartvsftpd' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'vsftpd','info2'=>'start')); break;
case 'dorestartvsftpd' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'vsftpd','info2'=>'restart')); break;
case 'dostopmysqld' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'mysql','info2'=>'stop')); break;
case 'dostartmysqld' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'mysql','info2'=>'start')); break;
case 'dorestartmysqld' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'mysql','info2'=>'restart')); break;
case 'dostopmysqld' : $this->requireAdmin(); return passthru2_silent("service mysql stop", true, true); break;
case 'dostartmysqld' : $this->requireAdmin(); return passthru2_silent("service mysql start", true, true); break;
case 'dorestartmysqld' : $this->requireAdmin(); return passthru2_silent("service mysql restart", true, true); break;
case 'dostopbind' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'bind9','info2'=>'stop')); break;
case 'dostartbind' : $this->requireAdmin(); return $this->add_daemon_op(array('op'=>'service','info'=>'bind9','info2'=>'start')); break;