Codefinder geht nicht


Internet Homepage, Provider, Newsgroup, Chat etc.

Antwort
 
Themen-Optionen
Alt 05.06.2007, 12:41   #1 (permalink)
Codefinder geht nicht

Ich hab ja so ne Seite http://duck.treffpunkt-dn.de/_grafik/hp_smilies/ da die smilies.htm (ist schon was älter) ... jetzt die Frage warum geht der Codefinder nicht?

Ich hab ja sowas von keine ahnung!!
__________________
Stupid Duck ist offline   Mit Zitat antworten
Alt 05.06.2007, 13:00   #2 (permalink)
AW: Codefinder geht nicht

Du solltest vielleicht den Code Deiner code.php hier zeigen.
An den Code einer PHP-Datei kommt man ja nicht einfach so mal ran, da die Datei immer erst vom Webserver interpretiert wird.

Ich nehm aber mal an das Du nicht per GET auf die Variable zugreifst, und register_globals aus ist.
einfach:
PHP-Code:
 echo "http://duck.treffpunkt-dn.de/_grafik/hp_smilies/images/".$_GET["id"]; 
__________________
Man reiche mir mein LART!
Kein Support bei IT-Fragen via ICQ, Skype, PN oder Email!
(Stammuser ausgenommen)
Xaicon ist offline   Mit Zitat antworten
Alt 05.06.2007, 13:05   #3 (permalink)
AW: Codefinder geht nicht

Die code.php scheint nicht richtig zu funktionieren. Aber ohne Quellcode kann ich das nicht beurteilen. Zeig doch mal was in code.php drinsteht.

/edit
Hätte mir denken können dass Xai schneller ist
__________________
life is great, you just have to look at it from the right perspective
Alp.traum ist offline   Mit Zitat antworten
Alt 05.06.2007, 13:06   #4 (permalink)
AW: Codefinder geht nicht

code.php
PHP-Code:
</head>  
  
<style>  
 .eintrag {    
  border-style:solid;     
  border-color:#818181;  
  border-top-width: 1px;  
  border-right-width: 1px;  
  border-bottom-width: 1px;  
  border-left-width: 1px;   
  font-family: verdana;    
  font-size: 10px;  
 }  
</style>  
  
<body bgcolor="#818181" link="#000000" vlink="#000000" alink="#000000" topmargin="0" style="overflow:hidden;" scrolling="no">
<input class="eintrag" style="background-color:#F3F3F3; color:#000000; width:650px;" maxlength="1000" type="text" noshade name="der_code" value="[img]http://duck.treffpunkt-dn.de/_grafik/hp_smilies/images/<?php echo "$id"?>[/img]">
</body>  
</html>
smiley.php
PHP-Code:
<head>
<title>Duck's Smilies</title>
</head>
<!-- Images -->
  <?php     
     $stream 
opendir('images');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
<!-- Images-1 -->
  <?php     
     $stream 
opendir('images-1');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images-1/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-1/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-1/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>

 <!-- Images-2 -->
  <?php     
     $stream 
opendir('images-2');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images-2/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-2/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-2/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
 
 <!-- Images-3 -->
  <?php     
     $stream 
opendir('images-3');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images-3/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-3/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-3/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
 
 <!-- Images-4 -->
  <?php     
     $stream 
opendir('images-4');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images-4/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-4/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-4/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
 
 <!-- Images-5 -->
  <?php     
     $stream 
opendir('images-5');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images-5/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-5/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-5/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
 
 <!-- Images-6 -->
  <?php     
     $stream 
opendir('images-6');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images-6/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-6/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-6/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
 
  <!-- Images-7 -->
  <?php     
     $stream 
opendir('images-7');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images-7/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-7/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images-7/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
pics.php
PHP-Code:
<html>  
<head>  
<title>stupid-duck's smilie page</title>  
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>  
  
<body bgcolor="#F3F3F3" link="#000000" vlink="#000000" alink="#000000">
<p><font size="2" face="Arial, Helvetica, sans-serif"><strong>Willkommen auf meiner 
  Smiley Page.</strong> Wie ihr seht hab ich jetzt einen Code Finder. Ausserdem hat er mir geholfen das Einbinden der Smilies zu 
  vereinfachen. Vielen Dank!<br>
  <br>
  Klickt auf die Smilies und kopiert den Coder aus dem Finder!</font><br>
  <br>
  <!-- Images -->
  <?php     
     $stream 
opendir('images');     
     
