* @copyright 2017 MyAAC * @version 0.0.6 * @link http://my-aac.org */ defined('MYAAC') or die('Direct access not allowed!'); $title = 'Plugin manager'; ?>
Install plugin:


open($targetzip); // open the zip file to extract if ($x === true) { $zip->extractTo($targetdir); // place in the directory with same name $zip->close(); unlink($targetzip); // delete the Zipped file $string = file_get_contents(BASE . 'plugins/' . $name[0] . '.json'); $plugin_info = json_decode($string, true); $message = '

' . $plugin_info['name'] . ' plugin has been successfully installed.

'; } } else $message = '

There was a problem with the upload. Please try again.

'; } else $message = '

The file you are trying to upload is not a .zip file. Please try again.

'; } echo $message; ?> Installed plugins: '; } ?>
Plugin name (Description on hover) Filename Version Author Contact
' . $plugin_info['name'] . '
' . $file . ' ' . $plugin_info['version'] . ' ' . $plugin_info['author'] . ' ' . $plugin_info['contact'] . '