Login-FORM-Action enthält falschen Pfad

Gesperrt
kashban
Beiträge: 44
Registriert: Fr 7. Mai 2004, 10:29
Kontaktdaten:

Login-FORM-Action enthält falschen Pfad

Beitrag von kashban »

Hallo!

Folgende Situation:

Ich habe bei Host Europe ein Webpack, auf dem ein Contenido und ein Forum läuft. Das Contenido (4.6.15) funktioniert soweit prima, inklusive mod rewrite für meine Mandanten.

Ich möchte jedoch auf das Backend per SSL zugreifen, damit meine Passwörter nicht immer im Klartext durchs Netz dengeln.

Bei Host Europe gibt es für Privatanwender keine SSL-Zertifikate, d.h., für meine Domain kashban.de bekomme ich keins. Es gibt aber über die HE-Domain ssl.webpack.de einen SSL-Zugang, der über die URL https://ssl.webpack.de/kashban.de per ssl auf www.kashban.de zeigt.

Um nun per SSL in mein Backend zu kommen, muss ich https://ssl.webpack.de/kashban.de/contenido aufrufen. Das klappt auch, nachdem ich in der contenido/includes/Config.php die absoluten Pfade angepasst habe.

Leider komme ich nicht weiter als bis zum Anmeldebild, da in der Action der login-Form das "kashban.de" vor dem "contenido" geschluckt wird. Die Action-URL lautet dann auf "/contenido/index.php?contenido=xxx" statt "/kashban.de/contenido/index.php?contenido=xxx".

Der Login klappt dann natürlich nicht.

Meine Config.php:

Code: Alles auswählen

/* The root server path to the contenido backend */
$cfg['path']['contenido']               = '/is/htdocs/wp1015689_AZSAKHW0U2/www/contenido/';

/* The web server path to the contenido backend */
$cfg['path']['contenido_fullhtml']      = 'https://ssl.webpack.de/kashban.de/contenido/';

/* The root server path where all frontends reside */
$cfg['path']['frontend']                = '/is/htdocs/wp1015689_AZSAKHW0U2/www';

/* The root server path to the conlib directory */
$cfg['path']['phplib']                  = '/is/htdocs/wp1015689_AZSAKHW0U2/www/conlib/';

/* The root server path to the pear directory */
$cfg['path']['pear']                    = '/is/htdocs/wp1015689_AZSAKHW0U2/www/pear/';

/* The server path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg']                 = '/is/htdocs/wp1015689_AZSAKHW0U2/www/contenido/external/wysiwyg/tinymce2/';

/* The web path to the desired WYSIWYG-Editor */
$cfg['path']['wysiwyg_html']            = 'https://ssl.webpack.de/kashban.de/contenido/external/wysiwyg/tinymce2/';

/* The server path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg']                 = '/is/htdocs/wp1015689_AZSAKHW0U2/www/contenido/external/wysiwyg/';

/* The web path to all WYSIWYG-Editors */
$cfg['path']['all_wysiwyg_html']            = 'https://ssl.webpack.de/kashban.de/contenido/external/wysiwyg/';

Die .htaccess im Contenido-Verzeichnis:

Code: Alles auswählen

<IfModule mod_rewrite.c>
  RewriteEngine off
</IfModule>
Die Config_path.php

Code: Alles auswählen

/* IMPORTANT! Put your modifications into the file "config.local.php"
   to prevent that your changes are overwritten during a system update. */
   
$cfg['path']['contenido_html']          = 'contenido/';

$cfg['path']['statfile']                = 'statfile/';
$cfg['path']['includes']                = 'includes/';

$cfg['path']['xml']                     = 'xml/';
$cfg['path']['images']                  = 'images/';
$cfg['path']['classes']                 = 'classes/';

$cfg["path"]["cronjobs"]				= 'cronjobs/';
$cfg['path']['scripts']                 = 'scripts/';
$cfg['path']['styles']                  = 'styles/';
$cfg["path"]['plugins']				    = 'plugins/';

$cfg['path']['locale']                  = 'locale/';
$cfg['path']['temp']                  	= 'temp/';
$cfg['path']['external']                = 'external/';

