Explorar o código

fixed static methods in V

Piotr Labudda %!s(int64=10) %!d(string=hai) anos
pai
achega
6f271f1d18
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      SE/se-lib/V.php

+ 3 - 3
SE/se-lib/V.php

@@ -360,14 +360,14 @@ class V {
 		return $value;
 	}
 
-	public function exec($cmd, &$out, &$ret) {
+	public static function exec($cmd, &$out, &$ret) {
 		$out = null;
 		$ret = null;
 		exec($cmd, $out, $ret);
 		return $ret;
 	}
 
-	public function execRemote($host, $login, $password, $command, &$out, &$ret) {
+	public static function execRemote($host, $login, $password, $command, &$out, &$ret) {
 		$out = null;
 		$ret = null;
 		$pass = $password;
@@ -382,7 +382,7 @@ EOF';
 		return $ret;
 	}
 
-	public function execRootRemote($host, $login, $password, $command, &$out, &$ret) {
+	public static function execRootRemote($host, $login, $password, $command, &$out, &$ret) {
 		$out = null;
 		$ret = null;
 		$cmd = '/opt/local/bin/sshpass -p '.str_replace('!','\!',$password).' ssh -o StrictHostKeyChecking=no -o ConnectTimeout=99999 '.$login.'@'.$host.' -t <<EOF