From: Jimy N. <Ji...@th...> - 2001-03-05 00:05:53
|
I'm having the same problem as Comharsa. Could someone please help me asap my emailing me at ji...@th... I have downloaded and installed the helpdesk and database successfully, but cannot get past the first page. I followed the install instructions and amended the general.conf.php and db.conf.php files as needed. They seem to be working ok, but this is the problem I am having. When I go to the first page I get the login page. Using the admin::admin combination I get to the next page with all of the options, with admin being shown as logged in.. Similarly, if I use the test::test combination I get the second page with a reduced amount of options. However, if I click on any of the options, using either login, it takes me back to the login page where I am shown as not logged in and have to re-enter the username and password. I end up going round in circles. The URL shows the necessary addition in the form of "/index.php?whattodo=adddepartment" but it doesn't seem to be taking any notice of it. The db is on a different server to the helpdesk, but as it is recognising the user::password combination it is obviously set up OK. I am relatively new to php and mysql so may well be missing something basic, so any ideas would be most welcome. Jimy Nguyen |
From: Are W. <are...@ly...> - 2001-03-05 09:28:08
|
Jimy Nguyen [Ji...@th...] writes: |I'm having the same problem as this guy -> "Comharsa". |Could someone please help me asap my emailing me at |ji...@th... |I have downloaded and installed the helpdesk and database successfully, but |cannot get past the first page. I followed the install instructions and |amended the general.conf.php and db.conf.php files as needed. They seem to |be working ok, but this is the problem I am having. When I go to the first |page I get the login page. Using the admin::admin combination I get to the |next page with all of the options, with admin being shown as logged in.. |Similarly, if I use the test::test combination I get the second page with a |reduced amount of options. |However, if I click on any of the options, using either login, it takes me |back to the login page where I am shown as not logged in and have to |re-enter the username and password. I end up going round in circles. The URL |shows the necessary addition in the form of |"/index.php?whattodo=adddepartment" but it doesn't seem to be taking any |notice of it. |The db is on a different server to the helpdesk, but as it is recognising |the user::password combination it is obviously set up OK. I am relatively |new to php and mysql so may well be missing something basic, so any ideas |would be most welcome. Jimmy, You're not mentioning your browser config, but I'm guessing Internet Explorer. I've experienced the same problems earlier, and it seems to be a version/feature conflict between apache/php on the server side, and clients running IE. I've tested a few scripts on a php-4.04-pl1/apache 1.3.17 server, and all versions of IE (4+) worked flawlessly. OTOH, apache 1.3.19 and pre-4.04 php-versions produced the errors you mention above. I'd suggest you update php/apache. Or as an intermediary solution, you could always run Netscape. Never had any problems there. Rgds, Are Jimy Nguyen |
From: Comharsa <com...@cl...> - 2001-03-05 11:20:35
|
At 09:31 AM 5/3/01, Are Westby found time to write: >I'd suggest you update php/apache. Or as an intermediary solution, you could >always run Netscape. Never had any problems there. In case you aren't able to update these, I found a fix at the sourceforge website. Change the files includes/cookie.inc.php and config/general.conf.php to read as follows: cookie.inc.php: <?php // SET COOKIE INFO // cookie.inc.php -- modified by Jay Kramer (ja...@mo...) if (isset($authentication)) { $time = mktime()+g_cookietimeout; $date = date("l, d-M-y H:i:s", ($time)); // Make a IE5.01compatible date/time.. setcookie("status", $status, $date, $g_base_path, $g_domain); // IE5.01 is picky about the base path nad domain, if they are missing, there is a good chance the cookie will not get set.. setcookie("user", $user, $date, $g_base_path, $g_domain); // setcookie("txtUsername", $txtUsername, $date, $g_base_path, $g_domain); setcookie("group", $group, $date, $g_base_path, $g_domain); setcookie("authentication", $authentication, $date, $g_base_path, $g_domain); setcookie("laston", $laston, $date, $g_base_path, $g_domain); } else { $time = mktime()+g_cookietimeout; $date = date("l, d-M-y H:i:s", ($time)); setcookie("status", "Logged In", $date,$g_base_path, $g_domain); setcookie("user", $txtUsername, $date, $g_base_path, $g_domain); // setcookie("txtusername", $txtUsername, $date, $g_base_path, $g_domain); setcookie("group", $row[4], $date, $g_base_path, $g_domain); setcookie("authentication", "YES", $date, $g_base_path, $g_domain); setcookie("laston", $row[6], $date, $g_base_path, $g_domain); } ?> general.conf.php: <?php //general configuration $version = ".04.4"; //Version Number $g_title = "PHP Help Desk"; //Title of your helpdesk $g_helpdesk_email = "web...@yo..."; //Email of your helpdesk $g_mailservername = "mail.yourcompanys.smtpserver.com"; //SMTP Mail server $g_cookietimeout = "1200"; //Timeout for cookies $g_refreshtime = "600"; //Refresh time for viewall // If you are using http://someaddress.com/phphelpdesk, then you must set the // base url to "http://someaddress.com/phphelpdesk/" Notice the '/' at the end // you must put that in there. If you are using a virtual host such as // http://phphelpdesk.somecompany.com, then you can just leave it empty with // the quotes touching ""; $g_base_url = "http://someaddress.com/phphelpdesk/"; //base url location // you HAVE to set your domain name here, with no HTTP: // or / at the end or anything... $g_domain = "someaddress.com"; // this is the path from the last part of the $g_base_url // parameter. If there is no path, set this to "/"; NOTICE // THE BEGINNING AND ENDING /'s!! $g_base_path = "/phphelpdesk/"; ?> Thanks to Jay Kramer and someone who didn't leave their name. It now works for me using IE5. HTH Brian com...@cl... |
From: Are W. <are...@ly...> - 2001-03-13 12:02:38
|
|hey Are, | |I'm still havin the same problem with phphelpdesk, ie keep goin around in |circles on the client side, after logging in. I'm running IE5.5 and am not |receiving any cookies by the server. | |I've tried updating cookie.inc.php and general.conf.php while running |php-4.04-pl1/apache 1.3.17. I cant even us IE5 on the client. There are no |problems with using Netscape though. I can never receive a cookie from the |server while running any version of IE. You say you tried updating some files. Did you use Brian Razzaque's proposed mod? (Which works perfectly btw. Thx Brian! :) I'll list it here in case you didn't get it the first time: (line breaks might be a bit freaky, adjust as necessary.) Remove the quote marks from the code before running it.. To fix this, make the following modifications to includes/logout.inc.php: logout.inc.php: |<?php //Logout script created by Seek3r | //Modified by Brian Razzaque (raz...@vm...) | | $time = mktime(); | $date = date("l, d-M-y H:i:s", ($time)); | setcookie("status", "", $date, $g_base_path, $g_domain); | setcookie("user", "", $date, $g_base_path, $g_domain); | setcookie("group", "", $date, $g_base_path, $g_domain); | setcookie("authentication", "", $date, $g_base_path, $g_domain); | setcookie("laston", "", $date, $g_base_path, $g_domain); | setcookie("logout", "", $date, $g_base_path, $g_domain); | | unset($status); | unset($user); | unset($group); | unset($authentication); | unset($laston); | unset($logout); | |?> Just make sure that you use it with the code listed below by Jay Kramer. Change the files includes/cookie.inc.php and config/general.conf.php to read as follows: cookie.inc.php: |<?php // SET COOKIE INFO | |// cookie.inc.php -- modified by Jay Kramer (ja...@mo...) | |if (isset($authentication)) { |$time = mktime()+g_cookietimeout; |$date = date("l, d-M-y H:i:s", ($time)); // Make a IE5.01compatible |date/time.. | setcookie("status", $status, $date, $g_base_path, $g_domain); // IE5.01 |is picky about the base path nad domain, if they are missing, there is a |good chance the cookie will not get set.. | setcookie("user", $user, $date, $g_base_path, $g_domain); |// setcookie("txtUsername", $txtUsername, $date, $g_base_path, $g_domain); | setcookie("group", $group, $date, $g_base_path, $g_domain); | setcookie("authentication", $authentication, $date, $g_base_path, |$g_domain); | setcookie("laston", $laston, $date, $g_base_path, $g_domain); |} |else { |$time = mktime()+g_cookietimeout; |$date = date("l, d-M-y H:i:s", ($time)); | setcookie("status", "Logged In", $date,$g_base_path, $g_domain); | setcookie("user", $txtUsername, $date, $g_base_path, $g_domain); |// setcookie("txtusername", $txtUsername, $date, $g_base_path, $g_domain); | setcookie("group", $row[4], $date, $g_base_path, $g_domain); | setcookie("authentication", "YES", $date, $g_base_path, $g_domain); | setcookie("laston", $row[6], $date, $g_base_path, $g_domain); |} | |?> general.conf.php: |<?php //general configuration | |$version = ".04.4"; //Version Number | |$g_title = "PHP Help Desk"; //Title of your helpdesk |$g_helpdesk_email = "web...@yo..."; //Email of your helpdesk |$g_mailservername = "mail.yourcompanys.smtpserver.com"; //SMTP Mail server |$g_cookietimeout = "1200"; //Timeout for cookies |$g_refreshtime = "600"; //Refresh time for viewall | |// If you are using http://someaddress.com/phphelpdesk, then you must set the |// base url to "http://someaddress.com/phphelpdesk/" Notice the '/' at the end |// you must put that in there. If you are using a virtual host such as |// http://phphelpdesk.somecompany.com, then you can just leave it empty with |// the quotes touching ""; |$g_base_url = "http://someaddress.com/phphelpdesk/"; //base url location |// you HAVE to set your domain name here, with no HTTP: |// or / at the end or anything... |$g_domain = "someaddress.com"; |// this is the path from the last part of the $g_base_url |// parameter. If there is no path, set this to "/"; NOTICE |// THE BEGINNING AND ENDING /'s!! |$g_base_path = "/phphelpdesk/"; | |?> Give this a try, and be sure to honor all the instructions as commented in the code. If all else fails, check your settings under "Tools -> Internet Options -> Security" in IE 5.x, specifically looking for any weird cookie settings. HTH, Are Westby -- "'Tis true, no man's an island. But if you tie a bunch of dead guys together, they make a pretty good raft." - Paul Tomblin |