1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Make sure clear the cache on this Update

This commit is contained in:
DanielnetoDotCom 2020-09-09 11:11:27 -03:00
parent cafa182da1
commit 35d672283f
59 changed files with 409 additions and 372 deletions

View file

@ -53,7 +53,7 @@
reader.readAsDataURL($(input)[0].files[0]);
} 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',
success: function (response) {
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 {
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();
}

View file

@ -41,9 +41,9 @@
success: function (response) {
console.log(response);
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg[0], "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg[0], "error");
} 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();
}

View file

@ -287,11 +287,11 @@ require_once '../locale/function.php';
var confirmSystemAdminPass = $('#confirmSystemAdminPass').val();
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;
}
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;
}
@ -327,18 +327,18 @@ require_once '../locale/function.php';
success: function (response) {
modal.hidePleaseWait();
if (response.error) {
swal("Sorry!", response.error, "error");
avideoAlert("Sorry!", response.error, "error");
} else {
swal("Congratulations!", response.error, "success");
avideoAlert("Congratulations!", response.error, "success");
window.location.reload(false);
}
},
error: function (xhr, ajaxOptions, thrownError) {
modal.hidePleaseWait();
if (xhr.status == 404) {
swal("Sorry!", "Your Site URL is wrong!", "error");
avideoAlert("Sorry!", "Your Site URL is wrong!", "error");
} else {
swal("Sorry!", "Unknow error!", "error");
avideoAlert("Sorry!", "Unknow error!", "error");
}
}
});

View file

@ -191,9 +191,9 @@ sort($vars);
type: 'post',
success: function (response) {
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 {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
}
modal.hidePleaseWait();
}

View file

@ -153,9 +153,9 @@ if (!(!empty($_GET['user']) && !empty($_GET['recoverpass']))) {
success: function (response) {
modal.hidePleaseWait();
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 {
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");
}
}
});

View file

@ -58,10 +58,10 @@
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
modal.hidePleaseWait();
} 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);
}
//modal.hidePleaseWait();

View file

@ -25,9 +25,9 @@ $ad->loadFromUser(User::getId());
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
} 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();
}

View file

