ZC version: 1.5.7c
Plugins: Display Logs and MyPlugin (in development)
PHP version: 7.4
Ubuntu 20.04 LAMP with Mariadb
Display logs got stuck in a loop when I tried to delete all logs. I hit the browser stop icon because it was taking so long to delete 6 log files. When I was able to return to the log screen, the first file was over 5 MB in size.
Within the zc_plugins file structure, I was in the process of modifying init_MyPluging.php to try and find a way to get the plugin name and version (for using in my language file definitions). I was going to extract the data by reading the manifest.php file with this code:
On a side note, I would appreciate it if someone could tell me how to get the plugin name and version as constants or variables before the language file definitions are loaded.Code:// $file = fopen("../../../manifest.php", "r"); while (!feof($file)) { //...get name and version... $info = fgets($file); $data = explode('\n', $info); fclose($file); }
Probably should open another question up but thought I'd knock 2 birds out with one post if possible.
Thanks.


Reply With Quote
