working with new session class

This commit is contained in:
skeeter 2000-09-03 20:25:31 +00:00
parent ea856c8741
commit 9c1ca50d7c
13 changed files with 22 additions and 31 deletions

View File

@ -96,7 +96,7 @@
}
$t->set_var("hidden_vars",$phpgw->session->hidden_var());
$t->set_var("actionurl",$phpgw->link("newaccount.php"));
$t->set_var("lang_add",lang_common("add"));
$t->set_var("lang_search",lang_common("search"));

View File

@ -58,8 +58,7 @@
echo "</td></tr>\n";
}
echo "</form></table><form method=POST action=\"newapplication.php\">"
. $phpgw->session->hidden_var()
echo "</form></table><form method=POST action=\"".$phpgw->link("newapplication.php")."\">"
. "<table border=0 width=45% align=center><tr><td align=left><input type=\"submit\" "
. "value=\"" . lang_common("Add") . "\"></td></tr></table></form>";

View File

@ -122,8 +122,7 @@
$account_status = $phpgw->db->f("status");
?>
<form method="POST" action="editaccount.php">
<?php echo $phpgw->session->hidden_var(); ?>
<form method="POST" action="<?php echo $phpgw->link("editaccount.php"); ?>">
<input type="hidden" name="con" value="<? echo $con; ?>">
<?php
if ($error) {

View File

@ -48,11 +48,11 @@
} else {
$t->set_var("error","");
}
$t->set_var("session_hidden_var",$phpgw->session->hidden_var()
. '<input type="hidden" name="old_app_name" value="'
. $phpgw->db->f("app_name") . '">');
$t->set_var("session_hidden_var","<input type=\"hidden\" "
. "name=\"old_app_name\" value=\""
. $phpgw->db->f("app_name") . "\">");
$t->set_var("form_action","editapplication.php");
$t->set_var("form_action",$phpgw->link("editapplication.php"));
$t->set_var("lang_app_name",lang_admin("application name"));
$t->set_var("lang_app_title",lang_admin("application title"));
$t->set_var("lang_enabled",lang_admin("enabled"));

View File

@ -119,9 +119,8 @@
$phpgw->db->query("select * from groups where group_id='$group_id'");
$phpgw->db->next_record();
$t->set_var("form_action","editgroup.php");
$t->set_var("hidden_vars",$phpgw->session->hidden_var()
. '<input type="hidden" name="group_id" value="' . $group_id . '">');
$t->set_var("form_action",$phpgw->link("editgroup.php"));
$t->set_var("hidden_vars","<input type=\"hidden\" name=\"group_id\" value=\"" . $group_id . "\">");
$t->set_var("lang_group_name",lang_admin("group name"));
$t->set_var("group_name_value",$phpgw->db->f("group_name"));

View File

@ -27,8 +27,7 @@
?>
<form method="POST" action="editheadline.php">
<?php echo $phpgw->session->hidden_var(); ?>
<form method="POST" action="<?php echo $phpgw->link("editheadline.php"); ?>">
<input type="hidden" name="o_con" value="<? echo $con; ?>">
<center>

View File

@ -64,11 +64,11 @@
. "\"> " . lang_common("Delete") . " </a></td>";
}
echo "\n<form method=POST action=\"newgroup.php\">"
. $phpgw->session->hidden_var() . "</table></center>"
echo "\n<form method=POST action=\"".$phpgw->link("newgroup.php")."\">"
. "</table></center>"
. "<table border=0 width=45% align=center><tr><td align=left><input type=\"submit\" "
. "value=\"" . lang_common("Add") . "\"></form><form action=\"groups.php\"></td>"
. $phpgw->session->hidden_var() . "<td align=right>" . lang_common("search") . "&nbsp;"
. "value=\"" . lang_common("Add") . "\"></form><form action=\"".$phpgw->link("groups.php")."\"></td>"
. "<td align=right>" . lang_common("search") . "&nbsp;"
. "<input name=\"query\"></td></tr></form></table>";
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");

View File

@ -38,8 +38,7 @@
echo "<td width=5%><a href=\"".$phpgw->link("viewheadline.php",
"con=".$phpgw->db->f("con"))."\"> ".lang_common("View")." </a> </td></tr>\n";
}
echo "<form method=POST action=\"newheadline.php\">"
. $phpgw->session->hidden_var()
echo "<form method=POST action=\"".$phpgw->link("newheadline.php")."\">"
. "<tr><td colspan=\"5\"><input type=\"submit\" value=\"".lang_common("Add")
. "\"></td></tr></form></table></center>";

View File

@ -90,8 +90,7 @@
$phpgw->common->header();
$phpgw->common->navbar();
?>
<form method="POST" action="newaccount.php">
<?php echo $phpgw->session->hidden_var(); ?>
<form method="POST" action="<?php echo $phpgw->link("newaccount.php"); ?>">
<?php
if ($error) {
echo "<center>" . lang_common("Error") . ":$error</center>";

View File

@ -47,8 +47,8 @@
$t->set_var("error","");
}
$t->set_var("session_hidden_var",$phpgw->session->hidden_var());
$t->set_var("form_action","newapplication.php");
$t->set_var("session_hidden_var","");
$t->set_var("form_action",$phpgw->link("newapplication.php"));
$t->set_var("lang_app_name",lang_admin("application name"));
$t->set_var("lang_app_title",lang_admin("application title"));
$t->set_var("lang_enabled",lang_admin("enabled"));

View File

@ -71,8 +71,8 @@
$t->set_var("error","");
}
$t->set_var("form_action","newgroup.php");
$t->set_var("hidden_vars",$phpgw->session->hidden_var());
$t->set_var("form_action",$phpgw->link("newgroup.php"));
$t->set_var("hidden_vars","");
$t->set_var("lang_group_name",lang_admin("New group name"));
$t->set_var("group_name_value","");

View File

@ -18,9 +18,7 @@
include("../header.inc.php");
if (! $submit) {
?>
<form method="POST" action="newheadline.php">
<?php echo $phpgw->session->hidden_var(); ?>
<form method="POST" action="<?php echo $phpgw->link("newheadline.php"); ?>">
<center>
<table border=0 width=65%>
<tr>

View File

@ -94,8 +94,7 @@
$urlname = $phpgw_info["server"]["webserver_url"]."/admin/nntp.php";
$common_hidden_vars = $phpgw->session->hidden_var() . "\n"
. "<input type=\"hidden\" name=\"start\" value=\"".$start."\">\n"
$common_hidden_vars = "<input type=\"hidden\" name=\"start\" value=\"".$start."\">\n"
. "<input type=\"hidden\" name=\"stop\" value=\""
. ($start + $phpgw_info["user"]["preferences"]["maxmatchs"])."\">\n"
. "<input type=\"hidden\" name=\"tg\" value=\"".$tg."\">\n"