Location: PHPKode > projects > WorkOrder TS > workorder-ts/include/workorder_function_getusersettings.inc.php
<?php function _L00RE($SSID,$_JCIOI,$CONF) { $_Il6fL=NULL;require $_JCIOI.'config-user.inc.php';require $_JCIOI.'conn-string-user.inc.php';require_once $_JCIOI.'workorder_function_isuserauthenticated.inc.php';if( _L00CR($SSID,$_JCIOI,$_Il6fL,$CONF)=="FAILED" ) { $_Ilo8J=addslashes($_SERVER['PHP_SELF']);$_IlC1t=addslashes($_SERVER['QUERY_STRING']);$TargetQueryPass=$_IlC1t;$_JCjjo="SSID=$SSID";echo("<br />FindThis: $_JCjjo <br />In String: $TargetQueryPass");$TargetQueryPass=str_replace($_JCjjo,'',$TargetQueryPass);$TargetQueryPass=str_replace('=','\=',$TargetQueryPass);$TargetQueryPass=str_replace('&','---',$TargetQueryPass);echo($_Ilo8J);echo("<br>");echo($_IlC1t);die('<html>     <head>     <meta http-equiv="refresh" content="0; url=login.php?TargetURLPass='.$_Ilo8J.'&amp;TargetQueryPass='.$TargetQueryPass.'">      </head>      <body>     Connecting ...     </body>     </html>');} $_JCJIt="select ".$CONF['TableNameUsers'].".User_rights,   ".$CONF['TableNameUsers'].".User_shop,".$CONF['TableNameUsers'].".User_name,   ".$CONF['TableNameUsersLogin'].".Login_ssid,".$CONF['TableNameUsers'].".User_ID    from ".$CONF['TableNameUsers'].",".$CONF['TableNameUsersLogin']." WHERE ".$CONF['TableNameUsers'].".User_ID = ".$CONF['TableNameUsersLogin'].".Login_USER_ID AND ".$CONF['TableNameUsersLogin'].".Login_ssid='$SSID'";$_JCJ6l=mysql_query($_JCJIt,$conn) or die("Unable to get User Information Error 324235das<br> $sql");$_JCJf6=mysql_fetch_array($_JCJ6l);$_JCII1[0]=$_JCJf6['User_rights'];$_JCII1[1]=$_JCJf6['User_shop'];$_JCII1[2]=$_JCJf6['User_name'];$_JCII1[3]=$_JCJf6['User_ID'];return $_JCII1;} ?>
Return current item: WorkOrder TS