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_add",lang_common("add"));
$t->set_var("lang_search",lang_common("search")); $t->set_var("lang_search",lang_common("search"));

View File

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

View File

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

View File

@ -48,11 +48,11 @@
} else { } else {
$t->set_var("error",""); $t->set_var("error","");
} }
$t->set_var("session_hidden_var",$phpgw->session->hidden_var() $t->set_var("session_hidden_var","<input type=\"hidden\" "
. '<input type="hidden" name="old_app_name" value="' . "name=\"old_app_name\" value=\""
. $phpgw->db->f("app_name") . '">'); . $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_name",lang_admin("application name"));
$t->set_var("lang_app_title",lang_admin("application title")); $t->set_var("lang_app_title",lang_admin("application title"));
$t->set_var("lang_enabled",lang_admin("enabled")); $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->query("select * from groups where group_id='$group_id'");
$phpgw->db->next_record(); $phpgw->db->next_record();
$t->set_var("form_action","editgroup.php"); $t->set_var("form_action",$phpgw->link("editgroup.php"));
$t->set_var("hidden_vars",$phpgw->session->hidden_var() $t->set_var("hidden_vars","<input type=\"hidden\" name=\"group_id\" value=\"" . $group_id . "\">");
. '<input type="hidden" name="group_id" value="' . $group_id . '">');
$t->set_var("lang_group_name",lang_admin("group name")); $t->set_var("lang_group_name",lang_admin("group name"));
$t->set_var("group_name_value",$phpgw->db->f("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"> <form method="POST" action="<?php echo $phpgw->link("editheadline.php"); ?>">
<?php echo $phpgw->session->hidden_var(); ?>
<input type="hidden" name="o_con" value="<? echo $con; ?>"> <input type="hidden" name="o_con" value="<? echo $con; ?>">
<center> <center>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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