Ejemplo n.º 1
0
        public PHPPanel()
        {
            this.Build();

            versionLabel.Text = PHPCommands.getVersion();
            readPHPInfo();
        }
Ejemplo n.º 2
0
        public void OnEditPHPIni(object o, EventArgs a)
        {
            string path = PHPCommands.getPHPIniPath();

            if (path != "")
            {
                string command = "gksudo";
                string args    = "gedit " + path;
                PHPCommands.executeCommand(command, args);
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public void readPHPInfo()
 {
     infoTextView.Buffer.Text = PHPCommands.getInfo();
 }