-
Notifications
You must be signed in to change notification settings - Fork 0
Admin Access
v0.1.0+ UNAVAILABLE IN v1.0.0
Admin access can make it easier to add and update files for Showpony. Admin access is off by default for security purposes.
To enable admin access, you must do 2 things:
- Set
admin:true
for your Showpony JavaScript object. - Set
protected static $password
to a string (text surrounded by quotes, like "password") in showpony-classes.php
Go to your webpage normally now. If you right-click or tap-hold on the Showpony object, a popup will ask you for a password. Put in the one you set (without the surrounding quotes, so if your password was "password"
type password
).
Now at the bottom of the Showpony object you will see a panel. This panel lets you replace the file, change the date and the title, and add and remove files. You can also logout (or you'll be automatically logged out in 1 day if you don't access the website until then. Every time you access the website logged in your time logged in is extended by 1 day).
To disable admin access, you must do 2 things:
- Set
admin:false
or don't setadmin
for your Showpony JavaScript object. - Set
protected static $password
toNULL
in showpony-classes.php.
Make sure to do them both. The second step is especially essential.
Showpony is not a fortress. Please be smart about your password. If you decide to no longer use the Showpony admin panel, make sure to shut it off using the steps outlined above.
I am not a security expert. You'll be fine using this admin panel, but be wise and don't put yourself under unnecessary risk either.