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

Dennis Damalie <[email protected]> Wed, 17 Feb 2016 13:31:36 +0000 (UTC)
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
--===============1355128453495247035==
Content-Type: multipart/alternative; 
	boundary="----=_Part_4459684_1622455590.1455715896875"
Content-Length: 10705

------=_Part_4459684_1622455590.1455715896875
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Thank you very much, will look at that .=20

    On Wednesday, February 17, 2016 1:02 PM, "PEOPLES, MICHAEL P" <mp4783@a=
tt.com> wrote:
=20

 #yiv6980342334 #yiv6980342334 -- _filtered #yiv6980342334 {font-family:Hel=
vetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv6980342334 {font-famil=
y: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 {fo=
nt-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv6980342334 #yiv69803423=
34 p.yiv6980342334MsoNormal, #yiv6980342334 li.yiv6980342334MsoNormal, #yiv=
6980342334 div.yiv6980342334MsoNormal {margin:0in;margin-bottom:.0001pt;fon=
t-size:12.0pt;}#yiv6980342334 a:link, #yiv6980342334 span.yiv6980342334MsoH=
yperlink {color:blue;text-decoration:underline;}#yiv6980342334 a:visited, #=
yiv6980342334 span.yiv6980342334MsoHyperlinkFollowed {color:purple;text-dec=
oration:underline;}#yiv6980342334 span.yiv6980342334EmailStyle17 {color:blu=
e;}#yiv6980342334 .yiv6980342334MsoChpDefault {font-size:10.0pt;} _filtered=
 #yiv6980342334 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv6980342334 div.yiv6980=
342334WordSection1 {}#yiv6980342334 It has been a while since I=E2=80=99ve =
created a custom module, but I believe you need to examine other code withi=
n Webmin that provides a similar function.=C2=A0=C2=A0 For example, the =E2=
=80=9CSoftware Packages=E2=80=9D module has an icon next to the =E2=80=9CFr=
om local file=E2=80=9D input box.=C2=A0 If you click this icon, you get a f=
ile listing from which you can select a file to installation.  =C2=A0 What =
you need to do is look at the underlying web page code using a tool like Fi=
refox=E2=80=99s firebug.=C2=A0 There you will see that clicking that icon i=
nvokes the =E2=80=9Cchooser.cgi=E2=80=9D script.=C2=A0 In this case I belie=
ve that is pointing to /usr/libexec/webmin/chooser.cgi.  =C2=A0 You should =
then examine how this code is used for your particular application.  =C2=A0=
 Hope this helps.  =C2=A0 Michael Peoples (mp4783) Global Customer Service =
Dev Ops Office:=C2=A0+1 614-886-0923 Mobile: +1 614-886-0923  =C2=A0 Princi=
pal Applications Developer [email protected]  =C2=A0 From: Dennis Damalie [mai=
lto:[email protected]]
Sent: Wednesday, February 17, 2016 6:04 AM
To: [email protected]
Subject: [webmin-devel] View files(.conf,.txt etc) in webmin module  =C2=A0=
 Hello All,  =C2=A0 I am developing a custom webmin module which includes t=
he option of viewing =C2=A0files that been created within the module . I wo=
uld be grateful if I am can be pointed =C2=A0how I can approach this . What=
 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 .  =
=C2=A0 Thank you .=20

  
------=_Part_4459684_1622455590.1455715896875
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div style=3D"color:#000; background-color:#fff; f=
ont-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:16px"><div id=3D"yui_3_16_0_1_1455706429267_23389"><sp=
an id=3D"yui_3_16_0_1_1455706429267_23533">Thank you very much, will look a=
t that .</span></div> <div class=3D"qtdSeparateBR" id=3D"yui_3_16_0_1_14557=
06429267_23502"><br><br></div><div class=3D"yahoo_quoted" id=3D"yui_3_16_0_=
1_1455706429267_23477" style=3D"display: block;"> <div style=3D"font-family=
: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-seri=
f; font-size: 16px;" id=3D"yui_3_16_0_1_1455706429267_23476"> <div style=3D=
"font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grand=
e, 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"><font size=3D"2" fa=
ce=3D"Arial" id=3D"yui_3_16_0_1_1455706429267_23535"> On Wednesday, Februar=
y 17, 2016 1:02 PM, "PEOPLES, MICHAEL P" &lt;[email protected]&gt; wrote:<br><=
/font></div>  <br><br> <div class=3D"y_msg_container" id=3D"yui_3_16_0_1_14=
55706429267_23474"><div id=3D"yiv6980342334"><style>#yiv6980342334 #yiv6980=
342334 --
=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.yiv6980342334Mso=
Normal, #yiv6980342334 div.yiv6980342334MsoNormal
=09{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv6980342334 a:link, #yiv6980342334 span.yiv6980342334MsoHyperlink
=09{color:blue;text-decoration:underline;}
#yiv6980342334 a:visited, #yiv6980342334 span.yiv6980342334MsoHyperlinkFoll=
owed
=09{color:purple;text-decoration:underline;}
#yiv6980342334 span.yiv6980342334EmailStyle17
=09{color:blue;}
#yiv6980342334 .yiv6980342334MsoChpDefault
=09{font-size:10.0pt;}
 _filtered #yiv6980342334 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv6980342334 div.yiv6980342334WordSection1
=09{}
#yiv6980342334 </style><div id=3D"yui_3_16_0_1_1455706429267_23473">
<div class=3D"yiv6980342334WordSection1" id=3D"yui_3_16_0_1_1455706429267_2=
3472">
<div class=3D"yiv6980342334MsoNormal" id=3D"yui_3_16_0_1_1455706429267_2347=
1"><span style=3D"" id=3D"yui_3_16_0_1_1455706429267_23470">It has been a w=
hile since I=E2=80=99ve created a custom module, but I believe you need to =
examine other code within Webmin that provides a similar function.&nbsp;&nb=
sp; For example, the =E2=80=9CSoftware Packages=E2=80=9D
 module has an icon next to the =E2=80=9CFrom local file=E2=80=9D input box=
.&nbsp; If you click this icon, you get a file listing from which you can s=
elect a file to installation.</span></div>=20
<div class=3D"yiv6980342334MsoNormal" id=3D"yui_3_16_0_1_1455706429267_2347=
8"><span style=3D""> &nbsp;</span></div>=20
<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=E2=80=99s=
 firebug.&nbsp; There you will see that clicking that icon invokes the =E2=
=80=9Cchooser.cgi=E2=80=9D script.&nbsp; In this case
 I believe that is pointing to /usr/libexec/webmin/chooser.cgi.</span></div=
>=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D""> &nbsp;</span></div>=
=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D"">You should then exam=
ine how this code is used for your particular application.</span></div>=20
<div class=3D"yiv6980342334MsoNormal" id=3D"yui_3_16_0_1_1455706429267_2348=
7"><span style=3D""> &nbsp;</span></div>=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D"">Hope this helps.</sp=
an></div>=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D""> &nbsp;</span></div>=
=20
<div>
<div class=3D"yiv6980342334MsoNormal"><span style=3D"">Michael Peoples (mp4=
783)</span></div>=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D"">Global Customer Serv=
ice Dev Ops</span></div>=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D"">Office:&nbsp;+1 614-=
886-0923</span></div>=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D"">Mobile: +1 614-886-0=
923</span></div>=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D""> &nbsp;</span></div>=
=20
<div class=3D"yiv6980342334MsoNormal"><span style=3D"">Principal Applicatio=
ns Developer</span></div>=20
<div class=3D"yiv6980342334MsoNormal"><u><span style=3D""><a rel=3D"nofollo=
w" shape=3D"rect" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=
=3D"mailto:[email protected]">[email protected]</a></span></u><span style=3D"font=
-size:11.0pt;"></span></div>=20
</div>
<div class=3D"yiv6980342334MsoNormal"><span style=3D""> &nbsp;</span></div>=
=20
<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><span style=3D"font-size:10.0pt;">=
From:</span></b><span style=3D"font-size:10.0pt;"> Dennis Damalie [mailto:d=
[email protected]]
<br clear=3D"none">
<b>Sent:</b> Wednesday, February 17, 2016 6:04 AM<br clear=3D"none">
<b>To:</b> [email protected]<br clear=3D"none">
<b>Subject:</b> [webmin-devel] View files(.conf,.txt etc) in webmin module<=
/span></div>=20
</div>
</div>
<div class=3D"yiv6980342334MsoNormal"> &nbsp;</div>=20
<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 sty=
le=3D"">Hello All,</span></div>=20
</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"><span style=3D""> &nbsp;</span></div>=20
</div>
<div id=3D"yiv6980342334yui_3_16_0_1_1455706429267_6715">
<div class=3D"yiv6980342334MsoNormal" style=3D"background:white;"><span sty=
le=3D"">I am developing a custom webmin module which includes the option of=
 viewing &nbsp;files that been created within the module .</span></div>=20
</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"><span style=3D"" id=3D"yui_3_16_0_1_14557064=
29267_23481">I would be grateful if I am can be pointed &nbsp;how I can app=
roach this .</span></div>=20
</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"><span style=3D"" id=3D"yui_3_16_0_1_14557064=
29267_23485">What 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 fi=
le contents
 .</span></div>=20
</div>
<div id=3D"yiv6980342334yui_3_16_0_1_1455706429267_6715">
<div class=3D"yiv6980342334MsoNormal" style=3D"background:white;"><span sty=
le=3D""> &nbsp;</span></div>=20
</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"><span style=3D"" id=3D"yui_3_16_0_1_14557064=
29267_23483">Thank you .</span></div>=20
</div>
</div></div>
</div>
</div></div><br><br></div>  </div> </div>  </div></div></body></html>
------=_Part_4459684_1622455590.1455715896875--


--===============1355128453495247035==
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
--===============1355128453495247035==
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

--===============1355128453495247035==--