| version 1.5, 2006/11/09 10:23:12 |
version 1.6, 2006/11/09 10:27:11 |
| Line 94 function ezin_admin_config_main($restric |
|
| Line 94 function ezin_admin_config_main($restric |
|
| global $ezin_sys; |
global $ezin_sys; |
| global $ezin_db_handle; |
global $ezin_db_handle; |
| global $ezin_admin_config_items; |
global $ezin_admin_config_items; |
| global $HTTP_SERVER_VARS; |
|
| |
|
| $PHP_SELF = @$HTTP_SERVER_VARS['PHP_SELF']; |
|
| $action = Platon::get_cgi_var('action'); |
$action = Platon::get_cgi_var('action'); |
| $cancel = Platon::get_cgi_var('cancel'); |
$cancel = Platon::get_cgi_var('cancel'); |
| $cancel_view = Platon::get_cgi_var('cancel_view'); |
$cancel_view = Platon::get_cgi_var('cancel_view'); |
| Line 131 function ezin_admin_config_main($restric |
|
| Line 129 function ezin_admin_config_main($restric |
|
| if (0) { |
if (0) { |
| $ezin_cfg = ezin_get_config(); |
$ezin_cfg = ezin_get_config(); |
| } else { |
} else { |
| header('Location: http://'.$HTTP_SERVER_VARS['HTTP_HOST'] |
header('Location: http://'.$_SERVER['HTTP_HOST'] |
| .$HTTP_SERVER_VARS['SCRIPT_NAME'].'?saved='.$saved); |
.$_SERVER['SCRIPT_NAME'].'?saved='.$saved); |
| exit; |
exit; |
| } |
} |
| } |
} |
| } |
} |
| |
|
| echo '<form class="pme-form" method="post" action="',htmlspecialchars($PHP_SELF),'">',"\n"; |
echo '<form class="pme-form" method="post" action="',htmlspecialchars($_SERVER['PHP_SELF']),'">',"\n"; |
| |
|
| switch ($action) { |
switch ($action) { |
| case 'create': |
case 'create': |
| Line 395 function ezin_admin_config_main($restric |
|
| Line 393 function ezin_admin_config_main($restric |
|
| |
|
| echo '</td>',"\n"; |
echo '</td>',"\n"; |
| echo '<td class="pme-help-',$count % 2,'"><small>',"\n"; |
echo '<td class="pme-help-',$count % 2,'"><small>',"\n"; |
| echo '<a href="',$PHP_SELF,'?action=help'; |
echo '<a href="',$_SERVER['PHP_SELF'],'?action=help'; |
| echo '&option=',$row['a_key'],'">'; |
echo '&option=',$row['a_key'],'">'; |
| echo '<small>Help</small></a>'; |
echo '<small>Help</small></a>'; |
| if (1 && $ezin_admin_config_items[$row['a_key']]['disabled_eval']) { |
if (1 && $ezin_admin_config_items[$row['a_key']]['disabled_eval']) { |
| Line 403 function ezin_admin_config_main($restric |
|
| Line 401 function ezin_admin_config_main($restric |
|
| if ($row['type'] == 1) { |
if ($row['type'] == 1) { |
| if (! $restricted) { |
if (! $restricted) { |
| echo ' | '; |
echo ' | '; |
| echo '<a href="',$PHP_SELF,'?action=edit'; |
echo '<a href="',$_SERVER['PHP_SELF'],'?action=edit'; |
| echo '&option=',$row['a_key'],'">'; |
echo '&option=',$row['a_key'],'">'; |
| echo '<small>Edit</small></a>'; |
echo '<small>Edit</small></a>'; |
| } |
} |
| echo ' | '; |
echo ' | '; |
| echo '<a href="',$PHP_SELF,'?action=view'; |
echo '<a href="',$_SERVER['PHP_SELF'],'?action=view'; |
| echo '&option=',$row['a_key'],'">'; |
echo '&option=',$row['a_key'],'">'; |
| echo '<small>View</small></a>'; |
echo '<small>View</small></a>'; |
| if (! $restricted) { |
if (! $restricted) { |
| echo ' | '; |
echo ' | '; |
| echo '<a href="',$PHP_SELF,'?action=delete'; |
echo '<a href="',$_SERVER['PHP_SELF'],'?action=delete'; |
| echo '&option=',$row['a_key'],'">'; |
echo '&option=',$row['a_key'],'">'; |
| echo '<small>Delete</small></a>'; |
echo '<small>Delete</small></a>'; |
| } |
} |
| } else { |
} else { |
| if (! $restricted) { |
if (! $restricted) { |
| echo ' | '; |
echo ' | '; |
| echo '<a href="',$PHP_SELF,'?action=create'; |
echo '<a href="',$_SERVER['PHP_SELF'],'?action=create'; |
| echo '&option=',$row['a_key'],'">'; |
echo '&option=',$row['a_key'],'">'; |
| echo '<small>Create</small></a>'; |
echo '<small>Create</small></a>'; |
| } |
} |