Created
June 23, 2013 15:17
-
-
Save LukasReschke/5845385 to your computer and use it in GitHub Desktop.
Load a JS file in ownCloud for not logged-in users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!\OC_User::isLoggedIn()) { | |
\OCP\Util::addscript('loginscript', 'login'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<info> | |
<id>loginscript</id> | |
<name>Login Script</name> | |
<description>Loads an additional JS file for not logged in users</description> | |
<licence>AGPL</licence> | |
<require>4.93</require> | |
</info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("blah"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment