repositories
/
Project_webapp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the database schema.
[Project_webapp.git]
/
index.php
diff --git
a/index.php
b/index.php
index 9dc9e0bff683e93bc416467c952f29a9e88095af..33db471dab67fc5cf393608b7f00565ffa2f8f09 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-13,7
+13,7
@@
if (!isset($page)) {
}
/**
}
/**
- * form MUST have an hidden field named 'form' to enable proper routing
+ * form MUST have an hidden field named 'form' to enable proper routing
here
*/
$form = filter_input(INPUT_POST, 'form', FILTER_SANITIZE_URL);
$is_form = true;
*/
$form = filter_input(INPUT_POST, 'form', FILTER_SANITIZE_URL);
$is_form = true;
@@
-22,6
+22,12
@@
if (!isset($form)) {
$form = "";
}
$form = "";
}
+//var_dump($_SESSION);
+
+/**
+ * [get_action_type description]
+ * @return [type] [description]
+ */
function get_action_type() {
global $is_page, $is_form;
function get_action_type() {
global $is_page, $is_form;
@@
-36,6
+42,11
@@
function get_action_type() {
}
}
}
}
+/**
+ * [get_url_action description]
+ * @param [type] $action_type [description]
+ * @return [type] [description]
+ */
function get_url_action($action_type) {
global $page, $form;
function get_url_action($action_type) {
global $page, $form;
@@
-70,6
+81,12
@@
function validate_url_action($action_name)
return $configs['actions'][0];
}
return $configs['actions'][0];
}
+/**
+ * [display_action description]
+ * @param [type] $action_name [description]
+ * @param [type] $action_type [description]
+ * @return [type] [description]
+ */
function display_action($action_name, $action_type)
{
global $configs;
function display_action($action_name, $action_type)
{
global $configs;