X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=blobdiff_plain;f=gforge%2Fplugins%2Fscmcpold%2Fcommon%2FCpoldPlugin.class.php;h=5034242f2112b1c7f3f78b89bfa3c5413a36744d;hp=340a7832d2ca9713c102313a07f7b9ca0eb10f80;hb=0031f3ec68344e960f168b23fa283b76dbf6c67d;hpb=3b954917538100bb6bca02cce246cf152cf66c9f diff --git a/gforge/plugins/scmcpold/common/CpoldPlugin.class.php b/gforge/plugins/scmcpold/common/CpoldPlugin.class.php index 340a7832d2..5034242f21 100644 --- a/gforge/plugins/scmcpold/common/CpoldPlugin.class.php +++ b/gforge/plugins/scmcpold/common/CpoldPlugin.class.php @@ -70,8 +70,15 @@ class CpoldPlugin extends SCMPlugin { } function getInstructionsForRW ($project) { - $b = _('
Developer CPOLD Access via SSH
Only project developers can access the CPOLD tree via this method. SSH must be installed on your client machine. Substitute developername with the proper values. Enter your site password when prompted.
'); - $b .= 'scp -r '._('developername').'@' . $project->getSCMBox() . ':'. $this->cpold_root .'/'. $project->getUnixName().'/ .
' ; + if (session_loggedin()) { + $u =& user_get_object(user_getid()) ; + $d = $u->getUnixName() ; + $b = _('Developer CPOLD Access via SSH
Only project developers can access the CPOLD tree via this method. SSH must be installed on your client machine. Enter your site password when prompted.
'); + $b .= 'scp -r '.$d.'@' . $project->getSCMBox() . ':'. $this->cpold_root .'/'. $project->getUnixName().'/ .
' ; + } else { + $b = _('Developer CPOLD Access via SSH
Only project developers can access the CPOLD tree via this method. SSH must be installed on your client machine. Substitute developername with the proper value. Enter your site password when prompted.
'); + $b .= 'scp -r '._('developername').'@' . $project->getSCMBox() . ':'. $this->cpold_root .'/'. $project->getUnixName().'/ .
' ; + } return $b ; }