- <?php
- global $userdata;
- $path_parts2 = pathinfo($_SERVER['PHP_SELF']);
- $query = $_SERVER['QUERY_STRING'];
- if ($path_parts2['basename'] != PORTAL_MG && $path_parts2['basename'] != VIEWTOPIC_MG && $path_parts2['basename'] != 'album_showpage.php' && (!preg_match("/article/", $query)) && (!preg_match("/edit/", $query)) && (!preg_match("/add/", $query)) && (!preg_match("/results/", $query)) && $path_parts2['basename'] != 'posting.php' ){?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <?php }
- if (preg_match("/news=categories/", $query)){
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <?php }
- ?>
- <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- {META}
- {META_TAG}
- {NAV_LINKS}
why are there 2 doctypes?
and why that much opening and closing of php for no reason
and the weirdest there's "if" stuff around there that does nothing.. for as far as I can see..
it's just like if something.. and the php is thinking yeah it is now what LOL
just messy coding or am I still a newb with this?
