summaryrefslogtreecommitdiffstats
path: root/module/web/media/default
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-09 23:50:50 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-09 23:50:50 +0100
commitd842815194d431c2ce3130b4c904f69817244048 (patch)
tree9f86fec8e23b4889dbfa4d42140b5212892a0c27 /module/web/media/default
parentnew config page, mootools 1.3, removed old templates (diff)
downloadpyload-d842815194d431c2ce3130b4c904f69817244048.tar.xz
link parser from forum thx to ToFF, missing icons
Diffstat (limited to 'module/web/media/default')
-rw-r--r--module/web/media/default/img/error.pngbin0 -> 701 bytes
-rw-r--r--module/web/media/default/img/notice.pngbin0 -> 778 bytes
-rw-r--r--module/web/media/default/img/parseUri.pngbin0 -> 666 bytes
-rw-r--r--module/web/media/default/img/success.pngbin0 -> 781 bytes
-rw-r--r--module/web/media/default/js/funktions.js25
5 files changed, 25 insertions, 0 deletions
diff --git a/module/web/media/default/img/error.png b/module/web/media/default/img/error.png
new file mode 100644
index 000000000..c37bd062e
--- /dev/null
+++ b/module/web/media/default/img/error.png
Binary files differ
diff --git a/module/web/media/default/img/notice.png b/module/web/media/default/img/notice.png
new file mode 100644
index 000000000..12cd1aef9
--- /dev/null
+++ b/module/web/media/default/img/notice.png
Binary files differ
diff --git a/module/web/media/default/img/parseUri.png b/module/web/media/default/img/parseUri.png
new file mode 100644
index 000000000..937bded9d
--- /dev/null
+++ b/module/web/media/default/img/parseUri.png
Binary files differ
diff --git a/module/web/media/default/img/success.png b/module/web/media/default/img/success.png
new file mode 100644
index 000000000..89c8129a4
--- /dev/null
+++ b/module/web/media/default/img/success.png
Binary files differ
diff --git a/module/web/media/default/js/funktions.js b/module/web/media/default/js/funktions.js
index c0f38b0bb..6240d32ad 100644
--- a/module/web/media/default/js/funktions.js
+++ b/module/web/media/default/js/funktions.js
@@ -8,6 +8,31 @@ function HumanFileSize(size)
return (size == 0) ? "0 B" : (Math.round( size / a , 2) + " " + filesizename[i]);
}
+function parseUri() {
+ var oldString = $("add_links").value;
+ var regxp= new RegExp('(ht|f)tp(s?):\/\/[a-zA-Z0-9\-\.\/\?=]+[<| |\"|\'|\r|\n|\t]{1}', 'g');
+ var resu=oldString.match(regxp);
+ if (resu == null) return;
+ var res="";
+ for(var i=0; i < resu.length; i++){
+ // remove the last char, if ...
+ if (resu[i].indexOf(" ") != -1){
+ res = res + resu[i].replace(" ","\n");
+ } else if (resu[i].indexOf("\t") != -1){
+ res = res + resu[i].replace("\t","\n");
+ } else if (resu[i].indexOf("\r") != -1){
+ res = res + resu[i].replace("\r","\n");
+ } else if (resu[i].indexOf("\"") != -1){
+ res = res + resu[i].replace("\"","\n");
+ } else if (resu[i].indexOf("<") != -1){
+ res = res + resu[i].replace("<","\n");
+ } else {
+ res = res + "\n" + resu[i].replace("'","\n");
+ }
+ }
+ $("add_links").value = res;
+}
+
Array.prototype.remove = function(from, to) {
var rest = this.slice((to || from) + 1 || this.length);
this.length = from < 0 ? this.length + from : from;