Minor Changes
This commit is contained in:
parent
b4aa9ae324
commit
df25d55a36
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue