I want to have links on the left side of webmin/virtualmin default theme.
The links I want are link to File Manager and to PHPMyadmin.
File Manager was located in the original webmin menu.
PHPMyadmin , I installed it in the http://vps.mydomain.com/phpmyadmin/.
Also available in secured pages https://vps.mydomain.com/phpmyadmin/
So I hack the template in /usr/libexec/webmin/virtual-server-theme/left.cgi.
Here is dirtty hack of How to Add Custom Link To Virtualmin/Webmin Menu :
Edit /usr/libexec/webmin/virtual-server-theme/left.cgi.
Find code block like this :
# Show list of all systems
print "<div class='linkwithicon'><img src='images/vm2-small.png' alt=''><b><div class='aftericon'><a href='server-manager/index.cgi' target=right>$text{'left_vm2'}</a></b></div></div>\n";
}
Right below that block, add several lines of code like this :
#START OF MY CUSTOM LINKS
#added by roy :
print "<div class='linkwithicon'><img src='images/vm2-small.png' alt=''>\n";
print "<div class='aftericon'><a target=right href='/file/'>File Manager</a></div></div>\n";
print "<div class='linkwithicon'><img src='images/vm2-small.png' alt=''>\n";
print "<div class='aftericon'><a target=_blank href='http://";
print "$ENV{'SERVER_NAME'}";
print "/phpmyadmin/'>PHPMyadmin</a> ";
print "<a target=_blank href='https://";
print "$ENV{'SERVER_NAME'}";
print "/phpmyadmin/'>(https)</a>";
print "</div></div>\n";
#END OF MY CUSTOM LINKS
Then save the left.cgi and refresh webmin/virtualmin page. Customize your code if you want to add other links. Make sure you edit the right theme. Mine , I use default installation theme called virtual-server-theme.
Admin Books
DOWNLOAD Free e-Books for Linux Admin Servers :
Browse » Home » Archives for May 2012
Subscribe to:
Posts (Atom)
Category
vps
bash
csf
security
backup
virtualmin
webmin
browser
ConfigServer Security Firewall
apache2
centos
control panel
dns
dovecot
firewall
hack
import firefox into linux
installation
klogd
nginx
passwordless ssh
promo vps
rsync backup
search bash find
ssh
syslog
tips
varnish
webuzo
wordpress
Suspicious Process
apache
awstats
bash pdf search
cache server
centos server
centos web panel
cheapest vps
cloudflare
compare area
compare region
cwp
date
deb
debian
discount vps
domain name
exim
file management
find and replace
google map
hosting
how to hack vps phpmyadmin 2012
ip address
ipt_recent
linux mint
map
misleading
mysql
perl
php vps info script
plugin
postfix
proxy
rdiff-backup
recursive
red hat
relay email not permitted
repo
seo
server monitor
special offer
squirrel mail
time
timezone
ubutu
vps hosting
vps info
vps monitor
vps special
vzctl
web hosting
xt_connlimit
yum