batman take2
This commit is contained in:
parent
56bc55ba02
commit
4514549716
BIN
archive/community.applications-2023.03.04-x86_64-1.txz
Normal file
BIN
archive/community.applications-2023.03.04-x86_64-1.txz
Normal file
Binary file not shown.
@ -90,6 +90,13 @@ else
|
||||
|
||||
$date = (date("n/d"));
|
||||
|
||||
if ( true ) // remove on prod version on uncomment next line
|
||||
//if ( $date == "4/01" )
|
||||
$batMan = (! is_file("/boot/config/plugins/community.applications/IamBatman")) && ($_SESSION['locale'] == "" || $_COOKIE['locale'] == "en_US");
|
||||
else
|
||||
$batMan = false;
|
||||
|
||||
|
||||
$startupDisplayed = is_file($caPaths['startupDisplayed']) ? "true" : "false";
|
||||
if ( $startupDisplayed == "true" && ($_COOKIE['ca_languageSwitch'] ?? false) )
|
||||
$killCookie = "true";
|
||||
@ -815,22 +822,28 @@ $(function(){
|
||||
actionCentreRestoreState = true;
|
||||
setupActionCentre();
|
||||
}
|
||||
if ( true && "<?=$pluginWarning?>" !== "false" && "<?=$firstRun?>" !== "true") {
|
||||
swal({
|
||||
title: "Public Service Announcement",
|
||||
text: "In advance of International Bat Appreciation Day on April 17, Limetech is helping to bring attention to the <a href='https://nationaltoday.com/international-bat-appreciation-day/' target='_blank'>plight of the bats</a>. Would you like to participate?",
|
||||
type: 'info',
|
||||
html: true,
|
||||
showCancelButton: true,
|
||||
showConfirmButton: true,
|
||||
cancelButtonText: "No",
|
||||
confirmButtonText: "Yes"
|
||||
}, function (isConfirm) {
|
||||
if (isConfirm) {
|
||||
$(".mainArea,.menuItems,.sidebar").css("transform","rotateX(180deg)");
|
||||
}
|
||||
});
|
||||
}
|
||||
<? if ( $batMan ): ?>
|
||||
if ( "<?=$pluginWarning?>" !== "false" && "<?=$firstRun?>" !== "true") {
|
||||
$(".mainArea,.menuItems,.sidebar").css("transform","rotateX(180deg) rotateY(180deg)");
|
||||
setTimeout(function() {
|
||||
swal({
|
||||
title: "Public Service Announcement",
|
||||
text: "Thank you for participating in the advance celebrations of <a href='https://nationaltoday.com/international-bat-appreciation-day/' target='_blank'>International Bat Appreciation Day</a>. Would you like to continue the celebrations?",
|
||||
type: 'info',
|
||||
html: true,
|
||||
showCancelButton: true,
|
||||
showConfirmButton: true,
|
||||
cancelButtonText: "No",
|
||||
confirmButtonText: "Yes"
|
||||
}, function (isConfirm) {
|
||||
if (!isConfirm) {
|
||||
$(".mainArea,.menuItems,.sidebar").css("transform","");
|
||||
postNoSpin({action:'batman'});
|
||||
}
|
||||
});
|
||||
},5000);
|
||||
}
|
||||
<? endif; ?>
|
||||
});
|
||||
<?endif;?>
|
||||
function disableSort() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
af47671ed58e93932554dcc5b4a8751b ./Apps.page
|
||||
0ac4e5d88e4f9b1ff2ba248c61c561a9 ./Apps.page
|
||||
106b521c1feebda4d7b3f558cc016cda ./CA_notices.page
|
||||
eb1f0ee4148747c0473e73e4e973994f ./ca_settings.page
|
||||
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
|
||||
6f37a8e88b8b7ff82c8be2cc8d686005 ./include/exec.php
|
||||
40fee66825770960a6d8dcb5ae5d44f6 ./include/exec.php
|
||||
6a2cd1927d391aff2345233a514d7a87 ./include/helpers.php
|
||||
8e053d6cd83fbe2202c13b692beabb4f ./include/paths.php
|
||||
532fffdf939594c143e679da02bd841e ./javascript/libraries.js
|
||||
|
@ -195,6 +195,9 @@ switch ($_POST['action']) {
|
||||
case 'downloadStatistics':
|
||||
downloadStatistics();
|
||||
break;
|
||||
case 'batman':
|
||||
touch("/boot/config/plugins/community.applications/IamBatman");
|
||||
break;
|
||||
###############################################
|
||||
# Return an error if the action doesn't exist #
|
||||
###############################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user