ilch Forum » Ilch Clan 1.1 » Fehlersuche und Probleme » Fehler in der Partnerbox

Geschlossen
  1. #1
    User Pic
    peterpan Mitglied
    Registriert seit
    24.02.2009
    Beiträge
    5
    Beitragswertungen
    0 Beitragspunkte
    moinsen ich wollte heute mal ein paar partner bei uns in die partnerbox machen, füge ich diese dann in der navigation zu (allianz.php), dann bekomme ich diese fehlermeldung in der box:

    Warning: file() [function.file]: Unable to access <div align="center"> {EXPLODE} </div> {EXPLODE} <a class="box" href="{link}" target="_blank">{title}</a><br /> {EXPLODE} <img src="{banner}" alt="{name}" border="0">.htm in /srv/www/vhosts/clan-dfg.de/httpdocs/include/includes/class/tpl.php on line 252
    
    Warning: file(<div align="center"> {EXPLODE} </div> {EXPLODE} <a class="box" href="{link}" target="_blank">{title}</a><br /> {EXPLODE} <img src="{banner}" alt="{name}" border="0">.htm) [function.file]: failed to open stream: No such file or directory in /srv/www/vhosts/clan-dfg.de/httpdocs/include/includes/class/tpl.php on line 252
    
    Warning: implode() [function.implode]: Bad arguments. in /srv/www/vhosts/clan-dfg.de/httpdocs/include/includes/class/tpl.php on line 252


    hier meine allianz.php:

    <?php 
    #   Copyright by Manuel Staechele
    #   Support www.ilch.de
    $tpl_alianz = <<< tpl
    <div align="center">
    {EXPLODE}
    </div>
    {EXPLODE}
    <a class="box" href="{link}" target="_blank">{title}</a><br />
    {EXPLODE}
    <img src="{banner}" alt="{name}" border="0">
    tpl;
    
    defined ('main') or die ( 'no direct access' );
    
      $allyAnzahl = $allgAr['Aanz'];
      if ( $allgAr['Aart'] == 1 ) {
    	  $sqlORDER = 'pos';
    	} else {
    	  $sqlORDER = 'RAND()';
    	}
    	
    	
    	$allyNameAr = array();
    	$allyLinkAr = array();
    	$allyBanaAr = array();
      $allyAktAnz = 0;
    
    	
      $allyAbf = 'SELECT * FROM `prefix_partners` ORDER BY '.$sqlORDER.' LIMIT  0,'.$allyAnzahl;
    	$allyErg = db_query($allyAbf);
    	if ( db_num_rows($allyErg) > 0) {
    	  $tpl = new tpl($tpl_alianz, 3);
        $tpl->out(0);
    		while($allyRow = db_fetch_object($allyErg)) {
    		    $tpl->set("link", $allyRow->link);
            if ( empty ($allyRow->banner) OR $allyRow->banner == 'http://' ) {
    		      $tpl->set("title", $allyRow->name);
    		    } else {
    		      $tpl->set("title", $tpl->set_ar_get(
                                                  array("banner" => $allyRow->banner,
                                                        "name"   => $allyRow->name
                                                       )
                                                 , 3 # {EXPLODE} Nr 3
                                                 )
                       );
    		    }
    		    $tpl->out(2);   
    	  }
    	  $tpl->out(1);
      }
    
    ?>


    warscheinlich so wie die fehlermeldung es anzeigt wird es aber wohl eher an der tpl.php liegen, ich poste die hier auch mal obwohl die ziemlich lang ist:

    <?php 
    #   Copyright by Manuel Staechele
    #   Support www.ilch.de
    
    
    defined ('main') or die ( 'no direct access' );
    
    //Farbliste erstellen
    function colorliste ( $ar  ) {
      $l = '';
      foreach($ar as $k => $v) {
       $l .= '<td width="10" style="background-color: '.$k.';"><a href="#" onClick="javascript:bbcode_code_insert(\'color\',\''.$k.'\'); hide_color();"><img src="include/images/icons/bbcode/transparent.gif" border="0" height="10" width="10" alt="'.$v.'" title="'.$v.'"></td>';
      }
      return ($l);
    }
    
    class tpl
    {
    	var $parts;
    	var $keys;
    	var $lists;
    	var $lang;
      var $ort;
    	
    	function tpl ($file, $ort = 0) {
    	 
    		$this->parts = array();
    		$this->keys  = array();
    		$this->lists = array();
    		$this->lang  = array();
        $this->ort   = $ort;
        
        	/*BBCode Buttons für das BBCode v2.0 Modul.
    		* # Copyright by Thomas Bowe [Funjoy]
    		* # Support bbcode@phpline.de
    		* # link www.phpline.de
    		* 
    		* BBCode v2.00 - [ANFANG]
    		*/
    		
    		//> Buttons Informationen.
    		$ButtonSql = db_query("SELECT 
    									fnFormatB,fnFormatI,fnFormatU,fnFormatS,fnFormatEmph, 
    									fnFormatColor,fnFormatSize,fnFormatUrl,fnFormatUrlAuto,fnFormatEmail,
    									fnFormatLeft,fnFormatCenter,fnFormatRight,fnFormatSmilies,
    									fnFormatList,fnFormatKtext,fnFormatImg,fnFormatScreen,fnFormatVideo,
    									fnFormatPhp,fnFormatCss,fnFormatHtml,fnFormatCode,fnFormatQuote,fnFormatCountdown
    								FROM
    									prefix_bbcode_buttons
    								WHERE
    									fnButtonNr='1'");
    		
    		$boolButton = db_fetch_assoc($ButtonSql);
    		
    		$cfgBBCsql = db_query("SELECT
    								  	fnYoutubeBreite,fnYoutubeHoehe,fcYoutubeHintergrundfarbe,
    								  	fnGoogleBreite,fnGoogleHoehe,fcGoogleHintergrundfarbe,
    								  	fnMyvideoBreite,fnMyvideoHoehe,fcMyvideoHintergrundfarbe,
    								  	fnSizeMax,fnUrlMaxLaenge,fnWortMaxLaenge,
    								  	fnImgMaxBreite,fnImgMaxHoehe,fnScreenMaxBreite,fnScreenMaxHoehe  	 
    							   FROM
    							 		prefix_bbcode_config
    							   WHERE
    									fnConfigNr='1'");
    		$cfgInfo = db_fetch_assoc($cfgBBCsql);
    		$BBCodeButtons = '<script type="text/javascript" src="include/includes/js/interface.js"></script>';
    		
    		//> Fett Button!
    		if($boolButton['fnFormatB'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert('b','Gib hier den Text an der formatiert werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_bold.png\" alt=\"Fett formatieren\" title=\"Fett formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		
    		//> Kursiv Button!
    		if($boolButton['fnFormatI'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert('i','Gib hier den Text an der formatiert werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_italic.png\" alt=\"Kursiv formatieren\" title=\"Kursiv formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Unterschrieben Button!
    		if($boolButton['fnFormatU'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert('u','Gib hier den Text an der formatiert werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_underline.png\" alt=\"Unterstrichen formatieren\" title=\"Unterstrichen formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Durchgestrichener Button!
    		if($boolButton['fnFormatS'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert('s','Gib hier den Text an der formatiert werden soll..')\"><img src=\"include/images/icons/bbcode/bbcode_strike.png\" alt=\"Durchgestrichen formatieren\" title=\"Durchgestrichen formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Leerzeichen?
    		if($boolButton['fnFormatI'] == 1 || $boolButton['fnFormatU'] == 1 || $boolButton['fnFormatS'] == 1) {
    			$BBCodeButtons .= "&nbsp;";
    		}
    		
    		//> Links Button!
    		if($boolButton['fnFormatLeft'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('left','0')\"><img src=\"include/images/icons/bbcode/bbcode_left.png\" alt=\"Links ausrichten\" title=\"Links ausrichten\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Zentriert Button!
    		if($boolButton['fnFormatCenter'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('center','0')\"><img src=\"include/images/icons/bbcode/bbcode_center.png\" alt=\"Mittig ausrichten\" title=\"Mittig ausrichten\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Rechts Button!
    		if($boolButton['fnFormatRight'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('right','0')\"><img src=\"include/images/icons/bbcode/bbcode_right.png\" alt=\"Rechts ausrichten\" title=\"Rechts ausrichten\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Leerzeichen?
    		if($boolButton['fnFormatLeft'] == 1 || $boolButton['fnFormatCenter'] == 1 || $boolButton['fnFormatRight'] == 1) {
    			$BBCodeButtons .= "&nbsp;";
    		}
    		
    		//> Listen Button!
    		if($boolButton['fnFormatList'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert('list','Gib hier den Text ein der aufgelistet werden soll \\n Um die liste zu beenden einfach auf Abbrechen klicken.')\"><img src=\"include/images/icons/bbcode/bbcode_list.png\" alt=\"Liste erzeugen\" title=\"Liste erzeugen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    
    		//> Hervorheben Button!
    		if($boolButton['fnFormatEmph'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('emph','0')\"><img src=\"include/images/icons/bbcode/bbcode_emph.png\" alt=\"Text hervorheben\" title=\"Text hervorheben\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Schriftfarbe Button!
        if($boolButton['fnFormatColor'] == 1) {
          $colorar = array('#FF0000' => 'red','#FFFF00' => 'yellow','#008000' => 'green','#00FF00' => 'lime','#008080' => 'teal','#808000' => 'olive','#0000FF' => 'blue','#00FFFF' => 'aqua', '#000080' => 'navy','#800080' => 'purple','#FF00FF' => 'fuchsia','#800000' => 'maroon','#C0C0C0' => 'grey','#808080' => 'silver','#000000' => 'black','#FFFFFF' => 'white',);
          $BBCodeButtons .= "<a href=\"javascript:hide_color();\"><img id=\"bbcode_color_button\" src=\"include/images/icons/bbcode/bbcode_color.png\" alt=\"Text f&auml;rben\" title=\"Text f&auml;rben\" width=\"23\" height=\"22\" border=\"0\"></a> ";
          $BBCodeButtons .= '<div style="display:none; position:absolute; top:0px; left:0px; width:200px; z-index:100;" id="colorinput">
          <table width="100%" class="border" border="0" cellspacing="1" cellpadding="0">
            <tr class="Chead" onclick="javascript:hide_color();"><td colspan="16"><b>Farbe wählen</b></td></tr>
            <tr class="Cmite" height="15">'.colorliste($colorar).'</tr></table>
          </div>';
        } 
    		
    		//> Schriftgröße Button!
    		if($boolButton['fnFormatSize'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('size','Gib hier den Text an der formatiert werden soll.','Gib hier die Gr&ouml;&szlig;e des textes in Pixel an. \\n Pixellimit liegt bei ".$cfgInfo['fnSizeMax']."px !!!')\"><img src=\"include/images/icons/bbcode/bbcode_size.png\" alt=\"Textgr&ouml;&szlig;e ver&auml;ndern\" title=\"Textgr&ouml;&szlig;e ver&auml;ndern\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Leerzeichen?
    		if($boolButton['fnFormatList'] == 1 || $boolButton['fnFormatEmph'] == 1 || $boolButton['fnFormatColor'] == 1 || $boolButton['fnFormatSize'] == 1) {
    			$BBCodeButtons .= "&nbsp;";
    		}
    		
    		//> Url Button!
    		if($boolButton['fnFormatUrl'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('url','Gib hier den namen des links an.','Gib hier die Adresse zu welcher verlinkt werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_url.png\" alt=\"Hyperlink einf&uuml;gen\" title=\"Hyperlink einf&uuml;gen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    									
    		//> E-Mail Button!
    		if($boolButton['fnFormatEmail'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('mail','Gib hier den namen des links an.','Gib hier die eMail - Adresse an.')\"><img src=\"include/images/icons/bbcode/bbcode_email.png\" alt=\"eMail hinzuf&uuml;gen\" title=\"eMail hinzuf&uuml;gen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Leerzeichen?
    		if($boolButton['fnFormatUrl'] == 1 || $boolButton['fnFormatEmail'] == 1) {
    			$BBCodeButtons .= "&nbsp;";
    		}
    		
    		//> Bild Button!
    		if($boolButton['fnFormatImg'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert('img','Gib hier die Adresse des Bildes an.  \\n Die Breite und H&ouml;he des Bildes ist auf ".$cfgInfo['fnImgMaxBreite']."x".$cfgInfo['fnImgMaxHoehe']." eingeschränkt und würde verkleinert dargstellt werden.')\"><img src=\"include/images/icons/bbcode/bbcode_image.png\" alt=\"Bild einf&uuml;gen\" title=\"Bild einf&uuml;gen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Screenshot Button!
    		if($boolButton['fnFormatScreen'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert('shot','Gib hier die Adresse des Screens an.  \\n Die Breite und H&ouml;he des Bildes ist auf ".$cfgInfo['fnScreenMaxBreite']."x".$cfgInfo['fnScreenMaxHoehe']." eingeschränkt und wird verkleinert dargstellt.')\"><img src=\"include/images/icons/bbcode/bbcode_screenshot.png\" alt=\"Bild einf&uuml;gen\" title=\"Screen einf&uuml;gen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Leerzeichen?
    		if($boolButton['fnFormatImg'] == 1 || $boolButton['fnFormatScreen'] == 1) {
    			$BBCodeButtons .= "&nbsp;";
    		}
    		
    		//> Quote Button!
    		if($boolButton['fnFormatQuote'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('quote','0')\"><img src=\"include/images/icons/bbcode/bbcode_quote.png\" alt=\"Zitat einf&uuml;gen\" title=\"Zitat einf&uuml;gen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Klapptext Button!
    		if($boolButton['fnFormatKtext'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('ktext','Gib hier den zu verbergenden Text ein.','Gib hier einen Titel f&uuml;r den Klapptext an.')\"><img src=\"include/images/icons/bbcode/bbcode_ktext.png\" alt=\"Klappfunktion hinzuf&uuml;gen\" title=\"Klappfunktion hinzuf&uuml;gen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Video Button!
    		if($boolButton['fnFormatVideo'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value_2('video','Gib hier die Video ID vom Anbieter an.','Bitte Anbieter ausw&auml;hlen.\\nAkzeptiert werden: Google, YouTube und MyVideo')\"><img src=\"include/images/icons/bbcode/bbcode_video.png\" alt=\"Video einf&uuml;gen\" title=\"Video einf&uuml;gen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Countdown Button!
    		if($boolButton['fnFormatVideo'] == 1) {
    			$BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('countdown','Gib hier das Datum an wann das Ereignis beginnt.\\n Format: TT.MM.JJJJ Bsp: 24.12.".date("Y")."','Gib hier eine Zeit an, wann das Ergeinis am Ereignis- Tag beginnt.\\nFormat: Std:Min:Sek Bsp: 20:15:00')\"><img src=\"include/images/icons/bbcode/bbcode_countdown.png\" alt=\"Countdown festlegen\" title=\"Countdown festlegen\" width=\"23\" height=\"22\" border=\"0\"></a> ";
    		}
    		
    		//> Leerzeichen?
    		if($boolButton['fnFormatQuote'] == 1|| $boolButton['fnFormatKtext'] == 1 || $boolButton['fnFormatVideo'] == 1) {
    			$BBCodeButtons .= "&nbsp;";
    		}
    		
    		//> Code Dropdown!
        if($boolButton['fnFormatCode'] == 1 || $boolButton['fnFormatPhp'] == 1 || $boolButton['fnFormatHtml'] == 1 || $boolButton['fnFormatCss'] == 1) {
          $BBCodeButtons .= "<select onChange=\"javascript:bbcode_code_insert_codes(this.value); javascript:this.value='0';\" style=\"font-family:Verdana;font-size:10px; margin-bottom:6px; z-index:0;\" name=\"code\"><option value=\"0\">Code einf&uuml;gen</option>";
        }
                
                
        if($boolButton['fnFormatPhp'] == 1) {
          $BBCodeButtons .= "<option value=\"php\">PHP</option>";
        }
                
        if($boolButton['fnFormatHtml'] == 1) {
          $BBCodeButtons .= "<option value=\"html\">HTML</option>";
        }
                
        if($boolButton['fnFormatCss'] == 1) {
          $BBCodeButtons .= "<option value=\"css\">CSS</option>";
        }
                
        if($boolButton['fnFormatCode'] == 1) {
          $BBCodeButtons .= "<option value=\"code\">Sonstiger Code</option>";
        }
    		
    		if($boolButton['fnFormatCode'] == 1 || $boolButton['fnFormatPhp'] == 1 || $boolButton['fnFormatHtml'] == 1 || $boolButton['fnFormatCss'] == 1) {
    			$BBCodeButtons .= "</select>";
    		}
    		
    		$this->keys['__BBCodeButtons__'] = $BBCodeButtons;
    		//> BBCode v2.00 - [ENDE]
        
        
    		# file bearbeiten, weil file auch ohne .htm angegeben werden kann.
        if ( substr ( $file, -4 ) != '.htm' ) {
          $file .= '.htm';
        }
    		
        # ort 0 = include/templates, ort 1 = include/admin/templates
        # bei ort 0 wird ausserdem gecheckt ob das template
        # evtl. im ordner include/design/DESIGN/templates liegt.
        # ort = 2 das template kommt von der design classe der pfad ist ab include
        $design = $this->get_design ();
        if ( $this->ort == 0 ) {
          if ( file_exists ('include/designs/'.$design.'/templates/'.$file) ) {
    				$file = 'include/designs/'.$design.'/templates/'.$file;
          } else {
            $file = 'include/templates/'.$file;
          }
        } elseif ( $this->ort == 1 ) {
          $file = 'include/admin/templates/'.$file;
        } elseif ( $this->ort == 2 ) {
          $file = 'include/'.$file;
        }
    		
    	  $inhalt = implode("", file($file) );
    		
    		global $lang;
    		$this->lang = $lang;
    		$inhalt = $this->replace_lang($inhalt);
    		
    		$inhalt = $this->replace_list($inhalt);
    		$this->parts = explode ( '{EXPLODE}', $inhalt );
    	}
    	
    
    	function get_design () {
    	  if ( file_exists('include/designs/'.$_SESSION['authgfx'].'/index.htm')) {
    		  return ( $_SESSION['authgfx'] );
    		} elseif ( file_exists('include/designs/ilchClan/index.htm')) {
    		  return ( 'ilchClan' );
    		} else {
    		  $od = opendir('include/designs');
    			while ( $f = readdir($od) ) {
    			  if ( file_exists('include/designs/'.$f.'/index.htm')) {
    				  return ( $f );
    				  break;
    				}
    			}
    			closedir($od);
    		}
    	}
      
    	function replace_lang ( $var ) {
    		$lang_zwischenspeicher = array();
    		preg_match_all ("/\{_lang_([^\{\}]+)\}/" , $var , $lang_zwischenspeicher);
        foreach ( $lang_zwischenspeicher[1] as $v ) {
          if (empty($this->lang[$v])) { $this->lang[$v] = str_replace('_', '', $v); }
          $var = str_replace('{_lang_'.$v.'}',$this->lang[$v],$var);
        }
    		return ( $var );
    	}
    	
    	function replace_list ( $var ) {
    		$zwischenspeicher = array();
    		preg_match_all ("/\{_list_([^\{\}]+)\}/" , $var , $zwischenspeicher);
        foreach ( $zwischenspeicher[1] as $v ) {
    			list ( $key , $val ) = explode('@',$v);
    		  $this->lists[$key] = $val;
    			$var = str_replace('{_list_'.$v.'}','{'.$key.'}',$var);
        }
    		return ( $var );
    	}
    	
    	function list_get ( $key , $ar ) {
    	  $zwischenspeicher = $this->lists[$key];
    	  krsort($ar);
        foreach ( $ar as $k => $v ) {
    		  $i = $k + 1;
    		  $zwischenspeicher = str_replace('%'.$i,$v,$zwischenspeicher);
    		}
    		return ($zwischenspeicher);
    	}
    	
    	function list_exists ( $key ) {
    	  if ( isset ( $this->lists[$key] ) ) {
    		  return ( true );
    		} else {
    		  return ( false );
    		}
    	}
    	
    	function list_out ( $key , $ar ) {
    	  echo $this->list_get ( $key , $ar );
    	}
    	
    	function set ($k , $v) {
    		#$this->keys[$k] = unescape($v);
    		$this->keys[$k] = $v;
    	}
    	
    	function set_ar ($ar) {
    		foreach ($ar as $k => $v) {
    		  #$this->keys[$k] = unescape($v);
    			$this->keys[$k] = $v;
    		}
    	}
    	
    	function set_ar_out ( $ar , $pos ) {
    	  $this->set_ar($ar);
    		$this->out($pos);
    	}
    	
    	function set_out ( $k , $v , $pos ) {
    	  $this->set($k , $v);
    		$this->out($pos);
    	}
    	
    	function set_ar_get ( $ar , $pos ) {
    	  $this->set_ar($ar);
    		return ($this->get($pos));
    	}
    	
    	function set_get ( $k , $v , $pos ) {
    	  $this->set($k , $v);
    		return ( $this->get($pos));
    	}
    	
    	function del ($k) {
    	  unset ($this->keys[$k]);
    	}
    	
    	function del_ar ($ar) {
    	  foreach ($ar as $k => $v) {
    		  unset ($this->keys[$k]);
    		}
    	}
      
      function parse_if_do ($tr) {
        if (isset($this->keys[$tr[1]])
          AND (
               ($tr[2] == '==' AND $this->keys[$tr[1]] == $tr[3])
            OR (($tr[2] == '!=' OR $tr[2] == '<>') AND $this->keys[$tr[1]] != $tr[3])
            OR ($tr[2] == '<=' AND $this->keys[$tr[1]] <= $tr[3])
            OR ($tr[2] == '>=' AND $this->keys[$tr[1]] >= $tr[3])
          )
        
        ) {
          return ($tr[4]);
        }
        return ('');
      }
    	
      function parse_if ($pos) {
        $toout = $this->parts[$pos];
        
        $toout = preg_replace_callback ("/\{_if_\{([^\}]+)\}([<>=!]{2})'([^']+)'\}(.*)\{\/_endif\}/Us", array(&$this, 'parse_if_do') , $toout);
        
        return ($toout);
      }
      
    	function get ($pos) {
    	  $toout = $this->parse_if($pos);
        
        mt_srand((double)microtime()*1000000);
        $z = '##@@'.mt_rand().'@@##';
    
        foreach ($this->keys as $k => $v) {
          $toout = str_replace('{'.$k.'}','{'.$z.$k.'}',$toout);
        }
        
        foreach ($this->keys as $k => $v) {
          $toout = str_replace( '{'.$z.$k.'}' , $v , $toout );
    		}
    		return ($toout);
    	}
    	
    	function out ($pos) {
    	  echo $this->get ($pos);
    	}
      
      
      /*
      @ Diese Funktion war mal eingebaut
      ich denke aber wenn jemand die seite
      suchmaschienen optimieren will, dann
      sollte er schon soviel ahnung haben es selber
      hinzubekommen. diese funktion kann aber dabei helfen!
      
      ... ansonsten wird es von mir sicher mal einen mod
      geben der die aufgabe uebernimmt!
      
      diese funktion kann nicht einfach freigeschaltet (auskommentiert) werden
      sie hat dann ueberhaupt keine auswirkung ;)...
      
      function giveback ($c) {
        global $allgAr;
        # diese funktion gibt den inhalt aus.
        # damit kann der inhalt nochmal nachbereitet werden.
        # pruefen ob alle ?... durch ....htm ersetzt werden sollen
        # wenn ja tun und return c ;-)
        if ( $allgAr['replace_template_to_html'] == 1 AND ($this->ort == 0 OR $this->ort == 2) ) {
          $c = preg_replace ('%href=\"\?([^\"]+)\"%Uis',"href=\"index.php?\\1\"",$c);
          $c = preg_replace ('%href=\"index.php\?([-0-9A-Z]+)#([a-zA-Z0-9]+)\">%Uis',"href=\"\\1.html#\\2\">",$c);
          $c = preg_replace ('%href=\"index.php\?([-0-9A-Z]+)\">%Uis',"href=\"\\1.html\">",$c);
          
          $c = preg_replace ('%action=\"\?([^\"]+)\"%Uis',"action=\"index.php?\\1\"",$c);
          $c = preg_replace ('%URL=\?([^\"]+)\"%Uis',"URL=index.php?\\1\"",$c);
          
        }
        return ( $c );
      }
      
      */
    }
    
    
    ?>

    vielleicht kann mir da jemand weiterhelfen ich bin nämlich sozusagen am ende angelangt

    gruß
    peter


    verwendete ilchClan Version: 1.1

    betroffene Homepage: clan-dfg.de


    Zuletzt modifiziert von peterpan am 08.06.2009 - 18:58:07
    Blues:
    music by guys who lost their women!
    Äh ... und Country (beide Sorten)?
    music by guys who lost their horse!
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    DjGeCk0 Hall Of Fame
    Registriert seit
    01.05.2009
    Beiträge
    2.989
    Beitragswertungen
    96 Beitragspunkte
    pack das mal in CODE Tags bitte

    so kann man das ja nicht lesen
    Alle Module von mir sind nun unter php-gecko.de erreichbar
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu Fehlersuche und Probleme

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten