Re: [webmin-devel] View files(.conf,.txt etc) in webmin module

Ron Wheeler <[email protected]> Wed, 17 Feb 2016 09:34:27 -0500
Newsgroups gmane.comp.web.webmin.devel
Organization Artifact Software
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============0167849028663904924==
Content-Type: multipart/alternative;
	boundary="------------010804030600070002020306"

This is a multi-part message in MIME format.
--------------010804030600070002020306
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

What about the File Manager as a source of inspiration
Tree display of files and lots of actions.

Ron

On 17/02/2016 8:31 AM, Dennis Damalie wrote:
> Thank you very much, will look at that .
>
>
> On Wednesday, February 17, 2016 1:02 PM, "PEOPLES, MICHAEL P"=20
> <[email protected]> wrote:
>
>
> It has been a while since I=92ve created a custom module, but I believe=
=20
> you need to examine other code within Webmin that provides a similar=20
> function.   For example, the =93Software Packages=94 module has an icon=
=20
> next to the =93From local file=94 input box.  If you click this icon, y=
ou=20
> get a file listing from which you can select a file to installation.
> What you need to do is look at the underlying web page code using a=20
> tool like Firefox=92s firebug.  There you will see that clicking that=20
> icon invokes the =93chooser.cgi=94 script. In this case I believe that =
is=20
> pointing to /usr/libexec/webmin/chooser.cgi.
> You should then examine how this code is used for your particular=20
> application.
> Hope this helps.
> Michael Peoples (mp4783)
> Global Customer Service Dev Ops
> Office: +1 614-886-0923
> Mobile: +1 614-886-0923
> Principal Applications Developer
> [email protected] <mailto:[email protected]>_
> *From:*Dennis Damalie [mailto:[email protected]]
> *Sent:* Wednesday, February 17, 2016 6:04 AM
> *To:* [email protected]
> *Subject:* [webmin-devel] View files(.conf,.txt etc) in webmin module
> Hello All,
> I am developing a custom webmin module which includes the option of=20
> viewing  files that been created within the module .
> I would be grateful if I am can be pointed  how I can approach this .
> What I would like to know is , if there are a number of files in the=20
> directory how can I click on a particular file for it to show its file=20
> contents .
> Thank you .
>
>
>
>
> -----------------------------------------------------------------------=
-------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=3D272487151&iu=3D/4140
>
>
> -
> Forwarded by the Webmin development list at [email protected]
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel


--=20
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


--------------010804030600070002020306
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dwindows-1252"
      http-equiv=3D"Content-Type">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div class=3D"moz-cite-prefix">What about the File Manager as a sourc=
e
      of inspiration<br>
      Tree display of files and lots of actions.<br>
      <br>
      Ron<br>
      <br>
      On 17/02/2016 8:31 AM, Dennis Damalie wrote:<br>
    </div>
    <blockquote
cite=3D"mid:[email protected]=
m"
      type=3D"cite">
      <div style=3D"color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:16px">
        <div id=3D"yui_3_16_0_1_1455706429267_23389"><span
            id=3D"yui_3_16_0_1_1455706429267_23533">Thank you very much,
            will look at that .</span></div>
        <div class=3D"qtdSeparateBR" id=3D"yui_3_16_0_1_1455706429267_235=
02"><br>
          <br>
        </div>
        <div class=3D"yahoo_quoted" id=3D"yui_3_16_0_1_1455706429267_2347=
7"
          style=3D"display: block;">
          <div style=3D"font-family: HelveticaNeue, Helvetica Neue,
            Helvetica, Arial, Lucida Grande, sans-serif; font-size:
            16px;" id=3D"yui_3_16_0_1_1455706429267_23476">
            <div style=3D"font-family: HelveticaNeue, Helvetica Neue,
              Helvetica, Arial, Lucida Grande, sans-serif; font-size:
              16px;" id=3D"yui_3_16_0_1_1455706429267_23475">
              <div dir=3D"ltr" id=3D"yui_3_16_0_1_1455706429267_23534"><f=
ont
                  id=3D"yui_3_16_0_1_1455706429267_23535" size=3D"2"
                  face=3D"Arial"> On Wednesday, February 17, 2016 1:02 PM=
,
                  "PEOPLES, MICHAEL P" <a class=3D"moz-txt-link-rfc2396E"=
 href=3D"mailto:[email protected]">&lt;[email protected]&gt;</a> wrote:<br>
                </font></div>
              <br>
              <br>
              <div class=3D"y_msg_container"
                id=3D"yui_3_16_0_1_1455706429267_23474">
                <div id=3D"yiv6980342334">
                  <style>#yiv6980342334 #yiv6980342334 --
=20
 _filtered #yiv6980342334 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 =
2 2 4;}
 _filtered #yiv6980342334 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 =
