[1983764] get rid of potentially bad constructions

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@99 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2008-06-04 23:35:11 +00:00
parent d7e81cd032
commit b15d39fd97
7 changed files with 9 additions and 8 deletions

View File

@ -91,6 +91,6 @@ if($act == "createdb") {
}
mysql_close($link);
header("Location: ".dirname($_SERVER['PHP_SELF'])."/index.php");
header("Location: $webimroot/install/index.php");
exit;
?>

View File

@ -4,11 +4,14 @@
[+] Number of messages from visitor in history
[+] State "loading" (means user is still loading his window)
[+] Timers on peding users page are ticking now
[!] Company logo link target is now an option in config
[!] Mail encoding fixed (separate option)
[!] Operator/user locale is stored in cookie
[!] localized dates
[!] fixed installing on DB with numeric name
[!] empty and double messages
[!] #1983764
1.0.9
-----

View File

@ -17,7 +17,7 @@ session_start();
require_once(dirname(__FILE__).'/converter.php');
require_once(dirname(__FILE__).'/config.php');
$version = 'v1.0.10/pre1';
$version = 'v1.0.10';
function myiconv($in_enc, $out_enc, $string) {
global $_utf8win1251, $_win1251utf8;

View File

@ -34,7 +34,7 @@ if( !isset($_GET['token']) ) {
take_thread($thread,$operator);
$token = $thread['ltoken'];
header("Location: ".$_SERVER['PHP_SELF']."?thread=$threadid&token=$token");
header("Location: $webimroot/operator/agent.php?thread=$threadid&token=$token");
exit;
}

View File

@ -26,7 +26,7 @@ if( isset($_POST['login']) && isset($_POST['password']) ) {
$target = isset($_SESSION['backpath'])
? $_SESSION['backpath']
: dirname($_SERVER['PHP_SELF'])."/index.php";
: "$webimroot/operator/index.php";
login_operator($operator,$remember);
header("Location: $target");

View File

@ -17,8 +17,6 @@ require_once('../libs/operator.php');
logout_operator();
$target = dirname($_SERVER['PHP_SELF'])."/login.php";
header("Location: $target");
header("Location: $webimroot/operator/login.php");
exit;
?>

View File

@ -59,7 +59,7 @@ if( isset($_POST['login']) && isset($_POST['password']) ) {
} else {
update_operator($agentId,$login,$password,$localname,$commonname);
}
header("Location: ".dirname($_SERVER['PHP_SELF'])."/operators.php");
header("Location: $webimroot/operator/operators.php");
exit;
} else {
$page['formlogin'] = topage($login);