Page 1 of 1

I have to login twice to acces admin ?

Posted: Sat 6. Mar 2004, 02:08
by ryanpratt
for some reason wen i go to the login.php page and login wen i pres enter is says im logd in on the left but it keepsw me in the same local..

wen i login a second time it sends me throught and all is well, i can deal with double logins, i'll just convince myself that its a securitey mesure..

any ideas :?:

Posted: Sat 6. Mar 2004, 10:20
by pSouper
quit moaning Ryan, some can't get in at all ;)

are you using 'localhost' in your config?
please post your config.inc.php WITHOUT password or username aand we can all have a look for you.

Posted: Sat 6. Mar 2004, 14:00
by Jan212
pSouper is absolute right... is's in the config.inc.php.
please post it...

config.inc.php

Posted: Sat 6. Mar 2004, 18:32
by ryanpratt

Code: Select all

<?

// database values
$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "*******";
$phpwcms["db_pass"]           = "************";
$phpwcms["db_table"]          = "***********";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 0;

// site values
$phpwcms["site"]              = "http://atruehost.com/";
$phpwcms["admin_email"]       = "**************";

// paths
$phpwcms["root"]                = "gotrisports";         //default: ""
$phpwcms["file_path"]         = "phpwcms_filestorage";    //default: "phpwcms_filestorage"
$phpwcms["file_tmp"]          = "phpwcms_tmp";     //default: "phpwcms_tmp"
$phpwcms["templates"]         = "phpwcms_template";    //default: "phpwcms_template"
$phpwcms["dir_thlist"]        = "thumb_list";   //default: "thumb_list"
$phpwcms["dir_preview"]       = "thumb_preview";  //default: "thumb_preview"
$phpwcms["content_path"]      = "content"; //default: "content"
$phpwcms["cimage_path"]       = "images";  //default: "images"
$phpwcms["ftp_path"]          = "phpwcms_ftp";     //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"]      = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"]    = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 538; //max width of the large preview image
$phpwcms["img_prev_height"]   = 400; //max height of the large preview image
$phpwcms["max_time"]          = 1800; //logout after max_time/60 seconds

// other stuff
$phpwcms["compress_page"]     = 0; //if 1 = page compression, 0 = no compression

// debugging timer
$phpwcms["timer"]             = 0; //is for displaying a how long it needs to create

$phpwcms["imagick"]           = 0; //0 = GD,  1 = ImageMagick convert
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"]       = 0;  //whether URL should be rewritable
$phpwcms["wysiwyg_editor"]    = 3;  //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"]        = 1;  //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"]      = "en";  //default language
$phpwcms["charset"]           = "iso-8859-1";  //default charset 'iso-8859-1'

// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"]     = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"]      = '';  //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"]     = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'


?>

Posted: Sat 6. Mar 2004, 22:59
by Brian
$phpwcms["site"] = "http://atruehost.com/";
try changing to

$phpwcms["site"] = "http://www.atruehost.com/";

Posted: Sat 6. Mar 2004, 23:09
by frold
Yes my guess is that it is the problem

Posted: Sun 7. Mar 2004, 16:11
by pSouper
Try changing 'localhost' to the physical drive path or the url of your site.

Posted: Mon 8. Mar 2004, 12:54
by Jörg
hello and by the way:
i am "playing" with the phpwcms on standalone win xp system and i had the same "little" problem.

i changed in "conf.inc.php"

// database values
$phpwcms["db_host"] = "localhost";
...
// site values
$phpwcms["site"] = "http://127.0.0.1/";
...

in
// database values
$phpwcms["db_host"] = "localhost";
...
// site values
$phpwcms["site"] = "http://localhost/";
...

bye jörg

Posted: Sat 18. Dec 2004, 17:01
by CodexX
as i had the same problem and spend a lot of time to fix it, i want to share the solution with you.

unbelievable that it depends only on one character: /

Code: Select all

$phpwcms["root"]              = "/";         //default: ""