$allowed_img_types = array (1,2,3,4);     
     while (
$datei readdir($stream)) {     
        
$img_info = @getimagesize("images/$datei");     
        if (
in_array($img_info[2],$allowed_img_types)) {     
        
$images_daten[] = $datei;     
        }     
     }        
     
closedir($stream);     
      
     
$i 1;     
     while (list(,
$wert) = each($images_daten)) {     
     if (
$i == 2) {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i 1;        
     }     
     else {     
     print 
"<a href=code.php?id=$wert target=code><img src=\"images/$wert\" alt=\"\" border=\"0\"></a>\n";     
     
$i++;        
     }     
     }     
 
?>
</p>

<p>&nbsp; </p>
<div align="center"></div>
</body>  
</html>
smilies.htm
HTML-Code:
<html>  
<head>  
<title>Duck's Smilies Page</title>  
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
	background-color: #CCCCCC;
}
-->
</style></head> 
 
<frameset rows="24,*" border="0"> 
 <frame src="code.php" border="0" name="code"> 
 <frame src="pics.php" border="0" name="pics"> 
</framset> 
 
</html>
Ich habs damals selber von irgendwem bekommen. *hust* Also ...
__________________
Stupid Duck ist offline   Mit Zitat antworten
Alt 05.06.2007, 13:10   #5 (permalink)
AW: Codefinder geht nicht

So sollte es passen:

code.php:
HTML-Code:
</head>  
  
<style>  
 .eintrag {    
  border-style:solid;     
  border-color:#818181;  
  border-top-width: 1px;  
  border-right-width: 1px;  
  border-bottom-width: 1px;  
  border-left-width: 1px;   
  font-family: verdana;    
  font-size: 10px;  
 }  
</style>  
  
<body bgcolor="#818181" link="#000000" vlink="#000000" alink="#000000" topmargin="0" style="overflow:hidden;" scrolling="no">
<input class="eintrag" style="background-color:#F3F3F3; color:#000000; width:650px;" maxlength="1000" type="text" noshade name="der_code" value="[img]http://duck.treffpunkt-dn.de/_grafik/hp_smilies/images/<?php echo $_GET['id']; ?>[/img]">
</body>  
</html>
Du wolltest in der Zeile "<input ..." die Variable $id ausgeben.
Diese ist aber nicht deklariert, wenn in der PHP-Umgebung die eingenschaft register_globals nicht 1 (true) ist. dann must du per $_GET["id"] oder $_REQUEST["id"] darauf zugreifen, da diese Variable eben per HTTP-GET an den PHP-Script übergeben wird.
__________________
Man reiche mir mein LART!
Kein Support bei IT-Fragen via ICQ, Skype, PN oder Email!
(Stammuser ausgenommen)
Xaicon ist offline   Mit Zitat antworten
Alt 05.06.2007, 13:18   #6 (permalink)
AW: Codefinder geht nicht

Da geeeeeeeyyyttt!!! Geil! Danke Xaicon!
__________________
Stupid Duck ist offline   Mit Zitat antworten
Alt 05.06.2007, 13:30   #7 (permalink)
AW: Codefinder geht nicht

und das war wieder eine Erfolgreiche Mission von Xaicon

Mission successful wir sollten mal son zaehlen machen

Xaicons Missions: 100
successful: 99
failed :1

oder sowas in der Art *g*
__________________
Zitat:
Du bist es gewohnt zu schreien,wenn du kommst? - Brauchst du bei mir nicht,ich hab ne Türklingel
Zitat:
Zitat von: Sigmund Freud (öster. Psychologe & Psychater, 1856-1939)
Die große Frage, die ich trotz meines dreißigjährigen Studiums der weiblichen Seele nicht zu beantworten vermag, lautet: 'Was will eine Frau?
GenX ist offline   Mit Zitat antworten

Alt 05.06.2007, 14:22   #8 (permalink)
AW: Codefinder geht nicht

Off-Topic:
Zitat:
Zitat von GenX Beitrag anzeigen
failed :1
Was? wo?


Kein Thema Duck!
__________________
Man reiche mir mein LART!
Kein Support bei IT-Fragen via ICQ, Skype, PN oder Email!
(Stammuser ausgenommen)
Xaicon ist offline   Mit Zitat antworten
Antwort

Themen-Optionen

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
das geht nicht!!! Dexter Fun 6 12.04.2006 22:22



Alle Zeitangaben in WEZ +1. Es ist jetzt 10:55 Uhr.
Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright ©2008, BoardPlanet.net | Style enhanced by digital-anger.de