Removed references to p_profile variable

This commit is contained in:
Stan Pinte 2005-03-06 14:52:14 +00:00
parent 92cfa223cb
commit 66efd91797
5 changed files with 6 additions and 25 deletions

View file

@ -173,7 +173,7 @@ echo '</TR>';
?>
<?
// Get all the fiches
echo '<tr> <td colspan="2"><H2 class="info"> Fiches (profile user)</H2></TD></TR>';
echo '<tr> <td colspan="2"><H2 class="info"> Fiches </H2></TD></TR>';
$Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label");
$num=pg_NumRows($Res);

View file

@ -124,7 +124,7 @@ if ( isset ($_POST["PHPSESSID"] ) ) {
$search='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$sessid."','not')\">";
echo '<DIV CLASS="ccontent">';
echo '<H2 class="info"> Fiches (profile comptable)</H2>';
echo '<H2 class="info"> Fiches </H2>';
echo '<FORM ACTION="jrn_detail.php" METHOD="POST">';
echo '<INPUT TYPE="HIDDEN" NAME="JRN_UPD">';
echo '<TABLE>';
@ -196,7 +196,7 @@ echo "<TR><TD> Code </TD><TD>".$l_line['jrn_def_code']."</TD></TR>";
echo '</TABLE>';
// Get all the fiches
echo '<H2 class="info"> Fiches (profile user)</H2>';
echo '<H2 class="info"> Fiches </H2>';
$Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label");
$num=pg_NumRows($Res);

View file

@ -40,7 +40,7 @@ include_once ("class_user.php");
$User=new cl_user($rep);
$User->Check();
Redirect($_REQUEST["PHPSESSID"]);
echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=user_login.php?PHPSESSID=" . $_REQUEST["PHPSESSID"] . "\">";
} else
{
@ -49,7 +49,7 @@ $User->Check();
$User=new cl_user($rep);
$User->Check();
Redirect($_REQUEST["PHPSESSID"]);
echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=user_login.php?PHPSESSID=" . $_REQUEST["PHPSESSID"] . "\">";
// }
}
html_page_stop();

View file

@ -37,10 +37,6 @@ if ( isset ( $_POST['style_user']) ) {
$_SESSION['use_theme']=$_POST['style_user'];
}
// // Met à jour le profil
if ( isset ( $_POST['profile_user']) ) {
$_SESSION['use_usertype']=$_POST['profile_user'];
}
html_page_start($_SESSION['use_theme']);

View file

@ -250,22 +250,7 @@ function GetUserType($p_user)
$Ret=pg_fetch_row($Res,0);
return $Ret[0];
}
/* function Redirect
* Purpose : redirect following the user's profile
*
* parm :
* - php_session PHPSESSID
* gen :
* - none
* return: none
*/
function Redirect($php_session) {
include_once("debug.php");
echo_debug(__FILE__,__LINE__,"Session is $php_session");
$URL="user_login.php";
echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=$URL?PHPSESSID=$php_session\">";
}
/* function ShowItem($p_array) */
/* purpose : store the string which print */
/* the content of p_array in a table */