

Maar zoals gezegd ik ga een proefforum voor sit projectje misbruiken. Opmerkingen, fouten, vragen etc etc zal ik hier posten.
Nogmaals dank.
Code: Selecteer alles
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
Code: Selecteer alles
if($_GET["userprof"] != ''){
if(isset($_GET["userprof"])){
$sql="SELECT user_id AS username FROM phpbb_users WHERE username='" .$_GET["userprof"] ."'";
$res = mysql_query($sql);
while ($row = mysql_fetch_assoc($res)) {
$userid=$row["username"];
}
echo "<meta http-equiv=\"Refresh\" content=0;URL=http://www.blaatpraat.nl/profile.php?mode=viewprofile&u=" . $userid . ">";
}
}else{
Code: Selecteer alles
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Selecteer alles
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
?>
Code: Selecteer alles
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.blaatpraat.nl$
RewriteCond %{REQUEST_URI} !^/gallery.php
RewriteCond %{REQUEST_URI} !^/forum/
RewriteCond %{REQUEST_URI} !^/index.php
...en zo voort, alle files en folders in de rootmap escapen...
RewriteCond %{REQUEST_URI} !^/viewforum.php
RewriteCond %{REQUEST_URI} !^/viewonline.php
RewriteCond %{REQUEST_URI} !^/viewtopic.php
RewriteRule ^(.*) /index.php?userprof=$1 [NC,L]
Code: Selecteer alles
$sql="SELECT user_id AS username FROM phpbb_users WHERE username='" .$_GET["userprof"] ."'";
Code: Selecteer alles
$sql="SELECT user_id AS username FROM phpbb_users WHERE username='" .strip_tags($_GET["userprof"]) ."'";
Code: Selecteer alles
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, sukkelaapforum_nl@hotmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Code: Selecteer alles
RewriteCond %{REQUEST_URI} !^/index.php
Code: Selecteer alles
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.mijnsite.nl/phpBB2$
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^(.*) /index.php?userprof=$1 [NC,L]
Code: Selecteer alles
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.sukkelaapforum.nl/mijnprofiel$
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^(.*) /index.php?userprof=$1 [NC,L]
Code: Selecteer alles
RewriteCond %{REQUEST_URI} !^/gallery.php
RewriteCond %{REQUEST_URI} !^/forum/
RewriteCond %{REQUEST_URI} !^/index.php
Code: Selecteer alles
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/file1.php
RewriteCond %{REQUEST_URI} !^/file2.txt
RewriteCond %{REQUEST_URI} !^/file3.exe
RewriteCond %{REQUEST_URI} !^/Map1/
RewriteCond %{REQUEST_URI} !^/Map2/
RewriteCond %{REQUEST_URI} !^/Map3/
Met de rewrite regels wordt er geen controle gedaan of de pagina waarheen wordt gegaan bestaat. Als ik het echter goed heb begrepen was het idee dat:sukkelaap schreef:Trouwens dat heeft toch nisk te maken met of die de user herkent of niet?
Code: Selecteer alles
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.sukkelaapforum.nl/mijnprofiel$
RewriteCond %{REQUEST_URI} !^/common.php
RewriteCond %{REQUEST_URI} !^/config.php
RewriteCond %{REQUEST_URI} !^/extension.inc
RewriteCond %{REQUEST_URI} !^/faq.php
RewriteCond %{REQUEST_URI} !^/groupcp.php
RewriteCond %{REQUEST_URI} !^/login.php
RewriteCond %{REQUEST_URI} !^/memberlist.php
RewriteCond %{REQUEST_URI} !^/modcp.php
RewriteCond %{REQUEST_URI} !^/posting.php
RewriteCond %{REQUEST_URI} !^/privmsg.php
RewriteCond %{REQUEST_URI} !^/profile.php
RewriteCond %{REQUEST_URI} !^/search.php
RewriteCond %{REQUEST_URI} !^/viewforum.php
RewriteCond %{REQUEST_URI} !^/viewonline.php
RewriteCond %{REQUEST_URI} !^/viewtopic.php
RewriteCond %{REQUEST_URI} !^/fetchposts.php
RewriteCond %{REQUEST_URI} !^/forum.php
RewriteCond %{REQUEST_URI} !^/profiel.php
RewriteCond %{REQUEST_URI} !^/vragen.php
RewriteCond %{REQUEST_URI} !^/style.php
RewriteCond %{REQUEST_URI} !^/afbeelding.php
RewriteCond %{REQUEST_URI} !^/registratie.php
RewriteCond %{REQUEST_URI} !^/voorkeuren.php
RewriteCond %{REQUEST_URI} !^/cash.php
RewriteCond %{REQUEST_URI} !^/stem.php
RewriteCond %{REQUEST_URI} !^/index.html
RewriteCond %{REQUEST_URI} !^/portal.php
RewriteCond %{REQUEST_URI} !^/gestemd.html
RewriteCond %{REQUEST_URI} !^/smilies_list.php
RewriteCond %{REQUEST_URI} !^/achtergronden_3d.html
RewriteCond %{REQUEST_URI} !^/bubbles.swf
RewriteCond %{REQUEST_URI} !^/tt4.swf
RewriteCond %{REQUEST_URI} !^/kleurenkaart.html
RewriteCond %{REQUEST_URI} !^/thema.html
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/achtergronden.html
RewriteCond %{REQUEST_URI} !^/achtergronden_animeer.html
RewriteCond %{REQUEST_URI} !^/achtergronden_babyspul.html
RewriteCond %{REQUEST_URI} !^/achtergronden_blauw.html
RewriteCond %{REQUEST_URI} !^/achtergronden_bruin.html
RewriteCond %{REQUEST_URI} !^/achtergronden_food.html
RewriteCond %{REQUEST_URI} !^/achtergronden_geel.html
RewriteCond %{REQUEST_URI} !^/achtergronden_grijs.html
RewriteCond %{REQUEST_URI} !^/sync_postcount.php
RewriteCond %{REQUEST_URI} !^/groupmsg.php
RewriteCond %{REQUEST_URI} !^/cursor3.cur
RewriteCond %{REQUEST_URI} !^/profile_view_popup.php
RewriteCond %{REQUEST_URI} !^/profile_view_user.php
RewriteCond %{REQUEST_URI} !^/achtergronden/
RewriteCond %{REQUEST_URI} !^/templates/
RewriteCond %{REQUEST_URI} !^/language/
RewriteCond %{REQUEST_URI} !^/includes/
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/docs/
RewriteCond %{REQUEST_URI} !^/db/
RewriteCond %{REQUEST_URI} !^/cache/
RewriteCond %{REQUEST_URI} !^/admin/
RewriteRule ^(.*) /index.php?userprof=$1 [NC,L]
Code: Selecteer alles
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'fetchposts.'.$phpEx);
if($_GET["userprof"] != ''){
if(isset($_GET["userprof"])){
$sql="SELECT user_id AS username FROM phpbb_users WHERE username='" .strip_tags($_GET["userprof"]) ."'";
$res = mysql_query($sql);
while ($row = mysql_fetch_assoc($res)) {
$userid=$row["username"];
}
echo "<meta http-equiv=\"Refresh\" content=0;URL=profile.php?mode=viewprofile&u=" . $userid . ">";
}
}else{