diff --git a/CONTROL/control b/CONTROL/control index aa0e9d1..27cfaca 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.7.4 +Version: 0.7.5 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.4),jim-oo,jim-pack,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.5),hmt(>=1.0.6),ssmtp diff --git a/var/mongoose/cgi-bin/cfwreset b/var/mongoose/cgi-bin/cfwreset new file mode 100755 index 0000000..0507f8e --- /dev/null +++ b/var/mongoose/cgi-bin/cfwreset @@ -0,0 +1,7 @@ +#!/bin/sh + +echo "Content-Type: text/plain" +echo + +/bin/rm -rf /mod/* + diff --git a/var/mongoose/cgi-bin/pkg.jim b/var/mongoose/cgi-bin/pkg.jim index 9d435ff..861f7f1 100755 --- a/var/mongoose/cgi-bin/pkg.jim +++ b/var/mongoose/cgi-bin/pkg.jim @@ -48,7 +48,7 @@ proc pkgrow {pkg} { puts "" + class=\"va [string tolower $type]\">$type" puts "" } diff --git a/var/mongoose/cgi-bin/settings.jim b/var/mongoose/cgi-bin/settings.jim index 2f14024..85bd48a 100755 --- a/var/mongoose/cgi-bin/settings.jim +++ b/var/mongoose/cgi-bin/settings.jim @@ -60,7 +60,13 @@ handle_int_update pkgdev $pkgdev "Development Package Display" header -puts {} +puts { + + + + + +} puts {
General Settings @@ -223,5 +226,24 @@ puts " eval_plugins settings +puts { +

+
+ Reset Custom Firmware + +
+ + +} + footer diff --git a/var/mongoose/html/css/jconfirmaction.jquery.css b/var/mongoose/html/css/jconfirmaction.jquery.css new file mode 100644 index 0000000..c322c74 --- /dev/null +++ b/var/mongoose/html/css/jconfirmaction.jquery.css @@ -0,0 +1,37 @@ + +.jcaquestion { + position: absolute; + display: inline; + text-align: center; + width: 174px; + height: 78px; + font-size: 13px; + line-height: 1.5em; + background: url('/img/bubble.png') left top no-repeat; + padding: 10px 0 0 0; + text-shadow: 0px 1px 0px #fff; + margin-left: -7em; + margin-top: -6em; + opacity: 0; +} + +.jcayes, .jcacancel { + margin-top: .5em; + margin-right: .5em; + cursor: pointer; + display: inline-block; + width: 63px; + height: 21px; + color: #fff; + text-shadow: 0px 1px 0px #000; + background: url('/img/button.png') left top no-repeat; +} + +.jcatitle { + font-size: 30px; + margin-bottom: 1.5em; + font-weight: bold; + font-style: italic; + text-shadow: 0px 2px 0px #fff; +} + diff --git a/var/mongoose/html/img/bubble.png b/var/mongoose/html/img/bubble.png new file mode 100644 index 0000000..6fe0355 Binary files /dev/null and b/var/mongoose/html/img/bubble.png differ diff --git a/var/mongoose/html/img/button.png b/var/mongoose/html/img/button.png new file mode 100644 index 0000000..1a94924 Binary files /dev/null and b/var/mongoose/html/img/button.png differ diff --git a/var/mongoose/html/js/jconfirmaction.jquery.js b/var/mongoose/html/js/jconfirmaction.jquery.js new file mode 100644 index 0000000..b9252d9 --- /dev/null +++ b/var/mongoose/html/js/jconfirmaction.jquery.js @@ -0,0 +1,50 @@ +/* + * jQuery Plugin : jConfirmAction + * + * by Hidayat Sagita + * http://www.webstuffshare.com + * Licensed Under GPL version 2 license. + * + */ +(function($){ + + jQuery.fn.jConfirmAction = function (options, callback) { + + // Some jConfirmAction options (limited to customize language) : + // question : a text for your question. + // yesAnswer : a text for Yes answer. + // cancelAnswer : a text for Cancel/No answer. + var theOptions = jQuery.extend ({ + question: "Are You Sure?", + yesAnswer: "Yes", + cancelAnswer: "Cancel" + }, options); + + return this.each (function () { + $(this).click(function(e) { + + e.preventDefault(); + + var p = $(this); + + if($(this).next('.question').length <= 0) + $(this).after('
'+theOptions.question+'
'+theOptions.yesAnswer+''+theOptions.cancelAnswer+'
'); + + $(this).next('.jcaquestion').animate({opacity: 1}, 300); + + $('.jcayes').bind('click', function() { + callback(p); + }); + + $('.jcacancel').bind('click', function(){ + $(this).parents('.jcaquestion').fadeOut(300, function() { + $(this).remove(); + }); + }); + + }); + + }); + } + +})(jQuery); diff --git a/var/mongoose/html/pkg.shtml b/var/mongoose/html/pkg.shtml index cf23948..bd7ada1 100644 --- a/var/mongoose/html/pkg.shtml +++ b/var/mongoose/html/pkg.shtml @@ -25,16 +25,18 @@ button.upgrade + -