mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Make sure clear the cache on this Update
This commit is contained in:
parent
cafa182da1
commit
35d672283f
59 changed files with 409 additions and 372 deletions
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
reader.readAsDataURL($(input)[0].files[0]);
|
reader.readAsDataURL($(input)[0].files[0]);
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry - you're browser doesn't support the FileReader API");
|
avideoAlert("Sorry - you're browser doesn't support the FileReader API");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,9 +115,9 @@
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.status === "1") {
|
if (response.status === "1") {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your configurations has been updated!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your configurations has been updated!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your configurations has NOT been updated!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your configurations has NOT been updated!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,9 +41,9 @@
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg[0], "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg[0], "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Success"); ?>", "You have sent "+response.count+" emails", "success");
|
avideoAlert("<?php echo __("Success"); ?>", "You have sent "+response.count+" emails", "success");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,11 +287,11 @@ require_once '../locale/function.php';
|
||||||
var confirmSystemAdminPass = $('#confirmSystemAdminPass').val();
|
var confirmSystemAdminPass = $('#confirmSystemAdminPass').val();
|
||||||
|
|
||||||
if (!systemAdminPass) {
|
if (!systemAdminPass) {
|
||||||
swal("Sorry!", "Your System Admin Password can not be blank!", "error");
|
avideoAlert("Sorry!", "Your System Admin Password can not be blank!", "error");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (systemAdminPass != confirmSystemAdminPass) {
|
if (systemAdminPass != confirmSystemAdminPass) {
|
||||||
swal("Sorry!", "Your System Admin Password must be confirmed!", "error");
|
avideoAlert("Sorry!", "Your System Admin Password must be confirmed!", "error");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -327,18 +327,18 @@ require_once '../locale/function.php';
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("Sorry!", response.error, "error");
|
avideoAlert("Sorry!", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("Congratulations!", response.error, "success");
|
avideoAlert("Congratulations!", response.error, "success");
|
||||||
window.location.reload(false);
|
window.location.reload(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (xhr, ajaxOptions, thrownError) {
|
error: function (xhr, ajaxOptions, thrownError) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (xhr.status == 404) {
|
if (xhr.status == 404) {
|
||||||
swal("Sorry!", "Your Site URL is wrong!", "error");
|
avideoAlert("Sorry!", "Your Site URL is wrong!", "error");
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry!", "Unknow error!", "error");
|
avideoAlert("Sorry!", "Unknow error!", "error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -191,9 +191,9 @@ sort($vars);
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.status === "1") {
|
if (response.status === "1") {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your language has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your language has been saved!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,9 +153,9 @@ if (!(!empty($_GET['user']) && !empty($_GET['recoverpass']))) {
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your new password has been set!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your new password has been set!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Your new password could not be set!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Your new password could not be set!"); ?>", response.error, "error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -58,10 +58,10 @@
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your code has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your code has been saved!"); ?>", "success");
|
||||||
adsUser(ad_overlay_users_id);
|
adsUser(ad_overlay_users_id);
|
||||||
}
|
}
|
||||||
//modal.hidePleaseWait();
|
//modal.hidePleaseWait();
|
||||||
|
|
|
@ -25,9 +25,9 @@ $ad->loadFromUser(User::getId());
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your code has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your code has been saved!"); ?>", "success");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -383,7 +383,7 @@ if (!User::isAdmin()) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
tableVideos.ajax.reload();
|
tableVideos.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
@ -417,9 +417,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelForm").trigger("reset");
|
$("#panelForm").trigger("reset");
|
||||||
}
|
}
|
||||||
clearVideoForm();
|
clearVideoForm();
|
||||||
|
@ -466,9 +466,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
<?php
|
<?php
|
||||||
if (!empty($ad_server_location)) {
|
if (!empty($ad_server_location)) {
|
||||||
?>
|
?>
|
||||||
|
@ -534,7 +534,7 @@ if (!empty($ad_server_location)) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
tableLinks.ajax.reload();
|
tableLinks.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -185,9 +185,9 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your videos have been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your videos have been saved!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg.join("<br>"), "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg.join("<br>"), "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,7 +120,7 @@ if (!User::isAdmin()) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
tableLinks.ajax.reload();
|
tableLinks.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
@ -148,7 +148,7 @@ modal.showPleaseWait();
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
tableLinks.ajax.reload();
|
tableLinks.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal('Sorry', resposta.msg, 'error');
|
avideoAlert('Sorry', resposta.msg, 'error');
|
||||||
}else{
|
}else{
|
||||||
swal('Congratulations', 'Your Clone Process is finished', 'success');
|
avideoAlert('Congratulations', 'Your Clone Process is finished', 'success');
|
||||||
}
|
}
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
getClientLog();
|
getClientLog();
|
||||||
|
|
|
@ -270,7 +270,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
if (!response.site_is_enabled) {
|
if (!response.site_is_enabled) {
|
||||||
$('#permissionsHead .label-danger').fadeIn();
|
$('#permissionsHead .label-danger').fadeIn();
|
||||||
swal("Sorry!", "Site " + combineSiteURL + " needs to enable your site before you get content from them ", "warning");
|
avideoAlert("Sorry!", "Site " + combineSiteURL + " needs to enable your site before you get content from them ", "warning");
|
||||||
} else {
|
} else {
|
||||||
$('#permissionsHead .label-success').fadeIn();
|
$('#permissionsHead .label-success').fadeIn();
|
||||||
}
|
}
|
||||||
|
@ -284,13 +284,13 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
loadItemGet("programs", "playlists_id");
|
loadItemGet("programs", "playlists_id");
|
||||||
} else {
|
} else {
|
||||||
$("#sitesPermissionsBody").slideUp();
|
$("#sitesPermissionsBody").slideUp();
|
||||||
swal("Sorry!", "Site " + combineSiteURL + " said: " + response.msg, "error");
|
avideoAlert("Sorry!", "Site " + combineSiteURL + " said: " + response.msg, "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
},
|
},
|
||||||
error: function (ajaxContext) {
|
error: function (ajaxContext) {
|
||||||
$("#sitesPermissionsBody").slideUp();
|
$("#sitesPermissionsBody").slideUp();
|
||||||
swal("Sorry!", "This site is NOT a streamer Site", "error");
|
avideoAlert("Sorry!", "This site is NOT a streamer Site", "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -349,7 +349,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
url: combineSiteURL + "plugin/CombineSites/page/give/checked.json.php?site_url=<?php echo urlencode($global['webSiteRootURL']); ?>&type=" + item,
|
url: combineSiteURL + "plugin/CombineSites/page/give/checked.json.php?site_url=<?php echo urlencode($global['webSiteRootURL']); ?>&type=" + item,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
swal("Sorry!", data.msg, "error");
|
avideoAlert("Sorry!", data.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
for (x in data.response) {
|
for (x in data.response) {
|
||||||
|
@ -369,7 +369,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/get/checked.json.php?site_url=" + encodeURIComponent(combineSiteURL) + "&type=" + item,
|
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/get/checked.json.php?site_url=" + encodeURIComponent(combineSiteURL) + "&type=" + item,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
swal("Sorry!", data.msg, "error");
|
avideoAlert("Sorry!", data.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
for (x in data.response) {
|
for (x in data.response) {
|
||||||
|
@ -410,13 +410,13 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
_switchItem("." + name + "SwitchGet", "plugin/CombineSites/page/get/" + name + "Switch.json.php", "Get");
|
_switchItem("." + name + "SwitchGet", "plugin/CombineSites/page/get/" + name + "Switch.json.php", "Get");
|
||||||
} else {
|
} else {
|
||||||
$("#sitesPermissionsBody").slideUp();
|
$("#sitesPermissionsBody").slideUp();
|
||||||
swal("Sorry!", "Site " + combineSiteURL + " said: " + response.message, "error");
|
avideoAlert("Sorry!", "Site " + combineSiteURL + " said: " + response.message, "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
},
|
},
|
||||||
error: function (ajaxContext) {
|
error: function (ajaxContext) {
|
||||||
$("#sitesPermissionsBody").slideUp();
|
$("#sitesPermissionsBody").slideUp();
|
||||||
swal("Sorry!", "This site is NOT a streamer Site", "error");
|
avideoAlert("Sorry!", "This site is NOT a streamer Site", "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -427,7 +427,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
url: combineSiteURL + "plugin/CombineSites/page/get/checked.json.php?site_url=<?php echo urlencode($global['webSiteRootURL']); ?>&type=" + item,
|
url: combineSiteURL + "plugin/CombineSites/page/get/checked.json.php?site_url=<?php echo urlencode($global['webSiteRootURL']); ?>&type=" + item,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
swal("Sorry!", data.msg, "error");
|
avideoAlert("Sorry!", data.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
for (x in data.response) {
|
for (x in data.response) {
|
||||||
|
@ -448,7 +448,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/give/checked.json.php?site_url=" + encodeURIComponent(combineSiteURL) + "&type=" + item,
|
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/give/checked.json.php?site_url=" + encodeURIComponent(combineSiteURL) + "&type=" + item,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
swal("Sorry!", data.msg, "error");
|
avideoAlert("Sorry!", data.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
for (x in data.response) {
|
for (x in data.response) {
|
||||||
|
@ -513,7 +513,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/siteDelete.json.php?id=" + id,
|
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/siteDelete.json.php?id=" + id,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
swal("Sorry!", data.msg, "error");
|
avideoAlert("Sorry!", data.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
@ -542,7 +542,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
t.prop('checked', !t.is(":checked"));
|
t.prop('checked', !t.is(":checked"));
|
||||||
swal("Sorry!", data.msg, "error");
|
avideoAlert("Sorry!", data.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
processLabelCheck(name, id, isChecked, mode, false);
|
processLabelCheck(name, id, isChecked, mode, false);
|
||||||
}
|
}
|
||||||
|
@ -556,7 +556,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
e.preventDefault(); // avoid to execute the actual submit of the form.
|
e.preventDefault(); // avoid to execute the actual submit of the form.
|
||||||
var site_url = $('#site_url').val();
|
var site_url = $('#site_url').val();
|
||||||
if (!site_url) {
|
if (!site_url) {
|
||||||
swal("Sorry!", "You need a valid URL", "error");
|
avideoAlert("Sorry!", "You need a valid URL", "error");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
|
@ -564,10 +564,10 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
|
||||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/addSite.json.php?site_url=" + site_url,
|
url: "<?php echo $global['webSiteRootURL']; ?>plugin/CombineSites/page/addSite.json.php?site_url=" + site_url,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
swal("Sorry!", data.msg, "error");
|
avideoAlert("Sorry!", data.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else if (data.response && data.response.error) {
|
} else if (data.response && data.response.error) {
|
||||||
swal("Sorry!", data.response.msg, "error");
|
avideoAlert("Sorry!", data.response.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|
|
@ -71,9 +71,9 @@ if ($obj->allowWalletDirectTransferDonation && !empty($video['users_id'])) {
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Thank you!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Thank you!"); ?>", "success");
|
||||||
$('#donationModal<?php echo $uid; ?>').modal('hide');
|
$('#donationModal<?php echo $uid; ?>').modal('hide');
|
||||||
$(".walletBalance").text(response.walletBalance);
|
$(".walletBalance").text(response.walletBalance);
|
||||||
}
|
}
|
||||||
|
|
|
@ -419,9 +419,9 @@ if (!empty($videos)) {
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
||||||
}
|
}
|
||||||
$('#btnReloadCapcha<?php echo $video['id']; ?>').trigger('click');
|
$('#btnReloadCapcha<?php echo $video['id']; ?>').trigger('click');
|
||||||
}
|
}
|
||||||
|
@ -514,13 +514,13 @@ if (!empty($videos)) {
|
||||||
$('#comment<?php echo $video['id']; ?>').val('');
|
$('#comment<?php echo $video['id']; ?>').val('');
|
||||||
$('#grid<?php echo $video['id']; ?>').bootgrid('reload');
|
$('#grid<?php echo $video['id']; ?>').bootgrid('reload');
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment has NOT been saved!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment has NOT been saved!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment must be bigger then 5 characters!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment must be bigger then 5 characters!"); ?>", "error");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -295,10 +295,10 @@ class Live extends PluginAbstract {
|
||||||
|
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal('" . __("Sorry!") . "', response.msg, 'error');
|
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
|
||||||
} else{
|
} else{
|
||||||
if(response.newkey != response.key){
|
if(response.newkey != response.key){
|
||||||
swal('" . __("Congratulations!") . "', '" . __("New Key") . ": '+response.newkey, 'success');
|
avideoAlert('" . __("Congratulations!") . "', '" . __("New Key") . ": '+response.newkey, 'success');
|
||||||
}
|
}
|
||||||
$('#streamkey, .streamkey').val(response.newkey);
|
$('#streamkey, .streamkey').val(response.newkey);
|
||||||
}
|
}
|
||||||
|
|
|
@ -351,7 +351,7 @@ if (!empty($chat2) && !empty($chat2->useStaticLayout)) {
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
$('#mainVideo video').attr('poster', webSiteRootURL + response.newPoster);
|
$('#mainVideo video').attr('poster', webSiteRootURL + response.newPoster);
|
||||||
$('#mainVideo .vjs-poster').css('background-image', 'url("' + webSiteRootURL + response.newPoster + '")');
|
$('#mainVideo .vjs-poster').css('background-image', 'url("' + webSiteRootURL + response.newPoster + '")');
|
||||||
|
|
|
@ -116,7 +116,7 @@ include $global['systemRootPath'] . 'plugin/Meet/api.js.php';
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
on_meetStop();
|
on_meetStop();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -121,9 +121,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelLive_restreamsForm").trigger("reset");
|
$("#panelLive_restreamsForm").trigger("reset");
|
||||||
}
|
}
|
||||||
clearLive_restreamsForm();
|
clearLive_restreamsForm();
|
||||||
|
@ -163,9 +163,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelLive_restreamsForm").trigger("reset");
|
$("#panelLive_restreamsForm").trigger("reset");
|
||||||
}
|
}
|
||||||
Live_restreamstableVar.ajax.reload();
|
Live_restreamstableVar.ajax.reload();
|
||||||
|
@ -195,7 +195,7 @@ if (!User::isAdmin()) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
Live_restreamstableVar.ajax.reload();
|
Live_restreamstableVar.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -107,9 +107,9 @@ if (!User::canStream()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelLive_restreamsForm").trigger("reset");
|
$("#panelLive_restreamsForm").trigger("reset");
|
||||||
}
|
}
|
||||||
clearLive_restreamsForm();
|
clearLive_restreamsForm();
|
||||||
|
@ -146,9 +146,9 @@ if (!User::canStream()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelLive_restreamsForm").trigger("reset");
|
$("#panelLive_restreamsForm").trigger("reset");
|
||||||
}
|
}
|
||||||
Live_restreamstableVar.ajax.reload();
|
Live_restreamstableVar.ajax.reload();
|
||||||
|
@ -178,7 +178,7 @@ if (!User::canStream()) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
Live_restreamstableVar.ajax.reload();
|
Live_restreamstableVar.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -191,9 +191,9 @@ $obj = AVideoPlugin::getObjectData("Live");
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelLive_serversForm").trigger("reset");
|
$("#panelLive_serversForm").trigger("reset");
|
||||||
}
|
}
|
||||||
clearLive_serversForm();
|
clearLive_serversForm();
|
||||||
|
@ -231,9 +231,9 @@ $obj = AVideoPlugin::getObjectData("Live");
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelLive_serversForm").trigger("reset");
|
$("#panelLive_serversForm").trigger("reset");
|
||||||
}
|
}
|
||||||
Live_serverstableVar.ajax.reload();
|
Live_serverstableVar.ajax.reload();
|
||||||
|
@ -263,7 +263,7 @@ $obj = AVideoPlugin::getObjectData("Live");
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
Live_serverstableVar.ajax.reload();
|
Live_serverstableVar.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -145,9 +145,9 @@
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your link has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your link has been saved!"); ?>", "success");
|
||||||
$("#liveLinksForm").trigger("reset");
|
$("#liveLinksForm").trigger("reset");
|
||||||
}
|
}
|
||||||
tableLinks.ajax.reload();
|
tableLinks.ajax.reload();
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
tableLinks.ajax.reload();
|
tableLinks.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -204,7 +204,7 @@ Passcode: {password}
|
||||||
$domain .= "/".$m->getName();
|
$domain .= "/".$m->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
$domain .= "?getRTMPLink=" . urlencode(Live::getRTMPLink($m->getUsers_id()));
|
//$domain .= "?getRTMPLink=" . urlencode(Live::getRTMPLink($m->getUsers_id()));
|
||||||
|
|
||||||
if($addToken){
|
if($addToken){
|
||||||
$token = self::getToken($meet_schedule_id);
|
$token = self::getToken($meet_schedule_id);
|
||||||
|
|
|
@ -119,9 +119,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelMeet_join_logForm").trigger("reset");
|
$("#panelMeet_join_logForm").trigger("reset");
|
||||||
}
|
}
|
||||||
clearMeet_join_logForm();
|
clearMeet_join_logForm();
|
||||||
|
@ -158,9 +158,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelMeet_join_logForm").trigger("reset");
|
$("#panelMeet_join_logForm").trigger("reset");
|
||||||
}
|
}
|
||||||
Meet_join_logtableVar.ajax.reload();
|
Meet_join_logtableVar.ajax.reload();
|
||||||
|
@ -190,7 +190,7 @@ if (!User::isAdmin()) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
Meet_join_logtableVar.ajax.reload();
|
Meet_join_logtableVar.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -159,9 +159,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelMeet_scheduleForm").trigger("reset");
|
$("#panelMeet_scheduleForm").trigger("reset");
|
||||||
}
|
}
|
||||||
clearMeet_scheduleForm();
|
clearMeet_scheduleForm();
|
||||||
|
@ -205,9 +205,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelMeet_scheduleForm").trigger("reset");
|
$("#panelMeet_scheduleForm").trigger("reset");
|
||||||
}
|
}
|
||||||
Meet_scheduletableVar.ajax.reload();
|
Meet_scheduletableVar.ajax.reload();
|
||||||
|
@ -237,7 +237,7 @@ if (!User::isAdmin()) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
Meet_scheduletableVar.ajax.reload();
|
Meet_scheduletableVar.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -105,9 +105,9 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelMeet_schedule_has_users_groupsForm").trigger("reset");
|
$("#panelMeet_schedule_has_users_groupsForm").trigger("reset");
|
||||||
}
|
}
|
||||||
clearMeet_schedule_has_users_groupsForm();
|
clearMeet_schedule_has_users_groupsForm();
|
||||||
|
@ -142,9 +142,9 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
$("#panelMeet_schedule_has_users_groupsForm").trigger("reset");
|
$("#panelMeet_schedule_has_users_groupsForm").trigger("reset");
|
||||||
}
|
}
|
||||||
Meet_schedule_has_users_groupstableVar.ajax.reload();
|
Meet_schedule_has_users_groupstableVar.ajax.reload();
|
||||||
|
@ -174,7 +174,7 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
Meet_schedule_has_users_groupstableVar.ajax.reload();
|
Meet_schedule_has_users_groupstableVar.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -73,7 +73,7 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
|
||||||
<?php
|
<?php
|
||||||
if (User::canCreateMeet()) {
|
if (User::canCreateMeet()) {
|
||||||
?>
|
?>
|
||||||
<li><a data-toggle="tab" href="#createMeet"><i class="far fa-calendar-alt"></i> <span class="hidden-sm hidden-xs"><?php echo __("Schedule"); ?></span></a></li>
|
<li><a data-toggle="tab" href="#createMeet"><i class="far fa-calendar-alt"></i> <span class="hidden-sm hidden-xs"><?php echo __("Schedule"); ?></span></a></li>
|
||||||
<li><a data-toggle="tab" href="#" onclick="startMeetNow();return false;"><i class="far fa-comments"></i> <?php echo __("New Meet"); ?></a></li>
|
<li><a data-toggle="tab" href="#" onclick="startMeetNow();return false;"><i class="far fa-comments"></i> <?php echo __("New Meet"); ?></a></li>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -81,13 +81,13 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="meetLog" class="tab-pane fade in active" url="<?php
|
<div id="meetLog" class="tab-pane fade in active" url="<?php
|
||||||
echo $global['webSiteRootURL'] . 'plugin/Meet/meet_log.php?'.$userCredentials;
|
echo $global['webSiteRootURL'] . 'plugin/Meet/meet_log.php?' . $userCredentials;
|
||||||
?>"><div class="loader"></div></div>
|
?>"><div class="loader"></div></div>
|
||||||
<?php
|
<?php
|
||||||
if (User::canCreateMeet()) {
|
if (User::canCreateMeet()) {
|
||||||
?>
|
?>
|
||||||
<div id="createMeet" class="tab-pane fade" url="<?php
|
<div id="createMeet" class="tab-pane fade" url="<?php
|
||||||
echo $global['webSiteRootURL'] . 'plugin/Meet/meet_manager.php?'.$userCredentials;
|
echo $global['webSiteRootURL'] . 'plugin/Meet/meet_manager.php?' . $userCredentials;
|
||||||
?>"><div class="loader"></div></div>
|
?>"><div class="loader"></div></div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -106,71 +106,99 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
var serverLabelsRequestTime;
|
var serverLabelsRequestTime;
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
<?php $today = getdate(); ?>
|
<?php $today = getdate(); ?>
|
||||||
var d = new Date(<?php echo $today['year'] . "," . $today['mon'] . "," . $today['mday'] . "," . $today['hours'] . "," . $today['minutes'] . "," . $today['seconds']; ?>);
|
var d = new Date(<?php echo $today['year'] . "," . $today['mon'] . "," . $today['mday'] . "," . $today['hours'] . "," . $today['minutes'] . "," . $today['seconds']; ?>);
|
||||||
setInterval(function () {
|
setInterval(function () {
|
||||||
d.setSeconds(d.getSeconds() + 1);
|
d.setSeconds(d.getSeconds() + 1);
|
||||||
$('#serverTime').html("<i class=\"far fa-clock\"></i> " + (d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds()));
|
$('#serverTime').html("<i class=\"far fa-clock\"></i> " + (d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds()));
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
$('#indexTabs .nav-tabs a').click(function (e) {
|
$('#indexTabs .nav-tabs a').click(function (e) {
|
||||||
var now_tab = e.target // activated tab
|
var href = $(this).attr('href');
|
||||||
if(!$(now_tab).attr('href')){
|
if(href && href!=="#"){
|
||||||
return false;
|
var now_tab = $(href);
|
||||||
|
console.log("tab clicked");
|
||||||
|
if ($(now_tab).attr('url')) {
|
||||||
|
var url = $(now_tab).attr('url');
|
||||||
|
$(now_tab).attr('url', '');
|
||||||
|
if (url) {
|
||||||
|
$.ajax({
|
||||||
|
url: url,
|
||||||
|
success: function (response) {
|
||||||
|
$(now_tab).html(response);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.log("no URL on tab clicked");
|
||||||
}
|
}
|
||||||
// get the div's id
|
}
|
||||||
var divid = $(now_tab).attr('href').substr(1);
|
});
|
||||||
var url = $("#" + divid).attr('url');
|
try {
|
||||||
$("#" + divid).attr('url', '');
|
$('#indexTabs .nav-tabs a').first().trigger("click");
|
||||||
if (url) {
|
} catch (e) {
|
||||||
$.ajax({
|
|
||||||
url: url,
|
}
|
||||||
|
serverLabels();
|
||||||
|
});
|
||||||
|
var serverLabelsStartTime;
|
||||||
|
function serverLabels() {
|
||||||
|
serverLabelsStartTime = new Date().getTime();
|
||||||
|
$.ajax({
|
||||||
|
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/serverLabels.php?<?php echo $userCredentials; ?>',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
$("#" + divid).html(response);
|
serverLabelsRequestTime = new Date().getTime() - serverLabelsStartTime;
|
||||||
|
$('.serverLabels').html(response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
$('#indexTabs .nav-tabs a').first().trigger("click");
|
|
||||||
|
|
||||||
serverLabels();
|
|
||||||
});
|
|
||||||
var serverLabelsStartTime;
|
|
||||||
function serverLabels() {
|
|
||||||
serverLabelsStartTime = new Date().getTime();
|
|
||||||
$.ajax({
|
|
||||||
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/serverLabels.php?<?php echo $userCredentials; ?>',
|
|
||||||
success: function (response) {
|
|
||||||
serverLabelsRequestTime = new Date().getTime() - serverLabelsStartTime;
|
|
||||||
$('.serverLabels').html(response);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (User::canCreateMeet()) {
|
if (User::canCreateMeet()) {
|
||||||
?>
|
?>
|
||||||
function startMeetNow() {
|
function startMeetNow() {
|
||||||
modal.showPleaseWait();
|
swal({
|
||||||
$.ajax({
|
text: "<?php echo __("Meet Topic"); ?>",
|
||||||
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/saveMeet.json.php?<?php echo $userCredentials; ?>',
|
content: "input",
|
||||||
data: {},
|
button: {
|
||||||
type: 'post',
|
text: "<?php echo __("Start Now"); ?>",
|
||||||
success: function (response) {
|
closeModal: false,
|
||||||
if (response.error) {
|
},
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
})
|
||||||
modal.hidePleaseWait();
|
.then(name => {
|
||||||
} else {
|
if (!name)
|
||||||
//console.log(response.link);
|
throw null;
|
||||||
//console.log(response.link+'?<?php echo $userCredentials; ?>');
|
return fetch('<?php echo $global['webSiteRootURL']; ?>plugin/Meet/saveMeet.json.php?<?php echo $userCredentials; ?>&RoomTopic='+encodeURI(name));
|
||||||
document.location = response.link+'?<?php echo $userCredentials; ?>';
|
})
|
||||||
}
|
.then(results => {
|
||||||
|
return results.json();
|
||||||
|
})
|
||||||
|
.then(response => {
|
||||||
|
if (response.error) {
|
||||||
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
|
modal.hidePleaseWait();
|
||||||
|
} else {
|
||||||
|
//console.log(response.link);
|
||||||
|
//console.log(response.link+'?<?php echo $userCredentials; ?>');
|
||||||
|
document.location = response.link + '?<?php echo $userCredentials; ?>';
|
||||||
|
//avideoAlertError(response.link + '?<?php echo $userCredentials; ?>');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
if (err) {
|
||||||
|
swal("Oh noes!", "The AJAX request failed!", "error");
|
||||||
|
} else {
|
||||||
|
swal.stopLoading();
|
||||||
|
swal.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -159,15 +159,16 @@ $userCredentials = User::loginFromRequestToGet();
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
if ($("#whenNew").val() == "1") {
|
if ($("#whenNew").val() == "1") {
|
||||||
document.location = response.link;
|
document.location = response.link;
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
try {Meet_schedule2today1tableVar.ajax.reload();} catch (e) {}
|
try {Meet_schedule2today1tableVar.ajax.reload();} catch (e) {}
|
||||||
try {Meet_schedule2upcoming1tableVar.ajax.reload();} catch (e) {}
|
try {Meet_schedule2upcoming1tableVar.ajax.reload();} catch (e) {}
|
||||||
|
try {Meet_schedule2past1tableVar.ajax.reload();} catch (e) {}
|
||||||
|
|
||||||
clearMeetForm(true);
|
clearMeetForm(true);
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -17,14 +17,13 @@ if (!User::canCreateMeet()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$userCredentials = User::loginFromRequestToGet();
|
$userCredentials = User::loginFromRequestToGet();
|
||||||
if(empty($meet_scheduled)){
|
if (empty($meet_scheduled)) {
|
||||||
$meet_scheduled = cleanString($_REQUEST['meet_scheduled']);
|
$meet_scheduled = cleanString($_REQUEST['meet_scheduled']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($manageMeetings)){
|
if (empty($manageMeetings)) {
|
||||||
$manageMeetings = intval($_REQUEST['manageMeetings']);
|
$manageMeetings = intval($_REQUEST['manageMeetings']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<table id="Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table" class="display table table-bordered table-responsive table-striped table-hover table-condensed" width="100%" cellspacing="0">
|
<table id="Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table" class="display table table-bordered table-responsive table-striped table-hover table-condensed" width="100%" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -65,19 +64,15 @@ if(empty($manageMeetings)){
|
||||||
data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Meet Log"); ?>">
|
data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Meet Log"); ?>">
|
||||||
<i class="fas fa-info-circle"></i>
|
<i class="fas fa-info-circle"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<button href="" class="edit_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?> btn btn-default btn-xs"
|
||||||
|
data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Edit"); ?>">
|
||||||
|
<i class="fa fa-edit"></i>
|
||||||
|
</button>
|
||||||
|
<button href="" class="delete_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?> btn btn-danger btn-xs"
|
||||||
|
data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Delete"); ?>">
|
||||||
|
<i class="fa fa-trash"></i>
|
||||||
|
</button>
|
||||||
<?php
|
<?php
|
||||||
if ($meet_scheduled !== "past") {
|
|
||||||
?>
|
|
||||||
<button href="" class="edit_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?> btn btn-default btn-xs"
|
|
||||||
data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Edit"); ?>">
|
|
||||||
<i class="fa fa-edit"></i>
|
|
||||||
</button>
|
|
||||||
<button href="" class="delete_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?> btn btn-danger btn-xs"
|
|
||||||
data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Delete"); ?>">
|
|
||||||
<i class="fa fa-trash"></i>
|
|
||||||
</button>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,27 +89,27 @@ if(empty($manageMeetings)){
|
||||||
var Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar;
|
var Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar;
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar = $('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').DataTable({
|
Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar = $('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').DataTable({
|
||||||
|
|
||||||
"processing": true,
|
"processing": true,
|
||||||
"serverSide": true,
|
"serverSide": true,
|
||||||
"ajax": "<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule/list.json.php?meet_scheduled=<?php echo $meet_scheduled; ?>&manageMeetings=<?php echo $manageMeetings; ?>&<?php echo $userCredentials; ?>",
|
"ajax": "<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule/list.json.php?meet_scheduled=<?php echo $meet_scheduled; ?>&manageMeetings=<?php echo $manageMeetings; ?>&<?php echo $userCredentials; ?>",
|
||||||
"order": [],
|
"order": [],
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Public = 2
|
* Public = 2
|
||||||
* Logged Users Only = 1
|
* Logged Users Only = 1
|
||||||
* Specific User Groups = 0
|
* Specific User Groups = 0
|
||||||
* @return type
|
* @return type
|
||||||
*/
|
*/
|
||||||
sortable: false,
|
sortable: false,
|
||||||
data: 'public',
|
data: 'public',
|
||||||
"render": function (data, type, row) {
|
"render": function (data, type, row) {
|
||||||
if(data==2){
|
if (data == 2) {
|
||||||
return '<i class="fas fa-lock-open" style="color:rgba(0,0,0,0.1);" data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Public"); ?>" ></i>';
|
return '<i class="fas fa-lock-open" style="color:rgba(0,0,0,0.1);" data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Public"); ?>" ></i>';
|
||||||
}else if(data==1){
|
} else if (data == 1) {
|
||||||
return '<i class="fas fa-user-lock" style="color:rgba(0,0,0,0.3);" data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Logged Users Only"); ?>" ></i>'
|
return '<i class="fas fa-user-lock" style="color:rgba(0,0,0,0.3);" data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Logged Users Only"); ?>" ></i>'
|
||||||
}else{
|
} else {
|
||||||
return '<i class="fas fa-lock" style="color:rgba(0,0,0,1);" data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Specific User Groups"); ?>" ></i>'
|
return '<i class="fas fa-lock" style="color:rgba(0,0,0,1);" data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Specific User Groups"); ?>" ></i>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,95 +125,95 @@ if(empty($manageMeetings)){
|
||||||
],
|
],
|
||||||
select: true,
|
select: true,
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
if ($manageMeetings) {
|
if ($manageMeetings) {
|
||||||
?>
|
?>
|
||||||
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.delete_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.delete_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var tr = $(this).closest('tr')[0];
|
var tr = $(this).closest('tr')[0];
|
||||||
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
||||||
swal({
|
swal({
|
||||||
title: "<?php echo __("Are you sure?"); ?>",
|
title: "<?php echo __("Are you sure?"); ?>",
|
||||||
text: "<?php echo __("You will not be able to recover this action!"); ?>",
|
text: "<?php echo __("You will not be able to recover this action!"); ?>",
|
||||||
icon: "warning",
|
icon: "warning",
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true,
|
dangerMode: true,
|
||||||
})
|
})
|
||||||
.then((willDelete) => {
|
.then((willDelete) => {
|
||||||
if (willDelete) {
|
if (willDelete) {
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule/delete.json.php?<?php echo $userCredentials; ?>",
|
url: "<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule/delete.json.php?<?php echo $userCredentials; ?>",
|
||||||
data: data
|
data: data
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.ajax.reload();
|
Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.log_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.log_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var tr = $(this).closest('tr')[0];
|
var tr = $(this).closest('tr')[0];
|
||||||
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal').modal();
|
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal').modal();
|
||||||
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html('');
|
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html('');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/getMeetInfo.json.php?meet_scheduled=<?php echo $meet_scheduled; ?>&meet_schedule_id=' + data.id+'&<?php echo $userCredentials; ?>',
|
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/getMeetInfo.json.php?meet_scheduled=<?php echo $meet_scheduled; ?>&meet_schedule_id=' + data.id + '&<?php echo $userCredentials; ?>',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html(response.html);
|
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html(response.html);
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.edit_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.edit_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var tr = $(this).closest('tr')[0];
|
var tr = $(this).closest('tr')[0];
|
||||||
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
||||||
|
|
||||||
clearMeetForm(false);
|
clearMeetForm(false);
|
||||||
|
|
||||||
$('#meet_schedule_id').val(data.id);
|
$('#meet_schedule_id').val(data.id);
|
||||||
$('#RoomTopic').val(data.topic);
|
$('#RoomTopic').val(data.topic);
|
||||||
$('#RoomPasswordNew').val(data.password);
|
$('#RoomPasswordNew').val(data.password);
|
||||||
$('#live_streamNew').val(data.live_stream);
|
$('#live_streamNew').val(data.live_stream);
|
||||||
$('#publicNew').val(data.public);
|
$('#publicNew').val(data.public);
|
||||||
$('#whenNew').val(0);
|
$('#whenNew').val(0);
|
||||||
$('#Meet_schedule2starts').val(data.starts);
|
$('#Meet_schedule2starts').val(data.starts);
|
||||||
|
|
||||||
if (data.userGroups) {
|
if (data.userGroups) {
|
||||||
for (i = 0; i < data.userGroups.length; i++) {
|
for (i = 0; i < data.userGroups.length; i++) {
|
||||||
$('#userGroupsCheck' + data.userGroups[i].users_groups_id).attr('checked', 1);
|
$('#userGroupsCheck' + data.userGroups[i].users_groups_id).attr('checked', 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#publicNew, #whenNew').trigger("change");
|
$('#publicNew, #whenNew').trigger("change");
|
||||||
|
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.go_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.go_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
var tr = $(this).closest('tr')[0];
|
var tr = $(this).closest('tr')[0];
|
||||||
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
|
||||||
document.location = data.link;
|
document.location = data.link;
|
||||||
|
|
||||||
});
|
});
|
||||||
setTimeout(function(){
|
setTimeout(function () {
|
||||||
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
|
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
|
||||||
},500);
|
}, 500);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
|
@ -31,56 +31,56 @@ if (!empty($_REQUEST['id'])) {
|
||||||
die(json_encode($obj));
|
die(json_encode($obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (empty($obj->meet_schedule_id) && !empty($_POST['starts'])) {
|
if (empty($obj->meet_schedule_id) && !empty($_REQUEST['starts'])) {
|
||||||
$date_now = time();
|
$date_now = time();
|
||||||
$date2 = strtotime($_POST['starts']);
|
$date2 = strtotime($_REQUEST['starts']);
|
||||||
if ($date_now > $date2) {
|
if ($date_now > $date2) {
|
||||||
$obj->msg = "You cannot save meetings for a past time";
|
$obj->msg = "You cannot save meetings for a past time";
|
||||||
die(json_encode($obj));
|
die(json_encode($obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$obj->roomName = Meet::createRoomName(@$_POST['RoomTopic']);
|
$obj->roomName = Meet::createRoomName(@$_REQUEST['RoomTopic']);
|
||||||
|
|
||||||
|
|
||||||
if (empty($_POST['starts'])) {
|
if (empty($_REQUEST['starts'])) {
|
||||||
$_POST['starts'] = date("Y-m-d H:i:s");
|
$_REQUEST['starts'] = date("Y-m-d H:i:s");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($_POST['status'])) {
|
if (empty($_REQUEST['status'])) {
|
||||||
$_POST['status'] = 'a';
|
$_REQUEST['status'] = 'a';
|
||||||
}
|
}
|
||||||
if (!isset($_POST['public'])) {
|
if (!isset($_REQUEST['public'])) {
|
||||||
$_POST['public'] = 1;
|
$_REQUEST['public'] = 1;
|
||||||
}
|
}
|
||||||
if (!isset($_POST['live_stream'])) {
|
if (!isset($_REQUEST['live_stream'])) {
|
||||||
$_POST['live_stream'] = 0;
|
$_REQUEST['live_stream'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($_POST['userGroups']) || !empty($_POST['public'])) {
|
if (empty($_REQUEST['userGroups']) || !empty($_REQUEST['public'])) {
|
||||||
$_POST['userGroups'] = array();
|
$_REQUEST['userGroups'] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$o = new Meet_schedule($obj->meet_schedule_id);
|
$o = new Meet_schedule($obj->meet_schedule_id);
|
||||||
$o->setUsers_id(User::getId());
|
$o->setUsers_id(User::getId());
|
||||||
$o->setStatus($_POST['status']);
|
$o->setStatus($_REQUEST['status']);
|
||||||
$o->setPublic($_POST['public']);
|
$o->setPublic($_REQUEST['public']);
|
||||||
$o->setLive_stream($_POST['live_stream']);
|
$o->setLive_stream($_REQUEST['live_stream']);
|
||||||
$o->setPassword(@$_POST['RoomPasswordNew']);
|
$o->setPassword(@$_REQUEST['RoomPasswordNew']);
|
||||||
$o->setTopic(@$_POST['RoomTopic']);
|
$o->setTopic(@$_REQUEST['RoomTopic']);
|
||||||
$o->setStarts($_POST['starts']);
|
$o->setStarts($_REQUEST['starts']);
|
||||||
$o->setName($obj->roomName);
|
$o->setName($obj->roomName);
|
||||||
$o->setMeet_code(uniqid());
|
$o->setMeet_code(uniqid());
|
||||||
$meet_schedule_id = $o->save();
|
$meet_schedule_id = $o->save();
|
||||||
if ($meet_schedule_id) {
|
if ($meet_schedule_id) {
|
||||||
Meet_schedule_has_users_groups::saveUsergroupsToMeet($meet_schedule_id, $_POST['userGroups']);
|
Meet_schedule_has_users_groups::saveUsergroupsToMeet($meet_schedule_id, $_REQUEST['userGroups']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$obj->password = @$_POST['RoomPasswordNew'];
|
$obj->password = @$_REQUEST['RoomPasswordNew'];
|
||||||
$obj->error = empty($meet_schedule_id);
|
$obj->error = empty($meet_schedule_id);
|
||||||
$obj->link = Meet::getMeetLink($meet_schedule_id);
|
$obj->link = Meet::getMeetLink($meet_schedule_id);
|
||||||
$obj->jwt = Meet::getToken($meet_schedule_id);
|
$obj->jwt = Meet::getToken($meet_schedule_id);
|
||||||
$obj->domain = Meet::getDomainURL($meet_schedule_id, true);
|
$obj->domain = Meet::getDomainURL($meet_schedule_id, true);
|
||||||
|
//var_dump($obj->domain);
|
||||||
|
|
||||||
die(json_encode($obj));
|
die(json_encode($obj));
|
||||||
?>
|
?>
|
|
@ -15,7 +15,7 @@ if (empty($obj)) {
|
||||||
$serverStatus = Meet::getMeetServerStatus();
|
$serverStatus = Meet::getMeetServerStatus();
|
||||||
$moreJibris = "https://upgrade." . Meet::getServer()['domain'] . "/?webSiteRootURL=" . urlencode($global['webSiteRootURL']) . "&secret=" . Meet::getSecret();
|
$moreJibris = "https://upgrade." . Meet::getServer()['domain'] . "/?webSiteRootURL=" . urlencode($global['webSiteRootURL']) . "&secret=" . Meet::getSecret();
|
||||||
$moreJibris = "#";
|
$moreJibris = "#";
|
||||||
$moreJibrisOnclick = "swal('Comming soon');return false;";
|
$moreJibrisOnclick = "avideoAlert('Comming soon');return false;";
|
||||||
if (User::isAdmin() && empty($serverStatus->error)) {
|
if (User::isAdmin() && empty($serverStatus->error)) {
|
||||||
?>
|
?>
|
||||||
<span class="label label-primary" data-toggle="tooltip" data-placement="bottom" title="Unlimited number of meetings"><i class="fas fa-comments"></i> <span class="hidden-sm hidden-xs"><?php echo __("Unlimited"); ?></span></span>
|
<span class="label label-primary" data-toggle="tooltip" data-placement="bottom" title="Unlimited number of meetings"><i class="fas fa-comments"></i> <span class="hidden-sm hidden-xs"><?php echo __("Unlimited"); ?></span></span>
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Error"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Error"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Thanks"); ?>", response.msg, "success");
|
avideoAlert("<?php echo __("Thanks"); ?>", response.msg, "success");
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
//
|
//
|
||||||
|
|
|
@ -101,7 +101,7 @@ $o = AVideoPlugin::getObjectData("VideoLogoOverlay");
|
||||||
}
|
}
|
||||||
reader.readAsDataURL($(input)[0].files[0]);
|
reader.readAsDataURL($(input)[0].files[0]);
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry - you're browser doesn't support the FileReader API");
|
avideoAlert("Sorry - you're browser doesn't support the FileReader API");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,9 +163,9 @@ $o = AVideoPlugin::getObjectData("VideoLogoOverlay");
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.saved) {
|
if (response.saved) {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your configurations has been updated!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your configurations has been updated!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your configurations has NOT been updated!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your configurations has NOT been updated!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ if (!User::isAdmin()) {
|
||||||
|
|
||||||
}).done(function (resposta) {
|
}).done(function (resposta) {
|
||||||
if (resposta.error) {
|
if (resposta.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
|
||||||
}
|
}
|
||||||
tableLinks.ajax.reload();
|
tableLinks.ajax.reload();
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
@ -145,9 +145,9 @@ if (!User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
|
||||||
|
|
||||||
$("#panelForm").trigger("reset");
|
$("#panelForm").trigger("reset");
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,9 +164,9 @@ class VimeoAPI extends PluginAbstract {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if(response.error){
|
if(response.error){
|
||||||
swal('" . __("Sorry!") . "', response.msg, 'error');
|
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
|
||||||
}else{
|
}else{
|
||||||
swal('" . __("Congratulations!") . "', response.msg, 'success');
|
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
|
||||||
}
|
}
|
||||||
console.log(response);
|
console.log(response);
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
@ -179,14 +179,14 @@ class VimeoAPI extends PluginAbstract {
|
||||||
url: '{$global['webSiteRootURL']}plugin/VimeoAPI/uploadAll.json.php',
|
url: '{$global['webSiteRootURL']}plugin/VimeoAPI/uploadAll.json.php',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if(response.error){
|
if(response.error){
|
||||||
swal('" . __("Sorry!") . "', response.msg, 'error');
|
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
|
||||||
}else{
|
}else{
|
||||||
swal('" . __("Congratulations!") . "', response.msg, 'success');
|
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
|
||||||
}
|
}
|
||||||
console.log(response);
|
console.log(response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
swal('" . __("Process Start") . "', 'It may take a while', 'warning');
|
avideoAlert('" . __("Process Start") . "', 'It may take a while', 'warning');
|
||||||
}</script>";
|
}</script>";
|
||||||
}
|
}
|
||||||
return $js;
|
return $js;
|
||||||
|
|
|
@ -18,7 +18,7 @@ $obj = AVideoPlugin::getObjectData("PayPalYPT");
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
document.location = response.approvalLink;
|
document.location = response.approvalLink;
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ $obj = AVideoPlugin::getObjectData("PayPalYPT");
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
document.location = response.approvalLink;
|
document.location = response.approvalLink;
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ $uid = uniqid();
|
||||||
if (empty($_REQUEST['redirectUri'])) {
|
if (empty($_REQUEST['redirectUri'])) {
|
||||||
?>
|
?>
|
||||||
$(".walletBalance").text(response.walletBalance);
|
$(".walletBalance").text(response.walletBalance);
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
|
@ -147,7 +147,7 @@ if (empty($_REQUEST['redirectUri'])) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
||||||
}
|
}
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -139,13 +139,13 @@ $uid = uniqid();
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
$(".walletBalance").text(response.walletBalance);
|
$(".walletBalance").text(response.walletBalance);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
|
||||||
}, 2000);
|
}, 2000);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
location.reload();
|
location.reload();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
|
@ -138,7 +138,7 @@ $obj = $plugin->getDataObject();
|
||||||
$('#userFormModal').modal('hide');
|
$('#userFormModal').modal('hide');
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been saved!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been saved!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,9 +58,9 @@ $wallet->setUsers_id(User::getId());
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if(!response.error){
|
if(!response.error){
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Configuration Saved"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Configuration Saved"); ?>", "success");
|
||||||
}else{
|
}else{
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -145,7 +145,7 @@ if (User::isAdmin()) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
|
|
|
@ -103,11 +103,11 @@ $options = json_decode($obj->addFundsOptions);
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,11 +102,11 @@ $options = json_decode($obj->withdrawFundsOptions);
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ if (!User::isAdmin()) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
|
|
|
@ -151,11 +151,11 @@ $obj = AVideoPlugin::getObjectDataIfEnabled("YPTWallet");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Funds successfully transferred"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Funds successfully transferred"); ?>", "success");
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -343,9 +343,9 @@ class YouTubeAPI extends PluginAbstract {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if(response.error){
|
if(response.error){
|
||||||
swal('" . __("Sorry!") . "', response.msg, 'error');
|
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
|
||||||
}else{
|
}else{
|
||||||
swal('" . __("Congratulations!") . "', response.msg, 'success');
|
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
|
||||||
}
|
}
|
||||||
console.log(response);
|
console.log(response);
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
@ -358,14 +358,14 @@ class YouTubeAPI extends PluginAbstract {
|
||||||
url: '{$global['webSiteRootURL']}plugin/YouTubeAPI/uploadAll.json.php',
|
url: '{$global['webSiteRootURL']}plugin/YouTubeAPI/uploadAll.json.php',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if(response.error){
|
if(response.error){
|
||||||
swal('" . __("Sorry!") . "', response.msg, 'error');
|
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
|
||||||
}else{
|
}else{
|
||||||
swal('" . __("Congratulations!") . "', response.msg, 'success');
|
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
|
||||||
}
|
}
|
||||||
console.log(response);
|
console.log(response);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
swal('" . __("Process Start") . "', 'It may take a while', 'warning');
|
avideoAlert('" . __("Process Start") . "', 'It may take a while', 'warning');
|
||||||
}</script>";
|
}</script>";
|
||||||
}
|
}
|
||||||
return $js;
|
return $js;
|
||||||
|
|
|
@ -656,7 +656,7 @@ if (User::isAdmin()) {
|
||||||
|
|
||||||
reader.readAsDataURL($(input)[0].files[0]);
|
reader.readAsDataURL($(input)[0].files[0]);
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry - you're browser doesn't support the FileReader API");
|
avideoAlert("Sorry - you're browser doesn't support the FileReader API");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -686,12 +686,12 @@ if (User::isAdmin()) {
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
||||||
|
|
||||||
$("#contact_form").hide();
|
$("#contact_form").hide();
|
||||||
$("#messageSuccess").fadeIn();
|
$("#messageSuccess").fadeIn();
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
||||||
}
|
}
|
||||||
$('#btnReloadCapcha').trigger('click');
|
$('#btnReloadCapcha').trigger('click');
|
||||||
}
|
}
|
||||||
|
@ -821,9 +821,9 @@ if (User::isAdmin()) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.status === "1") {
|
if (response.status === "1") {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your configurations has been updated!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your configurations has been updated!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your configurations has NOT been updated!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your configurations has NOT been updated!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,12 @@ $metaDescription = " Contact Form";
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
||||||
|
|
||||||
$("#contact_form").hide();
|
$("#contact_form").hide();
|
||||||
$("#messageSuccess").fadeIn();
|
$("#messageSuccess").fadeIn();
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
||||||
}
|
}
|
||||||
$('#btnReloadCapcha').trigger('click');
|
$('#btnReloadCapcha').trigger('click');
|
||||||
}
|
}
|
||||||
|
|
|
@ -295,9 +295,9 @@ $(document).ready(function () {
|
||||||
url: webSiteRootURL + 'objects/configurationClearCache.json.php',
|
url: webSiteRootURL + 'objects/configurationClearCache.json.php',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("Congratulations!", "Your cache has been cleared!", "success");
|
avideoAlert("Congratulations!", "Your cache has been cleared!", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry!", "Your cache has NOT been cleared!", "error");
|
avideoAlert("Sorry!", "Your cache has NOT been cleared!", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
@ -310,9 +310,9 @@ $(document).ready(function () {
|
||||||
url: webSiteRootURL + 'objects/configurationClearCache.json.php?FirstPage=1',
|
url: webSiteRootURL + 'objects/configurationClearCache.json.php?FirstPage=1',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("Congratulations!", "Your First Page cache has been cleared!", "success");
|
avideoAlert("Congratulations!", "Your First Page cache has been cleared!", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry!", "Your First Page cache has NOT been cleared!", "error");
|
avideoAlert("Sorry!", "Your First Page cache has NOT been cleared!", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
@ -325,12 +325,12 @@ $(document).ready(function () {
|
||||||
url: webSiteRootURL + 'objects/configurationGenerateSiteMap.json.php',
|
url: webSiteRootURL + 'objects/configurationGenerateSiteMap.json.php',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("Congratulations!", "File created!", "success");
|
avideoAlert("Congratulations!", "File created!", "success");
|
||||||
} else {
|
} else {
|
||||||
if (response.msg) {
|
if (response.msg) {
|
||||||
swal("Sorry!", response.msg, "error");
|
avideoAlert("Sorry!", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry!", "File NOT created!", "error");
|
avideoAlert("Sorry!", "File NOT created!", "error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
@ -785,4 +785,17 @@ function setCurrentTime(currentTime) {
|
||||||
setCurrentTime(currentTime);
|
setCurrentTime(currentTime);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function avideoAlert(title, msg, type){
|
||||||
|
swal(title, msg, type);
|
||||||
|
}
|
||||||
|
function avideoAlertInfo(msg){
|
||||||
|
avideoAlert("Info", msg, 'info');
|
||||||
|
}
|
||||||
|
function avideoAlertError(msg){
|
||||||
|
avideoAlert("Error", msg, 'error');
|
||||||
|
}
|
||||||
|
function avideoAlertSuccess(msg){
|
||||||
|
avideoAlert("Success", msg, 'success');
|
||||||
|
}
|
||||||
|
|
|
@ -210,9 +210,9 @@
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.status === "1") {
|
if (response.status === "1") {
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your category has been deleted!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your category has been deleted!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your category has NOT been deleted!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your category has NOT been deleted!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
@ -259,9 +259,9 @@
|
||||||
if (response.status) {
|
if (response.status) {
|
||||||
$('#categoryFormModal').modal('hide');
|
$('#categoryFormModal').modal('hide');
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your category has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your category has been saved!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your category has NOT been saved!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your category has NOT been saved!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,9 +85,9 @@ if (!User::canUpload()) {
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Success"); ?>", "<?php echo __("You have sent the notification"); ?>", "success");
|
avideoAlert("<?php echo __("Success"); ?>", "<?php echo __("You have sent the notification"); ?>", "success");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,9 +98,9 @@
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.status === "1") {
|
if (response.status === "1") {
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your group has NOT been deleted!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your group has NOT been deleted!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
@ -133,9 +133,9 @@
|
||||||
if (response.status === "1") {
|
if (response.status === "1") {
|
||||||
$('#groupFormModal').modal('hide');
|
$('#groupFormModal').modal('hide');
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been saved!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your group has NOT been saved!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your group has NOT been saved!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -478,7 +478,7 @@ print AVideoPlugin::addUserBtnJS();
|
||||||
$('#updateUserForm').submit(function (evt) {
|
$('#updateUserForm').submit(function (evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
if (!isAnalytics()){
|
if (!isAnalytics()){
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your analytics code is wrong"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your analytics code is wrong"); ?>", "error");
|
||||||
$('#inputAnalyticsCode').focus();
|
$('#inputAnalyticsCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -516,11 +516,11 @@ print AVideoPlugin::updateUserFormJS();
|
||||||
$('#userFormModal').modal('hide');
|
$('#userFormModal').modal('hide');
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
$("#gridInactive").bootgrid("reload");
|
$("#gridInactive").bootgrid("reload");
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your user has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your user has been saved!"); ?>", "success");
|
||||||
} else if (response.error){
|
} else if (response.error){
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been updated!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been updated!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -692,7 +692,7 @@ if (empty($advancedCustom->disableHTMLDescription)) {
|
||||||
html: true
|
html: true
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Error!"); ?>", "<?php echo __("Unknown Error!"); ?>", "error");
|
avideoAlert("<?php echo __("Error!"); ?>", "<?php echo __("Unknown Error!"); ?>", "error");
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -888,7 +888,7 @@ if (empty($advancedCustomUser->userCanNotChangeUserGroup) || User::isAdmin()) {
|
||||||
} else if (response.status === "") {
|
} else if (response.status === "") {
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your video has NOT been deleted!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your video has NOT been deleted!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
@ -1218,7 +1218,7 @@ if (empty($advancedCustom->disableHTMLDescription)) {
|
||||||
html: true
|
html: true
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your video has NOT been saved!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your video has NOT been saved!"); ?>", "error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
@ -1641,7 +1641,7 @@ echo AVideoPlugin::getManagerVideosReset();
|
||||||
})
|
})
|
||||||
.then((willDelete) => {
|
.then((willDelete) => {
|
||||||
if (willDelete) {
|
if (willDelete) {
|
||||||
swal("Deleted!", {
|
avideoAlert("Deleted!", {
|
||||||
icon: "success",
|
icon: "success",
|
||||||
});
|
});
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
|
|
|
@ -356,9 +356,9 @@ if(empty($video['created'])){
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (!response.error) {
|
if (!response.error) {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your message has been sent!"); ?>", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Your message could not be sent!"); ?>", response.error, "error");
|
||||||
}
|
}
|
||||||
$('#btnReloadCapcha').trigger('click');
|
$('#btnReloadCapcha').trigger('click');
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ if(!empty($_GET['siteRedirectUri'])){
|
||||||
// password dont match
|
// password dont match
|
||||||
if (pass1 != '' && pass1 != pass2) {
|
if (pass1 != '' && pass1 != pass2) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your password does not match!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your password does not match!"); ?>", "error");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -185,9 +185,9 @@ if(!empty($_GET['siteRedirectUri'])){
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been created!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been created!"); ?>", "error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
|
|
|
@ -61,9 +61,9 @@
|
||||||
url: "<?php echo $global['webSiteRootURL'] ?>objects/userVerifyEmail.php?users_id=<?php echo $user->getBdId(); ?>"
|
url: "<?php echo $global['webSiteRootURL'] ?>objects/userVerifyEmail.php?users_id=<?php echo $user->getBdId(); ?>"
|
||||||
}).done(function (response) {
|
}).done(function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Verification Sent"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Verification Sent"); ?>", "success");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
});
|
});
|
||||||
|
@ -221,7 +221,7 @@ AVideoPlugin::getMyAccount(User::getId());
|
||||||
|
|
||||||
reader.readAsDataURL($(input)[0].files[0]);
|
reader.readAsDataURL($(input)[0].files[0]);
|
||||||
} else {
|
} else {
|
||||||
swal("Sorry - you're browser doesn't support the FileReader API");
|
avideoAlert("Sorry - you're browser doesn't support the FileReader API");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,10 +263,10 @@ AVideoPlugin::getMyAccount(User::getId());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (response.error) {
|
} else if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been updated!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been updated!"); ?>", "error");
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -330,7 +330,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
|
||||||
$('#updateUserForm').submit(function (evt) {
|
$('#updateUserForm').submit(function (evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
if (!isAnalytics()) {
|
if (!isAnalytics()) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your analytics code is wrong"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your analytics code is wrong"); ?>", "error");
|
||||||
$('#inputAnalyticsCode').focus();
|
$('#inputAnalyticsCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -341,7 +341,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
|
||||||
// password dont match
|
// password dont match
|
||||||
if (pass1 != '' && pass1 != pass2) {
|
if (pass1 != '' && pass1 != pass2) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your password does not match!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your password does not match!"); ?>", "error");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
|
@ -36,7 +36,7 @@ if (empty($_COOKIE) && get_browser_name()!=='Other (Unknown)') {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
if (!win || win.closed || typeof win.closed == 'undefined') {
|
if (!win || win.closed || typeof win.closed == 'undefined') {
|
||||||
//swal("<?php echo __("Sorry!"); ?>", "<?php echo __("In order to enjoy our login feature, you need to allow our pop-ups in your browser."); ?>", "error");
|
//avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("In order to enjoy our login feature, you need to allow our pop-ups in your browser."); ?>", "error");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -191,7 +191,7 @@ if (empty($_COOKIE) && get_browser_name()!=='Other (Unknown)') {
|
||||||
<?php
|
<?php
|
||||||
if (!empty($_GET['error'])) {
|
if (!empty($_GET['error'])) {
|
||||||
?>
|
?>
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo addslashes($_GET['error']); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo addslashes($_GET['error']); ?>", "error");
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -206,7 +206,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
|
||||||
var email = $("#inputUser").val();
|
var email = $("#inputUser").val();
|
||||||
if (!validateEmail(email) && email.toLowerCase() !== "admin") {
|
if (!validateEmail(email) && email.toLowerCase() !== "admin") {
|
||||||
// if the user is admin, let it go
|
// if the user is admin, let it go
|
||||||
//swal("<?php echo __("Sorry!"); ?>", "<?php echo __("The username must be an email"); ?>", "error");
|
//avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("The username must be an email"); ?>", "error");
|
||||||
//return false;
|
//return false;
|
||||||
}
|
}
|
||||||
<?php
|
<?php
|
||||||
|
@ -221,9 +221,9 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
|
||||||
if (!response.isLogged) {
|
if (!response.isLogged) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user or password is wrong!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user or password is wrong!"); ?>", "error");
|
||||||
}
|
}
|
||||||
if (response.isCaptchaNeed) {
|
if (response.isCaptchaNeed) {
|
||||||
$("#btnReloadCapcha").trigger('click');
|
$("#btnReloadCapcha").trigger('click');
|
||||||
|
@ -239,7 +239,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
|
||||||
$('#forgotPassword').click(function () {
|
$('#forgotPassword').click(function () {
|
||||||
var user = $('#inputUser').val();
|
var user = $('#inputUser').val();
|
||||||
if (!user) {
|
if (!user) {
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("You need to inform what is your user!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("You need to inform what is your user!"); ?>", "error");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var capcha = '<span class="input-group-addon"><img src="<?php echo $global['webSiteRootURL']; ?>captcha?<?php echo time(); ?>" id="captcha"></span><span class="input-group-addon"><span class="btn btn-xs btn-success" id="btnReloadCapcha"><span class="glyphicon glyphicon-refresh"></span></span></span><input name="captcha" placeholder="<?php echo __("Type the code"); ?>" class="form-control" type="text" style="height: 60px;" maxlength="5" id="captchaText2">';
|
var capcha = '<span class="input-group-addon"><img src="<?php echo $global['webSiteRootURL']; ?>captcha?<?php echo time(); ?>" id="captcha"></span><span class="input-group-addon"><span class="btn btn-xs btn-success" id="btnReloadCapcha"><span class="glyphicon glyphicon-refresh"></span></span></span><input name="captcha" placeholder="<?php echo __("Type the code"); ?>" class="form-control" type="text" style="height: 60px;" maxlength="5" id="captchaText2">';
|
||||||
|
@ -262,9 +262,9 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
swal("<?php echo __("Error"); ?>", response.error, "error");
|
avideoAlert("<?php echo __("Error"); ?>", response.error, "error");
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("E-mail sent"); ?>", "<?php echo __("We sent you an e-mail with instructions"); ?>", "success");
|
avideoAlert("<?php echo __("E-mail sent"); ?>", "<?php echo __("We sent you an e-mail with instructions"); ?>", "success");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
|
@ -233,7 +233,7 @@ if (User::canSeeCommentTextarea()) {
|
||||||
data: {'comment': comment, 'video': video, 'comments_id': comments_id, 'id': id},
|
data: {'comment': comment, 'video': video, 'comments_id': comments_id, 'id': id},
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.status === "1") {
|
if (response.status === "1") {
|
||||||
swal("<?php echo __("Congratulations"); ?>!", "<?php echo __("Your comment has been saved!"); ?>", "success");
|
avideoAlert("<?php echo __("Congratulations"); ?>!", "<?php echo __("Your comment has been saved!"); ?>", "success");
|
||||||
if (comments_id) {
|
if (comments_id) {
|
||||||
if ($('.grid' + comments_id).hasClass('bootgrid-table')) {
|
if ($('.grid' + comments_id).hasClass('bootgrid-table')) {
|
||||||
$('.grid' + comments_id).bootgrid('reload');
|
$('.grid' + comments_id).bootgrid('reload');
|
||||||
|
@ -246,13 +246,13 @@ if (User::canSeeCommentTextarea()) {
|
||||||
}
|
}
|
||||||
addCommentCount(comments_id, 1);
|
addCommentCount(comments_id, 1);
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment has NOT been saved!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment has NOT been saved!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment must be bigger then 5 characters!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment must be bigger then 5 characters!"); ?>", "error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ if (User::canSeeCommentTextarea()) {
|
||||||
if (response.status) {
|
if (response.status) {
|
||||||
$(t).closest('tr').fadeOut();
|
$(t).closest('tr').fadeOut();
|
||||||
} else {
|
} else {
|
||||||
swal("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment has NOT been deleted!"); ?>", "error");
|
avideoAlert("<?php echo __("Sorry"); ?>!", "<?php echo __("Your comment has NOT been deleted!"); ?>", "error");
|
||||||
}
|
}
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue