Skip to content

Admin Access

Josh Powlison edited this page Dec 10, 2018 · 4 revisions

v0.1.0+ UNAVAILABLE IN v1.0.0

Setting it up

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:

  1. Set admin:true for your Showpony JavaScript object.
  2. Set protected static $password to a string (text surrounded by quotes, like "password") in showpony-classes.php

Accessing the admin panel

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).

Shutting it off

To disable admin access, you must do 2 things:

  1. Set admin:false or don't set admin for your Showpony JavaScript object.
  2. Set protected static $password to NULL in showpony-classes.php.

Make sure to do them both. The second step is especially essential.

On security

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.