Hallo Leute,
Ich habe unter XAMPP eine fehlerhafte Ausgabe eines Scripts aber nur bei diesem Script.
PHP selber läuft und alles andere auch. Nur bei diesem Script gibt es Probleme.
Z.B. die index.php und alle anderen Dateien werden so angezeigt:
Ich komme absolut nicht dahinter woran es liegen kann?
Es handelt sich nur um dieses Script.
Bitte Codes über Einfügen -> Code einbinden - geändert von ackermaennchen
Ich habe unter XAMPP eine fehlerhafte Ausgabe eines Scripts aber nur bei diesem Script.
PHP selber läuft und alles andere auch. Nur bei diesem Script gibt es Probleme.
Z.B. die index.php und alle anderen Dateien werden so angezeigt:
PHP:
contact; break; case "policy": $generalContent = $clsSite_config->policy; break; case "term": $generalContent = $clsSite_config->term; break; case "faq": $generalContent = $clsSite_config->faq; break; default: $generalContent = $clsSite_config->home; include_once ("class/photos.class.php"); $photos = new Photos(); $colsnum = (int)($clsSite_config->home_size); $template->assign_block_vars("homepage",array( )); //List lastest photos $result = $photos->GetPhotosLimitWhere(0, $colsnum, " WHERE `approved` = 1 ", "`photo_id` DESC"); //$clsSite_config->col_size $w = $clsSite_config->sample_size; while ($row = mysql_fetch_array($result)) { $fullname = $cats->GetCatFullName($row["category"]); $username = $photos->GetPosterName($row["photo_designer"]); $photo_level = $photos->GetLevel($row["download"],$row["resolution"]); $h = (double) $w*($row['photo_height']/$row['photo_width']); $template->assign_block_vars("indexcol",array( "PHOTO_SID" => $row["photo_sid"], "PHOTO_TITLE" => $row["photo_title"], "PHOTO_THUMB" => $row["photo_thumb"], "PHOTO_DESIGNER" => $row["photo_designer"], "RESOLUTION" => $row["resolution"], 'PHOTO_SIZE' => $row['photo_size']/1000000, 'PHOTO_PWIDTH' => CurrencyFormat1($w), 'PHOTO_PHEIGHT' => CurrencyFormat1($h), 'PHOTO_WIDTH' => $row['photo_width'], 'PHOTO_HEIGHT' => $row['photo_height'], 'PHOTO_DESIGNER' => $row['photo_designer'], "PHOTO_PRICE" => $photo_level['price'], "PHOTO_LEVEL" => $photo_level["level_name"], 'PHOTO_POST_DATE' => $row['photo_post_date'], 'FULLNAME' => $fullname, 'USERNAME' => $username, "SITENAME" => $clsSite_config->site_title, 'PHOTO_PREVIEW'=> $row['photo_preview'], "VIEW" => $row["view"], "DOWNLOAD" => $row["download"], "APPROVED" => $row["approved"] == "0"?"Unapproved":"Approved" )); } //List popular photos -- depend on download number $result = $photos->GetPhotosLimitWhere(0, $colsnum, " WHERE `approved` = 1 ", "`download` DESC"); while ($row = mysql_fetch_array($result)) { $fullname = $cats->GetCatFullName($row["category"]); $username = $photos->GetPosterName($row["photo_designer"]); $photo_level = $photos->GetLevel($row["download"],$row["resolution"]); $h = (double) $w*($row['photo_height']/$row['photo_width']); $template->assign_block_vars("indexcol1",array( "PHOTO_SID" => $row["photo_sid"], "PHOTO_TITLE" => $row["photo_title"], "PHOTO_THUMB" => $row["photo_thumb"], "PHOTO_DESIGNER" => $row["photo_designer"], "RESOLUTION" => $row["resolution"], 'PHOTO_SIZE' => $row['photo_size']/1000000, 'PHOTO_PWIDTH' => CurrencyFormat1($w), 'PHOTO_PHEIGHT' => CurrencyFormat1($h), 'PHOTO_WIDTH' => $row['photo_width'], 'PHOTO_HEIGHT' => $row['photo_height'], 'PHOTO_DESIGNER' => $row['photo_designer'], "PHOTO_PRICE" => $photo_level['price'], "PHOTO_LEVEL" => $photo_level["level_name"], 'PHOTO_POST_DATE' => $row['photo_post_date'], 'FULLNAME' => $fullname, 'USERNAME' => $username, "SITENAME" => $clsSite_config->site_title, 'PHOTO_PREVIEW'=> $row['photo_preview'], "VIEW" => $row["view"], "DOWNLOAD" => $row["download"], "APPROVED" => $row["approved"] == "0"?"Unapproved":"Approved" )); } //List free photos -- depend on download number $result = $photos->GetPhotosLimitWhere(0, $colsnum, " WHERE `approved` = 1 and `is_free`>=".time(), "`photo_id` DESC"); while ($row = mysql_fetch_array($result)) { $fullname = $cats->GetCatFullName($row["category"]); $username = $photos->GetPosterName($row["photo_designer"]); $photo_level = $photos->GetLevel($row["download"],$row["resolution"]); $h = (double) $w*($row['photo_height']/$row['photo_width']); $template->assign_block_vars("indexcol2",array( "PHOTO_SID" => $row["photo_sid"], "PHOTO_TITLE" => $row["photo_title"], "PHOTO_THUMB" => $row["photo_thumb"], "PHOTO_DESIGNER" => $row["photo_designer"], "RESOLUTION" => $row["resolution"], 'PHOTO_SIZE' => $row['photo_size']/1000000, 'PHOTO_PWIDTH' => CurrencyFormat1($w), 'PHOTO_PHEIGHT' => CurrencyFormat1($h), 'PHOTO_WIDTH' => $row['photo_width'], 'PHOTO_HEIGHT' => $row['photo_height'], 'PHOTO_DESIGNER' => $row['photo_designer'], "PHOTO_PRICE" => $photo_level['price'], "PHOTO_LEVEL" => $photo_level["level_name"], 'PHOTO_POST_DATE' => $row['photo_post_date'], 'FULLNAME' => $fullname, 'USERNAME' => $username, "SITENAME" => $clsSite_config->site_title, 'PHOTO_PREVIEW'=> $row['photo_preview'], "VIEW" => $row["view"], "DOWNLOAD" => $row["download"], "APPROVED" => $row["approved"] == "0"?"Unapproved":"Approved" )); } break; } $template->set_filenames(array("body" => "index.html")); $template->assign_vars(array( 'TITLE' => $tit, 'COLSNUM' => $colsnum, 'CONTENT'=> $generalContent, )); $template->pparse("body"); include("footer.php"); ?>
Ich komme absolut nicht dahinter woran es liegen kann?
Es handelt sich nur um dieses Script.
Bitte Codes über Einfügen -> Code einbinden - geändert von ackermaennchen
Zuletzt bearbeitet von einem Moderator: