-q --no-check-certificate http://lime-technology.com/wiki/images/d/dd/Control_panel.png -q --no-check-certificate http://lime-technology.com/wiki/images/5/54/Apcupsd.png -q --no-check-certificate http://lime-technology.com/wiki/images/7/75/Btsync.png -q --no-check-certificate http://lime-technology.com/wiki/images/a/aa/Cache_dirs.png -q --no-check-certificate http://lime-technology.com/wiki/images/c/cc/Couchpotato_Plugin.png -q --no-check-certificate http://lime-technology.com/wiki/images/8/85/Denyhosts.png -q --no-check-certificate https://dl.dropbox.com/u/572553/UnRAID/plugin.images/dropbox.png -q --no-check-certificate http://lime-technology.com/wiki/images/d/d3/Mysql.png -q --no-check-certificate http://lime-technology.com/wiki/images/8/8d/Ssh.png -q --no-check-certificate http://lime-technology.com/wiki/images/8/80/Pms_48px.png -q --no-check-certificate http://lime-technology.com/wiki/images/9/94/Sabnzbd_Plugin.png -q --no-check-certificate http://lime-technology.com/wiki/images/a/af/Serviio.png -q --no-check-certificate http://lime-technology.com/wiki/images/0/04/Sickbeard_Plugin.png -q --no-check-certificate http://lime-technology.com/wiki/images/thumb/d/dd/19378.png/81px-19378.png -q --no-check-certificate https://dl.dropbox.com/u/572553/UnRAID/plugin.images/gateone.png --no-check-certificate https://raw.github.com/Benni-chan/unraid_plugins/master/support_files/plexupdater.png --no-check-certificate http://lime-technology.com/wiki/images/2/2f/Openvpn.png -q --no-check-certificate https://dl.dropbox.com/u/572553/UnRAID/plugin.images/airvideo.png http://unraid-subsonic-plugin.googlecode.com/files/subsonic.png --no-check-certificate https://raw.github.com/rembo10/headphones/master/data/images/headphoneslogo.png --no-check-certificate https://raw.github.com/bobbintb/unRAID/master/XBMC-SaLUd.png --no-check-certificate https://raw.github.com/theone11/virtualbox_plugin/master/virtualbox.png -q --no-check-certificate https://dl.dropbox.com/u/572553/UnRAID/plugin.images/beets.png # delete file but don't warn if file does not exist rmNoWarn() { test -e $1 && rm $1 2>/dev/null } # delete directory but don't warn if directory does not exist rmRecursiveNoWarn() { test -e $1 && rm -r $1 2>/dev/null } #Remove currently installed plugin files rmRecursiveNoWarn /usr/local/emhttp/plugins/control_panel # control panel webgui files rm -f /etc/rc.d/rc.control_panel # control panel script rm -f /etc/rc.d/rc.ikosa # ikosa script rm /tmp/plugin-cleanup # self #Control Panel configuration LOGLINE="5" SHOW_UNINSTALLED="YES" /boot/config/plugins/control_panel/control_panel.png /boot/config/plugins/control_panel/apcupsd.png /boot/config/plugins/control_panel/btsync.png /boot/config/plugins/control_panel/cache_dirs.png /boot/config/plugins/control_panel/couchpotato_Plugin.png /boot/config/plugins/control_panel/denyhosts.png /boot/config/plugins/control_panel/dropbox.png /boot/config/plugins/control_panel/mysql.png /boot/config/plugins/control_panel/ssh.png /boot/config/plugins/control_panel/pms_48px.png /boot/config/plugins/control_panel/sabnzbd_Plugin.png /boot/config/plugins/control_panel/serviio.png /boot/config/plugins/control_panel/sickbeard_Plugin.png /boot/config/plugins/control_panel/transmission.png /boot/config/plugins/control_panel/gateone.png /boot/config/plugins/control_panel/plexupdater.png /boot/config/plugins/control_panel/Openvpn.png /boot/config/plugins/control_panel/airvideo.png /boot/config/plugins/control_panel/subsonic.png /boot/config/plugins/control_panel/headphoneslogo.png /boot/config/plugins/control_panel/XBMC-SaLUd.png /boot/config/plugins/control_panel/virtualbox.png /boot/config/plugins/control_panel/beets.png /boot/config/plugins/control_panel/control_panel.cfg echo "LOGLINE=\"$LOGLINE\"" >> /boot/config/plugins/control_panel/control_panel.cfg echo "SHOW_UNINSTALLED=\"$SHOW_UNINSTALLED\"" >> /boot/config/plugins/control_panel/control_panel.cfg #echo "... OK" #sleep 1 } control_panel_set() { echo "Updating Config..." sleep 1 control_panel_change_settings $1 $2 control_panel_write_config echo "... OK" sleep 1 } # read configuration source /boot/config/plugins/control_panel/control_panel.cfg case "$1" in 'updateplg') control_panel_updateplg ;; 'set') control_panel_set $2 $3 ;; *) echo "usage $0 updateplg|set" esac ]]> 0 ? "yes" : "no"; } else { $serviio_installed = "no"; } if ($serviio_installed=="yes") { $serviio_running = file_exists( "/var/run/serviiojava.pid") ? "yes" : "no"; $serviio_localapp = shell_exec ( "/etc/rc.d/rc.serviio version | grep '^Serviio version:' | cut -d: -f2" ); $serviio_localplg = shell_exec ( "/etc/rc.d/rc.serviio version | grep '^Plugin version:' | cut -d: -f2" ); $serviio_remoteapp = "Not Available"; $serviio_remoteplg = "Not Available"; $serviio_link = "http://" . $var['NAME'] . ":8123/serviio/console"; $serviio_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/Serviio"; $serviio_tooltip = "Open Serviio Console"; $serviio_logsearch = "serviio"; $serviio_start = "/etc/rc.d/rc.serviio start | tee /var/log/control_panel.log";#buggy $serviio_stop = "/etc/rc.d/rc.serviio stop | tee /var/log/control_panel.log"; $serviio_restart = "/etc/rc.d/rc.serviio restart | tee /var/log/control_panel.log";#buggy $serviio_action = "/update.htm"; $serviio_updateapp = "Not Available"; $serviio_updateplg = "Not Available"; $serviio_page = parse_ini_file("/usr/local/emhttp/plugins/serviio/Serviio.page"); $serviio_selflog = $serviio_cfg['INSTALLDIR'] . "/serviio-1.2.1/log/serviio.log"; } $transmission_name = "Transmission"; $transmission_forumlink = "http://lime-technology.com/forum/index.php?topic=21260.0"; $transmission_plglink = "https://github.com/Influencer/UNplugged/raw/master/transmission_unplugged.plg"; $transmission_filename = "transmission_unplugged.plg"; $transmission_installed = file_exists( "/usr/bin/transmission-cli" ) ? "yes" : "no"; $transmission_icon = "/plugins/control_panel/transmission.png"; if ($transmission_installed=="yes") { $transmission_cfg = parse_ini_file( "/boot/config/plugins/transmission/transmission.cfg"); $transmission_running = file_exists( "/var/run/transmission/transmission.pid") ? "yes" : "no"; $transmission_link = "http://" . $var['NAME'] . ":" . $transmission_cfg['PORT']; $transmission_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/transmission"; $transmission_localplg = shell_exec ( "cat /boot/config/plugins/transmission/plgver.txt" ); $transmission_remoteplg = "Not Available"; $transmission_localapp = shell_exec("find /usr/doc -name 'transmission*' | sed -e 's/\/usr\/doc\/transmission-//I'"); $transmission_remoteapp = "Not Available"; $transmission_tooltip = "Open Transmission"; $transmission_logsearch = "transmission"; $transmission_start = "/etc/rc.d/rc.transmission buttonstart | tee /var/log/control_panel.log"; $transmission_stop = "/etc/rc.d/rc.transmission stop | tee /var/log/control_panel.log"; $transmission_restart = "/etc/rc.d/rc.transmission restart | tee /var/log/control_panel.log"; $transmission_action = "/update.htm"; $transmission_updateapp = "Not Available"; $transmission_updateplg = "/etc/rc.d/rc.transmission updateplg | tee /var/log/control_panel.log"; $transmission_page = parse_ini_file("/usr/local/emhttp/plugins/transmission/transmission.page"); $transmission_selflog = "Not Available"; } $apcupsd_name = "APC Ups Daemon"; $apcupsd_forumlink = "http://lime-technology.com/forum/index.php?topic=15583.0"; $apcupsd_plglink = "http://lime-technology.com/wiki/images/f/fd/Apcupsd-3.14.10-i486-4_rlw.plg"; $apcupsd_filename = "Apcupsd-3.14.*.plg"; $apcupsd_installed = file_exists( "/sbin/apcupsd" ) ? "yes" : "no"; $apcupsd_icon = "/plugins/control_panel/apcupsd.png"; if ($apcupsd_installed=="yes") { if (file_exists("/boot/config/plugins/apcupsd/apcupsd.cfg") and file_exists("/usr/local/emhttp/plugins/apcupsd/apcupsd.page")) { $apcupsd_cfg = parse_ini_file( "/boot/config/plugins/apcupsd/apcupsd.cfg"); $apcupsd_running = file_exists( "/var/run/apcupsd.pid") ? "yes" : "no"; $apcupsd_link="Not Available"; $apcupsd_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/apcupsd"; $apcupsd_remoteapp = "Not Available"; $apcupsd_localplg = "Not Available"; $apcupsd_remoteplg = "Not Available"; $apcupsd_tooltip = ""; $apcupsd_logsearch = "apcupsd"; $apcupsd_start = "/etc/rc.d/rc.apcupsd start"; $apcupsd_stop = "/etc/rc.d/rc.apcupsd stop"; $apcupsd_restart = "Not Available"; $apcupsd_action = "/update.htm"; $apcupsd_updateapp = "Not Available"; $apcupsd_updateplg = "Not Available"; $apcupsd_page = parse_ini_file("/usr/local/emhttp/plugins/apcupsd/apcupsd.page"); $apcupsd_selflog = "Not Available"; } else { $apcupsd_running = file_exists( "/var/run/apcupsd.pid") ? "yes" : "no"; $apcupsd_remoteapp = "Not Available"; $apcupsd_localplg = "Not Available"; $apcupsd_remoteplg = "Not Available"; $apcupsd_logsearch = "apcupsd"; $apcupsd_start = "Not Available"; $apcupsd_stop = "Not Available"; $apcupsd_restart = "Not Available"; $apcupsd_updateapp = "Not Available"; $apcupsd_updateplg = "Not Available"; $apcupsd_selflog = "Not Available"; } } if ($apcupsd_running=="yes") { $acpaccessoutput=`/sbin/apcaccess`; if ($acpaccessoutput != "") { //version $versionstartpos = strpos($acpaccessoutput, "RELEASE :") + 11; $versionendpos = strpos($acpaccessoutput, "\n", $versionstartpos); $apcupsd_localapp = substr($acpaccessoutput, $versionstartpos, $versionendpos-$versionstartpos); } } $denyhosts_name = "Denyhosts"; $denyhosts_forumlink = "http://lime-technology.com/forum/index.php?topic=20848.0"; $denyhosts_plglink = "https://raw.github.com/overbyrn/UnRAID/master/denyhosts_overbyrn.plg"; $denyhosts_filename = "denyhosts_overbyrn.plg"; $denyhosts_installed = file_exists( "/usr/local/denyhosts/setup.py" ) ? "yes" : "no"; $denyhosts_icon = "/plugins/control_panel/denyhosts.png"; if ($denyhosts_installed=="yes") { $denyhosts_cfg = parse_ini_file( "/boot/config/plugins/denyhosts/denyhosts.cfg"); $denyhosts_running = file_exists( "/var/run/denyhosts/denyhosts.pid") ? "yes" : "no"; $denyhosts_link = "Not Available"; $denyhosts_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/denyhosts"; $denyhosts_localplg = shell_exec("/etc/rc.d/rc.denyhosts getver plg local"); $denyhosts_remoteplg = shell_exec("/etc/rc.d/rc.denyhosts getver plg remote"); $denyhosts_localapp = shell_exec("/etc/rc.d/rc.denyhosts getver app local"); $denyhosts_remoteapp = "Not Available"; $denyhosts_tooltip = ""; $denyhosts_logsearch = "denyhosts"; $denyhosts_start = "buttonstart"; $denyhosts_stop = "stop"; $denyhosts_restart = "restart"; $denyhosts_action = "/plugins/denyhosts/denyhostsctl.php"; $denyhosts_updateapp = "Not Available"; $denyhosts_updateplg = "updateplg"; $denyhosts_page = parse_ini_file("/usr/local/emhttp/plugins/denyhosts/denyhosts.page"); $denyhosts_selflog = $denyhosts_cfg['WORK_DIR'] . "/hosts-restricted"; } $openssh_name = "OpenSSH"; $openssh_forumlink = "http://lime-technology.com/forum/index.php?topic=20848.0"; $openssh_plglink = "https://raw.github.com/overbyrn/UnRAID/master/openssh_overbyrn.plg"; $openssh_filename = "openssh_overbyrn.plg"; $openssh_installed = file_exists( "/var/log/plugins/ssh") ? "yes" : "no"; $openssh_icon = "/plugins/control_panel/ssh.png"; if ($openssh_installed=="yes") { $openssh_cfg = parse_ini_file( "/boot/config/plugins/ssh/ssh.cfg"); $openssh_running = file_exists( "/var/run/sshd.pid") ? "yes" : "no"; $openssh_link = "Not Available"; $openssh_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/ssh"; $openssh_localplg = shell_exec("/etc/rc.d/rc.ssh getver plg local"); $openssh_remoteplg = shell_exec("/etc/rc.d/rc.ssh getver plg remote"); $openssh_localapp = shell_exec("/etc/rc.d/rc.ssh getver app local"); $openssh_remoteapp = "Not Available"; $openssh_tooltip = ""; $openssh_logsearch = "sshd"; $openssh_start = "/etc/rc.d/rc.ssh buttonstart | tee /var/log/control_panel.log"; $openssh_stop = "/etc/rc.d/rc.ssh stop | tee /var/log/control_panel.log"; $openssh_restart = "/etc/rc.d/rc.ssh restart"; $openssh_action = "/update.htm"; $openssh_updateapp = "Not Available"; $openssh_updateplg = "/etc/rc.d/rc.ssh updateplg | tee /var/log/control_panel.log"; $openssh_page = parse_ini_file("/usr/local/emhttp/plugins/ssh/ssh.page"); $openssh_selflog = "Not Available"; } $mysql_ikosa_name = "MySQL Server (Ikosa)"; $mysql_ikosa_forumlink = "http://lime-technology.com/forum/index.php?topic=20603.0"; $mysql_ikosa_plglink = "goo.gl/lAI9Il"; $mysql_ikosa_filename = "mysql-ikosa.plg"; if (file_exists( "/usr/sbin/mysqld") and count(glob("/boot/config/plugins/mysql-ikosa.plg"))>0){$mysql_ikosa_installed = "yes";} else {$mysql_ikosa_installed = "no";} $mysql_ikosa_icon = "/plugins/control_panel/mysql.png"; if ($mysql_ikosa_installed=="yes") { $mysql_ikosa_cfg = parse_ini_file( "/boot/config/plugins/mysql/mysql.cfg"); $mysql_ikosa_running = file_exists( "/var/run/mysql/mysql.pid") ? "yes" : "no"; $mysql_ikosa_link = "Not Available"; $mysql_ikosa_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/mysql"; $mysql_ikosa_localapp = shell_exec( "/usr/bin/mysql -V | sed -e 's/\/usr\/bin\/mysql //I' -e 's/, for Linux (i686) using EditLine wrapper//I'"); $mysql_ikosa_remoteapp = "Not Available"; $mysql_ikosa_pagefile= parse_ini_file( "/usr/local/emhttp/plugins/mysql/mysql.page"); $mysql_ikosa_localplg = shell_exec("/etc/rc.d/rc.ikosa getver mysql local"); $mysql_ikosa_remoteplg = shell_exec("/etc/rc.d/rc.ikosa getver mysql remote"); $mysql_ikosa_tooltip = ""; $mysql_ikosa_logsearch = "mysql"; $mysql_ikosa_start = "Start"; $mysql_ikosa_stop = "Stop"; $mysql_ikosa_restart = "Restart"; $mysql_ikosa_action = "/plugins/mysql/mysqlctl.php"; $mysql_ikosa_updateapp = "Not Available"; $mysql_ikosa_updateplg = "Update Plg"; $mysql_ikosa_page = parse_ini_file("/usr/local/emhttp/plugins/mysql/mysql.page"); $mysql_ikosa_selflog = $mysql_ikosa_cfg['DATADIR'] . "/" . $var['NAME'] . ".err"; } $mysql_name = "MySQL Server (p1lot)"; $mysql_forumlink = "http://lime-technology.com/forum/index.php?topic=20603.0"; $mysql_plglink = "Not Available"; $mysql_filename = "mysql5_*.plg"; if (file_exists( "/usr/sbin/mysqld") and count(glob("/boot/config/plugins/mysql5_*.plg"))>0){$mysql_installed = "yes";} else {$mysql_installed = "no";} $mysql_icon = "/plugins/control_panel/mysql.png"; if ($mysql_installed=="yes") { $mysql_cfg = parse_ini_file( "/boot/config/plugins/mysql/mysql.cfg"); $mysql_running = file_exists( "/var/run/mysql/mysql.pid") ? "yes" : "no"; $mysql_link = "Not Available"; $mysql_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/mysql"; $mysql_localapp = shell_exec( "/usr/bin/mysql -V | sed -e 's/\/usr\/bin\/mysql //I' -e 's/, for Linux (i686) using EditLine wrapper//I'"); $mysql_remoteapp = "Not Available"; $mysql_page = parse_ini_file("/usr/local/emhttp/plugins/mysql/mysql.page"); $mysql_localplg = $mysql_page["Version"]; $mysql_remoteplg = "Not Available"; $mysql_tooltip = ""; $mysql_logsearch = "mysql"; $mysql_start = "Not Available"; $mysql_stop = "/etc/rc.d/rc.mysql stop"; $mysql_restart = "Not Available"; $mysql_action = "/update.htm"; $mysql_updateapp = "Not Available"; $mysql_updateplg = "Not Available"; $mysql_selflog = $mysql_cfg['DATADIR'] . "/" . $var['NAME'] . ".err"; } $cachedirs_name = "Cache Directories"; $cachedirs_forumlink = "http://lime-technology.com/forum/index.php?topic=19789.0"; $cachedirs_plglink = "http://goo.gl/5ijm5"; $cachedirs_filename = "cache_dirs-*.plg"; $cachedirs_installed = file_exists( "/usr/sbin/cache_dirs") ? "yes" : "no"; $cachedirs_icon = "/plugins/control_panel/cache_dirs.png"; if ($cachedirs_installed=="yes") { $cachedirs_cfg = parse_ini_file( "/boot/config/plugins/cache_dirs/cache_dirs.cfg"); $cachedirs_running = file_exists( "/var/lock/cache_dirs.LCK") ? "yes" : "no"; $cachedirs_link = "Not Available"; $cachedirs_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/cache_dirs"; $cachedirs_localapp = shell_exec( '/usr/sbin/cache_dirs -V | grep "cache_dirs version:" | cut -d: -f2'); $cachedirs_remoteapp = "Not Available"; $cachedirs_page= parse_ini_file("/usr/local/emhttp/plugins/cache_dirs/cache_dirs.page"); $cachedirs_localplg = $cachedirs_page["Version"]; $cachedirs_remoteplg = "Not Available"; $cachedirs_tooltip = ""; $cachedirs_logsearch = "cache_dirs"; $cachedirs_start = "/etc/rc.d/rc.cache_dirs start | tee /var/log/control_panel.log";#buggy $cachedirs_stop = "/etc/rc.d/rc.cache_dirs stop | tee /var/log/control_panel.log"; $cachedirs_restart = "Not Available"; $cachedirs_action = "/update.htm"; $cachedirs_updateapp = "Not Available"; $cachedirs_updateplg = "Not Available"; $cachedirs_selflog = "/var/log/cache_dirs/config.log"; } $vsftp_name = "Very Secure FTP Server"; $vsftp_forumlink = ""; $vsftp_plglink = "Not Available"; $vsftp_filename = ""; $vsftp_installed = file_exists( "/usr/sbin/vsftpd" ) ? "yes" : "no"; $vsftp_localplg = "Not Available"; $vsftp_remoteplg = "Not Available"; $vsftp_localapp = "Not Available"; $vsftp_remoteapp = "Not Available"; $vsftp_selflog = "Not Available"; if ($vsftp_installed=="yes") { $vsftp_running = is_null(shell_exec("ps -e | grep [v]sftpd"))? "no" : "yes"; $vsftp_link= "Not Available"; $vsftp_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/FTP"; $vsftp_localapp = shell_exec("vsftpd -version 0>&1 | sed -e 's/vsftpd: version //I'"); $vsftp_tooltip = ""; #$webgui_version="r3"; if ($webgui_version=="1.0.0") { $vsftp_icon = "/plugins/webGui/images/ftp-icon.png"; $vsftp_page = parse_ini_file("/usr/local/emhttp/plugins/webGui/FTP.page"); } else { $vsftp_icon = "/plugins/webGui/icons/ftp-icon.png"; $vsftp_page = ""; } $vsftp_logsearch = "vsftpd"; $vsftp_start = "Not Available"; $vsftp_stop = "Not Available"; $vsftp_restart = "Not Available"; $vsftp_action = "/update.htm"; $vsftp_updateapp = "Not Available"; $vsftp_updateplg = "Not Available"; } $sabnzbd_name = "SABnzbd+"; $sabnzbd_forumlink = "http://lime-technology.com/forum/index.php?topic=21260.0"; $sabnzbd_plglink = "https://raw.github.com/influencer/unplugged/master/sabnzbd_unplugged.plg"; $sabnzbd_filename = "sabnzbd_unplugged.plg"; $sabnzbd_icon = "/plugins/control_panel/sabnzbd.png"; if (file_exists("/boot/config/plugins/sabnzbd/sabnzbd.cfg")) { $sabnzbd_cfg = parse_ini_file( "/boot/config/plugins/sabnzbd/sabnzbd.cfg" ); $sabnzbd_installed = file_exists( $sabnzbd_cfg["INSTALLDIR"] . "/SABnzbd.py" ) ? "yes" : "no"; } else { $sabnzbd_installed = "no"; } #$sabnzbd_installed = "yes"; if ($sabnzbd_installed=="yes") { $sabnzbd_configfile = $sabnzbd_cfg["DATADIR"] . "/sabnzbd.ini"; $https = trim(shell_exec( "cat \"$sabnzbd_configfile\" | grep 'enable_https =' | cut -d' ' -f3" )); if( (file_exists("$sabnzbd_configfile")) && ($https=="1")) { $sab_port = trim(shell_exec( "cat \"$sabnzbd_configfile\" | grep 'https_port =' | cut -d' ' -f3" )); } else { $sab_port = trim(shell_exec( "cat \"$sabnzbd_configfile\" | grep '^port' | awk 'NR==1' | cut -d' ' -f3" )); } $sabnzbd_running = file_exists( "/var/run/sabnzbd/sabnzbd-".$sab_port.".pid") ? "yes" : "no"; $sabnzbd_link = "http://" . $var['NAME'] . ":" . $sabnzbd_cfg['PORT'] . "/sabnzbd"; $sabnzbd_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/sabnzbd"; $sabnzbd_localapp = shell_exec ( "python $sabnzbd_cfg[INSTALLDIR]/SABnzbd.py --version | sed '/SABnzbd.py*/!d' | cut -c12-21" ); $sabnzbd_localplg = shell_exec ( "cat /boot/config/plugins/sabnzbd/plgver.txt" ); $sabnzbd_remoteplg = "Not Available"; $sabnzbd_remoteapp = shell_exec ( "/etc/rc.d/rc.sabnzbd newversion" ); $sabnzbd_tooltip = "Open SABnzbd+"; $sabnzbd_logsearch = "sabnzbd"; $sabnzbd_start = "/etc/rc.d/rc.sabnzbd buttonstart | tee /var/log/control_panel.log"; $sabnzbd_stop = "etc/rc.d/rc.sabnzbd stop | tee /var/log/control_panel.log"; $sabnzbd_restart = "/etc/rc.d/rc.sabnzbd restart | tee /var/log/control_panel.log"; $sabnzbd_action = "/update.htm"; $sabnzbd_updateapp = "/etc/rc.d/rc.sabnzbd update | tee /var/log/control_panel.log"; $sabnzbd_updateplg = "/etc/rc.d/rc.sabnzbd updateplg | tee /var/log/control_panel.log"; $sabnzbd_page = parse_ini_file("/usr/local/emhttp/plugins/sabnzbd/sabnzbd.page"); $sabnzbd_selflog = $sabnzbd_cfg["DATADIR"] . "/logs/sabnzbd.log"; } $couchpotato_name = "Couch Potato"; $couchpotato_forumlink = "http://lime-technology.com/forum/index.php?topic=21260.0"; $couchpotato_plglink = "https://github.com/influencer/unplugged/raw/master/couchpotato_v2_unplugged.plg"; $couchpotato_filename = "couchpotato_v2_unplugged.plg"; $couchpotato_icon = "/plugins/control_panel/couchpotato.png"; if (file_exists("/boot/config/plugins/couchpotato_v2/couchpotato_v2.cfg")) { $couchpotato_cfg = parse_ini_file( "/boot/config/plugins/couchpotato_v2/couchpotato_v2.cfg" ); $couchpotato_installed = file_exists( $couchpotato_cfg["INSTALLDIR"] . "/CouchPotato.py" ) ? "yes" : "no"; } else { $couchpotato_installed = "no"; } if ($couchpotato_installed=="yes") { $couchpotato_configfile = $couchpotato_cfg["CONFIGFILE"]; $couchpotato_running = file_exists( "/var/run/couchpotato_v2/couchpotato_v2.pid") ? "yes" : "no"; $couchpotato_port = trim(shell_exec( "cat \"$couchpotato_configfile\" | grep 'port = ' | cut -d' ' -f3 | awk 'NR==2'" )); $couchpotato_link = "http://" . $var['NAME'] . ":" . $couchpotato_port . "/couchpotato"; $couchpotato_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/couchpotato"; $couchpotato_localapp = "Not Available"; $couchpotato_localplg = shell_exec ( "cat /boot/config/plugins/couchpotato_v2/plgver.txt" ); $couchpotato_remoteapp = "Not Available"; $couchpotato_remoteplg = "Not Available"; $couchpotato_tooltip = "Open Clouch Potato"; $couchpotato_logsearch = "couchpotato"; $couchpotato_start = "/etc/rc.d/rc.couchpotato_v2 buttonstart | tee /var/log/control_panel.log"; $couchpotato_stop = "/etc/rc.d/rc.couchpotato_v2 stop | tee /var/log/control_panel.log"; $couchpotato_restart = "/etc/rc.d/rc.couchpotato_v2 restart | tee /var/log/control_panel.log"; $couchpotato_action = "/update.htm"; $couchpotato_updateapp = "Not Available"; $couchpotato_updateplg = "/etc/rc.d/rc.couchpotato_v2 updateplg | tee /var/log/control_panel.log"; $couchpotato_page = parse_ini_file("/usr/local/emhttp/plugins/couchpotato_v2/couchpotato_v2.page"); $couchpotato_selflog = $couchpotato_cfg["INSTALLDIR"] . "/logs/CouchPotato.log"; } $gateone_name = "Gate One"; $gateone_forumlink = "http://lime-technology.com/forum/index.php?topic=28669.0"; $gateone_plglink = "https://raw.github.com/overbyrn/UnRAID/master/gateone_overbyrn.plg"; $gateone_filename = "gateone_overbyrn.plg"; $gateone_installed = file_exists( "/usr/local/gateone/gateone" ) ? "yes" : "no"; $gateone_icon = "/plugins/control_panel/gateone.png"; if ($gateone_installed=="yes") { $gateone_cfg = parse_ini_file( "/boot/config/plugins/gateone/gateone.cfg"); $gateone_running = file_exists( "/var/run/gateone.pid" ) ? "yes" : "no"; $gateone_link = "http://" . $var['NAME'] . ":" . $gateone_cfg['PORT']; $gateone_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/gateone"; $gateone_localapp = shell_exec("/etc/rc.d/rc.gateone getver app local"); $gateone_localplg = shell_exec("/etc/rc.d/rc.gateone getver plg local"); $gateone_remoteapp = shell_exec("/etc/rc.d/rc.gateone getver app remote"); $gateone_remoteplg = shell_exec("/etc/rc.d/rc.gateone getver plg remote"); $gateone_tooltip = "Open Gate One"; $gateone_logsearch = "gateone"; $gateone_start = "buttonstart"; $gateone_stop = "stop"; $gateone_restart = "restart"; $gateone_action = "/plugins/gateone/gateonectl.php"; $gateone_updateapp = "Not Available"; $gateone_updateplg = "/etc/rc.d/rc.gateone updateplg"; $gateone_page = parse_ini_file("/usr/local/emhttp/plugins/gateone/gateone.page"); $gateone_selflog = "/var/log/plugins/gateone"; } $pms_name = "Plex Media Server"; $pms_forumlink = "http://lime-technology.com/forum/index.php?topic=14803.0"; $pms_plglink = "Not Available"; $pms_filename = "PlexMediaServer-*-unRAID.txz"; $pms_installed = file_exists( "/boot/config/plugins/plexmediaserver/settings.ini" ) ? "yes" : "no"; $pms_icon = "/plugins/control_panel/pms_48px.png"; if ($pms_installed=="yes") { $pms_cfg = parse_ini_file( "/boot/config/plugins/plexmediaserver/settings.ini"); $pms_running = file_exists($pms_cfg['PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR']."/Application Support/Plex Media Server/plexmediaserver.pid") ? "yes" : "no"; $pms_link = "http://" . $var['NAME'] . ":32400/manage"; $pms_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/plexmediaserver"; $pms_localapp = shell_exec( "/etc/rc.d/rc.plexmediaserver version | sed -e 's/v//I'" ); $pms_localplg = "Not Available"; $pms_remoteapp = shell_exec("wget -q -O - \"http://www.plexapp.com/getplex/\" | grep -o ' /tmp/vm_avl.txt 2>&1"); shell_exec("vboxmanage list runningvms > /tmp/vm_run.txt 2>&1"); $vm_avl = file("/tmp/vm_avl.txt", FILE_IGNORE_NEW_LINES); $vm_run = file("/tmp/vm_run.txt", FILE_IGNORE_NEW_LINES); shell_exec("rm --force /tmp/vm_avl.txt > /dev/null 2>&1"); shell_exec("rm --force /tmp/vm_run.txt > /dev/null 2>&1"); $vm_avl_cnt = count($vm_avl); $vm_run_cnt = count($vm_run); } else { $vm_avl = null; $vm_run = null; $vm_avl_cnt = 0; $vm_run_cnt = 0; } $virtualbox_running = ((file_exists("/var/run/vboxwebsrv/vboxwebsrv.pid")) || ($vm_run_cnt > 0)) ? "yes" : "no"; $virtualbox_link = "//" . $virtualbox_cfg['VBOXWEBSRV_HOST_IP'] . ":" . $virtualbox_cfg['VBOXWEBSRV_HOST_PORT']; $virtualbox_settings = "http://" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/virtualbox"; $virtualbox_localapp = shell_exec ( "/etc/rc.d/rc.virtualbox getlocalversion" ); $virtualbox_localplg = shell_exec ( "/etc/rc.d/rc.virtualbox getplgversions" ); $virtualbox_remoteapp = shell_exec ( "/etc/rc.d/rc.virtualbox getonlineversion" ); $virtualbox_remoteplg = "Not Available"; $virtualbox_tooltip = "Open VirtualBox"; $virtualbox_logsearch = "virtualbox"; $virtualbox_start = "/etc/rc.d/rc.virtualbox start | tee /var/log/control_panel.log"; $virtualbox_stop = "/etc/rc.d/rc.virtualbox stop | tee /var/log/control_panel.log"; $virtualbox_restart = "/etc/rc.d/rc.virtualbox restart | tee /var/log/control_panel.log"; $virtualbox_action = "/update.htm"; $virtualbox_updateapp = "/etc/rc.d/rc.virtualbox update | tee /var/log/control_panel.log"; $virtualbox_updateplg = "/etc/rc.d/rc.virtualbox updateplg | tee /var/log/control_panel.log"; $virtualbox_page = parse_ini_file("/usr/local/emhttp/plugins/virtualbox/virtualbox.page"); $virtualbox_selflog = $virtualbox_cfg['VBOXWEBSRV_LOGFILE']; } $beets_name = "Beets Music Tagger"; $beets_forumlink = "http://lime-technology.com/forum/index.php?topic=27230.0"; $beets_plglink = "https://github.com/overbyrn/UnRAID/raw/master/beets_overbyrn.plg"; $beets_filename = "beets_overbyrn.plg"; $beets_installed = is_file( "/boot/config/plugins/beets/beets.cfg" ) ? "yes" : "no"; $beets_icon = "/plugins/control_panel/beets.png"; if ($beets_installed=="yes") { $beets_cfg = parse_ini_file( "/boot/config/plugins/beets/beets.cfg"); $beets_running = "Not Available"; $beets_link = "Not Available"; $beets_settings = "//" . $var['NAME'] . ":" . $var['emhttpPort'] . "/Settings/beets"; $beets_page = parse_ini_file("/usr/local/emhttp/plugins/beets/beets.page"); $beets_localapp = "Not Available"; $beets_localplg = $beets_page['Version']; $beets_remoteapp = "Not Available"; $beets_remoteplg = "Not Available"; $beets_tooltip = ""; $beets_logsearch = "beets"; $beets_start = "Not Available"; $beets_stop = "Not Available"; $beets_restart = "Not Available"; $beets_action = "/plugins/beets/beetsctl.php"; $beets_updateapp = "Not Available"; $beets_updateplg = "updateplg"; $beets_selflog = "/var/log/plugins/beets"; } ?>
Show Uninstalled Plugins:
Log lines to show:
New version () is available
Log 

Plugins 

0):?> 0):?>
Plugin Name Installation Plugin Version App Version Status Controls
Local Remote Local Remote Start/Stop Restart Update Plg Update App
":"";?>" src=""> " target="_blank" class="status_head" title="Open Forum Thread">
Installed":"Not Installed";?> ${$plugin."_localplg"}":"-";?> ${$plugin."_remoteplg"}":"-";?> ${$plugin."_localapp"}":"-";?> ${$plugin."_remoteapp"}":"-";?> Running":"Stopped";?> Not Available
" method="POST" action="" target="progressFrame"> ">
Not Available
" method="POST" action="" target="progressFrame"> ">
Not Available
" method="POST" action="" target="progressFrame"> ">
Not Available Check Error Up to date Not Available
method="POST" action="" target="progressFrame"> ">
Check Error Up to date Not Available
method="POST" action="" target="progressFrame"> ">
Plg File Exists
">
Not Available
| tee /var/log/control_panel.log">
Not Available
Syslog

Log
Not Available


]]>
Menu="NetworkServices" Icon="control_panel.png" Version="2.2.1" Author="Ikosa" Type="php" Title="Control Panel"