This is the new version of the PhileCMS admin.
You can download the old release here. Please note, I never finished the 0.9 version. It will not be supported anymore..
At the root of your Phile installation:
git clone https://github.com/james2doyle/phileAdmin plugins/phile/adminPanel
Or if you are downloading, make sure the folder is named adminPanel
and drop it into plugins/phile/
. Then move upload-htaccess
to content/uploads/.htaccess
.
You also need add the plugin to your config:
'phile\\adminPanel' => array('active' => true)
Just go to /admin
on your phile install and you will see it load up! The session is not enabled while this plugin is in development.
The users data is fake.I am no security expert but maybe there is a good way to do users with Phile without using plaintext passwords and logins. Maybe something with single sign-on style?
// are we using the adminPanel plugin?
if($config['plugins']['phile\\adminPanel']['active']) {
// merge config with json if PhileAdmin is installed
if (file_exists('config.json')) {
$config = array_merge(
$config,
json_decode(file_get_contents('config.json'), true)
);
}
// merge plugins with json if PhileAdmin is installed
if(file_exists('config_plugins.json')) {
$config['plugins'] = array_merge(
$config['plugins'],
json_decode(file_get_contents('config_plugins.json'), true)
);
}
}
return $config;
Before you create any issues or write off this plugin as broken, please check the error_log
file located in the adminPanel root.
Here is what is working so far:
- new temporary page
- view pages
- open page in editor
- delete pages
- view multiple photo info
- download photo
- upload photo
- delete multiple photos
- delete multiple files
- view files
- upload files
- list plugin status and info
- there is a plugin toggle, but I am not sure if that is feasible at the moment
- list templates
- edit/save templates
- list config
- create and save key => values
- delete items
- list users
- create and save
- auto-create when no users are present
- delete users
- list settings
- list required fields for new pages
- create, save and delete fields