Philosophy and Science of Mind Encyclopedia

[insert_php]
include(getcwd().”/psm-encyclopedia/functions.php”);

psm_header();

if (empty($_GET)) {
psm_welcome();
}
else if (strcmp($_GET[“psm_action”], “search”) == 0) {
psm_search($_GET[“psm_query”]);
}
else if (strcmp($_GET[“psm_action”], “entry”) == 0) {
psm_entry(intval($_GET[“psm_entry_id”]));
}
else if (strcmp($_GET[“psm_action”], “entry_c”) == 0) {
psm_entry_c(intval($_GET[“psm_entry_id”]));
}
else if (strcmp($_GET[“psm_action”], “browse”) == 0) {
psm_browse();
}
else {
echo “this is a problem…”;
}
[/insert_php]