| version 1.2, 2007/03/06 22:28:58 |
version 1.3, 2007/05/05 15:38:28 |
| Line 19 function ezin_admin_bindings_main($perm_ |
|
| Line 19 function ezin_admin_bindings_main($perm_ |
|
| global $ezin_sys; |
global $ezin_sys; |
| global $ezin_cfg; |
global $ezin_cfg; |
| global $ezin_db_handle; |
global $ezin_db_handle; |
| global $HTTP_POST_VARS; |
|
| |
|
| $op_list = array( |
$op_list = array( |
| 'article_bind_theme' => strstr($perm_articles, 'a'), |
'article_bind_theme' => strstr($perm_articles, 'a'), |
| Line 33 function ezin_admin_bindings_main($perm_ |
|
| Line 32 function ezin_admin_bindings_main($perm_ |
|
| |
|
| echo '<form class="pme-form" method="post">',"\n"; |
echo '<form class="pme-form" method="post">',"\n"; |
| |
|
| if (isset($HTTP_POST_VARS['article_bind_theme'])) { |
if (isset($_POST['article_bind_theme'])) { |
| $type = 'article_bind_theme'; |
$type = 'article_bind_theme'; |
| } elseif (isset($HTTP_POST_VARS['article_bind_lang'])) { |
} elseif (isset($_POST['article_bind_lang'])) { |
| $type = 'article_bind_lang'; |
$type = 'article_bind_lang'; |
| } elseif (isset($HTTP_POST_VARS['section_bind_lang'])) { |
} elseif (isset($_POST['section_bind_lang'])) { |
| $type = 'section_bind_lang'; |
$type = 'section_bind_lang'; |
| } else { |
} else { |
| $action = ''; |
$action = ''; |
| isset($HTTP_POST_VARS['bind_remove']) && $action = 'remove'; |
isset($_POST['bind_remove']) && $action = 'remove'; |
| isset($HTTP_POST_VARS['bind_create']) && $action = 'create'; |
isset($_POST['bind_create']) && $action = 'create'; |
| $type = (string) @$HTTP_POST_VARS['type']; |
$type = (string) @$_POST['type']; |
| if ($op_change[$type] && strlen($type) > 0 && strlen($action) > 0) { |
if ($op_change[$type] && strlen($type) > 0 && strlen($action) > 0) { |
| // save action goes here |
// save action goes here |
| ezin_admin_bindings_save($type, $action); |
ezin_admin_bindings_save($type, $action); |
| Line 191 function ezin_admin_bindings_save($type, |
|
| Line 190 function ezin_admin_bindings_save($type, |
|
| global $ezin_sys; |
global $ezin_sys; |
| global $ezin_db_handle; |
global $ezin_db_handle; |
| global $ezin_admin_bindings_triggers; |
global $ezin_admin_bindings_triggers; |
| global $HTTP_POST_VARS; |
|
| |
|
| $ar_rec = @$HTTP_POST_VARS['record']; |
$ar_rec = @$_POST['record']; |
| $ar_bind = @$HTTP_POST_VARS['binding']; |
$ar_bind = @$_POST['binding']; |
| is_array($ar_rec) || $ar_rec = array(); |
is_array($ar_rec) || $ar_rec = array(); |
| is_array($ar_bind) || $ar_bind = array(); |
is_array($ar_bind) || $ar_bind = array(); |
| for ($i = 0; $i < count($ar_rec); $i++) { |
for ($i = 0; $i < count($ar_rec); $i++) { |