[php 5.4]Wat is er fout?

Gestart doorOne2xs14 reacties41 weergaven

15 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ik heb het volgende script maar door php5.4 werkt die niet meer. Hij geeft de pagina is niet gevonden weer inplaats dan naar /start gaan. Iemand die hem kan aanpassen dat het wel weer werkt?:

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL[COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]db_connect.php[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]])){[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]])){[/COLOR]

[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: http://[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].freesitemaker.nl/start[/COLOR][COLOR= #007700]);

}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]

[COLOR= #0000BB]$page[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]];

}[/COLOR]

[COLOR= #0000BB]$uQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE username = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]" AND NOT type = 4"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$uFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]

[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Dit lid bestaat niet.[/COLOR][COLOR= #007700]);

}[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]banned_until[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]0000-00-00 00:00:00[/COLOR] and [COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]banned_until[/COLOR][COLOR= #007700]] >=[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y-m-d H:i:s[/COLOR][COLOR= #007700])){[/COLOR]

[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Deze gebruiker is verbannen.[/COLOR][COLOR= #007700]);

}[/COLOR]

[COLOR= #0000BB]$pQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM pages WHERE title = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$page[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]" AND author = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$pFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$pQuery[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$pQuery[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$page[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000][/COLOR] or [COLOR= #0000BB]$page[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]/[/COLOR][COLOR= #007700]){[/COLOR]

[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: http://[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].freesitemaker.nl/start[/COLOR][COLOR= #007700]);

}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]

[COLOR= #0000BB]$eQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM pages WHERE title = 404 AND author = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$eQuery[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]

[COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].freesitemaker.nl/404[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]();

}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]

[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]De pagina kon niet worden gevonden.[/COLOR][COLOR= #007700]);

}

}

}[/COLOR]

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]title[/COLOR][COLOR= #007700]];[/COLOR] ?></title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<script type="text/javascript" src="http://freesitemaker.nl/js/popups.js"></script>
<style type="text/css">
body {    
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-family: Tahoma;
    background-image: url([COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bgimg[/COLOR][COLOR= #007700]];[/COLOR] ?>);
    background-repeat: [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bgrepeat[/COLOR][COLOR= #007700]];[/COLOR] ?>;
    background-color: #[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bgcolor[/COLOR][COLOR= #007700]];[/COLOR] ?>;
}
img {
    border: 0;
}
</style>
</head>
<body>

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]show_vote[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]){[/COLOR]
  ?>

<button style="background: #FFFFFF; border: 1px solid #CCCCCC;" onclick="javascript:NewWindow(http://www.freesitemaker.nl/vote.php?id=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]author[/COLOR][COLOR= #007700]];[/COLOR] ?>,vote_window,360,208,custom,front);">Stem</button>

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #007700]}[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bg_music[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]){[/COLOR]

?>
<object width="0" height="0"><param name="movie" value="http://www.youtube.com/v/[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bg_music[/COLOR][COLOR= #007700]];[/COLOR] ?>?fs=1&amp;hl=nl_NL&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bg_music[/COLOR][COLOR= #007700]];[/COLOR] ?>?fs=1&amp;hl=nl_NL&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="0" height="0"></embed></object>
[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #007700]}[/COLOR]


[COLOR= #0000BB]$iQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM items WHERE page_id = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iQuery[/COLOR][COLOR= #007700])){[/COLOR]

?>

<div id="item[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>" style="position: absolute; left: [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pos_left[/COLOR][COLOR= #007700]];[/COLOR] ?>px; top: [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pos_top[/COLOR][COLOR= #007700]] -[/COLOR] [COLOR= #0000BB]40[/COLOR][COLOR= #007700];[/COLOR] ?>px; z-index: [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]z_index[/COLOR][COLOR= #007700]];[/COLOR] ?>;">
<div id="item_content[COLOR= #0000BB]<?[/COLOR]php [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>" style="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]width[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]width: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]width[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]px;[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]height[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]height: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]height[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]px;[/COLOR][COLOR= #007700]; }[/COLOR] ?>  border: [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]border_color[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000] #[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]border_color[/COLOR][COLOR= #007700]]; }[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]border_width[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000] [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]border_width[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]px[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]border_style[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000] [/COLOR] [COLOR= #007700].[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]border_style[/COLOR][COLOR= #007700]]); }[/COLOR] ?>; [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]background[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]background: #[/COLOR] [COLOR= #007700].[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]background[/COLOR][COLOR= #007700]]); }[/COLOR] ?>">
[COLOR= #0000BB]<?php[/COLOR] 

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]type[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]cookie[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]text[/COLOR][COLOR= #007700]]));

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]type[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]){[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<img src="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]img_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" />[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]type[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]){[/COLOR]

menu[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]author[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$iFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]);

}[/COLOR]

?>
</div>
</div>

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #007700]}[/COLOR]

[COLOR= #FF8000]/*

Advertentie:


<div style="float: right; padding: 2px; z-index: 9999; position: relative;">
<?php

$aQuery = mysql_query("SELECT * FROM ads WHERE vertical = 1 AND horizontal = 0 ORDER BY RAND() LIMIT 1") or die(mysql_error());
$aFetch = mysql_fetch_assoc($aQuery);

?>
<a href="http://www.freesitemaker.nl/index.php?p=ad&id=<?php echo $aFetch[id]; ?>"><img src="http://freesitemaker.nl/img/ads/<?php echo $aFetch[id]; ?>.<?php echo $aFetch[filetype]; ?>" /></a>
</div>

*/[/COLOR]

?>

</body>
</html>

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #007700]}

function[/COLOR] menu[COLOR= #007700]([/COLOR][COLOR= #0000BB]$f_id[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$f_item_id[/COLOR][COLOR= #007700])
{[/COLOR]

[COLOR= #0000BB]$e_id[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$f_id[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$e_item_id[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$f_item_id[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]editor_menu.php[/COLOR][COLOR= #007700]);

}[/COLOR]

?>


Ik weet dat het het whear script is maar dat is geen probleem hoop ik.

modedit: topictitel duidelijker gemaakt
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is je htacccess goed?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Options FollowSymLinks MultiViews

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.freesitemaker.nl$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([^.]+).freesitemaker.nl$ [NC]
RewriteCond %{REQUEST_URI} !/site.php
RewriteRule ^(.*)$ site.php?name=%2&p=$1 [L]

ErrorDocument 404 /index.php?p=404


Het probleem is kijk:
meljel2.freesitemaker.nl
hij verwijst niet door naar:
meljel2.freesitemaker.nl/start
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat maakt dat start uit ?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je hebt dit: if(!isset($_GET[p])){
Als $_GET[p] niet bestaat wordt je doorgestuurd naar /start
maar $_GET[p] bestaat gewoon altijd, je kunt beter doen if(!isset($_GET[p]) || $_GET[p] == ){
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik zie in dit bestand nergens Pagina niet gevonden. staan?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Regel 59.

toevoeging op 21 april 2012, 19:39:16:
Ik heb de tekst iets aangepast dat klopt wink
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Er bestaat geen 404 pagina voor de gebruiker?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Regel 59
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kun je dat het script plaatsen met de aanpassingen die je erbij hebt.. En misschien kun je de PHP-code ook uitlijnen, dat maakt het wat overzichtelijker.
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Sjoerd schreef:
Kun je dat het script plaatsen met de aanpassingen die je erbij hebt.. En misschien kun je de PHP-code ook uitlijnen, dat maakt het wat overzichtelijker.
die aanpassing is kunnen jullie dat niet doen? kleine moeite toch?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het lijkt me dat je er zelf ook wel iets voor over hebt om hulp te krijgen? Met een instelling als ik post een code en jullie maken het maar naar mijn wens ga je niet veel hulp krijgen verder..
0
Berichten
4.013
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bij mij word je gewoon redirected naar /start hoor?smile
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Niet dat het er mee te maken heeft, maar doodgaan doet niemand als iets niet bestaat. Dus voer die die() al, en gebruik eens fatsoenlijke foutafhandeling.

Ik dacht dat dit al 2 maanden geleden tot je was doorgedrongen?

Als de topicstarter nou eens gewoon relevante code geeft? Daar kunnen we meer mee, dan 178 regel code door te spiten met een glazen bol.
Een argument van: Ik weet niet waar de fout zit, vind ik dan onzin. Alles valt in te korten. Als je dit hebt geschreven kan je ook zelf je code inkorten totdat je een minimaal aantal regels overhoud waar de fout te vinden is (isoleren van problemen)
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren