public PHPPanel() { this.Build(); versionLabel.Text = PHPCommands.getVersion(); readPHPInfo(); }
public void OnEditPHPIni(object o, EventArgs a) { string path = PHPCommands.getPHPIniPath(); if (path != "") { string command = "gksudo"; string args = "gedit " + path; PHPCommands.executeCommand(command, args); } }
static void OnOpenDirClick(object o, EventArgs a) { GConf.Client client = new GConf.Client(); string command = "nautilus"; string args = (string)client.Get(LampManager.SettingsPanel.GCONF_APP_PATH + "/web_directory"); if (args == "") { args = "/var/www/"; } PHPCommands.executeCommand(command, args); }
static void OnLocalhostClick(object o, EventArgs a) { GConf.Client client = new GConf.Client(); string args = "http://localhost/"; string command = (string)client.Get(LampManager.SettingsPanel.GCONF_APP_PATH + "/browser"); if (command == "") { command = args; args = ""; } PHPCommands.executeCommand(command, args); }
public void readPHPInfo() { infoTextView.Buffer.Text = PHPCommands.getInfo(); }