' ;
} else {
echo '
' , $name , '
' ;
}
print_r( $value ) ;
echo '' ;
}
}
// =========================================================================
// ERROR CHECKING
// =========================================================================
// -------------------------------------------------------------------------
// Here we should have (eg):-
//
// $_GET = Array(
// [page_name] => great-kiwi-standard-dataset-manager
// [page_key] => 52c10d3d424465.61838577-d7208...52353-452565991
// )
//
// -------------------------------------------------------------------------
//pr( $_GET ) ;
// -------------------------------------------------------------------------
// page_name ?
// -------------------------------------------------------------------------
if ( ! isset( $_GET['page_name'] ) ) {
echo <</apps-api.php
// - - - - - - - - - - - - - - -
// Defines:-
//
// get_plugin_root_dir_basename_raw()
//
// get_plugin_slug_dashed()
// get_plugin_slug_underscored()
// get_plugin_title()
// get_plugin_camel_name()
// get_plugin_version_raw()
// get_plugin_version_alnum()
//
// get_plugin_root_dir()
// convert_root_relative_plugin_pathspec_2_absolute()
// get_plugins_app_defs_dir()
// get_plugins_includes_dir()
// get_single_apps_dot_app_dir()
// get_core_plugapp_dirs()
//
// All in the:-
// greatKiwi_byFernTec_adSwapper_local_v0x1x210_appsAPI
// namespace.
//
// And where:-
// get_core_plugapp_dirs()
//
// returns:-
// array(
// 'plugin_root_dir' => "xxx" ,
// 'plugins_includes_dir' => "xxx" ,
// 'plugins_app_defs_dir' => "xxx" ,
// 'dataset_manager_includes_dir' => "xxx" ,
// 'apps_dot_app_dir' => "xxx" ,
// 'apps_plugin_stuff_dir' => "xxx"
// )
// -------------------------------------------------------------------------
// $fn = '\\greatKiwiwipluginMaker_byFernTec\\get_caller_app_slash_plugins_unique_name' ;
//
// $app_slash_plugin_unique_name = $fn() ;
$app_slash_plugins_unique_dashed_name =
\greatKiwi_byFernTec_adSwapper_local_v0x1x210_appsAPI\get_plugin_slug_dashed()
;
// -------------------------------------------------------------------------
$allowed_page_names = array(
$app_slash_plugins_unique_dashed_name . '-great-kiwi-standard-dataset-manager' => array(
'question_session_specific' => TRUE ,
'question_remote_ip_specific' => TRUE ,
'question_user_agent_specific' => TRUE ,
'question_key_required' => TRUE
) ,
$app_slash_plugins_unique_dashed_name . '-great-kiwi-standard-dataset-manager-add-edit-form' => array(
'question_session_specific' => TRUE ,
'question_remote_ip_specific' => TRUE ,
'question_user_agent_specific' => TRUE ,
'question_key_required' => TRUE
)
) ;
// -------------------------------------------------------------------------
if ( ! array_key_exists( $_GET['page_name'] , $allowed_page_names ) ) {
echo <<