$cfg['path']['frontendtemplate']        = 'external/frontend/';
$cfg['path']['templates']               = 'templates/standard/';
$cfg['path']['xml']                     = 'xml/';

$cfg['path']['repository']				= $cfg["path"]['plugins'] . 'repository/';
$cfg['path']['modules']					= 'modules/';

"contenido_html" habe ich schon versucht anzupassen, kein Erfolg.

Der gerenderte HTML-Code der Startseite:

Code: Alles auswählen

<html>
<head>
	<base href="https://ssl.webpack.de/kashban.de/contenido/">
    <title>:: :: :: :: Contenido Login</title>
    <link rel="stylesheet" type="text/css" href="styles/contenido.css"></style>
	<link REL="SHORTCUT ICON" HREF="https://ssl.webpack.de/kashban.de/contenido/favicon.ico">    
    <script type="text/javascript" src="scripts/md5.js"></script>
    
    <script language="javascript"> 
	if(top!=self) 
	{
		top.location="index.php";
	} 
	</script> 
  
    <script type="text/javascript">

        function doChallengeResponse() {

            str = document.login.username.value + ":" +
                  MD5(document.login.password.value) + ":" +
                  document.login.challenge.value;

            document.login.response.value = MD5(str);
            document.login.password.value = "";
            document.login.submit();
        }

    </script>
</head>
<body>
<form name="login" method="post" action="/contenido/index.php?contenido=00b258796f981b2a395a72b43414c759">

<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr height="70" style="height: 70px">
        <td style="background-image:url(images/background.jpg); border-bottom: 1px solid #000000">
            <img src="images/header/regular/conlogo.gif">
        </td>
    </tr>
    <tr height="400">
        <td align="center" valign="middle">
			
            <table cellspacing="0" cellpadding="3" border="0" style="background-color: #F4F4F7; border: 1px solid #747488">
                <tr>
                    <td colspan="2" style="background-color: #a9aec2; border-bottom: 1px solid #747488" class="textw_medium">Contenido 4.6.15 Login</td>
                </tr>
                <tr>
                    <td colspan="2"></td>
                </tr>

                                <tr>
                    <td colspan="2" class="text_error">&nbsp;</td>
                </tr>
                
                <tr>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td align="right" class="text_medium">Login:</td>
                    <td align="left"><input type="text" class="text_medium" name="username" size="20" maxlength="32" value=""></td>
                </tr>
                <tr>
                    <td align="right" class="text_medium">Password:</td>
                    <td align="left"><input type="password" class="text_medium" name="password" size="20" maxlength="32">
                        <input type="hidden" name="vaction" value="login">
                        <input type="hidden" name="formtimestamp" value="1177959121">
                    </td>
                </tr>
                <tr>
                    <td align="right" class="text_medium">Language:</td>
                    <td align="left"><select name="belang" class="text_medium">
					<option value="de_DE" selected="selected">German (Germany)</option><option value="en_US">English (United States)</option><option value="fr_FR">French (France)</option><option value="it_IT">Italian (Italy)</option><option value="nl_NL">Dutch (Netherlands)</option>					</select>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <input type="image" title="Login" alt="Login" src="images/but_ok.gif">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</form>

<script type="text/javascript">

    if (document.login.username.value == '') {
        document.login.username.focus();
        
    } else {
        document.login.password.focus();
        
    }

</script>
<!-- $Date: 2006/10/05 23:50:14 $ -->
</body>
</html>

Echt merkwürdig: Bei <base href=...> stimmt der Pfad, in der Action dann wieder nicht.

Was übersehe ich?

Vielen Dank!

Jürgen
emergence
Beiträge: 10653
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence »

viellicht findest du hier einen verwertbaren tipp
-> http://contenido.org/forum/viewtopic.php?t=13376
*** make your own tools (wishlist :: thx)
kashban
Beiträge: 44
Registriert: Fr 7. Mai 2004, 10:29
Kontaktdaten:

Beitrag von kashban »

emergence hat geschrieben:viellicht findest du hier einen verwertbaren tipp
-> http://contenido.org/forum/viewtopic.php?t=13376
Ah, danke, den habe ich nicht gefunden. Ich probiere das mal aus.
Gesperrt