Dump all the stuff from SVN
This commit is contained in:
48
script/.js
Normal file
48
script/.js
Normal file
@ -0,0 +1,48 @@
|
||||
/**
|
||||
* /script/.js
|
||||
* @version 1.2
|
||||
* @desc Script file for the index
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
var current=0;
|
||||
function loadNews(){
|
||||
$.ajax({
|
||||
url: "./subs/loader.php",
|
||||
type: "GET",
|
||||
data: {"load":"", "backend":true, "news_offset":current, "news_limit":15},
|
||||
success: function(response){
|
||||
var news=(response instanceof Object)?response:JSON.parse(response);
|
||||
$.each(news, function(i, val){
|
||||
var cur=(val instanceof Object)?val:JSON.parse(val);
|
||||
var el=$("<div class=\"news\"><\div>");
|
||||
el.html("<p><b>"+cur.subject+"</b></p><p style=\"font-size: 0.7em\">"+cur.date+"</p><hr class=\"separator\">");
|
||||
var container=$("<div class=\"ql-snow\"></div>");
|
||||
var quill=$("<div style=\"text-align: initial\" class=\"ql-editor\"></div>");
|
||||
loadQuill(quill, cur.content);
|
||||
quill.appendTo(container);
|
||||
container.appendTo(el);
|
||||
el.hide().appendTo("#news").slideDown();
|
||||
$("<br><br>").hide().appendTo("#news").slideDown();
|
||||
});
|
||||
}
|
||||
});
|
||||
current+=15;
|
||||
}
|
23
script/about.js
Normal file
23
script/about.js
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* /script/about.js
|
||||
* @version 1.0
|
||||
* @desc Script file for the about tab
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
152
script/blog.js
Normal file
152
script/blog.js
Normal file
@ -0,0 +1,152 @@
|
||||
/**
|
||||
* /script/blog.js
|
||||
* @version 1.2
|
||||
* @desc Script file for the blog tab
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
function expandPost(caller){
|
||||
var el=$(caller).prev("div.fadeout");
|
||||
|
||||
//expand to full height
|
||||
var curHeight=$(el).height();
|
||||
var targetHeight=$(el).css("height", "auto").height();
|
||||
$(el).height(curHeight).animate({
|
||||
height: targetHeight
|
||||
});
|
||||
|
||||
//remove fadeout class
|
||||
$(el).removeClass("fadeout");
|
||||
|
||||
//no need for button now
|
||||
$(caller).slideUp(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
|
||||
var postOffset=0;
|
||||
function loadMorePosts(){
|
||||
$.ajax({
|
||||
url: "./subs/loader.php",
|
||||
data: {"load":"blog", "backend":true, "posts_offset":postOffset, "posts_limit":15},
|
||||
success: function(response){
|
||||
var posts=(response instanceof Object)?response:JSON.parse(response);
|
||||
$.each(posts, function(i, val){
|
||||
var post=(val instanceof Object)?val:JSON.parse(val);
|
||||
|
||||
var el=$("<div class=\"post\" style=\"width: 95%\"></div>");
|
||||
var cont="<a href=\"/blog/"+post.id+"\"><h2>"+post.title+"</h2></a>";
|
||||
cont+="<p style=\"text-align: right; font-size: 0.8em\">"+post.date+"<br>by: "+post.owner+"</p>";
|
||||
|
||||
cont+="<p>Tags: ";
|
||||
var tags=post.tags.split(";");
|
||||
$.each(tags, function(i, val){
|
||||
cont+="<a href=\"/blog/tag:"+val+"\" style=\"margin-right: 1em\">"+val+"</a>";
|
||||
});
|
||||
cont+="</p>";
|
||||
|
||||
cont+="<hr class=\"separator\">";
|
||||
|
||||
var fade=$("<div class=\"fadeout grey ql-snow\" style=\"height: 15em\"></div");
|
||||
var quill=$("<div style=\"text-align: initial; height: fit-content\" class=\"ql-editor\"></div>");
|
||||
loadQuill(quill, post.content);
|
||||
quill.appendTo(fade);
|
||||
|
||||
el.html(cont);
|
||||
fade.appendTo(el);
|
||||
|
||||
var button=$("<button type=\"button\" onclick=\"expandPost(this)\">"+$("#langReadMore").text()+"</button>");
|
||||
button.appendTo(el);
|
||||
|
||||
el.hide().appendTo("#posts").slideDown();
|
||||
$("<br><br>").hide().appendTo("#posts").slideDown();
|
||||
});
|
||||
}
|
||||
});
|
||||
postOffset+=15;
|
||||
}
|
||||
|
||||
var tagPostOffset=0;
|
||||
function loadTagPosts(tag){
|
||||
$.ajax({
|
||||
url: "./subs/loader.php",
|
||||
data: {"load":"blog", "backend":true, "posts_tag":tag, "posts_tag_offset":postOffset, "posts_tag_limit":15},
|
||||
success: function(response){
|
||||
var posts=(response instanceof Object)?response:JSON.parse(response);
|
||||
$.each(posts, function(i, val){
|
||||
var post=(val instanceof Object)?val:JSON.parse(val);
|
||||
|
||||
var el=$("<div class=\"post\" style=\"width: 95%\"></div>");
|
||||
var cont="<a href=\"/blog/"+post.id+"\"><h2>"+post.title+"</h2></a>";
|
||||
cont+="<p style=\"text-align: right; font-size: 0.8em\">"+post.date+"<br>by: "+post.owner+"</p>";
|
||||
|
||||
cont+="<hr class=\"separator\">";
|
||||
|
||||
var fade=$("<div class=\"fadeout grey ql-snow\" style=\"height: 15em\"></div");
|
||||
var quill=$("<div style=\"text-align: initial; height: fit-content\" class=\"ql-editor\"></div>");
|
||||
loadQuill(quill, post.content);
|
||||
quill.appendTo(fade);
|
||||
|
||||
el.html(cont);
|
||||
fade.appendTo(el);
|
||||
|
||||
var button=$("<button type=\"button\" onclick=\"expandPost(this)\">"+$("#langReadMore").text()+"</button>");
|
||||
button.appendTo(el);
|
||||
|
||||
el.hide().appendTo("#posts").slideDown();
|
||||
$("<br><br>").hide().appendTo("#posts").slideDown();
|
||||
});
|
||||
}
|
||||
});
|
||||
tagPostOffset+=15;
|
||||
}
|
||||
|
||||
function loadPost(id){
|
||||
$.ajax({
|
||||
url: "./subs/loader.php",
|
||||
data: {"load":"blog", "backend":true, "post":id},
|
||||
success: function(response){
|
||||
var post=(response instanceof Object)?response:JSON.parse(response);
|
||||
var el=$("<div></div>");
|
||||
var cont="<a href=\"/blog/"+post.id+"\"><h2>"+post.title+"</h2></a>";
|
||||
cont+="<p style=\"text-align: right; font-size: 0.8em\">"+post.date+"<br>by: "+post.owner+"</p>";
|
||||
|
||||
cont+="<p>Tags: ";
|
||||
var tags=post.tags.split(";");
|
||||
$.each(tags, function(i, val){
|
||||
cont+="<a href=\"/blog/tag:"+val+"\" style=\"margin-right: 1em\">"+val+"</a>";
|
||||
});
|
||||
cont+="</p>";
|
||||
|
||||
cont+="<hr class=\"separator\">";
|
||||
|
||||
var container=$("<div class=\"ql-snow\"></div");
|
||||
var quill=$("<div style=\"text-align: initial\" class=\"ql-editor\"></div>");
|
||||
loadQuill(quill, post.content);
|
||||
quill.appendTo(container);
|
||||
|
||||
el.html(cont);
|
||||
container.appendTo(el);
|
||||
|
||||
document.title=post.title+" :: "+document.title;
|
||||
el.hide().appendTo("#post").slideDown();
|
||||
}
|
||||
});
|
||||
}
|
23
script/contact.js
Normal file
23
script/contact.js
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* /script/contact.js
|
||||
* @version 1.0
|
||||
* @desc Script file for the contact tab
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
29
script/js.php
Normal file
29
script/js.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* /script/js.php
|
||||
* @version 1.0
|
||||
* @desc Script for serving JS files
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
if(isset($_GET['load'])){
|
||||
header("Content-type: application/javascript");
|
||||
readfile($_GET['load'].".js", true);
|
||||
}
|
1
script/lib/jsencrypt.min.js
vendored
Normal file
1
script/lib/jsencrypt.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
132
script/main.js
Normal file
132
script/main.js
Normal file
@ -0,0 +1,132 @@
|
||||
/**
|
||||
* /script/main.js
|
||||
* @version 1.1
|
||||
* @desc Main script file
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
function disposeMessageOverlay(){
|
||||
$("#messageOverlay").fadeOut(function(){
|
||||
$("#messageOverlay").html("");
|
||||
});
|
||||
}
|
||||
|
||||
function showMessage(html){
|
||||
$("#messageOverlay").html(html);
|
||||
$("#messageOverlay").fadeIn();
|
||||
setTimeout(function(){
|
||||
disposeMessageOverlay();
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
function loadMessage(){
|
||||
$.ajax({
|
||||
url: "./subs/msg.php",
|
||||
type: "GET",
|
||||
success: function(response){
|
||||
if(response!=""){
|
||||
showMessage(response);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function goTo(site, pop=false){
|
||||
$("#content").slideUp(function(){
|
||||
$.getScript("./script/js.php?load="+site, function(){
|
||||
$.ajax({
|
||||
url: "./subs/loader.php",
|
||||
type: "GET",
|
||||
data: {"load": site},
|
||||
success: function(response){
|
||||
$("#content").html(response);
|
||||
document.title=$("#content").children("#title").text();
|
||||
|
||||
if(!pop){
|
||||
window.history.pushState({"site": site}, null, "/"+site);
|
||||
}
|
||||
},
|
||||
complete: function(){
|
||||
$("#content").slideDown(function(){
|
||||
prepareSite();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function prepareSite(){
|
||||
//smooth scroll
|
||||
$('a[href^="#"]').on('click', function(event) {
|
||||
var target = $(this.getAttribute('href'));
|
||||
if( target.length ) {
|
||||
event.preventDefault();
|
||||
$('html, body').stop().animate({
|
||||
scrollTop: target.offset().top
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
|
||||
//disable ajax forms submit
|
||||
$(".ajaxform").submit(function(e){
|
||||
e.preventDefault(); //prevent classic submit
|
||||
});
|
||||
|
||||
//enable footable on certain tables
|
||||
$(".footable").footable();
|
||||
}
|
||||
|
||||
function toggleDropdown(content){
|
||||
if($(content).css("display")=="none"){
|
||||
$(content).slideDown();
|
||||
}
|
||||
else{
|
||||
$(content).slideUp();
|
||||
}
|
||||
}
|
||||
|
||||
jQuery(function($){
|
||||
window.addEventListener("popstate", function(e){
|
||||
if(e.state!=null){
|
||||
goTo(e.state["site"], true);
|
||||
}
|
||||
else{
|
||||
goTo("", true);
|
||||
}
|
||||
});
|
||||
prepareSite();
|
||||
loadMessage();
|
||||
});
|
||||
|
||||
//quill loading functions
|
||||
function loadQuill(object, delta){
|
||||
var tmp=$("<div></div>");
|
||||
(new Quill(tmp[0])).setContents(JSON.parse(delta));
|
||||
$(object).html(tmp.html());
|
||||
}
|
||||
|
||||
//add leading zeros
|
||||
function checkTime(t){
|
||||
if(t<10){
|
||||
t="0"+t;
|
||||
}
|
||||
return t;
|
||||
}
|
51
script/projects.js
Normal file
51
script/projects.js
Normal file
@ -0,0 +1,51 @@
|
||||
/**
|
||||
* /script/projects.js
|
||||
* @version 1.1
|
||||
* @desc Script file for the projects tab
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
function loadProjects(){
|
||||
$.ajax({
|
||||
url: "./subs/loader.php",
|
||||
type: "GET",
|
||||
data: {"load":"projects", "backend":true, "getprojects":true},
|
||||
success: function(response){
|
||||
var projects=(response instanceof Object)?response:JSON.parse(response);
|
||||
$.each(projects, function(i, val){
|
||||
var cur=(val instanceof Object)?val:JSON.parse(val);
|
||||
var el=$("<div class=\"tile\"></div>");
|
||||
var content="<h2>"+cur.name+"</h2><hr class=\"separator\">";
|
||||
|
||||
content+="<div class=\"imgholder\"><img src=\""+val.image+"\"></div>";
|
||||
content+="<div class=\"fadeout\" style=\"height: 10em\"><p>"+cur.description+"</p></div><br>";
|
||||
content+="<button type=\"button\" style=\"float: left\" onclick=\"window.location='"+cur.path+"'\">"+$("#langView").text()+"</button><button type=\"button\" style=\"float: right\" onclick=\"window.location='"+cur.repo+"'\">"+$("#langSource").text()+"</button>";
|
||||
content+="<p style=\"clear: both; font-size: 0.7em\">status: "+cur.status+", by: "+cur.owner+"</p>";
|
||||
el.html(content);
|
||||
el.hide().appendTo("#projects").slideDown();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* RUN
|
||||
*/
|
||||
loadProjects();
|
23
script/repos.js
Normal file
23
script/repos.js
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* /script/repos.js
|
||||
* @version 1.0
|
||||
* @desc Script file for the repos tab
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
724
script/userarea.js
Normal file
724
script/userarea.js
Normal file
@ -0,0 +1,724 @@
|
||||
/**
|
||||
* /script/userarea.js
|
||||
* @version 1.7
|
||||
* @desc Script file for the userarea tab
|
||||
* @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
|
||||
* @copy 2018 Fándly Gergő Zoltán
|
||||
* License:
|
||||
Systemtest.tk website's.
|
||||
Copyright (C) 2018 Fándly Gergő Zoltán
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
var quillOpts={
|
||||
modules: {
|
||||
toolbar: [
|
||||
["bold", "italic", "underline", "strike"],
|
||||
["blockquote", "code-block"],
|
||||
[{"script": "sub"}, {"script": "super"}],
|
||||
[{"indent": "-1"}, {"indent": "+1"}],
|
||||
[{"header": [1, 2, 3, 4, 5, 6, false]}],
|
||||
[{"color": []}, {"background": []}],
|
||||
[{"font": []}],
|
||||
[{"align": []}],
|
||||
["clean"]
|
||||
],
|
||||
history: {
|
||||
delay: 2000,
|
||||
maxStack: 200,
|
||||
userOnly: true
|
||||
}
|
||||
},
|
||||
theme: "snow"
|
||||
};
|
||||
|
||||
/*
|
||||
* FILESHARE
|
||||
*/
|
||||
function getMatchingIcon(ext){
|
||||
var ficon="fa-file-alt";
|
||||
if(ext=="doc" || ext=="docx" || ext=="docm"){
|
||||
ficon="fa-file-word";
|
||||
}
|
||||
else if(ext=="ppt" || ext=="pptx" || ext=="pptm"){
|
||||
ficon="fa-file-powerpoint";
|
||||
}
|
||||
else if(ext=="jpg" || ext=="png" || ext=="jpeg" || ext=="gif" || ext=="bmp"){
|
||||
ficon="fa-file-image";
|
||||
}
|
||||
else if(ext=="xls" || ext=="xlsx" || ext=="xlsm"){
|
||||
ficon="fa-file-excel";
|
||||
}
|
||||
else if(ext=="c" || ext=="cpp" || ext=="java" || ext=="js" || ext=="php" || ext=="cs" || ext=="css"){
|
||||
ficon="fa-file-code";
|
||||
}
|
||||
else if(ext=="wav" || ext=="mp3" || ext=="flac" || ext=="ogg" || ext=="3gp"){
|
||||
ficon="fa-file-audio";
|
||||
}
|
||||
else if(ext=="mp4" || ext=="avi" || ext=="mkv"){
|
||||
ficon="fa-file-video";
|
||||
}
|
||||
else if(ext=="zip" || ext=="gz" || ext=="rar" || ext=="tar" || ext=="7z"){
|
||||
ficon="fa-file-archive";
|
||||
}
|
||||
else if(ext=="pdf"){
|
||||
ficon="fa-file-pdf";
|
||||
}
|
||||
|
||||
return ficon;
|
||||
}
|
||||
|
||||
function copyRefToClipboard(el){
|
||||
$(el).prev("textarea").select();
|
||||
document.execCommand("copy");
|
||||
}
|
||||
|
||||
function loadFileList(el){
|
||||
var filename=new RegExp("(.*)[.]");
|
||||
var extension=new RegExp("(?:[a-zA-Z0-9](?![.]))+$");
|
||||
|
||||
$.each(el.files, function(i, val){
|
||||
//check if file is bigger than 500M. In that case output error
|
||||
if(val.size>500000000){
|
||||
alert($("#langFileTooBig").text());
|
||||
}
|
||||
else{
|
||||
if(filename.exec(val.name)){
|
||||
var name=filename.exec(val.name)[1];
|
||||
var ext=extension.exec(val.name)[0].toLowerCase();
|
||||
}
|
||||
else{
|
||||
//if filename doesn't contain any dots
|
||||
var name=val.name;
|
||||
var ext="";
|
||||
}
|
||||
|
||||
var obj=$("<div></div>");
|
||||
|
||||
var cont="<table style=\"width: 100%\"><tr><td rowspan=\"3\" style=\"width: 10em\"><i class=\"fa "+getMatchingIcon(ext)+"\" style=\"font-size: 10em\" name=\"fileicon\"></i></td>";
|
||||
cont+="<td>"+$("#langName").text()+": <input type=\"text\" name=\"fname\" style=\"width: 95%\" value=\""+name+"\"></td></tr>";
|
||||
cont+="<tr><td>"+$("#langExtension").text()+": "+ext+"</td></tr>";
|
||||
cont+="<tr><td name=\"control\"><button class=\"red\" type=\"button\" onclick=\"removeMyFile(this)\"><i class=\"fa fa-trash\"></i></button></td></tr></table>";
|
||||
cont+="<hr class=\"separator\">";
|
||||
|
||||
obj.html(cont);
|
||||
|
||||
var file=$("<span name=\"file\"></span>");
|
||||
file.data("fileobj", val);
|
||||
file.appendTo(obj);
|
||||
|
||||
obj.hide().appendTo("#files").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
$(el).val("");
|
||||
}
|
||||
|
||||
function removeMyFile(el){
|
||||
$(el).parent("td").parent("tr").parent("tbody").parent("table").parent("div").slideUp(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
|
||||
function clearMyFiles(){
|
||||
$("#files").slideUp(function(){
|
||||
$("#files").html("");
|
||||
});
|
||||
$("#files").slideDown();
|
||||
}
|
||||
|
||||
function startFileUpload(){
|
||||
$("#files").children("div").each(function(){
|
||||
var base=$(this).children("table").children("tbody").children("tr");
|
||||
|
||||
var name=base.children("td").children("input[name=fname]").val();
|
||||
var file=$(this).children("span[name=file]").data("fileobj");
|
||||
|
||||
base.children("td[name=control]").html("<div class=\"progressbar\"><div style=\"width: 0%\"><span>0%</span></div></div>");
|
||||
|
||||
var progressbar=base.children("td[name=control]").children("div.progressbar");
|
||||
var icon=base.children("td").children("i[name=fileicon]");
|
||||
|
||||
var data=new FormData();
|
||||
data.append("upload_name", name);
|
||||
data.append("upload_file", file);
|
||||
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: data,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
xhr: function(){
|
||||
var myXHR=$.ajaxSettings.xhr();
|
||||
if(myXHR.upload){
|
||||
myXHR.upload.addEventListener("progress", function(e){
|
||||
if(e.lengthComputable){
|
||||
var percent=Math.round(e.loaded*100/e.total*10)/10;
|
||||
percent=percent.toString()+"%";
|
||||
|
||||
//show change on progressbar
|
||||
progressbar.children("div").css("width", percent);
|
||||
progressbar.children("div").children("span").text(percent);
|
||||
|
||||
//show change on icon
|
||||
icon.css("background-image", "linear-gradient(to top, rgba(74,230,74,0.9), rgba(74,230,74,0.9) "+percent+", rgb(0,0,0) "+percent+")");
|
||||
icon.css("color", "transparent");
|
||||
icon.css("-webkit-background-clip", "text");
|
||||
icon.css("background-clip", "text");
|
||||
}
|
||||
});
|
||||
}
|
||||
return myXHR;
|
||||
},
|
||||
success: function(response){
|
||||
if(response=="quota"){
|
||||
loadMessage();
|
||||
var text=$("#langQuotaErr").text();
|
||||
}
|
||||
else if(response=="error"){
|
||||
loadMessage();
|
||||
var text="Error";
|
||||
}
|
||||
else{
|
||||
var text="<textarea rows=3 cols=30 readonly>"+response+"</textarea><button type=\"button\" onclick=\"copyRefToClipboard(this)\">"+$("#langCopyToClip").text()+"</button>";
|
||||
}
|
||||
|
||||
//replace progressbar
|
||||
progressbar.parent().html(text);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function deleteFileFromServer(fid, caller){
|
||||
if(confirm($("#langSure").text())){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"delete_file":fid},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response=="ok"){
|
||||
$(caller).parent("td").parent("tr").css("background", "red").fadeOut(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* BLOG
|
||||
*/
|
||||
var quill;
|
||||
|
||||
function resetBlog(){
|
||||
$("#postEdit").children("form")[0].reset();
|
||||
quill=null;
|
||||
$("#editorContainer").html("<div id=\"editor\"></div>");
|
||||
$("#lastSaved").html("");
|
||||
}
|
||||
|
||||
function newBlog(){
|
||||
$("#postEdit").slideUp(function(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"blog_new":true},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response!="error"){
|
||||
resetBlog();
|
||||
|
||||
$("#blog_id").val(response);
|
||||
|
||||
//last saved
|
||||
var now=new Date();
|
||||
var h=checkTime(now.getHours());
|
||||
var m=checkTime(now.getMinutes());
|
||||
var s=checkTime(now.getSeconds());
|
||||
$("#lastSaved").html(h+":"+m+":"+s);
|
||||
|
||||
//init quill
|
||||
quill=new Quill("#editor", quillOpts);
|
||||
|
||||
//slide down editor
|
||||
$("#postEdit").slideDown();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function blogAutoSave(){
|
||||
if($("#autosave").is(":checked")){
|
||||
blogSave();
|
||||
setTimeout(blogAutoSave, 180*1000);
|
||||
}
|
||||
}
|
||||
|
||||
function blogSave(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {
|
||||
"blog_id": $("#blog_id").val(),
|
||||
"blog_title": $("[name=blog_title]").val(),
|
||||
"blog_content": JSON.stringify(quill.getContents()),
|
||||
"blog_tags": $("[name=blog_tags]").val(),
|
||||
"blog_published": ($("[name=blog_published]").is(":checked")?1:0)
|
||||
},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
|
||||
if(response!="error"){
|
||||
//last saved
|
||||
var now=new Date();
|
||||
var h=checkTime(now.getHours());
|
||||
var m=checkTime(now.getMinutes());
|
||||
var s=checkTime(now.getSeconds());
|
||||
$("#lastSaved").html(h+":"+m+":"+s);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function blogDiscard(){
|
||||
$("#postEdit").slideUp(function(){
|
||||
resetBlog();
|
||||
});
|
||||
}
|
||||
|
||||
function blogEdit(id){
|
||||
$("#postEdit").slideUp(function(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php",
|
||||
type: "GET",
|
||||
data: {"load": "userarea", "backend": true, "blog_get": id},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response!="error"){
|
||||
var blog=(response instanceof Object)?repsonse:JSON.parse(response);
|
||||
|
||||
resetBlog();
|
||||
|
||||
//insert data
|
||||
$("#blog_id").val(blog.id);
|
||||
$("[name=blog_title]").val(blog.title);
|
||||
$("[name=blog_tags]").val(blog.tags);
|
||||
$("[name=blog_published]").attr("checked", blog.published=="1");
|
||||
|
||||
//last saved
|
||||
var now=new Date();
|
||||
var h=checkTime(now.getHours());
|
||||
var m=checkTime(now.getMinutes());
|
||||
var s=checkTime(now.getSeconds());
|
||||
$("#lastSaved").html(h+":"+m+":"+s);
|
||||
|
||||
//init quill
|
||||
quill=new Quill("#editor", quillOpts);
|
||||
//check if delta is valid JSON
|
||||
if(blog.content!=""){
|
||||
quill.setContents(JSON.parse(blog.content));
|
||||
}
|
||||
|
||||
//slide down editor
|
||||
$("#postEdit").slideDown();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function blogDelete(id, el){
|
||||
if(confirm($("#langSure").text())){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"blog_delete": id},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response=="ok"){
|
||||
$(el).parent("td").parent("tr").css("background", "red").fadeOut(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* NEWS
|
||||
*/
|
||||
var quillEng;
|
||||
var quillHun;
|
||||
var quillRou;
|
||||
|
||||
function resetNews(){
|
||||
$("#newsEdit").children("form")[0].reset();
|
||||
quillEng=null;
|
||||
quillHun=null;
|
||||
quillRou=null;
|
||||
$("#engEditorContainer").html("<div id=\"engEditor\"></div>");
|
||||
$("#hunEditorContainer").html("<div id=\"hunEditor\"></div>");
|
||||
$("#rouEditorContainer").html("<div id=\"rouEditor\"></div>");
|
||||
$("#lastSaved").html("");
|
||||
}
|
||||
|
||||
function newNews(){
|
||||
$("#newsEdit").slideUp(function(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"news_new": true},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response!="error"){
|
||||
resetNews();
|
||||
|
||||
//load id
|
||||
$("#news_id").val(response);
|
||||
|
||||
//last saved
|
||||
var now=new Date();
|
||||
var h=checkTime(now.getHours());
|
||||
var m=checkTime(now.getMinutes());
|
||||
var s=checkTime(now.getSeconds());
|
||||
$("#lastSaved").html(h+":"+m+":"+s);
|
||||
|
||||
//init quill instances
|
||||
quillEng=new Quill("#engEditor", quillOpts);
|
||||
quillHun=new Quill("#hunEditor", quillOpts);
|
||||
quillRou=new Quill("#rouEditor", quillOpts);
|
||||
|
||||
//slide down
|
||||
$("#newsEdit").slideDown();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function newsAutoSave(){
|
||||
if($("#autosave").is(":checked")){
|
||||
newsSave();
|
||||
setTimeout(newsAutoSave, 180*1000);
|
||||
}
|
||||
}
|
||||
|
||||
function newsSave(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {
|
||||
"news_id": $("#news_id").val(),
|
||||
"news_subject_eng": $("[name=news_subject_eng]").val(),
|
||||
"news_subject_hun": $("[name=news_subject_hun]").val(),
|
||||
"news_subject_rou": $("[name=news_subject_rou]").val(),
|
||||
"news_content_eng": JSON.stringify(quillEng.getContents()),
|
||||
"news_content_hun": JSON.stringify(quillHun.getContents()),
|
||||
"news_content_rou": JSON.stringify(quillRou.getContents()),
|
||||
"news_published": ($("[name=news_published]").is(":checked")?1:0)
|
||||
},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response!="error"){
|
||||
//last saved
|
||||
var now=new Date();
|
||||
var h=checkTime(now.getHours());
|
||||
var m=checkTime(now.getMinutes());
|
||||
var s=checkTime(now.getSeconds());
|
||||
$("#lastSaved").html(h+":"+m+":"+s);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function newsDiscard(){
|
||||
$("#newsEdit").slideUp(function(){
|
||||
resetNews();
|
||||
});
|
||||
}
|
||||
|
||||
function newsEdit(id){
|
||||
$("#newsEdit").slideUp(function(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php",
|
||||
type: "GET",
|
||||
data: {"load": "userarea", "backend": true, "news_get": id},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response!="error"){
|
||||
var news=(response instanceof Object)?response:JSON.parse(response);
|
||||
|
||||
resetNews();
|
||||
|
||||
//insert data
|
||||
$("#news_id").val(news.id);
|
||||
$("[name=news_subject_eng]").val(news.subject_eng);
|
||||
$("[name=news_subject_hun]").val(news.subject_hun);
|
||||
$("[name=news_subject_rou]").val(news.subject_rou);
|
||||
$("[name=news_published]").attr("checked", news.published=="1");
|
||||
|
||||
//last saved
|
||||
var now=new Date();
|
||||
var h=checkTime(now.getHours());
|
||||
var m=checkTime(now.getMinutes());
|
||||
var s=checkTime(now.getSeconds());
|
||||
$("#lastSaved").html(h+":"+m+":"+s);
|
||||
|
||||
//init quill instances
|
||||
quillEng=new Quill("#engEditor", quillOpts);
|
||||
quillHun=new Quill("#hunEditor", quillOpts);
|
||||
quillRou=new Quill("#rouEditor", quillOpts);
|
||||
if(news.content_eng!=""){
|
||||
quillEng.setContents(JSON.parse(news.content_eng));
|
||||
}
|
||||
if(news.content_hun!=""){
|
||||
quillHun.setContents(JSON.parse(news.content_hun));
|
||||
}
|
||||
if(news.content_rou!=""){
|
||||
quillRou.setContents(JSON.parse(news.content_rou));
|
||||
}
|
||||
|
||||
//slide down editor
|
||||
$("#newsEdit").slideDown();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function newsDelete(id, el){
|
||||
if(confirm($("#langSure").text())){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"news_delete": id},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response=="ok"){
|
||||
$(el).parent("td").parent("tr").css("background", "red").fadeOut(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* ADMIN AREA
|
||||
*/
|
||||
function adminNewPassword(id){
|
||||
var response=prompt($("#langEnterPassword").text());
|
||||
if(response!=null && response!=""){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"new_password_user": id, "new_password": response},
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function adminChangeLevel(id){
|
||||
var response=prompt($("#langEnterAccesslevel").text());
|
||||
if(response!=null && response!=""){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"new_accesslevel_user": id, "new_accesslevel": response},
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function adminChangeQuota(id){
|
||||
var response=prompt($("#langEnterQuota").text());
|
||||
if(response!=null && response!=""){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"new_quota_user": id, "new_quota": response},
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function adminNewUser(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: $("#usernewForm").serialize(),
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response=="ok"){
|
||||
$("#usernewForm")[0].reset();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function adminFinishRequest(id, el){
|
||||
if(confirm($("#langSure").text())){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"admin_finish_request": id},
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response=="ok"){
|
||||
$(el).parent("td").parent("tr").css("background", "red").fadeOut(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* PROFILE
|
||||
*/
|
||||
function profileUpdate(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: $("#profileForm").serialize(),
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function profileUpdatePassword(){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: $("#profilePassword").serialize(),
|
||||
success: function(response){
|
||||
loadMessage();
|
||||
if(response=="ok"){
|
||||
$("#profilePassword").reset();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function profileSubmitShipping(){
|
||||
$.ajax({
|
||||
url: "/subs/pubkey.php",
|
||||
type: "GET",
|
||||
success: function(pubkey){
|
||||
//set up encryptor
|
||||
var encrypt=new JSEncrypt();
|
||||
encrypt.setPublicKey(pubkey);
|
||||
|
||||
//update status
|
||||
$("#encStatus").hide().removeClass().addClass("red").html("<i class=\"fa fa-lock-open\"></i> "+$("#langEncrypting").text()).fadeIn();
|
||||
|
||||
//encrypt data
|
||||
var name=encrypt.encrypt($("[name=profile_shipping_name]").val());
|
||||
var addr="Country: "+$("[name=address_country]").val()+"<br>";
|
||||
addr+="Region: "+$("[name=address_region]").val()+"<br>";
|
||||
addr+="City: "+$("[name=address_city]").val()+"<br>";
|
||||
addr+="Address Line 1: "+$("[name=address_line1]").val()+"<br>";
|
||||
addr+="Address line 2: "+$("[name=address_line2]").val()+"<br>";
|
||||
addr+="Postal code: "+$("[name=address_zip]").val();
|
||||
addr=encrypt.encrypt(addr);
|
||||
var email=encrypt.encrypt($("[name=profile_shipping_email]").val());
|
||||
var phone=encrypt.encrypt($("[name=profile_shipping_phone]").val());
|
||||
|
||||
//update status
|
||||
$("#encStatus").fadeOut(function(){
|
||||
$(this).removeClass().addClass("green").html("<i class=\"fa fa-lock\"></i> "+$("#langEncrypted").text()).fadeIn();
|
||||
});
|
||||
|
||||
//post
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {
|
||||
"profile_shipping_name": name,
|
||||
"profile_shipping_address": addr,
|
||||
"profile_shipping_email": email,
|
||||
"profile_shipping_phone": phone
|
||||
},
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function profileDeleteShipping(){
|
||||
if(confirm($("#langConfDelShipping").text())){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"profile_shipping_delete": true},
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function deleteProfile(){
|
||||
if($("#delete_profile_box1").is(":checked") && $("#delete_profile_box2").is(":checked") && $("#delete_profile_box3").is(":checked")){
|
||||
if(confirm($("#langSure").text())){
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"delete_profile": true},
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function requestProfileData(){
|
||||
if($("#request_profile_data_pgp").val()!="" && (!$("#request_profile_data_pgp").val().includes("-----BEGIN PGP PUBLIC KEY BLOCK-----") || !$("#request_profile_data_pgp").val().includes("-----END PGP PUBLIC KEY BLOCK-----"))){
|
||||
alert($("#langPGPNotValid").text());
|
||||
}
|
||||
else{
|
||||
$.ajax({
|
||||
url: "/subs/loader.php?load=userarea&backend",
|
||||
type: "POST",
|
||||
data: {"request_profile_data": true, "request_profile_data_pgp": $("#request_profile_data_pgp").val()},
|
||||
success: function(){
|
||||
loadMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user