Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Spory problem z domeną
toomay
post
Post #1





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 23.04.2007

Ostrzeżenie: (0%)
-----


Witam mam domenę w nazwa.pl którą przekierowałem na pewien adres i problem w tym że nie przechodzę walidacji po wpisaniu domeny ponieważ walidator nie widzi zawartości strony tylko to:

Kod
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
        "http://www.w3.org/TR/REC-html40/frameset.dtd">
<html>
<head>
  <title>jakiś tytuł (nie taki jak trzeba)</title>
  <script type="text/javascript">
  //<!--

    var display = false;

    var cookieEnabled = true;

      function __addFlash(src, width, height, bgcolor, wmode){
    
        if (!bgcolor) bgcolor='';
        var _f='';
        _f =  '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ';
        _f += 'WIDTH="'+width+'" HEIGHT="'+height+'">';
        _f += '<PARAM NAME="movie" VALUE="'+src+'"><PARAM NAME="quality" VALUE="high">';
        _f += '<PARAM NAME="bgcolor" VALUE="'+bgcolor+'">';
        if(wmode!=null) _f += '<PARAM NAME="wmode" VALUE="'+wmode+'">';
        _f +='<PARAM NAME="scale" VALUE="noscale">';
        _f += '<EMBED scale="noscale"  src="'+src+'" WIDTH="'+width+'" HEIGHT="'+height+'" quality="high" ';
        if (wmode) _f += 'wmode="'+wmode+'" ';
        if (bgcolor) _f += 'bgcolor="'+bgcolor+'" ';
        _f += 'TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><\/EMBED>';
        _f += '<\/OBJECT>';
        return _f;
    }
    
    function __addLayer(width, height, left, top, visibility,position, zIndex, name,text,background){
        if(!name) name='_mainWindow';
        if (zIndex==null) zIndex=101;
        if (!visibility) visibility='visible';
        var _l='';
        _l = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ';
        _l += '"http://www.w3.org/TR/html4/loose.dtd"><html><title>Reklama - nazwa.pl<\/title><\/head><body>';
        _l += '<div ';
        _l += 'id="'+name+'" name="'+name+'" style="';
        _l += 'position: '+position+'; ';
        _l += 'background: '+background+'; ';
        _l += 'width: '+width+'px; height: '+height+'px; ';
        if (top!=null) _l += 'top: '+top+'px; '
        if (left!=null) _l += 'left: '+left+'px; ';
        _l += 'z-index: '+zIndex+'; ';
        _l += '">';
        if(text!=null)_l +=text;
        _l += '<\/div><\/body><\/html>';
        return _l;
    }

    function __BanerWindow(src,width,height){        

        if(src=='')return 0;
        this.banerWindow=null;
        this.banerWindow=null;
        this.banerWidth=width;
        this.banerHeight=height;
        var _mf = __addFlash(src,width,height,'white');
        this.baner= __addLayer(width, height, 0, 0, 'visible','absolute',96, 'dic12323re',_mf,'transparent');
        
        this.initWindow = function(){
            var left=(screen.width/2)-(this.banerWidth/2);
            var top =(screen.height/3)- this.banerHeight;
            if(top<=0)top=40;
            var conf="menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no,width="+this.banerWidth+",height="+this.banerHeight+",left="+left+",top="+top;
            this.banerWindow=window.open("","_blank",conf);
            if (typeof this.banerWindow.blur !="undefined" ) {
                this.banerWindow.blur()
            }                        
        }
        
        this.showWindow = function (){        
            this.banerWindow.document.write(this.baner);                                
            this.banerWindow.document.close();                
        }
        
        this.initWindow();
        this.showWindow();    
    }
    
    function setCookie() {
      var date = new Date();
      date.setTime(date.getTime()+(4*60*60*1000));
      
      var curCookie = "visit=1; expires=" + date.toGMTString() + "; path=/";
      document.cookie = curCookie;
    }
    
    function readCookie() {
        if (cookieEnabled == false)
            return null;

        var nameEQ = "visit=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
    }
    
    function correctDate() {

        var today = new Date();
        var todayString = today.getFullYear()+'.';
        
        dm = new String(today.getMonth()+1);
        if (dm.length == 1) dm = '0' + dm;
        dt = new String(today.getDate());
        if (dt.length == 1) dt = '0' + dt;
        todayString = todayString + dm + '.' + dt;
        
        var dates = new Array();
        dates[0] = "2006.09.10-2006.12.31";
        dates[1] = "2006.10.20";
        dates[2] = "2006.08.23";

        for (var i=0;i<dates.length;i++){
            if (dates[i] == todayString)
                return false;
        }
        
        var temp;
        for (var i=0;i<dates.length;i++) {
            temp = dates[i].split('-');
            timeA = new Date(temp[0]);
            timeB = new Date(temp[1]);
            if (timeA <= today && today <= timeB)
                return false;
        }
        
        return true;
    }
    
    if (readCookie()!='1' && correctDate() && display) {
        new __BanerWindow('http://www.ad.netart.pl/URL/actual2.swf',750,550);
        setCookie();
    }
  
  //-->
</script>

</head>
<frameset>
  <frame name="strona" src="http://www.nazwamojejstrony.cos.pl/katalog/" frameborder="0" />
  <noframes>
  <body>
    <div>
    Twoja przeglądarka nie obsługuje ramek.<br>
    Przejdź na adres: <a href="http://www.nazwamojejstrony.cos.pl/katalog/">http://www.nazwamojejstrony.cos.pl/katalog/</a>
    <hr>
    <h6>www.nazwa.pl</h6>
    </div>
  </body>
  </noframes>

</frameset>
</html>


Wiadomość jaką otrzymałem od nazwa.pl:
Cytat
Witam
problemy pojawiające sie przy przekierowaniu domeny na adres URL:
*
brak zdefiniowanych nagłówków
*
brak metatagów
*
brak słów kluczowych zdefiniowanych w kodzie strony
*
brak zdefiniowanego w meta tytułu strony
*
problem z obsługa cookie
*
problem z indeksowaniem strony przez wyszukiwarki

Wszystkie problemy biorą się stąd, że jest to przekierowanie url - na
naszym serwerze otwierana jest wielka ramaka (i definiowane sa nasze
nagłówki http i nagłówki strony, czyli ustawienia klienta giną) i do
niej ściagana jest zawartość ze zdefiniowanego przez klienta adresu url.
Nie da się tego obejść/wyłaczyć - klient musi mieć w pełni funkcjonalny
serwer aby wysłac swoje nagłówki.


Jest to ogromny problem i niewiem jak sobie z tym poradzić, być może ktoś wie o co chodzi i jak to rozwiązać. Meta tagi , tytuł strony - to wszystko znika !?

Proszę o pomoc, z góry dzięki.

Pozdrawiam
toomay
Go to the top of the page
+Quote Post

Posty w temacie
- toomay   Spory problem z domeną   31.05.2007, 13:22:28
- - Blastereq   Pewnie masz proste przekierowanie "ramkowe...   1.06.2007, 21:38:20


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 19:58