How to create a plugin?
/geniesys/plugins/{pluginname}/index.php
/geniesys/plugins/{pluginname}/tool.php/geniesys/plugins/hello/tool.php<?php
//index.php
$subdir_arr = explode("/", $_SERVER['REDIRECT_URL']);
$mennu_arr = explode("<br />", $c['menu']);
$menu_exist = false;
for ($search_num = 0; $search_num < count($mennu_arr); $search_num++) {
if (trim(strtolower($mennu_arr[$search_num])) == strtolower($subdir_arr[count($subdir_arr) - 1]) ||
trim(strtolower($mennu_arr[$search_num])) == "-".strtolower($subdir_arr[count($subdir_arr) - 1])) {
$menu_exist = true;
}
}
if(strtolower(basename(dirname(__FILE__)))== strtolower($subdir_arr[count($subdir_arr)-1]) && $menu_exist==true){
$c['initialize_tool_plugin'] = true;
$c['tool_plugin'] = strtolower($subdir_arr[count($subdir_arr) - 1]);
}
?>

Last updated