@ -383,7 +383,7 @@ if (!User::isAdmin()) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableVideos.ajax.reload();
modal.hidePleaseWait();
@ -417,9 +417,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
clearVideoForm();
@ -466,9 +466,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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
if (!empty($ad_server_location)) {
?>
@ -534,7 +534,7 @@ if (!empty($ad_server_location)) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableLinks.ajax.reload();
modal.hidePleaseWait();

View file

@ -185,9 +185,9 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
type: 'post',
success: function (response) {
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 {
swal("<?php echo __("Sorry!"); ?>", response.msg.join("<br>"), "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg.join("<br>"), "error");
}
modal.hidePleaseWait();
}

View file

@ -120,7 +120,7 @@ if (!User::isAdmin()) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableLinks.ajax.reload();
modal.hidePleaseWait();
@ -148,7 +148,7 @@ modal.showPleaseWait();
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableLinks.ajax.reload();
modal.hidePleaseWait();

View file

@ -20,9 +20,9 @@
}).done(function (resposta) {
if (resposta.error) {
swal('Sorry', resposta.msg, 'error');
avideoAlert('Sorry', resposta.msg, 'error');
}else{
swal('Congratulations', 'Your Clone Process is finished', 'success');
avideoAlert('Congratulations', 'Your Clone Process is finished', 'success');
}
clearInterval(interval);
getClientLog();

View file

@ -270,7 +270,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
if (!response.error) {
if (!response.site_is_enabled) {
$('#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 {
$('#permissionsHead .label-success').fadeIn();
}
@ -284,13 +284,13 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
loadItemGet("programs", "playlists_id");
} else {
$("#sitesPermissionsBody").slideUp();
swal("Sorry!", "Site " + combineSiteURL + " said: " + response.msg, "error");
avideoAlert("Sorry!", "Site " + combineSiteURL + " said: " + response.msg, "error");
}
modal.hidePleaseWait();
},
error: function (ajaxContext) {
$("#sitesPermissionsBody").slideUp();
swal("Sorry!", "This site is NOT a streamer Site", "error");
avideoAlert("Sorry!", "This site is NOT a streamer Site", "error");
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,
success: function (data) {
if (data.error) {
swal("Sorry!", data.msg, "error");
avideoAlert("Sorry!", data.msg, "error");
modal.hidePleaseWait();
} else {
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,
success: function (data) {
if (data.error) {
swal("Sorry!", data.msg, "error");
avideoAlert("Sorry!", data.msg, "error");
modal.hidePleaseWait();
} else {
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");
} else {
$("#sitesPermissionsBody").slideUp();
swal("Sorry!", "Site " + combineSiteURL + " said: " + response.message, "error");
avideoAlert("Sorry!", "Site " + combineSiteURL + " said: " + response.message, "error");
}
modal.hidePleaseWait();
},
error: function (ajaxContext) {
$("#sitesPermissionsBody").slideUp();
swal("Sorry!", "This site is NOT a streamer Site", "error");
avideoAlert("Sorry!", "This site is NOT a streamer Site", "error");
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,
success: function (data) {
if (data.error) {
swal("Sorry!", data.msg, "error");
avideoAlert("Sorry!", data.msg, "error");
modal.hidePleaseWait();
} else {
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,
success: function (data) {
if (data.error) {
swal("Sorry!", data.msg, "error");
avideoAlert("Sorry!", data.msg, "error");
modal.hidePleaseWait();
} else {
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,
success: function (data) {
if (data.error) {
swal("Sorry!", data.msg, "error");
avideoAlert("Sorry!", data.msg, "error");
modal.hidePleaseWait();
} else {
location.reload();
@ -542,7 +542,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
success: function (data) {
if (data.error) {
t.prop('checked', !t.is(":checked"));
swal("Sorry!", data.msg, "error");
avideoAlert("Sorry!", data.msg, "error");
} else {
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.
var site_url = $('#site_url').val();
if (!site_url) {
swal("Sorry!", "You need a valid URL", "error");
avideoAlert("Sorry!", "You need a valid URL", "error");
return false;
}
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,
success: function (data) {
if (data.error) {
swal("Sorry!", data.msg, "error");
avideoAlert("Sorry!", data.msg, "error");
modal.hidePleaseWait();
} else if (data.response && data.response.error) {
swal("Sorry!", data.response.msg, "error");
avideoAlert("Sorry!", data.response.msg, "error");
modal.hidePleaseWait();
} else {
location.reload();

View file

@ -71,9 +71,9 @@ if ($obj->allowWalletDirectTransferDonation && !empty($video['users_id'])) {
success: function (response) {
modal.hidePleaseWait();
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
} 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');
$(".walletBalance").text(response.walletBalance);
}

View file

@ -419,9 +419,9 @@ if (!empty($videos)) {
success: function (response) {
modal.hidePleaseWait();
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 {
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');
}
@ -514,13 +514,13 @@ if (!empty($videos)) {
$('#comment<?php echo $video['id']; ?>').val('');
$('#grid<?php echo $video['id']; ?>').bootgrid('reload');
} 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();
}
});
} 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");
}
});
});

View file

@ -295,10 +295,10 @@ class Live extends PluginAbstract {
modal.hidePleaseWait();
if (response.error) {
swal('" . __("Sorry!") . "', response.msg, 'error');
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
} else{
if(response.newkey != response.key){
swal('" . __("Congratulations!") . "', '" . __("New Key") . ": '+response.newkey, 'success');
avideoAlert('" . __("Congratulations!") . "', '" . __("New Key") . ": '+response.newkey, 'success');
}
$('#streamkey, .streamkey').val(response.newkey);
}

View file

@ -351,7 +351,7 @@ if (!empty($chat2) && !empty($chat2->useStaticLayout)) {
success: function (response) {
modal.hidePleaseWait();
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} else {
$('#mainVideo video').attr('poster', webSiteRootURL + response.newPoster);
$('#mainVideo .vjs-poster').css('background-image', 'url("' + webSiteRootURL + response.newPoster + '")');

View file

@ -116,7 +116,7 @@ include $global['systemRootPath'] . 'plugin/Meet/api.js.php';
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
on_meetStop();
modal.hidePleaseWait();
} else {

View file

@ -121,9 +121,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
clearLive_restreamsForm();
@ -163,9 +163,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
Live_restreamstableVar.ajax.reload();
@ -195,7 +195,7 @@ if (!User::isAdmin()) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Live_restreamstableVar.ajax.reload();
modal.hidePleaseWait();

View file

@ -107,9 +107,9 @@ if (!User::canStream()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
clearLive_restreamsForm();
@ -146,9 +146,9 @@ if (!User::canStream()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
Live_restreamstableVar.ajax.reload();
@ -178,7 +178,7 @@ if (!User::canStream()) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Live_restreamstableVar.ajax.reload();
modal.hidePleaseWait();

View file

@ -191,9 +191,9 @@ $obj = AVideoPlugin::getObjectData("Live");
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
clearLive_serversForm();
@ -231,9 +231,9 @@ $obj = AVideoPlugin::getObjectData("Live");
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
Live_serverstableVar.ajax.reload();
@ -263,7 +263,7 @@ $obj = AVideoPlugin::getObjectData("Live");
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Live_serverstableVar.ajax.reload();
modal.hidePleaseWait();

View file

@ -145,9 +145,9 @@
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
tableLinks.ajax.reload();
@ -179,7 +179,7 @@
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableLinks.ajax.reload();
modal.hidePleaseWait();

View file

@ -204,7 +204,7 @@ Passcode: {password}
$domain .= "/".$m->getName();
}
$domain .= "?getRTMPLink=" . urlencode(Live::getRTMPLink($m->getUsers_id()));
//$domain .= "?getRTMPLink=" . urlencode(Live::getRTMPLink($m->getUsers_id()));
if($addToken){
$token = self::getToken($meet_schedule_id);

View file

@ -119,9 +119,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
clearMeet_join_logForm();
@ -158,9 +158,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
Meet_join_logtableVar.ajax.reload();
@ -190,7 +190,7 @@ if (!User::isAdmin()) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Meet_join_logtableVar.ajax.reload();
modal.hidePleaseWait();

View file

@ -159,9 +159,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
clearMeet_scheduleForm();
@ -205,9 +205,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
Meet_scheduletableVar.ajax.reload();
@ -237,7 +237,7 @@ if (!User::isAdmin()) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Meet_scheduletableVar.ajax.reload();
modal.hidePleaseWait();

View file

@ -105,9 +105,9 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
clearMeet_schedule_has_users_groupsForm();
@ -142,9 +142,9 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}
Meet_schedule_has_users_groupstableVar.ajax.reload();
@ -174,7 +174,7 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Meet_schedule_has_users_groupstableVar.ajax.reload();
modal.hidePleaseWait();

View file

@ -73,7 +73,7 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
<?php
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>
<?php
}
@ -81,13 +81,13 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
</ul>
<div class="tab-content">
<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>
<?php
if (User::canCreateMeet()) {
?>
<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>
<?php
}
@ -106,71 +106,99 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
var serverLabelsRequestTime;
$(document).ready(function () {
var serverLabelsRequestTime;
$(document).ready(function () {
<?php $today = getdate(); ?>
var d = new Date(<?php echo $today['year'] . "," . $today['mon'] . "," . $today['mday'] . "," . $today['hours'] . "," . $today['minutes'] . "," . $today['seconds']; ?>);
setInterval(function () {
d.setSeconds(d.getSeconds() + 1);
$('#serverTime').html("<i class=\"far fa-clock\"></i> " + (d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds()));
}, 1000);
var d = new Date(<?php echo $today['year'] . "," . $today['mon'] . "," . $today['mday'] . "," . $today['hours'] . "," . $today['minutes'] . "," . $today['seconds']; ?>);
setInterval(function () {
d.setSeconds(d.getSeconds() + 1);
$('#serverTime').html("<i class=\"far fa-clock\"></i> " + (d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds()));
}, 1000);
$('#indexTabs .nav-tabs a').click(function (e) {
var now_tab = e.target // activated tab
if(!$(now_tab).attr('href')){
return false;
$('#indexTabs .nav-tabs a').click(function (e) {
var href = $(this).attr('href');
if(href && href!=="#"){
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');
$("#" + divid).attr('url', '');
if (url) {
$.ajax({
url: url,
}
});
try {
$('#indexTabs .nav-tabs a').first().trigger("click");
} catch (e) {
}
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) {
$("#" + 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
if (User::canCreateMeet()) {
?>
function startMeetNow() {
modal.showPleaseWait();
$.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/saveMeet.json.php?<?php echo $userCredentials; ?>',
data: {},
type: 'post',
success: function (response) {
if (response.error) {
swal("<?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; ?>';
}
function startMeetNow() {
swal({
text: "<?php echo __("Meet Topic"); ?>",
content: "input",
button: {
text: "<?php echo __("Start Now"); ?>",
closeModal: false,
},
})
.then(name => {
if (!name)
throw null;
return fetch('<?php echo $global['webSiteRootURL']; ?>plugin/Meet/saveMeet.json.php?<?php echo $userCredentials; ?>&RoomTopic='+encodeURI(name));
})
.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
}
?>

View file

@ -159,15 +159,16 @@ $userCredentials = User::loginFromRequestToGet();
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
modal.hidePleaseWait();
} else {
if ($("#whenNew").val() == "1") {
document.location = response.link;
} 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_schedule2upcoming1tableVar.ajax.reload();} catch (e) {}
try {Meet_schedule2upcoming1tableVar.ajax.reload();} catch (e) {}
try {Meet_schedule2past1tableVar.ajax.reload();} catch (e) {}
clearMeetForm(true);
modal.hidePleaseWait();

View file

@ -17,14 +17,13 @@ if (!User::canCreateMeet()) {
exit;
}
$userCredentials = User::loginFromRequestToGet();
if(empty($meet_scheduled)){
if (empty($meet_scheduled)) {
$meet_scheduled = cleanString($_REQUEST['meet_scheduled']);
}
if(empty($manageMeetings)){
if (empty($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">
<thead>
@ -65,19 +64,15 @@ if(empty($manageMeetings)){
data-toggle="tooltip" data-placement="bottom" title="<?php echo __("Meet Log"); ?>">
<i class="fas fa-info-circle"></i>
</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
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>
@ -94,27 +89,27 @@ if(empty($manageMeetings)){
var Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar;
$(document).ready(function () {
Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar = $('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').DataTable({
"processing": true,
"serverSide": true,
"processing": 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; ?>",
"order": [],
"columns": [
{
/**
* Public = 2
* Logged Users Only = 1
* Specific User Groups = 0
* @return type
*/
* Public = 2
* Logged Users Only = 1
* Specific User Groups = 0
* @return type
*/
sortable: false,
data: 'public',
"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>';
}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>'
}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>'
}
}
@ -130,95 +125,95 @@ if(empty($manageMeetings)){
],
select: true,
});
<?php
if ($manageMeetings) {
?>
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.delete_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
swal({
title: "<?php echo __("Are you sure?"); ?>",
text: "<?php echo __("You will not be able to recover this action!"); ?>",
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
if (willDelete) {
modal.showPleaseWait();
$.ajax({
type: "POST",
url: "<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule/delete.json.php?<?php echo $userCredentials; ?>",
data: data
<?php
if ($manageMeetings) {
?>
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.delete_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
swal({
title: "<?php echo __("Are you sure?"); ?>",
text: "<?php echo __("You will not be able to recover this action!"); ?>",
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
if (willDelete) {
modal.showPleaseWait();
$.ajax({
type: "POST",
url: "<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule/delete.json.php?<?php echo $userCredentials; ?>",
data: data
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.ajax.reload();
modal.hidePleaseWait();
});
} else {
}).done(function (resposta) {
if (resposta.error) {
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.ajax.reload();
modal.hidePleaseWait();
});
} else {
}
});
});
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.log_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
modal.showPleaseWait();
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal').modal();
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html('');
$.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; ?>',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
} else {
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html(response.html);
}
modal.hidePleaseWait();
}
});
});
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.edit_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
}
});
});
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.log_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
modal.showPleaseWait();
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal').modal();
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html('');
$.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; ?>',
success: function (response) {
if (response.error) {
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} else {
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Modal .modal-body').html(response.html);
}
modal.hidePleaseWait();
}
});
});
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.edit_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
clearMeetForm(false);
clearMeetForm(false);
$('#meet_schedule_id').val(data.id);
$('#RoomTopic').val(data.topic);
$('#RoomPasswordNew').val(data.password);
$('#live_streamNew').val(data.live_stream);
$('#publicNew').val(data.public);
$('#whenNew').val(0);
$('#Meet_schedule2starts').val(data.starts);
$('#meet_schedule_id').val(data.id);
$('#RoomTopic').val(data.topic);
$('#RoomPasswordNew').val(data.password);
$('#live_streamNew').val(data.live_stream);
$('#publicNew').val(data.public);
$('#whenNew').val(0);
$('#Meet_schedule2starts').val(data.starts);
if (data.userGroups) {
for (i = 0; i < data.userGroups.length; i++) {
$('#userGroupsCheck' + data.userGroups[i].users_groups_id).attr('checked', 1);
}
}
$('#publicNew, #whenNew').trigger("change");
if (data.userGroups) {
for (i = 0; i < data.userGroups.length; i++) {
$('#userGroupsCheck' + data.userGroups[i].users_groups_id).attr('checked', 1);
}
}
$('#publicNew, #whenNew').trigger("change");
});
<?php
}
?>
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.go_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
modal.showPleaseWait();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
document.location = data.link;
});
<?php
}
?>
$('#Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>Table').on('click', 'button.go_Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>', function (e) {
e.preventDefault();
modal.showPleaseWait();
var tr = $(this).closest('tr')[0];
var data = Meet_schedule2<?php echo $meet_scheduled, $manageMeetings; ?>tableVar.row(tr).data();
document.location = data.link;
});
setTimeout(function(){
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
},500);
});
});
setTimeout(function () {
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
}, 500);
});
</script>

View file

@ -31,56 +31,56 @@ if (!empty($_REQUEST['id'])) {
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();
$date2 = strtotime($_POST['starts']);
$date2 = strtotime($_REQUEST['starts']);
if ($date_now > $date2) {
$obj->msg = "You cannot save meetings for a past time";
die(json_encode($obj));
}
}
$obj->roomName = Meet::createRoomName(@$_POST['RoomTopic']);
$obj->roomName = Meet::createRoomName(@$_REQUEST['RoomTopic']);
if (empty($_POST['starts'])) {
$_POST['starts'] = date("Y-m-d H:i:s");
if (empty($_REQUEST['starts'])) {
$_REQUEST['starts'] = date("Y-m-d H:i:s");
}
if (empty($_POST['status'])) {
$_POST['status'] = 'a';
if (empty($_REQUEST['status'])) {
$_REQUEST['status'] = 'a';
}
if (!isset($_POST['public'])) {
$_POST['public'] = 1;
if (!isset($_REQUEST['public'])) {
$_REQUEST['public'] = 1;
}
if (!isset($_POST['live_stream'])) {
$_POST['live_stream'] = 0;
if (!isset($_REQUEST['live_stream'])) {
$_REQUEST['live_stream'] = 0;
}
if (empty($_POST['userGroups']) || !empty($_POST['public'])) {
$_POST['userGroups'] = array();
if (empty($_REQUEST['userGroups']) || !empty($_REQUEST['public'])) {
$_REQUEST['userGroups'] = array();
}
$o = new Meet_schedule($obj->meet_schedule_id);
$o->setUsers_id(User::getId());
$o->setStatus($_POST['status']);
$o->setPublic($_POST['public']);
$o->setLive_stream($_POST['live_stream']);
$o->setPassword(@$_POST['RoomPasswordNew']);
$o->setTopic(@$_POST['RoomTopic']);
$o->setStarts($_POST['starts']);
$o->setStatus($_REQUEST['status']);
$o->setPublic($_REQUEST['public']);
$o->setLive_stream($_REQUEST['live_stream']);
$o->setPassword(@$_REQUEST['RoomPasswordNew']);
$o->setTopic(@$_REQUEST['RoomTopic']);
$o->setStarts($_REQUEST['starts']);
$o->setName($obj->roomName);
$o->setMeet_code(uniqid());
$meet_schedule_id = $o->save();
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->link = Meet::getMeetLink($meet_schedule_id);
$obj->jwt = Meet::getToken($meet_schedule_id);
$obj->domain = Meet::getDomainURL($meet_schedule_id, true);
//var_dump($obj->domain);
die(json_encode($obj));
?>

View file

@ -15,7 +15,7 @@ if (empty($obj)) {
$serverStatus = Meet::getMeetServerStatus();
$moreJibris = "https://upgrade." . Meet::getServer()['domain'] . "/?webSiteRootURL=" . urlencode($global['webSiteRootURL']) . "&secret=" . Meet::getSecret();
$moreJibris = "#";
$moreJibrisOnclick = "swal('Comming soon');return false;";
$moreJibrisOnclick = "avideoAlert('Comming soon');return false;";
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>

View file

@ -27,9 +27,9 @@
setTimeout(function () {
modal.hidePleaseWait();
if (response.error) {
swal("<?php echo __("Error"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Error"); ?>", response.msg, "error");
} else {
swal("<?php echo __("Thanks"); ?>", response.msg, "success");
avideoAlert("<?php echo __("Thanks"); ?>", response.msg, "success");
}
}, 500);
//

View file

@ -101,7 +101,7 @@ $o = AVideoPlugin::getObjectData("VideoLogoOverlay");
}
reader.readAsDataURL($(input)[0].files[0]);
} 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',
success: function (response) {
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 {
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();
}

View file

@ -114,7 +114,7 @@ if (!User::isAdmin()) {
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableLinks.ajax.reload();
modal.hidePleaseWait();
@ -145,9 +145,9 @@ if (!User::isAdmin()) {
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} 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");
}

View file

@ -164,9 +164,9 @@ class VimeoAPI extends PluginAbstract {
type: 'post',
success: function (response) {
if(response.error){
swal('" . __("Sorry!") . "', response.msg, 'error');
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
}else{
swal('" . __("Congratulations!") . "', response.msg, 'success');
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
}
console.log(response);
modal.hidePleaseWait();
@ -179,14 +179,14 @@ class VimeoAPI extends PluginAbstract {
url: '{$global['webSiteRootURL']}plugin/VimeoAPI/uploadAll.json.php',
success: function (response) {
if(response.error){
swal('" . __("Sorry!") . "', response.msg, 'error');
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
}else{
swal('" . __("Congratulations!") . "', response.msg, 'success');
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
}
console.log(response);
}
});
swal('" . __("Process Start") . "', 'It may take a while', 'warning');
avideoAlert('" . __("Process Start") . "', 'It may take a while', 'warning');
}</script>";
}
return $js;

View file

@ -18,7 +18,7 @@ $obj = AVideoPlugin::getObjectData("PayPalYPT");
if (!response.error) {
document.location = response.approvalLink;
} else {
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
modal.hidePleaseWait();
}
}

View file

@ -19,7 +19,7 @@ $obj = AVideoPlugin::getObjectData("PayPalYPT");
if (!response.error) {
document.location = response.approvalLink;
} else {
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
modal.hidePleaseWait();
}
}

View file

@ -138,7 +138,7 @@ $uid = uniqid();
if (empty($_REQUEST['redirectUri'])) {
?>
$(".walletBalance").text(response.walletBalance);
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
<?php
} else {
?>
@ -147,7 +147,7 @@ if (empty($_REQUEST['redirectUri'])) {
}
?>
} else {
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
}
setTimeout(function () {
modal.hidePleaseWait();

View file

@ -139,13 +139,13 @@ $uid = uniqid();
if (!response.error) {
$(".walletBalance").text(response.walletBalance);
setTimeout(function () {
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Payment complete!"); ?>", "success");
}, 2000);
setTimeout(function () {
location.reload();
}, 5000);
} else {
swal("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Error!"); ?>", "error");
setTimeout(function () {
modal.hidePleaseWait();
}, 500);

View file

@ -138,7 +138,7 @@ $obj = $plugin->getDataObject();
$('#userFormModal').modal('hide');
$("#grid").bootgrid("reload");
} 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();
}

View file

@ -58,9 +58,9 @@ $wallet->setUsers_id(User::getId());
type: 'post',
success: function (response) {
if(!response.error){
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Configuration Saved"); ?>", "success");
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Configuration Saved"); ?>", "success");
}else{
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}
modal.hidePleaseWait();
console.log(response);

View file

@ -145,7 +145,7 @@ if (User::isAdmin()) {
modal.hidePleaseWait();
if (response.error) {
setTimeout(function () {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500);
} else {
$("#grid").bootgrid("reload");

View file

@ -103,11 +103,11 @@ $options = json_decode($obj->addFundsOptions);
modal.hidePleaseWait();
if (response.error) {
setTimeout(function () {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500);
} else {
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);
}
}

View file

@ -102,11 +102,11 @@ $options = json_decode($obj->withdrawFundsOptions);
modal.hidePleaseWait();
if (response.error) {
setTimeout(function () {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500);
} else {
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);
}
}

View file

@ -102,7 +102,7 @@ if (!User::isAdmin()) {
modal.hidePleaseWait();
if (response.error) {
setTimeout(function () {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500);
} else {
$("#grid").bootgrid("reload");

View file

@ -151,11 +151,11 @@ $obj = AVideoPlugin::getObjectDataIfEnabled("YPTWallet");
modal.hidePleaseWait();
if (response.error) {
setTimeout(function () {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500);
} else {
setTimeout(function () {
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Funds successfully transferred"); ?>", "success");
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Funds successfully transferred"); ?>", "success");
}, 500);
}
}

View file

@ -343,9 +343,9 @@ class YouTubeAPI extends PluginAbstract {
type: 'post',
success: function (response) {
if(response.error){
swal('" . __("Sorry!") . "', response.msg, 'error');
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
}else{
swal('" . __("Congratulations!") . "', response.msg, 'success');
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
}
console.log(response);
modal.hidePleaseWait();
@ -358,14 +358,14 @@ class YouTubeAPI extends PluginAbstract {
url: '{$global['webSiteRootURL']}plugin/YouTubeAPI/uploadAll.json.php',
success: function (response) {
if(response.error){
swal('" . __("Sorry!") . "', response.msg, 'error');
avideoAlert('" . __("Sorry!") . "', response.msg, 'error');
}else{
swal('" . __("Congratulations!") . "', response.msg, 'success');
avideoAlert('" . __("Congratulations!") . "', response.msg, 'success');
}
console.log(response);
}
});
swal('" . __("Process Start") . "', 'It may take a while', 'warning');
avideoAlert('" . __("Process Start") . "', 'It may take a while', 'warning');
}</script>";
}
return $js;

View file

@ -656,7 +656,7 @@ if (User::isAdmin()) {
reader.readAsDataURL($(input)[0].files[0]);
} 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) {
modal.hidePleaseWait();
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();
$("#messageSuccess").fadeIn();
} 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');
}
@ -821,9 +821,9 @@ if (User::isAdmin()) {
type: 'post',
success: function (response) {
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 {
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();
}

View file

@ -138,12 +138,12 @@ $metaDescription = " Contact Form";
success: function (response) {
modal.hidePleaseWait();
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();
$("#messageSuccess").fadeIn();
} 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');
}

View file

@ -295,9 +295,9 @@ $(document).ready(function () {
url: webSiteRootURL + 'objects/configurationClearCache.json.php',
success: function (response) {
if (!response.error) {
swal("Congratulations!", "Your cache has been cleared!", "success");
avideoAlert("Congratulations!", "Your cache has been cleared!", "success");
} else {
swal("Sorry!", "Your cache has NOT been cleared!", "error");
avideoAlert("Sorry!", "Your cache has NOT been cleared!", "error");
}
modal.hidePleaseWait();
}
@ -310,9 +310,9 @@ $(document).ready(function () {
url: webSiteRootURL + 'objects/configurationClearCache.json.php?FirstPage=1',
success: function (response) {
if (!response.error) {
swal("Congratulations!", "Your First Page cache has been cleared!", "success");
avideoAlert("Congratulations!", "Your First Page cache has been cleared!", "success");
} 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();
}
@ -325,12 +325,12 @@ $(document).ready(function () {
url: webSiteRootURL + 'objects/configurationGenerateSiteMap.json.php',
success: function (response) {
if (!response.error) {
swal("Congratulations!", "File created!", "success");
avideoAlert("Congratulations!", "File created!", "success");
} else {
if (response.msg) {
swal("Sorry!", response.msg, "error");
avideoAlert("Sorry!", response.msg, "error");
} else {
swal("Sorry!", "File NOT created!", "error");
avideoAlert("Sorry!", "File NOT created!", "error");
}
}
modal.hidePleaseWait();
@ -785,4 +785,17 @@ function setCurrentTime(currentTime) {
setCurrentTime(currentTime);
}, 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');
}

View file

@ -210,9 +210,9 @@
success: function (response) {
if (response.status === "1") {
$("#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 {
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();
}
@ -259,9 +259,9 @@
if (response.status) {
$('#categoryFormModal').modal('hide');
$("#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 {
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();
}

View file

@ -85,9 +85,9 @@ if (!User::canUpload()) {
success: function (response) {
console.log(response);
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
} 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();
}

View file

@ -98,9 +98,9 @@
success: function (response) {
if (response.status === "1") {
$("#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 {
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();
}
@ -133,9 +133,9 @@
if (response.status === "1") {
$('#groupFormModal').modal('hide');
$("#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 {
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();
}

View file

@ -478,7 +478,7 @@ print AVideoPlugin::addUserBtnJS();
$('#updateUserForm').submit(function (evt) {
evt.preventDefault();
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();
return false;
}
@ -516,11 +516,11 @@ print AVideoPlugin::updateUserFormJS();
$('#userFormModal').modal('hide');
$("#grid").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){
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
} 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();
}

View file

@ -692,7 +692,7 @@ if (empty($advancedCustom->disableHTMLDescription)) {
html: true
});
} 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 === "") {
$("#grid").bootgrid("reload");
} 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();
}
@ -1218,7 +1218,7 @@ if (empty($advancedCustom->disableHTMLDescription)) {
html: true
});
} 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();
@ -1641,7 +1641,7 @@ echo AVideoPlugin::getManagerVideosReset();
})
.then((willDelete) => {
if (willDelete) {
swal("Deleted!", {
avideoAlert("Deleted!", {
icon: "success",
});
modal.showPleaseWait();

View file

@ -356,9 +356,9 @@ if(empty($video['created'])){
success: function (response) {
modal.hidePleaseWait();
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 {
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');
}

View file

@ -147,7 +147,7 @@ if(!empty($_GET['siteRedirectUri'])){
// password dont match
if (pass1 != '' && pass1 != pass2) {
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;
} else {
$.ajax({
@ -185,9 +185,9 @@ if(!empty($_GET['siteRedirectUri'])){
} else {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
} 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();

View file

@ -61,9 +61,9 @@
url: "<?php echo $global['webSiteRootURL'] ?>objects/userVerifyEmail.php?users_id=<?php echo $user->getBdId(); ?>"
}).done(function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
} else {
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Verification Sent"); ?>", "success");
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Verification Sent"); ?>", "success");
}
modal.hidePleaseWait();
});
@ -221,7 +221,7 @@ AVideoPlugin::getMyAccount(User::getId());
reader.readAsDataURL($(input)[0].files[0]);
} 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) {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
modal.hidePleaseWait();
} 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();
}
}
@ -330,7 +330,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
$('#updateUserForm').submit(function (evt) {
evt.preventDefault();
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();
return false;
}
@ -341,7 +341,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
// password dont match
if (pass1 != '' && pass1 != pass2) {
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;
} else {
setTimeout(function () {

View file

@ -36,7 +36,7 @@ if (empty($_COOKIE) && get_browser_name()!=='Other (Unknown)') {
}, 1000);
$(document).ready(function () {
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>
@ -191,7 +191,7 @@ if (empty($_COOKIE) && get_browser_name()!=='Other (Unknown)') {
<?php
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
}
?>
@ -206,7 +206,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
var email = $("#inputUser").val();
if (!validateEmail(email) && email.toLowerCase() !== "admin") {
// 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;
}
<?php
@ -221,9 +221,9 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
if (!response.isLogged) {
modal.hidePleaseWait();
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.error, "error");
avideoAlert("<?php echo __("Sorry!"); ?>", response.error, "error");
} 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) {
$("#btnReloadCapcha").trigger('click');
@ -239,7 +239,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
$('#forgotPassword').click(function () {
var user = $('#inputUser').val();
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;
}
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',
success: function (response) {
if (response.error) {
swal("<?php echo __("Error"); ?>", response.error, "error");
avideoAlert("<?php echo __("Error"); ?>", response.error, "error");
} 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();
}

View file

@ -233,7 +233,7 @@ if (User::canSeeCommentTextarea()) {
data: {'comment': comment, 'video': video, 'comments_id': comments_id, 'id': id},
success: function (response) {
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 ($('.grid' + comments_id).hasClass('bootgrid-table')) {
$('.grid' + comments_id).bootgrid('reload');
@ -246,13 +246,13 @@ if (User::canSeeCommentTextarea()) {
}
addCommentCount(comments_id, 1);
} 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();
}
});
} 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) {
$(t).closest('tr').fadeOut();
} 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();
}