In meiner htacces steht zur zeit nur:
Code: Alles auswählen
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>?
Code: Alles auswählen
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>?
Code: Alles auswählen
Parse error: parse error, unexpected T_STRING in /homepages/6/d161186929/htdocs/bioboard/includes/sessions.php on line 560
Code: Alles auswählen
function append_sid($url, $non_html_amp = false)
{
global $SID;
Code: Alles auswählen
function append_sid($url, $non_html_amp = false)
{
$url_search = array( 'Ö', 'Ä', 'Ü', 'ö', 'ä', 'à', 'é', 'è', 'ü', ' ', ".", "'", '#', '&', '/','ß','+','€','§','$','%','?','!',':',';','[',']',',');
$url_replace = array( 'oe', 'ae', 'ue', 'oe', 'ae', 'a', 'e', 'e', 'ue', '-', "", "", '', '-und-', '-','ss','','euro','','','','','','','','','','');
global $SID,$HTTP_SERVER_VARS,$db,$board_config;
if( strstr($url,'viewtopic.php') && !strstr($url,'viewtopic.php?replace') )
{
if(ereg("#",$url)) {
$pos=strpos($url, "#");
$url_temp=substr($url,0,$pos);
$zusatz=substr($url,$pos,strlen($url));
$url=$url_temp;
}
//
// Post
//
if( preg_match('#viewtopic.php\?p=#', $url) ) {
$prg=str_replace("viewtopic.php?","",$url);
parse_str($prg, $prg_output);
$sql = "SELECT *
FROM " . POSTS_TABLE . "
WHERE post_id = '".$prg_output['p']."'";
if ($result = $db->sql_query($sql))
{
$row = $db->sql_fetchrow($result);
$prg_output['t'] = $row['topic_id'];
$sql = "SELECT *
FROM " . TOPICS_TABLE . "
WHERE topic_id = '".$prg_output['t']."'";
if ($result = $db->sql_query($sql))
{
$row = $db->sql_fetchrow($result);
$url1= urlencode(strtolower(str_replace($url_search, $url_replace, $row['topic_title'])));
}
$sql = "SELECT *
FROM " . POSTS_TABLE . "
WHERE post_id < '".$prg_output['p']."'
AND topic_id = '".$prg_output['t']."'";
if ($result = $db->sql_query($sql))
{
$c = $db->sql_numrows($result)+1;
if ($board_config['posts_per_page'] < $c)
$prg_output['start'] = floor(($c-1) / $board_config['posts_per_page']) * $board_config['posts_per_page'];
}
if (isset($prg_output['start']))
$url = preg_replace('#viewtopic.php\?p='.$prg_output['p'].'#','-t'.$prg_output['t'].'-s'.$prg_output['start'].'.html',$url);
else
$url = preg_replace('#viewtopic.php\?p='.$prg_output['p'].'#','-t'.$prg_output['t'].'.html',$url);
unset($prg_output['p']);
}
$url="$url1$url";
}
}
//
// Topic
//
if ( preg_match('#viewtopic.php\?t=#', $url) ) {
$prg=str_replace("viewtopic.php?","",$url);
parse_str($prg, $prg_output);
$highlight = preg_match( '#highlight#', $url) || preg_match( '#vote#', $url) || preg_match( '#newest#', $url);
if (!$highlight) {
$sql = "SELECT topic_title
FROM " . TOPICS_TABLE . "
WHERE topic_id = '".$prg_output['t']."'";
if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) ) {
$start= preg_match('#start=0#', $url);
$postdays = preg_match( '#postdays=0#', $url);
if ($start) {
$url = str_replace( 'viewtopic.php', '', $url );
$url = str_replace( 'start=0', '', $url );
}
if ($postdays) {
$url = str_replace( 'viewtopic.php', '', $url );
$url = str_replace( 'postdays=0', '', $url );
} else {
$url = str_replace( 'viewtopic.php', '', $url );
}
$url1 = strtr($url,array("?t="=>"-t","&"=>"","amp;"=>"","asc"=>"","start="=>"-s","postdays="=>"-p","postorder="=>""));
$url = urlencode(strtolower(str_replace($url_search, $url_replace, $row['topic_title'])));
$url .= $url1. ".html";
}
}
}
//
// Forum
//
if( strstr ($url, 'viewforum.php?f=') ) {
$prg=str_replace("viewforum.php?","",$url);
parse_str($prg, $prg_output);
$sql = "SELECT forum_name
FROM " . FORUMS_TABLE . "
WHERE forum_id = '".$prg_output['f']."'";
if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) ){
$start= preg_match('#start=0#', $url);
$topicdays = preg_match( '#topicdays=0#', $url);
$mark = preg_match( '#mark#', $url);
if ($start) {
$url = str_replace( 'start=0', '', $url );
}
if ($topicdays) {
$url = str_replace( 'topicdays=0', '', $url );
}
if (!($mark)) {
$url = str_replace( 'viewforum.php', '', $url );
$url1 .= strtr($url,array("?f="=>"-f","amp;"=>"","&"=>"","topicdays="=>"-p","start="=>"-s"));
$url = urlencode(strtolower(str_replace($url_search, $url_replace, $row['forum_name'])));
$url .= $url1. ".html";
}
}
}