Pagina 2 di 4 primaprima 1 2 3 4 ultimoultimo
Visualizzazione dei risultati da 11 a 20 su 38

Discussione: Definire variabili

  1. #11
    Utente di HTML.it L'avatar di Il_Drugo
    Registrato dal
    May 2006
    Messaggi
    1,220
    La soluzione ideale sarebbe che tu ad esempio includi la pagina news.php in index.php.

    Cosi facendo quando visiti index.php?tipo=mondo in automatico la pagina news.php prenderà il valore di $tipo.

  2. #12
    no..
    se tu includi il file al moemto che che peschi il $_GET['tipo'] non hai bisogno di definire niente.. è definito
    Soluzioni Hosting
    http://www.crabservice.com

  3. #13
    Sapete che fa adesso? mi include un trattino e non va avanti nemmeno a finire di visualizzare la pagina. Il codice sottostante l'inclusione "puffa" improvvisamente!
    Earn money for searching the internet:
    Homepages Friends

  4. #14
    puoi postare il codice...
    Soluzioni Hosting
    http://www.crabservice.com

  5. #15
    Ok, ma è peggio x voi...


    Pagina DA INCLUDERE (rss2html) (Parte 1)
    codice:
    <?PHP
    // Set the following variable useFopenURL to one if you want/need to use 
    // fopen() instead of CURL
    $useFopenURL = 0;
    
    //
    // If XLMFILE is passed as part of the URL, XMLFILE=, then it will be used
    // otherwise the the file below is used.
    
    $tipo = $_GET['tipo'];
    
    if( $tipo == "" ) 
    {
      echo "Specificare tipo!";
      exit;
    };
    
    if( $tipo == "top_news" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/topnews/synd/ansait_awnplus_topnews_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "news_in_english" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/english/synd/ansait_awnplus_english_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "italia" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/italia/synd/ansait_awnplus_italia_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "mondo" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/mondo/synd/ansait_awnplus_mondo_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "calcio" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/calcio/synd/ansait_awnplus_calcio_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "sport" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/sport/synd/ansait_awnplus_sport_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "spettacolo" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/spettacolo/synd/ansait_awnplus_spettacolo_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "economia_e_finanza" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/economia/synd/ansait_awnplus_economia_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "cultura_e_societa" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/cultura/synd/ansait_awnplus_cultura_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "scienza" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/scienza/synd/ansait_awnplus_scienza_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "internet" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/internet/synd/ansait_awnplus_internet_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "moda" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/moda/synd/ansait_awnplus_moda_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "musica" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/musica/synd/ansait_awnplus_musica_medsynd_Today_Idx.xml";
    };
    
    if( $tipo == "cinema" ) 
    {
      $XMLfilename = "http://www.ansa.it/main/notizie/awnplus/cinema/synd/ansait_awnplus_cinema_medsynd_Today_Idx.xml";
    };
    
    
    
    
    //
    // If TEMPLATE is passed as part of the URL. TEMPLATE=, then it will be used
    // otherwise the the file below is used.
    //$TEMPLATEfilename = "http://rainerumgroup.awardspace.com/rss/template.html";
    $TEMPLATEfilename = "template.html";
    
    //
    // Since some feeds may have titles or descriptions in the feed or items that
    // are longer then want fits in your HTML page it is possible to trim them 
    // with the following 4 variables.  A values of 0 (ZERO) displays the full 
    // length.
    // CAUTION:  Do not limit a title or description that has HTML in it, the 
    //           will not produce a valid HTML page.
    $limitFeedTitleLength = 0;        // Not limited, in the URL as FeedTitleLength=
    $limitFeedDescriptionLength = 0;  // Not limited, in the URL as FeedDescriptionLength=
    $limitItemTitleLength = 0;        // Not limited, in the URL as ItemTitleLength=
    $limitItemDescriptionLength = 0;  // Not limited, in the URL as ItemDescriptionLength=
    
    //
    // date() function documented http://www.php.net/manual/en/function.date.php
    $LongDateFormat = "F jS, Y";    // ie, "Jan 21st, 2004"
    $ShortDateFormat = "d/m";     // ie, "21/1/2004"
    //$ShortDateFormat = "d/m/Y";     // ie, "21/1/2004"
    $LongTimeFormat = "H:i:s";  // ie, "13:24:30 EDT -0400"
    $ShortTimeFormat = "H:i";     // ie, "13:24 PM"
    
    //
    // Timezone - If your server is not in the same timezone as you are the timezone
    // of the times and dates produced in the above from can be controlled with the
    // below code.  Just uncomment the following line and change EST to your desired
    // timezone.
    // setenv("TZ=EST");
    
    //
    // Registered user of FeedForAll and FeedForAll Mac product(s) have access
    // to a caching module.  This enables it's use if it is installed.
    $allowCachingXMLFiles = 0;
    
    // ==========================================================================
    // Below this point of the file there are no user editable options.  Your
    // are welcome to make any modifications that you wish to any of the code
    // below, but that is not necessary for normal use.
    // ==========================================================================
    Earn money for searching the internet:
    Homepages Friends

  6. #16
    Pagina DA INCLUDERE (rss2html) (Parte 2)
    codice:
    // A "%" should not be encoded to "%2525", but to "%25"
    
    // Indicate that this is the last parse of XML
    
    // Add a simple way to change the timezone of produced times and dates
    
    // Update the licenses
    
    // Trim white space before and after the XML
    
    // Rename rss2html_CachingExtension.php to FeedForAll_Scripts_CachingExtension.php
    
    // Fix the testing for the character set conversion function
    
    // Add support for ~~~FeedXMLFilename~~~
    
    // Add the capability to limit the length of feed and item titles and descriptions
    
    // Fix the initialization of the item arrays
    
    // If possible convert the feed to UTF-8, for uniformity
    
    // Fix the offsetting of the time
    
    // Fix the error message for opening a feed, it was displaying the template filename.
    
    // Move all user configuration options at the top of the file to make them
    // easier to find
    
    // Add an interface to allow FeedForAll_rss2html_readFile() to be replaced
    // by one that does caching of the XML files
    
    // Remove the first "banner" since IE barfs
    
    // Improve the formatting
    
    // Fix label in buildURL
    
    // Add buildURL to assist in creating properly encoded links.  Show proper
    // include methods and contents of the files.
    
    // Improvements when using CURL:
    // - Use the requested file as the REFERER, for sites that might require one
    // - Allow to follow up to 10 redirects, some sites redirect to real content
    
    // Use lastBuildDate as another possible source if pubDate is empty at the
    // <channel> level.
    
    // Fix the storage of pubDate at the feed level
    
    // Set a user agent for both fopen and curl transerfers
    
    // GUID doesn't need urlencode()
    
    // Add the ~~~ItemAuthor~~~ subsitution that uses first <author> and then
    // <dc:creator> for its contents
    
    // Convert &apos; to ' since &apos; is not HTML
    
    // Allow "allow_url_fopen" to be sellected, incase CURL is not available.
    
    if ($useFopenURL) {
      ini_set("allow_url_fopen", "1");
      ini_set("user_agent", 'FeedForAll rss2html.php v2');
    }
    
    @include("FeedForAll_Scripts_CachingExtension.php");
    
    if (function_exists("FeedForAll_rss2html_readFile") === FALSE) {
      Function FeedForAll_rss2html_readFile($filename, $useFopenURL, $useCaching = 0) {
        if ($useCaching);
        
        $GLOBALS["ERRORSTRING"] = "";
        $result = "";
        if (stristr($filename, "://")) {
          if ($useFopenURL) {
            if (($fd = @fopen($filename, "rb")) === FALSE) {
              return FALSE;
            }
            while (($data = fread($fd, 4096)) != "") {
              $result .= $data;
            }
            fclose($fd);
          } else {
            // This is a URL so use CURL
            $curlHandle = curl_init();
            curl_setopt($curlHandle, CURLOPT_URL, $filename);
            curl_setopt($curlHandle, CURLOPT_HEADER, 0);
            curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($curlHandle, CURLOPT_USERAGENT, "FeedForAll rss2html.php v2");
            //    curl_setopt($curlHandle, CURLOPT_AUTOREFERER, 1);
            curl_setopt($curlHandle, CURLOPT_REFERER, $filename);
            curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, 1);
            curl_setopt($curlHandle, CURLOPT_MAXREDIRS, 10);
            $result = curl_exec($curlHandle);
            if (curl_errno($curlHandle)) {
              $GLOBALS["ERRORSTRING"] = curl_error($curlHandle);
              curl_close($curlHandle);
              return FALSE;
            }
            curl_close($curlHandle);
          }
        } else {
          // This is a local file, so use fopen
          if (($fd = @fopen($filename, "rb")) === FALSE) {
            return FALSE;
          }
          while (($data = fread($fd, 4096)) != "") {
            $result .= $data;
          }
          fclose($fd);
        }
        return $result;
      }
    }
    
    if (function_exists("FeedForAll_rss2html_convertEncoding") === FALSE) {
      Function FeedForAll_rss2html_convertEncoding($XMLstring) {
        $results = NULL;
        
        if (function_exists("mb_convert_encoding") === FALSE) return $XMLstring;
        
        if (preg_match("/<\?xml(.*)\?>/", $XMLstring, $results) === FALSE) return $XMLstring;
    
        $results = str_replace(" ", "", $results);
        $results = str_replace("'", "\"", $results);
    
        if (($location = stristr($results[0], "encoding=")) === FALSE) return $XMLstring;
    
        $parts = split("\"", $location);
    
        if (($newResult = mb_convert_encoding($XMLstring, "UTF-8", $parts[1])) === FALSE) {
          return $XMLstring;
        }
        
        return $newResult;
      }
    }
    
    if (function_exists("FeedForAll_rss2html_limitLength") === FALSE) {
      Function FeedForAll_rss2html_limitLength($initialValue, $limit = 0) {
        if (($limit == 0) || (strlen($initialValue) <= $limit )) {
          // ZERO is for not limited
          return $initialValue;
        }
        
        // Cut the text at the exact point, ignoring if it is in a word.
        $result = substr($initialValue, 0, $limit);
        
        // Check to see if there are any space we can trim at and if it is not 
        // too far from where we are
        $lastSpace = strrchr($result,' ');
        if (($lastSpace !== FALSE) && (strlen($lastSpace) < 20)) {
          // lose any incomplete word at the end
          $result = substr($result, 0, -(strlen($lastSpace)));
          
          // Append elipses, ... , to show it was truncated
          $result .= " ...";
        }
    
        return $result;
      }
    }
    
    if (!isset($_REQUEST["buildURL"])) {
      if (isset($_REQUEST["XMLFILE"])) {
        if (stristr($_REQUEST["XMLFILE"], "file://")) {
          // Not allowed
          ;
        }
        elseif (stristr($_REQUEST["XMLFILE"], "://")) {
          // URL files are allowed
          $XMLfilename = $_REQUEST["XMLFILE"];
        } else {
          // It is local and must be in the same directory
          $XMLfilename = basename($_REQUEST["XMLFILE"]);
        }
      }
    
      if (isset($_REQUEST["TEMPLATE"])) {
        if (stristr($_REQUEST["TEMPLATE"], "file://")) {
          // Not allowed
          ;
        }
        elseif (stristr($_REQUEST["TEMPLATE"], "://")) {
          // URL files are allowed
          $TEMPLATEfilename = $_REQUEST["TEMPLATE"];
        } else {
          // It is local and must be in the same directory
          $TEMPLATEfilename = basename($_REQUEST["TEMPLATE"]);
        }
      }
    
      if (isset($_REQUEST["FeedTitleLength"])) {
        $limitFeedTitleLength = abs($_REQUEST["FeedTitleLength"]);
      }
      if (isset($_REQUEST["FeedDescriptionLength"])) {
        $limitFeedDescriptionLength = abs($_REQUEST["FeedDescriptionLength"]);
      }
      if (isset($_REQUEST["ItemTitleLength"])) {
        $limitItemTitleLength = abs($_REQUEST["ItemTitleLength"]);
      }
      if (isset($_REQUEST["ItemDescriptionLength"])) {
        $limitItemDescriptionLength = abs($_REQUEST["ItemDescriptionLength"]);
      }
    
      //
      // Maximum number of items to be displayed
      //
    
      $FeedMaxItems = 10000;
      if (isset($_REQUEST["MAXITEMS"])) {
        $FeedMaxItems = $_REQUEST["MAXITEMS"];
      }
      $NoFutureItems = FALSE;
      if (isset($_REQUEST["NOFUTUREITEMS"])) {
        $NoFutureItems = TRUE;
      }
    
      //
      // As much as I hate globals, they are needed due to the
      // recusive nature of the parser
      $insidechannel = FALSE;
      $level_channel = 0;
      $insidechannelimage = FALSE;
      $level_channelimage = 0;
      $insideitem = FALSE;
      $level_item = 0;
    
      if (function_exists("FeedForAll_rss2html_getRFDdate") === FALSE) {
        Function FeedForAll_rss2html_getRFDdate($datestring) {
          $year = substr($datestring, 0, 4);
          $month = substr($datestring, 5, 2);
          $day = substr($datestring, 8, 2);
          $hour = substr($datestring, 11, 2);
          $minute = substr($datestring, 14, 2);
          $second = substr($datestring, 17, 2);
          if (substr($datestring, 19, 1) == "Z") {
            $offset_hour = 0;
            $offset_minute = 0;
          } else {
            if (substr($datestring, 19, 1) == "-") {
              $offset_hour = substr($datestring, 20, 2);
              $offset_minute = substr($datestring, 23, 2);
            } else {
              $offset_hour = -1*substr($datestring, 20, 2);
              $offset_minute = -1*substr($datestring, 23, 2);
            }
          }
          return gmmktime($hour+$offset_hour, $minute+$offset_minute, $second, $month, $day, $year);
        }
    
        class FeedForAll_rss2html_RSSParser {
          var $gotROOT = 0;
          var $feedTYPE = "RSS";
          var $level = 0;
          var $tag = "";
          var $title = "";
          var $description = "";
          var $contentEncoded = "";
          var $link = "";
          var $guid = "";
          var $enclosureURL = "";
          var $pubdate = "";
          var $pubdateDC = "";
          var $fimageURL = "";
          var $fimageTitle = "";
          var $fimageLink = "";
          var $author = "";
          var $DcCreator = "";
    
          var $FeedTitle = "";
          var $FeedDescription = "";
          var $FeedContentEncoded = "";
          var $FeedLink = "";
          var $FeedPubDate = "";
          var $FeedPubDateDC = "";
          var $FeedPubDate_t = "";
          var $FeedLastBuildDate = "";
          var $FeedImageURL = "";
          var $FeedImageTitle = "";
          var $FeedImageLink = "";
          // When adding new Item elements, be sure to update the sort below
          var $ItemTitle = Array();
          var $ItemDescription = Array();
          var $ItemContentEncoded = Array();
          var $ItemLink = Array();
          var $ItemGuid = Array();
          var $ItemPubDate = Array();
          var $ItemPubDate_t = Array();
          var $ItemEnclosureURL = Array();
          var $ItemAuthor = Array();
    
          function startElement($parser, $tagName, $attrs) {
            GLOBAL $insidechannel;
            GLOBAL $level_channel;
            GLOBAL $insidechannelimage;
            GLOBAL $level_channelimage;
            GLOBAL $insideitem;
            GLOBAL $level_item;
    
            $this->level++;
            $this->tag = $tagName;
            if ($this->gotROOT == 0) {
              $this->gotROOT = 1;
              if (strstr($tagName, "RSS")) {
                $this->feedTYPE = "RSS";
              }
              elseif (strstr($tagName, "RDF")) {
                $this->feedTYPE = "RDF";
              }
              elseif (strstr($tagName, "FEE")) {
                $this->feedTYPE = "FEE";
                $insidechannel = TRUE;
                $level_channel = 1;
              }
            }
            elseif ((($tagName == "ITEM") && ($this->feedTYPE != "FEE")) || (($tagName == "ENTRY") && ($this->feedTYPE == "FEE"))) {
              $insideitem = TRUE;
              $level_item = $this->level;
            }
            elseif (($insideitem) && ($tagName == "ENCLOSURE")) {
              $this->enclosureURL = $attrs["URL"];
            }
            elseif (($tagName == "LINK") && ($this->feedTYPE == "FEE")) {
              $this->link = $attrs["HREF"];
            }
            elseif ($tagName == "CHANNEL") {
              $insidechannel = TRUE;
              $level_channel = $this->level;
            }
            elseif (($tagName == "IMAGE") && ($insidechannel = TRUE)) {
              $insidechannelimage = TRUE;
              $level_channelimage = $this->level;
            }
            if ($parser);
          }
    Earn money for searching the internet:
    Homepages Friends

  7. #17
    Pagina DA INCLUDERE (rss2html) (Parte 3)
    codice:
          function endElement($parser, $tagName) {
            GLOBAL $insidechannel;
            GLOBAL $level_channel;
            GLOBAL $insidechannelimage;
            GLOBAL $level_channelimage;
            GLOBAL $insideitem;
            GLOBAL $level_item;
            GLOBAL $NoFutureItems;
    
            $this->level--;
            if ((($tagName == "ITEM") && ($this->feedTYPE != "FEE")) || (($tagName == "ENTRY") && ($this->feedTYPE == "FEE"))) {
              $UseItem = TRUE;
    
              if ($NoFutureItems) {
                $noon = strtotime("today at 12:00");
                if (trim($this->pubdate) != "") {
                  $ItemPubDate = strtotime($this->pubdate);
                }
                else if (trim($this->pubdateDC) != "") {
                  $ItemPubDate = FeedForAll_rss2html_getRFDdate($this->pubdateDC);
                } else {
                  $ItemPubDate = time();
                }
                if (($ItemPubDate - $noon) > 43200) {
                  $UseItem = FALSE;
                }
              }
    
              if ($UseItem) {
                $this->ItemTitle[] = trim($this->title);
                $this->ItemDescription[] = trim($this->description);
                $this->ItemContentEncoded[] = trim($this->contentEncoded);
                if (trim($this->contentEncoded) == "") {
                  $this->ItemContentEncoded[] = $this->description;
                }
                $this->ItemLink[] = trim($this->link);
                //
                // Get the pubDate from pubDate first and then dc:date
                if (trim($this->pubdate) != "") {
                  $this->ItemPubDate[] = trim($this->pubdate);
                  $this->ItemPubDate_t[] = strtotime($this->pubdate);
                }
                else if (trim($this->pubdateDC) != "") {
                  $this->ItemPubDate[] = trim($this->pubdateDC);
                  $this->ItemPubDate_t[] = FeedForAll_rss2html_getRFDdate($this->pubdateDC);
                } else {
                  $this->ItemPubDate[] = date("D, d M Y H:i:s +0000");
                  $this->ItemPubDate_t[] = time();
                }
                $this->ItemGuid[] = trim($this->guid);
                $this->ItemEnclosureURL[] = trim($this->enclosureURL);
                if ($this->author == "") {
                  $this->ItemAuthor[] = $this->DcCreator;
                } else {
                  $this->ItemAuthor[] = $this->author;
                }
              }
              $this->title = "";
              $this->description = "";
              $this->contentEncoded = "";
              $this->link = "";
              $this->pubdate = "";
              $this->pubdateDC = "";
              $this->guid = "";
              $this->enclosureURL = "";
              $this->author = "";
              $this->DcCreator = "";
              $insideitem = FALSE;
              $level_item = 0;
            }
            elseif (($tagName == "IMAGE") && ($insidechannelimage)) {
              $this->FeedImageURL = trim($this->fimageURL);
              $this->FeedImageTitle = trim($this->fimageTitle);
              $this->FeedImageLink = trim($this->fimageLink);
              $this->fimageURL = "";
              $this->fimageTitle = "";
              $this->fimageLink = "";
              $insidechannelimage = FALSE;
              $level_channelimage = 0;
            }
            elseif ($tagName == "CHANNEL") {
              //
              // Get the pubDate from pubDate first and then dc:date
              if (trim($this->FeedPubDate) != "") {
                $this->FeedPubDate_t = strtotime($this->FeedPubDate);
              }
              else if (trim($this->FeedPubDateDC) != "") {
                $this->FeedPubDate_t = FeedForAll_rss2html_getRFDdate($this->FeedPubDateDC);
              }
              else if (trim($this->FeedLastBuildDate) != "") {
                $this->FeedPubDate_t = strtotime($this->FeedLastBuildDate);
              } else {
                $this->FeedPubDate = date("D, d M Y H:i:s +0000");
                $this->FeedPubDate_t = time();
              }
              $insidechannel = FALSE;
              $level_channel = 0;
            }
            elseif ($this->level == $level_channel) {
              if ($tagName == "TITLE") {
                $this->FeedTitle = trim($this->title);
                $this->title = "";
              }
              elseif (($tagName == "DESCRIPTION") || ($tagName == "TAGLINE")) {
                $this->FeedDescription = trim($this->description);
                $this->description = "";
              }
              elseif ($tagName == "CONTENT:ENCODED") {
                $this->FeedContentEncoded = trim($this->contentEncoded);
                $this->contentEncoded = "";
              }
              elseif ($tagName == "LINK") {
                $this->FeedLink = trim($this->link);
                $this->link = "";
              }
            }
            if ($parser);
          }
    
          function characterData($parser, $data) {
            GLOBAL $insidechannel;
            GLOBAL $level_channel;
            GLOBAL $insidechannelimage;
            GLOBAL $level_channelimage;
            GLOBAL $insideitem;
            GLOBAL $level_item;
    
            if (($data == "") || ($data == NULL)) {
            } else {
              if (($insideitem) && ($this->level == $level_item+1)) {
                switch ($this->tag) {
                  case "TITLE":
                  $this->title .= $data;
                  break;
    
                  case "DESCRIPTION":
                  $this->description .= $data;
                  break;
    
                  case "CONTENT:ENCODED":
                  $this->contentEncoded .= $data;
                  break;
    
                  case "SUMMARY":
                  $this->description .= $data;
                  break;
    
                  case "LINK":
                  $this->link .= $data;
                  break;
    
                  case "PUBDATE":
                  $this->pubdate .= $data;
                  break;
    
                  case "DC:DATE":
                  $this->pubdateDC .= $data;
                  break;
    
                  case "MODIFIED":
                  $this->pubdateDC .= $data;
                  break;
    
                  case "GUID":
                  $this->guid .= $data;
                  break;
    
                  case "AUTHOR":
                  $this->author .= $data;
                  break;
    
                  case "DC:CREATOR":
                  $this->DcCreator .= $data;
                  break;
                }
              }
              elseif ($insidechannelimage) {
                switch ($this->tag) {
                  case "TITLE":
                  $this->fimageTitle .= $data;
                  break;
    
                  case "URL":
                  $this->fimageURL .= $data;
                  break;
    
                  case "LINK":
                  $this->fimageLink .= $data;
                  break;
                }
              }
              elseif (($insidechannel) && ($this->level == $level_channel+1)) {
                switch ($this->tag) {
                  case "TITLE":
                  $this->title .= $data;
                  break;
    
                  case "DESCRIPTION":
                  $this->description .= $data;
                  break;
    
                  case "CONTENT:ENCODED":
                  $this->contentEncoded .= $data;
                  break;
    
                  case "TAGLINE":
                  $this->description .= $data;
                  break;
    
                  case "LINK":
                  $this->link .= $data;
                  break;
    
                  case "PUBDATE":
                  $this->FeedPubDate .= $data;
                  break;
    
                  case "DC:DATE":
                  $this->FeedPubDateDC .= $data;
                  break;
    
                  case "MODIFIED":
                  $this->FeedPubDateDC .= $data;
                  break;
    
                  case "LASTBUILDDATE":
                  $this->FeedLastBuildDate .= $data;
                  break;
                }
              }
            }
            if ($parser);
          }
        }
      }
    
      if (($template = FeedForAll_rss2html_readFile($TEMPLATEfilename, $useFopenURL)) === FALSE) {
        if ($GLOBALS["ERRORSTRING"] == "") {
    //      echo "Unable to open template $TEMPLATEfilename, exiting\n";
    
          echo "-";
        } else {
    //      echo "Unable to open template $TEMPLATEfilename with error $GLOBALS[ERRORSTRING], exiting\n";
          echo "-";
        }
        exit -1;
      }
    
      if (strstr($template, "~~~NoFutureItems~~~")) {
        $NoFutureItems = TRUE;
      }
    
      $xml_parser = xml_parser_create("UTF-8");
      $rss_parser = new FeedForAll_rss2html_RSSParser();
      xml_set_object($xml_parser,$rss_parser);
      xml_set_element_handler($xml_parser, "startElement", "endElement");
      xml_set_character_data_handler($xml_parser, "characterData");
      xml_parser_set_option($xml_parser,XML_OPTION_CASE_FOLDING,1);
      if (($XML = FeedForAll_rss2html_readFile($XMLfilename, $useFopenURL, $allowCachingXMLFiles)) === FALSE) {
        if ($GLOBALS["ERRORSTRING"] == "") {
    //      echo "Unable to open RSS Feed $XMLfilename, exiting\n";
          echo "-";
        } else {
    //      echo "Unable to open RSS Feed $XMLfilename with error $GLOBALS[ERRORSTRING], exiting\n";
          echo "-";
        }
        exit -1;
      }
      $XML = trim(FeedForAll_rss2html_convertEncoding($XML));
      xml_parse($xml_parser, $XML, TRUE);
      xml_parser_free($xml_parser);
    
      // make sure the channel contentEncoded is not blank
      if ($rss_parser->FeedContentEncoded == "") {
        $rss_parser->FeedContentEncoded = $rss_parser->FeedDescription;
      }
      $template = str_replace("~~~FeedXMLFilename~~~", $XMLfilename, $template);
      $template = str_replace("~~~FeedTitle~~~", FeedForAll_rss2html_limitLength($rss_parser->FeedTitle, $limitFeedTitleLength), $template);
      $template = str_replace("~~~FeedDescription~~~", FeedForAll_rss2html_limitLength($rss_parser->FeedDescription, $limitFeedDescriptionLength), $template);
      $template = str_replace("~~~FeedContentEncoded~~~", $rss_parser->FeedContentEncoded, $template);
      $template = str_replace("~~~FeedLink~~~", $rss_parser->FeedLink, $template);
      $template = str_replace("~~~FeedPubDate~~~", $rss_parser->FeedPubDate, $template);
      $template = str_replace("~~~FeedPubLongDate~~~", date($LongDateFormat, $rss_parser->FeedPubDate_t), $template);
      $template = str_replace("~~~FeedPubShortDate~~~", date($ShortDateFormat, $rss_parser->FeedPubDate_t), $template);
      $template = str_replace("~~~FeedPubLongTime~~~", date($LongTimeFormat, $rss_parser->FeedPubDate_t), $template);
      $template = str_replace("~~~FeedPubShortTime~~~", date($ShortTimeFormat, $rss_parser->FeedPubDate_t), $template);
      $template = str_replace("~~~FeedImageUrl~~~", $rss_parser->FeedImageURL, $template);
      $template = str_replace("~~~FeedImageTitle~~~", $rss_parser->FeedImageTitle, $template);
      $template = str_replace("~~~FeedImageLink~~~", $rss_parser->FeedImageLink, $template);
      $match = NULL;
    
      $template = str_replace("~~~NoFutureItems~~~", "", $template);
    Earn money for searching the internet:
    Homepages Friends

  8. #18
    Pagina DA INCLUDERE (rss2html) (Parte 4)
    codice:
      // Sort by PubDate if requested
      if (strstr($template, "~~~SortByPubDate~~~")) {
        $template = str_replace("~~~SortByPubDate~~~", "", $template);
    
        for ($x = 0; $x < count($rss_parser->ItemTitle)-1; $x++)
        {
          for ($y = $x+1; $y < count($rss_parser->ItemTitle); $y++)
          {
            if ($rss_parser->ItemPubDate_t[$x] < $rss_parser->ItemPubDate_t[$y])
            {
              // Swap them
              $swapTemp = $rss_parser->ItemTitle[$x]; $rss_parser->ItemTitle[$x] = $rss_parser->ItemTitle[$y]; $rss_parser->ItemTitle[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemDescription[$x]; $rss_parser->ItemDescription[$x] = $rss_parser->ItemDescription[$y]; $rss_parser->ItemDescription[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemContentEncoded[$x]; $rss_parser->ItemContentEncoded[$x] = $rss_parser->ItemContentEncoded[$y]; $rss_parser->ItemContentEncoded[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemLink[$x]; $rss_parser->ItemLink[$x] = $rss_parser->ItemLink[$y]; $rss_parser->ItemLink[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemGuid[$x]; $rss_parser->ItemGuid[$x] = $rss_parser->ItemGuid[$y]; $rss_parser->ItemGuid[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemPubDate[$x]; $rss_parser->ItemPubDate[$x] = $rss_parser->ItemPubDate[$y]; $rss_parser->ItemPubDate[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemPubDate_t[$x]; $rss_parser->ItemPubDate_t[$x] = $rss_parser->ItemPubDate_t[$y]; $rss_parser->ItemPubDate_t[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemEnclosureURL[$x]; $rss_parser->ItemEnclosureURL[$x] = $rss_parser->ItemEnclosureURL[$y]; $rss_parser->ItemEnclosureURL[$y] = $swapTemp;
              $swapTemp = $rss_parser->ItemAuthor[$x]; $rss_parser->ItemAuthor[$x] = $rss_parser->ItemAuthor[$y]; $rss_parser->ItemAuthor[$y] = $swapTemp;
            }
          }
        }
      }
    
      // The the maximum items requested
      if (strstr($template, "~~~FeedMaxItems=")) {
        // Limit the maximun number of items displayed
        if (preg_match("/~~~FeedMaxItems=([0-9-]*)~~~/", $template, $match) !== FALSE) {
          if (($match[0] != "") && ($match[1] != "")) {
            $FeedMaxItems = $match[1];
            $template = str_replace("~~~FeedMaxItems=$match[1]~~~", "", $template);
            if (abs($FeedMaxItems) > count($rss_parser->ItemTitle)) {
              if ($FeedMaxItems > 0) {
                $FeedMaxItems = count($rss_parser->ItemTitle);
              } else {
                $FeedMaxItems = -count($rss_parser->ItemTitle);
              }
            }
          }
        }
      }
    
      //
      // Find the string, if it exists, between the ~~~EndItemsRecord~~~ and ~~~BeginItemsRecord~~~
      //
      while ((strstr($template, "~~~BeginItemsRecord~~~")) !== FALSE) {
        $match = NULL;
        $allitems = NULL;
        $loop_limit = min(abs($FeedMaxItems), count($rss_parser->ItemTitle));
        if (($parts = split("~~~BeginItemsRecord~~~", $template)) !== FALSE) {
          if (($parts = split("~~~EndItemsRecord~~~", $parts[1])) !== FALSE) {
            $WholeBlock = $parts[0];
            //
            // Check for ~~~BeginAlternateItemsRecord~~~
            //
            if (strstr($WholeBlock, "~~~BeginAlternateItemsRecord~~~")) {
              $parts = split("~~~BeginAlternateItemsRecord~~~", $WholeBlock);
              $block1 = $parts[0];
              $block2 = $parts[1];
            } else {
              $block1 = $WholeBlock;
              $block2 = $WholeBlock;
            }
            if ($FeedMaxItems < 0) {
              for ($x = count($rss_parser->ItemTitle)-1; $x >= count($rss_parser->ItemTitle) + $FeedMaxItems; $x--) {
                $item = str_replace("~~~ItemTitle~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemTitle[$x], $limitItemTitleLength), $block1);
                $item = str_replace("~~~ItemDescription~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemDescription[$x], $limitItemDescriptionLength), $item);
                $item = str_replace("~~~ItemContentEncoded~~~", $rss_parser->ItemContentEncoded[$x], $item);
                $item = str_replace("~~~ItemLink~~~", $rss_parser->ItemLink[$x], $item);
                $item = str_replace("~~~ItemPubDate~~~", $rss_parser->ItemPubDate[$x], $item);
                $item = str_replace("~~~ItemGuid~~~", $rss_parser->ItemGuid[$x], $item);
                $item = str_replace("~~~ItemPubLongDate~~~", date($LongDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemPubShortDate~~~", date($ShortDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemPubLongTime~~~", date($LongTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemPubShortTime~~~", date($ShortTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemEnclosureUrl~~~", $rss_parser->ItemEnclosureURL[$x], $item);
                $item = str_replace("~~~ItemAuthor~~~", $rss_parser->ItemAuthor[$x], $item);
                $allitems .= "".$item;
                $x--;
                if ($x >= count($rss_parser->ItemTitle) + $FeedMaxItems) {
                  //
                  // This is at least one more item so use the Alternate definition
                  //
                  $item = str_replace("~~~ItemTitle~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemTitle[$x], $limitItemTitleLength), $block2);
                  $item = str_replace("~~~ItemDescription~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemDescription[$x], $limitItemDescriptionLength), $item);
                  $item = str_replace("~~~ItemContentEncoded~~~", $rss_parser->ItemContentEncoded[$x], $item);
                  $item = str_replace("~~~ItemLink~~~", $rss_parser->ItemLink[$x], $item);
                  $item = str_replace("~~~ItemPubDate~~~", $rss_parser->ItemPubDate[$x], $item);
                  $item = str_replace("~~~ItemGuid~~~", $rss_parser->ItemGuid[$x], $item);
                  $item = str_replace("~~~ItemPubLongDate~~~", date($LongDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemPubShortDate~~~", date($ShortDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemPubLongTime~~~", date($LongTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemPubShortTime~~~", date($ShortTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemEnclosureUrl~~~", $rss_parser->ItemEnclosureURL[$x], $item);
                  $item = str_replace("~~~ItemAuthor~~~", $rss_parser->ItemAuthor[$x], $item);
                  $allitems .= "".$item;
                }
              }
            } else {
              for ($x = 0; $x < $loop_limit; $x++) {
                $item = str_replace("~~~ItemTitle~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemTitle[$x], $limitItemTitleLength), $block1);
                $item = str_replace("~~~ItemDescription~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemDescription[$x], $limitItemDescriptionLength), $item);
                $item = str_replace("~~~ItemContentEncoded~~~", $rss_parser->ItemContentEncoded[$x], $item);
                $item = str_replace("~~~ItemLink~~~", $rss_parser->ItemLink[$x], $item);
                $item = str_replace("~~~ItemPubDate~~~", $rss_parser->ItemPubDate[$x], $item);
                $item = str_replace("~~~ItemGuid~~~", $rss_parser->ItemGuid[$x], $item);
                $item = str_replace("~~~ItemPubLongDate~~~", date($LongDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemPubShortDate~~~", date($ShortDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemPubLongTime~~~", date($LongTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemPubShortTime~~~", date($ShortTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                $item = str_replace("~~~ItemEnclosureUrl~~~", $rss_parser->ItemEnclosureURL[$x], $item);
                $item = str_replace("~~~ItemAuthor~~~", $rss_parser->ItemAuthor[$x], $item);
                $allitems .= "".$item;
                $x++;
                if ($x < $loop_limit) {
                  //
                  // This is at least one more item so use the Alternate definition
                  //
                  $item = str_replace("~~~ItemTitle~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemTitle[$x], $limitItemTitleLength), $block2);
                  $item = str_replace("~~~ItemDescription~~~", FeedForAll_rss2html_limitLength($rss_parser->ItemDescription[$x], $limitItemDescriptionLength), $item);
                  $item = str_replace("~~~ItemContentEncoded~~~", $rss_parser->ItemContentEncoded[$x], $item);
                  $item = str_replace("~~~ItemLink~~~", $rss_parser->ItemLink[$x], $item);
                  $item = str_replace("~~~ItemPubDate~~~", $rss_parser->ItemPubDate[$x], $item);
                  $item = str_replace("~~~ItemGuid~~~", $rss_parser->ItemGuid[$x], $item);
                  $item = str_replace("~~~ItemPubLongDate~~~", date($LongDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemPubShortDate~~~", date($ShortDateFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemPubLongTime~~~", date($LongTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemPubShortTime~~~", date($ShortTimeFormat, $rss_parser->ItemPubDate_t[$x]), $item);
                  $item = str_replace("~~~ItemEnclosureUrl~~~", $rss_parser->ItemEnclosureURL[$x], $item);
                  $item = str_replace("~~~ItemAuthor~~~", $rss_parser->ItemAuthor[$x], $item);
                  $allitems .= "".$item;
                }
              }
            }
            $template = str_replace("~~~BeginItemsRecord~~~".$WholeBlock."~~~EndItemsRecord~~~", $allitems, $template);
          }
        }
      }
    
      // Since &apos; is not HTML, but is XML convert.
      $template = str_replace("&apos;", "'", $template);
    
      echo $template;
    } else {
      if (function_exists("FeedForAll_rss2html_encodeURL") === FALSE) {
        Function FeedForAll_rss2html_encodeURL($URLstring) {
          $result = "";
          for ($x = 0; $x < strlen($URLstring); $x++) {
            if ($URLstring[$x] == '%') {
              $result = $result."%25";
            }
            elseif ($URLstring[$x] == '?') {
              $result = $result."%3f";
            }
            elseif ($URLstring[$x] == '&') {
              $result = $result."%26";
            }
            elseif ($URLstring[$x] == '=') {
              $result = $result."%3d";
            }
            elseif ($URLstring[$x] == '+') {
              $result = $result."%2b";
            }
            elseif ($URLstring[$x] == ' ') {
              $result = $result."%20";
            }else {
              $result = $result.$URLstring[$x];
            }
          }
          return $result;
        }
      }
    
      echo "<html><head><title>rss2html.php URL tool</title></head><body bgcolor=\"#EEEEFF\">\n";
      //
      // We are in "buildURL" mode to help create properly encoded URLs to pass to rss2html.php
      
      $_xml = "";
      if (isset($_POST["XML"])) {
        $_xml = $_POST["XML"];
      }
      $_template = "";
      if (isset($_POST["TEMPLATE"])) {
        $_template = $_POST["TEMPLATE"];
      }
      $_maxitems = "";
      if (isset($_POST["MAXITEMS"])) {
        $_maxitems = $_POST["MAXITEMS"];
      }
      $_nofutureitems = "";
      if (isset($_POST["NOFUTUREITEMS"])) {
        $_nofutureitems = $_POST["NOFUTUREITEMS"];
      }
    Earn money for searching the internet:
    Homepages Friends

  9. #19
    Pagina DA INCLUDERE (rss2html) (Parte 5)
    codice:
      // Display the entry form
      echo "<center><h1>RSS2HTML.PHP LINK TOOL</h1></center>\n";
      echo "
    
    To assist with the with the creation of properly encoded URLs for use with rss2html.php this tool has been created.  Fill in the URLs or file paths for both the XML file and your template file in the boxes below and then click &quot;Submit&quot;.  The program will then return the URLs properly encoded in a string that calls rss2html.php.  You can click on this link to test the results.  The program will also indicate if it was unable to open either of the URLs it was given.</p>\n";
      echo "<form action=\"$_SERVER[PHP_SELF]\" method=\"POST\">\n";
      echo "<input type=\"hidden\" name=\"buildURL\" value=\"1\">\n";
      echo "URL form the XML file: (ie. http://www.myserver.com/file.xml)
    <input type=\"text\" name=\"XML\" size=\"100\" value=\"$_xml\">
    \n";
      echo "URL form the template file: (ie. http://www.myserver.com/template.html)
    <input type=\"text\" name=\"TEMPLATE\" size=\"100\" value=\"$_template\">
    \n";
      echo "Optional items:
    \n";
      echo "Maximum items: <input type=\"text\" name=\"MAXITEMS\" size=\"5\" value=\"$_maxitems\"> (Use negative numbers for the last X items)
    \n";
      echo "No future items: <input type=\"checkbox\" name=\"NOFUTUREITEMS\" ";
      if ($_nofutureitems == "on") {
        echo "CHECKED";
      }
      echo "> (Use negative numbers for the last X items)
    \n";
      echo "<input type=\"submit\" name=\"submit\" value=\"Submit\">\n";
      echo "</form>\n";
      
      $xmlContents = "";
      $templateContents = "";
      
      if (isset($_POST["submit"])) {
        if ($_SERVER["REQUEST_METHOD"] != "POST") {
          exit;
        }
        echo "<hr>\n";
        
        $answer = "";
        $ssi = "";
        $xmlurl = "";
        $templateurl = "";
        if ((isset($_POST["XML"]) && $_POST["XML"] != "") || (isset($_POST["TEMPLATE"]) && $_POST["TEMPLATE"] != "")) {
          $answer .= "http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?";
        }
        if (isset($_POST["XML"]) && $_POST["XML"] != "") {
          $answer .= "XMLFILE=".FeedForAll_rss2html_encodeURL($_POST["XML"]);
          $ssi .= "XMLFILE=".FeedForAll_rss2html_encodeURL($_POST["XML"]);
          $xmlurl = FeedForAll_rss2html_encodeURL($_POST["XML"]);
        }
        if ((isset($_POST["XML"]) && $_POST["XML"] != "") && (isset($_POST["TEMPLATE"]) && $_POST["TEMPLATE"] != "")) {
          $answer .=  "&amp;";
          $ssi .=  "&amp;";
        }
        if (isset($_POST["TEMPLATE"]) && $_POST["TEMPLATE"] != "") {
          $answer .=  "TEMPLATE=".FeedForAll_rss2html_encodeURL($_POST["TEMPLATE"]);
          $ssi .=  "TEMPLATE=".FeedForAll_rss2html_encodeURL($_POST["TEMPLATE"]);
          $templateurl = FeedForAll_rss2html_encodeURL($_POST["TEMPLATE"]);
        }
        if (isset($_POST["MAXITEMS"]) && $_POST["MAXITEMS"] != "" && intval($_POST["MAXITEMS"] != 0)) {
          $answer .=  "&amp;MAXITEMS=$_POST[MAXITEMS]";
          $ssi .=  "&amp;MAXITEMS=$_POST[MAXITEMS]";
        }
        if (isset($_POST["NOFUTUREITEMS"]) && $_POST["NOFUTUREITEMS"] == "on") {
          $answer .=  "&amp;NOFUTUREITEMS=1";
          $ssi .=  "&amp;NOFUTUREITEMS=1";
        }
    
        echo "<h1>Results</h1>\n";
        
        if (isset($_POST["XML"]) && $_POST["XML"] != "") {
          if (($xmlContents = FeedForAll_rss2html_readFile($_POST["XML"], $useFopenURL)) === FALSE) {
            if ($GLOBALS["ERRORSTRING"] == "") {
              echo "
    
    The XML file $_POST[XML] could not be opened.</p>\n";
            } else {
              echo "
    
    The XML file $_POST[XML] could not be opened with the error $GLOBALS[ERRORSTRING].</p>\n";
            }
          } else {
            echo "
    
    The XML file $_POST[XML] was SUCCESSFULLY opened</p>\n";
          }
        }
        if (isset($_POST["TEMPLATE"]) && $_POST["TEMPLATE"] != "") {
          if (($templateContents = FeedForAll_rss2html_readFile($_POST["TEMPLATE"], $useFopenURL)) === FALSE) {
            if ($GLOBALS["ERRORSTRING"] == "") {
              echo "
    
    The template file $_POST[TEMPLATE] could not be opened.</p>\n";
            } else {
              echo "
    
    The template file $_POST[TEMPLATE] could not be opened with the error $GLOBALS[ERRORSTRING].</p>\n";
            }
          } else {
            echo "
    
    The template file $_POST[TEMPLATE] was SUCCESSFULLY opened</p>\n";
          }
        }
        
        if ($xmlurl != "") {
          echo "
    
    URL for the XML file properly encoded:
    <pre>$xmlurl</pre></p>\n";
        }
    
        if ($templateurl != "") {
          echo "
    
    URL for the template file properly encoded:
    <pre>$templateurl</pre></p>\n";
        }
    
        echo "<h2>Example Usage</h2>\n";
        
        echo "
    
    Click on link to view results: <a href=\"$answer\" target=\"_blank\">$answer</a></p>\n";
        
        echo "
    
    Server Side Include:
    <pre>&lt!-- #INCLUDE VIRTUAL=&quot;".basename($_SERVER["PHP_SELF"])."?$ssi&quot; --&gt;</pre></p>\n";
        
        echo "
    
    PHP Include:
    <pre>&lt?php\ninclude(&quot;$answer&quot;);\n?&gt;</pre></p>\n";
        
      }
    
      if ($xmlContents != "" || $templateContents != "") {
        echo "
    <hr>
    \n";
        if ($xmlContents != "") {
          echo "<h1>XML file</h1>\n";
          $xmlContents = str_replace("&", "&amp;", $xmlContents);
          $xmlContents = str_replace("<", "&lt;", $xmlContents);
          $xmlContents = str_replace(">", "&gt;", $xmlContents);
          echo "<pre>$xmlContents</pre>
    \n";
        }
        if ($templateContents != "") {
          echo "<h1>Template file</h1>\n";
          $templateContents = str_replace("&", "&amp;", $templateContents);
          $templateContents = str_replace("<", "&lt;", $templateContents);
          $templateContents = str_replace(">", "&gt;", $templateContents);
          echo "<pre>$templateContents</pre>
    \n";
        }
      }
    }
        
    ?>
    Earn money for searching the internet:
    Homepages Friends

  10. #20
    E l'ultima!

    Pagina nella quale includo
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>::RainerumGroup::</title>
    <link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
    </head>
    <body>
    <div id="blackt">
    </div>
    <p id="validated">
    
    
    </p>
    <div id="header">
    	<p id="logo">[img]images/logo.gif[/img]</p>
    </div>
    <div id="menu">
    	<p class="m">. News</p>
    	<ul>
    	[*]News dal Mondo
    	[*]News del Sito
    	[*]ANSA News
    	[/list]
    	<p class="m">. RainerumGroup</p>
    	<ul>
    	[*]RainerumGroupForum
    	[*]RainerumGroupWebGallery
    	[/list]
    	<p class="m">. Fun</p>
    	<ul>
    	[*]I Videos pi&ugrave; Belli del Web
    	[*]Giochi
    	[/list]
    	<p class="m">. Altro</p>
    	<ul>
    	[*]Links
    	[*]Contattaci
    	[*]Prossimamente...
    	[/list]
    </div>
    <div id="page">
    <?php include("rss/news.php"); ?>
    </div>
    <div id="footer">
    	<div id="contact">
    	RainerumGroupWebStaff: Maurizio Giaffredo e Sebastian Cincelli
    	</div>
    </div>
    <div id="blackb">
    </div>
    </body>
    </html>
    Earn money for searching the internet:
    Homepages Friends

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.