Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:57:00 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155529 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Admin domain don't work with WYSIWYG  (Read 715 times)
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« on: November 16, 2009, 04:28:48 PM »

on a definbe website, i need a more secure environement.

so, to be secure, i've decide to make a subdomain admin like "http://admin.thedomain.com/ that would be the admin
since i'm on a linux server, it was easy

I've renamed the admin folder like "admin_FgR4I8G" (random name to be unfoundable)
created the sub domain (admin.thedomain.com) and create a "symlink" (symbolic link).

and create the config.php like that :
Code:
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_USERNAME', 'testadmin');
define('DB_PASSWORD', 'YuwaxbUS');
define('DB_NAME', 'testadmin');
define('TABLE_PREFIX', '');

define('WB_PATH', dirname(__FILE__));
define('WB_URL', 'http://www.thedomain.com');
define('ADMIN_PATH', WB_PATH.'/admin_FgR4I8G');
define('ADMIN_URL', 'http://admin.thedomain.com');

require_once(WB_PATH.'/framework/initialize.php');

the admin work #1, creating pages, working with all setups etc.

BUT everytime I hit "save" in any module so far, it link back to the admin home page and nothing is saved...
how can we secure the admin ?
the purpose was to make the admin in a ssl environement.
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #1 on: November 16, 2009, 05:03:26 PM »

stupidity will be mine!

ok, the problem is ... bizare but understandable.

since I am logged on admin.thedomain.com I am NOT logged on www.thedomain.com ! Tongue
then when saving, www.thedomain.com say, NOT logged, then redirect me to the admin home page!

the tric i've done, to solve that tiny problem Smiley
create a private "admin" page (remember my admin page is renamed)
this page is code only saying "you are now logged at www.thedomain.com"
but is blank, when you go to "admin.thedomain.com" log in then save something, you are logged at www.thedomain.com and it works! Smiley

now.. only one thing not working... wysiwyg do not display or work properly... :\
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
aldus

Offline Offline

Posts: 1238


« Reply #2 on: November 17, 2009, 11:16:04 AM »

Hello
A little bit confused - have you set the php-error-reporting to "E_ALL & E_STRICT"?
Any messages, any warnings? PHP-Version? WB-Version?
What is not "working" properly? Details? ScreenShoots?

Kind regards
Aldus
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #3 on: November 17, 2009, 02:35:33 PM »

no error whatsoever, just blank wysiwyg
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
aldus

Offline Offline

Posts: 1238


« Reply #4 on: November 17, 2009, 03:27:07 PM »

Hm ... and you have select one unter "advanced options" (instead of "none") ...
Hm ... What PHP Version you are using, does other modules work? Also, changing
the backend-theme brings no result?

Kind regards
Aldus
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #5 on: November 17, 2009, 03:44:35 PM »

yep, i've update the fckeditor
and selected it from the advances fonctions
i've tried without, it work, so it's a "javascript" dont get to it problem :\
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
aldus

Offline Offline

Posts: 1238


« Reply #6 on: November 17, 2009, 03:55:04 PM »

Hm ... Browser? What are the "WebDeveloper-Toolbar" (FF) or "FireBug" (also FF) are "saying",
or warning about? Safari, Opera, IE7 or IE8?

Regards
Aldus
Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1252


« Reply #7 on: November 17, 2009, 04:36:17 PM »

since I am logged on admin.thedomain.com I am NOT logged on www.thedomain.com ! Tongue
then when saving, www.thedomain.com say, NOT logged, then redirect me to the admin home page!

This is resulting from Session/Cookie handling.
If you login from one URL (admin.thedomain.com) your SessionID(SID) will be saved in a Cookie witch is depending from domain(URL)
If you call www.thedomain.com...  there will no Cookie be found for that URL.. so you doesn't receive any valid SessionID...  find no Session.. and WB will show you the pretty 'not logged in'.

There is no ONE--Click solution to solve this problem.

Werner
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #8 on: November 17, 2009, 05:28:48 PM »

i've decide to dump the ssl domain idea and make a untracable folder (simething like /Rt3Sk95ioBY6R) with apache protection + wb admin protection
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #9 on: November 17, 2009, 05:34:43 PM »

i've found out that in some modules, they used relative file location and that would be an ass to repair.

like the fck problem is in the rendered js, it search for file in a relative position
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!