2 2 4;}
 _filtered #yiv6980342334 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 =
2 4;}
 _filtered #yiv6980342334 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2=
 4;}
#yiv6980342334 =20
#yiv6980342334 p.yiv6980342334MsoNormal, #yiv6980342334 li.yiv6980342334M=
soNormal, #yiv6980342334 div.yiv6980342334MsoNormal
	{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv6980342334 a:link, #yiv6980342334 span.yiv6980342334MsoHyperlink
	{color:blue;text-decoration:underline;}
#yiv6980342334 a:visited, #yiv6980342334 span.yiv6980342334MsoHyperlinkFo=
llowed
	{color:purple;text-decoration:underline;}
#yiv6980342334 span.yiv6980342334EmailStyle17
	{color:blue;}
#yiv6980342334 .yiv6980342334MsoChpDefault
	{font-size:10.0pt;}
 _filtered #yiv6980342334 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv6980342334 div.yiv6980342334WordSection1
	{}
#yiv6980342334 </style>
                  <div id=3D"yui_3_16_0_1_1455706429267_23473">
                    <div class=3D"yiv6980342334WordSection1"
                      id=3D"yui_3_16_0_1_1455706429267_23472">
                      <div class=3D"yiv6980342334MsoNormal"
                        id=3D"yui_3_16_0_1_1455706429267_23471"><span
                          style=3D"" id=3D"yui_3_16_0_1_1455706429267_234=
70">It
                          has been a while since I=92ve created a custom
                          module, but I believe you need to examine
                          other code within Webmin that provides a
                          similar function.=A0=A0 For example, the =93Sof=
tware
                          Packages=94 module has an icon next to the =93F=
rom
                          local file=94 input box.=A0 If you click this
                          icon, you get a file listing from which you
                          can select a file to installation.</span></div>
                      <div class=3D"yiv6980342334MsoNormal"
                        id=3D"yui_3_16_0_1_1455706429267_23478"><span
                          style=3D""> =A0</span></div>
                      <div class=3D"yiv6980342334MsoNormal"><span style=3D=
"">What
                          you need to do is look at the underlying web
                          page code using a tool like Firefox=92s
                          firebug.=A0 There you will see that clicking
                          that icon invokes the =93chooser.cgi=94 script.=
=A0
                          In this case I believe that is pointing to
                          /usr/libexec/webmin/chooser.cgi.</span></div>
                      <div class=3D"yiv6980342334MsoNormal"><span style=3D=
"">
                          =A0</span></div>
                      <div class=3D"yiv6980342334MsoNormal"><span style=3D=
"">You
                          should then examine how this code is used for
                          your particular application.</span></div>
                      <div class=3D"yiv6980342334MsoNormal"
                        id=3D"yui_3_16_0_1_1455706429267_23487"><span
                          style=3D""> =A0</span></div>
                      <div class=3D"yiv6980342334MsoNormal"><span style=3D=
"">Hope
                          this helps.</span></div>
                      <div class=3D"yiv6980342334MsoNormal"><span style=3D=
"">
                          =A0</span></div>
                      <div>
                        <div class=3D"yiv6980342334MsoNormal"><span
                            style=3D"">Michael Peoples (mp4783)</span></d=
iv>
                        <div class=3D"yiv6980342334MsoNormal"><span
                            style=3D"">Global Customer Service Dev Ops</s=
pan></div>
                        <div class=3D"yiv6980342334MsoNormal"><span
                            style=3D"">Office:=A0+1 614-886-0923</span></=
div>
                        <div class=3D"yiv6980342334MsoNormal"><span
                            style=3D"">Mobile: +1 614-886-0923</span></di=
v>
                        <div class=3D"yiv6980342334MsoNormal"><span
                            style=3D""> =A0</span></div>
                        <div class=3D"yiv6980342334MsoNormal"><span
                            style=3D"">Principal Applications Developer</=
span></div>
                        <div class=3D"yiv6980342334MsoNormal"><u><span
                              style=3D""><a moz-do-not-send=3D"true"
                                rel=3D"nofollow" shape=3D"rect"
                                ymailto=3D"mailto:[email protected]"
                                target=3D"_blank"
                                href=3D"mailto:[email protected]">mp4783@att=
.com</a></span></u><span
                            style=3D"font-size:11.0pt;"></span></div>
                      </div>
                      <div class=3D"yiv6980342334MsoNormal"><span style=3D=
"">
                          =A0</span></div>
                      <div class=3D"yiv6980342334yqt4161275123"
                        id=3D"yiv6980342334yqt22230">
                        <div>
                          <div style=3D"border:none;border-top:solid
                            #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
                            <div class=3D"yiv6980342334MsoNormal"><b><spa=
n
                                  style=3D"font-size:10.0pt;">From:</span=
></b><span
                                style=3D"font-size:10.0pt;"> Dennis
                                Damalie [<a class=3D"moz-txt-link-freetex=
t" href=3D"mailto:[email protected]">mailto:[email protected]=
</a>]
                                <br clear=3D"none">
                                <b>Sent:</b> Wednesday, February 17,
                                2016 6:04 AM<br clear=3D"none">
                                <b>To:</b>
                                <a class=3D"moz-txt-link-abbreviated" hre=
f=3D"mailto:[email protected]">[email protected]=
urceforge.net</a><br
                                  clear=3D"none">
                                <b>Subject:</b> [webmin-devel] View
                                files(.conf,.txt etc) in webmin module</s=
pan></div>
                          </div>
                        </div>
                        <div class=3D"yiv6980342334MsoNormal"> =A0</div>
                        <div id=3D"yui_3_16_0_1_1455706429267_23480">
                          <div
                            id=3D"yiv6980342334yui_3_16_0_1_1455706429267=
_6715">
                            <div class=3D"yiv6980342334MsoNormal"
                              style=3D"background:white;"><span style=3D"=
">Hello
                                All,</span></div>
                          </div>
                          <div
                            id=3D"yiv6980342334yui_3_16_0_1_1455706429267=
_6715">
                            <div class=3D"yiv6980342334MsoNormal"
                              style=3D"background:white;"
                              id=3D"yui_3_16_0_1_1455706429267_23479"><sp=
an
                                style=3D""> =A0</span></div>
                          </div>
                          <div
                            id=3D"yiv6980342334yui_3_16_0_1_1455706429267=
_6715">
                            <div class=3D"yiv6980342334MsoNormal"
                              style=3D"background:white;"><span style=3D"=
">I
                                am developing a custom webmin module
                                which includes the option of viewing
                                =A0files that been created within the
                                module .</span></div>
                          </div>
                          <div
                            id=3D"yiv6980342334yui_3_16_0_1_1455706429267=
_6715">
                            <div class=3D"yiv6980342334MsoNormal"
                              style=3D"background:white;"
                              id=3D"yui_3_16_0_1_1455706429267_23482"><sp=
an
                                style=3D""
                                id=3D"yui_3_16_0_1_1455706429267_23481">I
                                would be grateful if I am can be pointed
                                =A0how I can approach this .</span></div>
                          </div>
                          <div
                            id=3D"yiv6980342334yui_3_16_0_1_1455706429267=
_6715">
                            <div class=3D"yiv6980342334MsoNormal"
                              style=3D"background:white;"
                              id=3D"yui_3_16_0_1_1455706429267_23486"><sp=
an
                                style=3D""
                                id=3D"yui_3_16_0_1_1455706429267_23485">W=
hat
                                I would like to know is , if there are a
                                number of files in the directory how can
                                I click on a particular file for it to
                                show its file contents .</span></div>
                          </div>
                          <div
                            id=3D"yiv6980342334yui_3_16_0_1_1455706429267=
_6715">
                            <div class=3D"yiv6980342334MsoNormal"
                              style=3D"background:white;"><span style=3D"=
">
                                =A0</span></div>
                          </div>
                          <div
                            id=3D"yiv6980342334yui_3_16_0_1_1455706429267=
_6715">
                            <div class=3D"yiv6980342334MsoNormal"
                              style=3D"background:white;"
                              id=3D"yui_3_16_0_1_1455706429267_23484"><sp=
an
                                style=3D""
                                id=3D"yui_3_16_0_1_1455706429267_23483">T=
hank
                                you .</span></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class=3D"mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap=3D"">----------------------------------------------------=
--------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
<a class=3D"moz-txt-link-freetext" href=3D"http://pubads.g.doubleclick.ne=
t/gampad/clk?id=3D272487151&amp;iu=3D/4140">http://pubads.g.doubleclick.n=
et/gampad/clk?id=3D272487151&amp;iu=3D/4140</a></pre>
      <br>
      <fieldset class=3D"mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap=3D"">-
Forwarded by the Webmin development list at <a class=3D"moz-txt-link-abbr=
eviated" href=3D"mailto:[email protected]">[email protected]<=
/a>
To remove yourself from this list, go to
<a class=3D"moz-txt-link-freetext" href=3D"http://lists.sourceforge.net/l=
ists/listinfo/webadmin-devel">http://lists.sourceforge.net/lists/listinfo=
/webadmin-devel</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class=3D"moz-signature" cols=3D"72">--=20
Ron Wheeler
President
Artifact Software Inc
email: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:rwheeler@arti=
fact-software.com">[email protected]</a>
skype: ronaldmwheeler
phone: 866-970-2435, ext 102</pre>
  </body>
</html>

--------------010804030600070002020306--


--===============0167849028663904924==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
--===============0167849028663904924==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel

--===============0167849028663904924==--