Hilfe bei PhPKit

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Hilfe bei PhPKit

    Und zwar haben wir bei unser CLanpage (cod-gaming.de ~ist aber offline weil wir eben grad dran arbeiten~) ein Problem mit PhPkit.
    Wir haben uns ein Template ausgesucht und haben da jetz die anderen Seiten wie Join Us Formular undsoweiter per Include hinzugefügt. Nur diese Neuen Seiten sind irgendwie auf eine bestimmte Grösse beschränkt.

    Also in dem Fall wied das Join US Formular nicht über die ganze seite amngeziegt sondern nur zur Hälfte. Deswegen meine Frage weiss einer wie ich das ändern kann? Wär echt nett :)

    Deswegen BIG BIG Thx im Voraus
    MFG
    $niperwolf

    Anhang ich poste euch mal die Include.php:

    Quellcode

    1. <?php
    2. include("admin/config/config.php");
    3. $DB->sqlerrorreport(1);
    4. parsertime("start");
    5. $catid = intval($_REQUEST['catid']);
    6. $cat_id = intval($_REQUEST['cat_id']); // 4images
    7. $themeid = intval($_REQUEST['themeid']);
    8. $contentid = intval($_REQUEST['contentid']);
    9. $author = addslashes($_REQUEST['author']);
    10. $nonav = intval($_REQUEST['nonav']);
    11. $nohead = intval($_REQUEST['nohead']);
    12. // WYSIWYG Editor
    13. // --------------
    14. if($config['ccp_editor'])
    15. eval ("\$cpp_wysiwyg_config = \"".getTemplate("wysiwyg_config")."\";");
    16. if(stristr($current_url,'path=team.php') || (stristr($current_url,'path=login') || stristr($current_url,'profile.html') || stristr($current_url,'user_') || stristr($current_url,'members.html') || stristr($current_url,'journal.html') || stristr($current_url,'members.html') && !stristr($current_url,'register.php') && !stristr($current_url,'login.php'))) {
    17. $master_modul = 'login';
    18. $intro_header = $lang['ccp_profile'];
    19. $menu_option = 1;
    20. }
    21. elseif(stristr($current_url,'forum')) {
    22. $master_modul = 'forum';
    23. $intro_header = $lang['ccp_forum'];
    24. $menu_option = 1;
    25. if($catid && $contentcatinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contentcat']." WHERE contentcat_forumid ='$catid' LIMIT 1"))) {
    26. $intro_header = ($contentcatinfo['contentcat_header'])?(stripslashes($contentcatinfo['contentcat_header'])):($contentcatinfo['contentcat_name']).' '.$intro_header;
    27. $meta_catid = $contentcatinfo['contentcat_id'];
    28. }
    29. }
    30. elseif($config['ccp_4imgpath'] && stristr($current_url,$config['ccp_4imgpath'])) {
    31. $master_modul = '4img';
    32. $menu_option = 1;
    33. if($contentcatinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contentcat']." WHERE contentcat_4imgid ='$cat_id' LIMIT 1"))) {
    34. $intro_header = ($contentcatinfo['contentcat_header'])?(stripslashes($contentcatinfo['contentcat_header'])):($contentcatinfo['contentcat_name']);
    35. $meta_catid = $contentcatinfo['contentcat_id'];
    36. }
    37. if($contentthemeinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contenttheme']." WHERE contenttheme_4imgid='$cat_id' LIMIT 1"))) {
    38. $intro_header = ($contentthemeinfo['contenttheme_header'])?(stripslashes($contentthemeinfo['contenttheme_header'])):($contentthemeinfo['contenttheme_name']);
    39. $meta_themeid = $contentthemeinfo['contenttheme_id'];
    40. }
    41. $intro_header .= ' '.$lang['ccp_4img'];
    42. }
    43. elseif($contentid) {
    44. $contentinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['content']." WHERE content_id='$contentid' LIMIT 1"));
    45. if(!$catid) $catid=$contentinfo['content_cat'];
    46. $contentcatinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contentcat']." WHERE contentcat_id='$catid' LIMIT 1"));
    47. if(!$themeid) $themeid=$contentinfo['content_themeid'];
    48. if($themeid) {
    49. $contentthemeinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contenttheme']." WHERE contenttheme_id='".$contentinfo['content_themeid']."' LIMIT 1"));
    50. $meta_themeid = $contentthemeinfo['contenttheme_id'];
    51. }
    52. if($contentinfo['content_bgsound']) $site_bg_sound = '<bgsound src="'.$contentinfo['content_bgsound'].'" loop="1">';
    53. $intro_header = ($contentinfo['content_header'])?(stripslashes($contentinfo['content_header'])):($contentinfo['content_title']);
    54. $master_modul = 'content';
    55. $meta_contentid = $contentinfo['content_id'];
    56. $meta_catid = $contentcatinfo['contentcat_id'];
    57. // User Journal
    58. if($USER['id']) {
    59. $id_exist = $DB->fetch_array($DB->query("SELECT hist_id from ".$db_tab['history']." where hist_contentid='$contentid' and hist_user_id='".$USER['id']."'"));
    60. if($id_exist)
    61. $DB->query("UPDATE ".$db_tab['history']." set hist_timestamp='".time()."',hist_logtime='".$USER['lastlog']."',hist_count=(hist_count+1) where hist_id='".$id_exist['hist_id']."'");
    62. else
    63. $DB->query("INSERT INTO ".$db_tab['history']." (hist_user_id,hist_timestamp,hist_logtime,hist_contentid,hist_count) VALUES ('".$USER['id']."','".time()."','".$USER['lastlog']."','$contentid','1')");
    64. }
    65. }
    66. elseif($themeid) {
    67. $contentthemeinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contenttheme']." WHERE contenttheme_id='$themeid' LIMIT 1"));
    68. $contentcatinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contentcat']." WHERE contentcat_id='".$contentthemeinfo['contenttheme_catid']."' LIMIT 1"));
    69. $intro_header = ($contentthemeinfo['contenttheme_header'])?(stripslashes($contentthemeinfo['contenttheme_header'])):($contentthemeinfo['contenttheme_name']);
    70. if($contentthemeinfo['contenttheme_bgsound']) $site_bg_sound = '<bgsound src="'.$contentthemeinfo['contenttheme_bgsound'].'" loop="1">';
    71. $master_modul = 'theme';
    72. $meta_themeid = $contentthemeinfo['contenttheme_id'];
    73. $meta_catid = $contentcatinfo['contentcat_id'];
    74. }
    75. elseif($catid) {
    76. $contentcatinfo = $DB->fetch_array($DB->query("SELECT * from ".$db_tab['contentcat']." WHERE contentcat_id='$catid' LIMIT 1"));
    77. $intro_header = ($contentcatinfo['contentcat_header'])?(stripslashes($contentcatinfo['contentcat_header'])):($contentcatinfo['contentcat_name']);
    78. if($contentcatinfo['contentcat_bgsound']) $site_bg_sound = '<bgsound src="'.$contentcatinfo['contentcat_bgsound'].'" loop="1">';
    79. $master_modul = 'cat';
    80. $meta_catid = $contentcatinfo['contentcat_id'];
    81. }
    82. else {
    83. $intro_header = ($config['ccp_header'])?(stripslashes($config['ccp_header'])):($config['welcome_title']);
    84. if($_REQUEST['path'] == 'start.php') $site_bg_sound = '<bgsound src="'.$config['ccp_bgsound'].'" loop="1">';
    85. }
    86. if($contentinfo['content_rights'])
    87. $content_rights = $contentinfo['content_rights'];
    88. elseif($contentthemeinfo['contenttheme_rights'])
    89. $content_rights = $contentthemeinfo['contenttheme_rights'];
    90. elseif($contentcatinfo['contentcat_rights'])
    91. $content_rights = $contentcatinfo['contentcat_rights'];
    92. if(!$nonav) {
    93. $content_menu = getMenu();
    94. $menu = printMenu($content_menu);
    95. if($menu_option==1)
    96. $menu_top = $menu;
    97. elseif($menu_option==2)
    98. $menu_bottom = $menu;
    99. }
    100. if (isset($_REQUEST['event']) && !isset($event)) {
    101. $event=intval($_REQUEST['event']);
    102. }
    103. if (isset($event)) {
    104. include("admin/config/event.php");
    105. }
    106. if (isset($_REQUEST['path']) || isset($_REQUEST['src']) || isset($_REQUEST['file'])) {
    107. if (isset($_REQUEST['path']))
    108. $path=$_REQUEST['path'];
    109. elseif (isset($_REQUEST['file']))
    110. $file=$_REQUEST['file'];
    111. elseif (isset($_REQUEST['src']))
    112. $src=$_REQUEST['src'];
    113. }
    114. elseif(!$event) {
    115. $path='start.php';
    116. }
    117. if ($path=='include.php' || $path=='blank.php') {
    118. unset($path);
    119. $event=0;
    120. include ("admin/config/event.php");
    121. }
    122. else {
    123. $getblacklist=$DB->query("SELECT blacklist_url, blacklist_userstatus FROM ".$db_tab['blacklist']);
    124. while ($blacklist=$DB->fetch_array($getblacklist)) {
    125. if (eregi($blacklist['blacklist_url'],$current_url) && $blacklist['blacklist_url']!='') {
    126. if (getrights($blacklist['blacklist_userstatus'])!="true") {
    127. $event=1;
    128. include ("admin/config/event.php");
    129. break;
    130. }
    131. }
    132. }
    133. if ($event!=1) {
    134. ob_start();
    135. if (strstr(strtolower($path),'.php') && !strstr(strtolower($path),'//') && !strstr($path,"../") && filecheck($path)) {
    136. include ("$path");
    137. }
    138. elseif (isset($file) && !strstr(strtolower($file),'http://') && filecheck($file) && !strstr($file,"../") && file_extension($file)!='php') {
    139. $site_body.=implode('',file($file));
    140. }
    141. elseif (isset($src)) {
    142. eval ("\$site_body.= \"".getTemplate("site_iframe")."\";");
    143. }
    144. elseif(!$event) {
    145. $event=0;
    146. include("admin/config/event.php");
    147. }
    148. $site_body.=ob_get_contents();
    149. ob_end_clean();
    150. }
    151. }
    152. if ($config['referer_eod']==1 && $thisUSER['referer']!='' && !strstr(strtolower($thisUSER['referer']),strtolower($config['site_url']))) {
    153. $is_referer=TRUE;
    154. if ($config['referer_filter']!='') {
    155. $f=explode("\n",$config['referer_filter']);
    156. foreach($f as $rf) {
    157. if (trim($rf)!='') {
    158. $rf=strtolower(trim($rf));
    159. if(strstr(strtolower($thisUSER['referer']),$rf)) {
    160. $is_referer=FALSE;
    161. break;
    162. }
    163. }
    164. }
    165. }
    166. if ($is_referer!=FALSE) {
    167. $DB->query("INSERT INTO ".$db_tab['record']." (record_referer, record_time) VALUES ('".$thisUSER['referer']."','".time()."')");
    168. }
    169. }
    170. $calenderinfo=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['calender']." WHERE calender_date='".$today_time."' LIMIT 1"));
    171. if ($calenderinfo[0]==0) {
    172. $DB->query("DELETE FROM ".$db_tab['recordip']);
    173. $DB->query("INSERT INTO ".$db_tab['calender']." (calender_counter,calender_date,calender_picount,calender_versionnr) VALUES ('1','".$today_time."','1','".$config['version_number']."')");
    174. $DB->query("INSERT INTO ".$db_tab['recordip']." (recordip) VALUES ('".$thisUSER['ipaddr']."')");
    175. }
    176. else {
    177. $checkip=$DB->fetch_array($DB->query("SELECT COUNT(*) \"COUNT\" FROM ".$db_tab['recordip']." WHERE recordip='".$thisUSER['ipaddr']."'"));
    178. if ($checkip['COUNT']==0) {
    179. $DB->query("INSERT IGNORE INTO ".$db_tab['recordip']." (recordip) VALUES ('".$thisUSER['ipaddr']."')");
    180. $DB->query("UPDATE ".$db_tab['calender']." SET calender_counter=calender_counter+1 WHERE calender_id=1");
    181. }
    182. $ipcount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['recordip']));
    183. $DB->query("UPDATE ".$db_tab['calender']." SET calender_picount=calender_picount+1, calender_counter='".$ipcount['0']."' WHERE calender_date='".$today_time."'");
    184. }
    185. if(!$config['cpp_style_option']) {
    186. include("style.php");
    187. }
    188. else {
    189. if($config['cpp_style_path'])
    190. $site_design = '<link rel="stylesheet" href="'.$config['cpp_style_path'].'" type="text/css">';
    191. else {
    192. if($style['style_css'])
    193. $site_design = '<link rel="stylesheet" href="'.$style['style_css'].'" type="text/css">';
    194. else
    195. $site_design = '<link rel="stylesheet" href="'.$style['style_images'].'/style.css" type="text/css">';
    196. }
    197. }
    198. if(!$nohead && !$USER['nohead']) {
    199. unset($filter);
    200. if($USER['ticker']) {
    201. if($USER['id']) {
    202. $get_user_hist = $DB->query("select distinct hist_contentid from ".$db_tab['history']." where hist_user_id = ".$USER['id']);
    203. while($user_hist = $DB->fetch_array($get_user_hist)) {
    204. $filter .= $user_hist['hist_contentid'].',';
    205. }
    206. if($filter) {
    207. $filter = preg_replace("/\,$/",')',$filter);
    208. $filter = ' and content_id not in ('.$filter;
    209. }
    210. }
    211. $query = "SELECT * from ".$db_tab['content']." LEFT JOIN ".$db_tab['contenttheme']." ON ".$db_tab['contenttheme'].".contenttheme_id=".$db_tab['content'].".content_themeid
    212. ,".$db_tab['contentcat']."
    213. WHERE content_status=1
    214. and content_time<'$time_now'
    215. and content_option not in (2,3)
    216. $filter
    217. and content_cat = contentcat_id
    218. and ".contentrights()."
    219. order by content_time
    220. DESC LIMIT 10";
    221. $get_intro_news = $DB->query($query);
    222. while($intro_news = $DB->fetch_array($get_intro_news)) {
    223. $intro_news_text .= '&nbsp;&nbsp;<A HREF="include.php?path='.getTargetScript($intro_news['content_option'],$intro_news['content_it']).'&contentid='.$intro_news['content_id'].'" ALT="">'.$intro_news['content_title'].'</A>&nbsp;&nbsp;::';
    224. }
    225. if($intro_news_text) {
    226. $intro_news_text = "<B>...::".$intro_news_text."...</B>";
    227. eval ("\$content_ticker= \"".getTemplate("content_ticker")."\";");
    228. }
    229. }
    230. [email protected]($config['site_logo']);
    231. $logo_size=$logo_size[3];
    232. $logo_path=$config['site_logo'];
    233. if ($config['site_adview']==1 && (!$USER['id'] || $USER['banner'])) {
    234. $adview=new adview();
    235. $adview=$adview->getAdview();
    236. }
    237. eval ("\$site_kopf= \"".getTemplate("site_kopf")."\";");
    238. }
    239. if(!$nonav)
    240. include("navigation/navigation.php");
    241. $query = array();
    242. if($meta_catid) array_push($query,"select * from ".$db_tab['metatags']." where meta_catid='$meta_catid' and meta_themeid='0' and meta_contentid='0'");
    243. if($meta_themeid) array_push($query,"select * from ".$db_tab['metatags']." where meta_catid='0' and meta_themeid='$meta_themeid' and meta_contentid='0'");
    244. if($meta_contentid) array_push($query,"select * from ".$db_tab['metatags']." where meta_catid='0' and meta_themeid='0' and meta_contentid='$meta_contentid'");
    245. foreach($query as $q) {
    246. $get_meta = $DB->query($q);
    247. while ($temp=$DB->fetch_array($get_meta)) {
    248. foreach($temp as $key => $val) {
    249. if($val) $meta[$key] = $val;
    250. }
    251. }
    252. }
    253. $meta_text = preg_replace("/\,/"," ",$meta['meta_keywords']);
    254. if(!$meta['meta_title']) $meta['meta_title'] = $config['site_name'].' - '.$config['site_title'];
    255. // ------------------------------------------------
    256. eval ("\$site_metatags= \"".getTemplate("site_metatags")."\";");
    257. if($config['ccp_site_protect']==2 || ($master_modul != 'forum' && $config['ccp_site_protect']))
    258. $body_restricted = ' ONSELECTSTART="return false" ONDRAGSTART="return false" ONCONTEXTMENU="return false"';
    259. if($rollover_images) {
    260. $body_tag = '<BODY onLoad="MM_preloadImages(';
    261. foreach($rollover_images as $img) {
    262. $body_tag .= "'$img',";
    263. }
    264. $body_tag = preg_replace("/\,$/", '', $body_tag);
    265. $body_tag .= ')"'.$body_restricted.'>';
    266. eval ("\$image_rollover = \"".getTemplate("image_rollover")."\";");
    267. }
    268. else {
    269. $body_tag = '<BODY'.$body_restricted.'>';
    270. }
    271. eval ("\$site_content.= \"".getTemplate("site_body")."\";");
    272. // WYSIWYG Editor
    273. // --------------
    274. if(preg_match("/\<script\slanguage\=\"JavaScript1\.2\"\sdefer\>.*?editor_generate.*?\<\/script\>/ism",$site_content))
    275. $ccp_editor = 1;
    276. if($config['ccp_editor'])
    277. eval ("\$cpp_wysiwyg = \"".getTemplate("wysiwyg")."\";");
    278. if(!$config['ccp_editor'] && $ccp_editor)
    279. $site_content = preg_replace("/\<script\slanguage\=\"JavaScript1\.2\"\sdefer\>.*?editor_generate.*?\<\/script\>/ism",'',$site_content);
    280. // URL Rewriting For Search Engines
    281. // ---------------------------------
    282. if($config['ccp_url_rewrite'])
    283. $site_content = preg_replace("/href=\"([^\']+)\"/iesUS","rewriteurl('\\1')",$site_content);
    284. // Robot Stats
    285. if($config['ccp_robotstats']) {
    286. $DOCUMENT_ROOT = 'admin';
    287. include($DOCUMENT_ROOT.'/robotstats/robotstats.inc.php');
    288. }
    289. $last_update = $DB->fetch_array($DB->query("SELECT max(content_time) as maxtime FROM ".$db_tab['content']));
    290. $lastchange = date("Y-m-d",$last_update['maxtime']);
    291. $time_stop=parsertime("stop");
    292. if(!$_REQUEST['nofuss']) eval ("\$site_fuss= \"".getTemplate("site_fuss")."\";");
    293. if($config['ccp_url_rewrite'])
    294. $site_fuss = preg_replace("/href=\"([^\']+)\"/iesUS","rewriteurl('\\1')",$site_fuss);
    295. eval ("\$site= \"".getTemplate("site")."\";");
    296. echo $site;
    297. function rewriteurl($url) {
    298. global $nonav,$nohead,$control;
    299. if(preg_match("/^http/i",$url) || preg_match("/^javascript/i",$url))
    300. return 'href="'.$url.'"';
    301. if($nonav) $url .= "&nonav=1";
    302. if($nohead) $url .= "&nohead=1";
    303. if($control) $url .= "&control=1";
    304. // url cleaning
    305. $url = str_replace("//","/",$url);
    306. $url .= "//";
    307. while($url != $url = preg_replace("/\&[^\=]+\=\&/i","&",$url));
    308. $url = preg_replace("/\&[^\=]+\=\/\//i","",$url);
    309. $url = preg_replace("/PHPKITID=[^\/]+\/\/$/i","",$url);
    310. $url = preg_replace("/\/\/$/i","",$url);
    311. //if(preg_match("/\#/i",$url))
    312. // return 'href="'.$url.'"';
    313. $old = $url;
    314. if(stristr($url,"path=forum/")) {
    315. $url = preg_replace("/include\.php\?path\=forum\/showcat\.php\&catid\=(\d+)\&entries\=(\d+)(.*?)$/i","forum_cat_\\1_\\2.html\\3",$url);
    316. if($url != $old) return 'href="'.$url.'"';
    317. $url = preg_replace("/include\.php\?path\=forum\/showcat\.php\&catid\=(\d+)(.*?)$/i","forum_cat_\\1.html\\2",$url);
    318. if($url != $old) return 'href="'.$url.'"';
    319. $url = preg_replace("/include\.php\?path\=forum\/showthread\.php\&threadid\=(\d+)\&entries\=(\d+)(.*?)$/i","forum_thread_\\1_\\2.html\\3",$url);
    320. if($url != $old) return 'href="'.$url.'"';
    321. $url = preg_replace("/include\.php\?path\=forum\/showthread\.php\&threadid\=(\d+)(.*?)$/i","forum_thread_\\1.html\\2",$url);
    322. if($url != $old) return 'href="'.$url.'"';
    323. $url = preg_replace("/include\.php\?path\=forum\/searchresult\.php(.*?)$/i","forum_searchresult.html\\1",$url);
    324. if($url != $old) return 'href="'.$url.'"';
    325. $url = preg_replace("/include\.php\?path\=forum\/(index|main)\.php(.*?)$/i","forum.html\\2",$url);
    326. if($url != $old) return 'href="'.$url.'"';
    327. $url = preg_replace("/include\.php\?path\=forum\/top\.php(.*?)$/i","forum_ranking.html\\1",$url);
    328. }
    329. elseif(stristr($url,"path=content/")) {
    330. $url = preg_replace("/include\.php\?path\=content\/overview\.php\&type\=4(.*?)$/i","site_downloads.html\\1",$url);
    331. if($url != $old) return 'href="'.$url.'"';
    332. $url = preg_replace("/include\.php\?path\=content\/news\.php(.*?)$/i","site_news.html\\1",$url);
    333. if($url != $old) return 'href="'.$url.'"';
    334. $url = preg_replace("/include\.php\?path\=content\/links\.php(.*?)$/i","site_links.html\\1",$url);
    335. if($url != $old) return 'href="'.$url.'"';
    336. $url = preg_replace("/include\.php\?path\=content\/overview\.php\&type\=3(.*?)$/i","site_links.html\\1",$url);
    337. if($url != $old) return 'href="'.$url.'"';
    338. $url = preg_replace("/include\.php\?path\=content\/overview\.php\&type\=1(.*?)$/i","site_articles.html\\1",$url);
    339. if($url != $old) return 'href="'.$url.'"';
    340. $url = preg_replace("/include\.php\?path\=content\/search\.php(.*?)$/i","site_search.html\\1",$url);
    341. if($url != $old) return 'href="'.$url.'"';
    342. $url = preg_replace("/include\.php\?path\=content\/overview\.php(.*?)$/i","site_overview.html\\1",$url);
    343. if($url != $old) return 'href="'.$url.'"';
    344. $url = preg_replace("/include\.php\?path\=content\/download\.php\&contentid\=(\d+)(.*?)$/i","site_download_\\1.html\\2",$url);
    345. if($url != $old) return 'href="'.$url.'"';
    346. $url = preg_replace("/include\.php\?path\=content\/download\.php(.*?)$/i","site_downloads.html\\1",$url);
    347. if($url != $old) return 'href="'.$url.'"';
    348. $url = preg_replace("/include\.php\?path\=content\/articles\.php\&contentid\=(\d+)(.*?)$/i","site_article_\\1.html\\2",$url);
    349. if($url != $old) return 'href="'.$url.'"';
    350. $url = preg_replace("/include\.php\?path\=content\/articles\.php(.*?)$/i","site_articles.html\\1",$url);
    351. if($url != $old) return 'href="'.$url.'"';
    352. $url = preg_replace("/include\.php\?path\=content\/content\.php\&contentid\=(\d+)(.*?)$/i","site_content_display_\\1.html\\2",$url);
    353. if($url != $old) return 'href="'.$url.'"';
    354. $url = preg_replace("/include\.php\?path\=content\/top\.php(.*?)$/i","site_topcontent.html\\1",$url);
    355. if($url != $old) return 'href="'.$url.'"';
    356. $url = preg_replace("/include\.php\?path\=content\/refer\.php(.*?)$/i","site_partners.html\\1",$url);
    357. if($url != $old) return 'href="'.$url.'"';
    358. $url = preg_replace("/include\.php\?path\=content\/history\.php(.*?)$/i","site_history.html\\1",$url);
    359. }
    360. elseif(stristr($url,"path=start.php")) {
    361. $url = preg_replace("/include\.php\?path\=start\.php\&contentid\=(\d+)(.*?)$/i","home_content_\\1.html\\2",$url);
    362. if($url != $old) return 'href="'.$url.'"';
    363. $url = preg_replace("/include\.php\?path\=start\.php\&themeid\=(\d+)(.*?)$/i","home_theme_\\1.html\\2",$url);
    364. if($url != $old) return 'href="'.$url.'"';
    365. $url = preg_replace("/include\.php\?path\=start\.php\&catid\=(\d+)(.*?)$/i","home_cat_\\1.html\\2",$url);
    366. if($url != $old) return 'href="'.$url.'"';
    367. $url = preg_replace("/include\.php\?path\=start\.php(.*?)$/i","home.html\\1",$url);
    368. }
    369. elseif(stristr($url,"path=guestbook/")) {
    370. $url = preg_replace("/include\.php\?path\=guestbook\/viewgb\.php\&entries\=(\d+)(.*?)$/i","guestbook_\\1.html\\2",$url);
    371. if($url != $old) return 'href="'.$url.'"';
    372. $url = preg_replace("/include\.php\?path\=guestbook\/viewgb\.php(.*?)$/i","guestbook.html\\1",$url);
    373. if($url != $old) return 'href="'.$url.'"';
    374. $url = preg_replace("/include\.php\?path\=guestbook\/signgb\.php(.*?)$/i","guestbook_sign.html\\1",$url);
    375. }
    376. elseif(stristr($url,"path=login/")) {
    377. $url = preg_replace("/include\.php\?path\=login\/imcenter.php(.*?)$/i","user_messages.html\\1",$url);
    378. if($url != $old) return 'href="'.$url.'"';
    379. $url = preg_replace("/include\.php\?path\=login\/profile.php(.*?)$/i","user_profile.html\\1",$url);
    380. if($url != $old) return 'href="'.$url.'"';
    381. $url = preg_replace("/include\.php\?path\=login\/userinfo.php\&id\=(\d+)(.*?)$/i","user_nickpage_\\1.html\\2",$url);
    382. if($url != $old) return 'href="'.$url.'"';
    383. $url = preg_replace("/include\.php\?path\=login\/userinfo.php(.*?)$/i","user_nickpage.html\\1",$url);
    384. if($url != $old) return 'href="'.$url.'"';
    385. $url = preg_replace("/include\.php\?path\=login\/member.php(.*?)$/i","user_members.html\\1",$url);
    386. if($url != $old) return 'href="'.$url.'"';
    387. $url = preg_replace("/include\.php\?path\=login\/user_hist.php(.*?)$/i","user_journal.html\\1",$url);
    388. if($url != $old) return 'href="'.$url.'"';
    389. $url = preg_replace("/include\.php\?path\=login\/user_forum.php(.*?)$/i","user_forum_journal.html\\1",$url);
    390. if($url != $old) return 'href="'.$url.'"';
    391. $url = preg_replace("/include\.php\?path\=login\/topuser.php(.*?)$/i","user_ranking.html\\1",$url);
    392. if($url != $old) return 'href="'.$url.'"';
    393. $url = preg_replace("/include\.php\?path\=login\/user_media.php(.*?)$/i","user_media_pool.html\\1",$url);
    394. }
    395. elseif(stristr($url,"path=mcp/")) {
    396. $url = preg_replace("/include\.php\?path\=mcp\/show\.php\&media_id\=(\d+)(.*?)$/i","media_show_\\1.html\\2",$url);
    397. if($url != $old) return 'href="'.$url.'"';
    398. $url = preg_replace("/include\.php\?path\=mcp\/edit\.php(.*?)$/i","media_edit.html\\1",$url);
    399. if($url != $old) return 'href="'.$url.'"';
    400. $url = preg_replace("/include\.php\?path\=mcp\/history\.php(.*?)$/i","media_history.html\\1",$url);
    401. if($url != $old) return 'href="'.$url.'"';
    402. $url = preg_replace("/include\.php\?path\=mcp\/top\.php(.*?)$/i","media_ranking.html\\1",$url);
    403. }
    404. else {
    405. $url = preg_replace("/include\.php\?path\=contact\.php(.*?)$/i","home_contact.html\\1",$url);
    406. if($url != $old) return 'href="'.$url.'"';
    407. $url = preg_replace("/include\.php\?path\=vote\/archiv.php\&vid\=(\d+)(.*?)$/i","survey_archive_\\1.html\\2",$url);
    408. if($url != $old) return 'href="'.$url.'"';
    409. $url = preg_replace("/include\.php\?path\=vote\/archiv.php(.*?)$/i","survey_archive.html\\1",$url);
    410. if($url != $old) return 'href="'.$url.'"';
    411. $url = preg_replace("/include\.php\?path\=comment\/comment.php(.*?)$/i","comment.html\\1",$url);
    412. if($url != $old) return 'href="'.$url.'"';
    413. $url = preg_replace("/include\.php\?path\=gallery\/cat\.php\&cat_id\=(\d+)(.*?)$/i","gallery_\\1.html\\2",$url);
    414. //$url = preg_replace("/4images\/categories\.php\?cat_id\=(\d+)$/i","gallery_\\1.html",$url);
    415. //$url = preg_replace("/4images\/details\.php\?image_id\=(\d+)$/i","gallery_image_\\1.html",$url);
    416. //$url = preg_replace("/include\.php\?src\=([^\&]+)(.*?)$/i","inc_source.html?\\1\\2",$url);
    417. }
    418. return 'href="'.$url.'"';
    419. }
    420. ?>
    Alles anzeigen
    Kleine Aber fein, Unterschätze niemals deinen Gegner
    >>>>>>>>>>Profil-Link<<<<<<<<<<
  • Was für ein Post Magictiger ~~"
    Na ja back2topic:

    Also auffällig ist:

    PHP-Quellcode

    1. elseif (isset($src)) {
    2. eval ("\$site_body.= \"".getTemplate("site_iframe")."\";");
    3. }

    Sprich gib mal dein site_iframe Template. da muss man bestimmt nur die Maße ändern ;)
  • Also die site_iframe:

    Quellcode

    1. <IFRAME WIDTH="100%" HEIGHT="500" scrolling="auto" NAME="$src" frameBORDER="0" SRC="$src"></IFRAME>


    also müsste ich da bloss height auf 100% stellen?