HomeFeaturesScreenshotsFaqInstallCodeDownloads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
include "/usr/local/baifox/panel/admin_panel/config/main_config.php";

$link = mysql_connect(_CFG_INTERFACE_MYSQLSERVER,_CFG_INTERFACE_MYSQLUSER,_CFG_INTERFACE_MYSQLPASSWORD);
mysql_select_db(_CFG_INTERFACE_MYSQLDB,$link);
$result=mysql_query("select * from tbmod_redirecciones where host='".$_SERVER['HTTP_HOST']."'",$link);
if (mysql_numrows($result)>0){
$rs =mysql_fetch_array($result);
if($rs["tipo"]=="FRAME"){
?>
<html>
<head>
<?php if($rs["titulo"]!="") { ?>
<meta name="title" content="<?php echo stripslashes($rs["titulo"]); ?>">
<?php } ?>
<?php if($rs["descripcion"]!="") { ?>
<meta name="description" content="<?php echo stripslashes($rs["descripcion"]); ?>">
<?php } ?>
<?php if($rs["palabras"]!="") { ?>
<meta name="keywords" content="<?php echo stripslashes($rs["palabras"]); ?>">
<?php } ?>
<?php if(stripslashes($rs["otrostags"])!="") { ?>
<?php echo stripslashes($rs["otrostags"]); ?>
<?php } ?>
<title><?php if(stripslashes($rs["titulo"])!="") { echo stripslashes($rs["titulo"]); }else { echo $_SERVER['HTTP_HOST']; } ?></title>
</head>
<FRAMESET ROWS="100%, *" frameborder="no" framespacing=0 border=0>
<FRAME SRC="<?php if($_SERVER['REQUEST_URI']!="" && $_SERVER['REQUEST_URI']!="/" ){ if(substr($rs["url"],-1)=="/"){ echo substr($rs["url"],0,-1).$_SERVER['REQUEST_URI']; } else { if (substr($rs["Url"],-3)!="php" && substr($rs["Url"],-3)!="asp" && substr($rs["Url"],-3)!="cgi"){ echo $rs["Url"].$_SERVER['REQUEST_URI']; }else{ echo $rs["Url"].substr($_SERVER['REQUEST_URI'],1); }} }else { echo $rs["url"]; } ?>" NAME="mainwindow" frameborder="no" framespacing="0" marginheight="0" marginwidth="0"></FRAME>
</FRAMESET>
<noframes>
<CENTER><H2>Su navegador no soporta frames. Le recomendamos actualizar el navegador.</H2>
<br /><br />Haga click aqui para acceder: <a href="<?php if($_SERVER['REQUEST_URI']!="" && $_SERVER['REQUEST_URI']!="/" ){ if(substr($rs["url"],-1)=="/"){ echo substr($rs["url"],0,-1).$_SERVER['REQUEST_URI']; } else { if (substr($rs["url"],-3)!="php" && substr($rs["Url"],-3)!="asp" && substr($rs["Url"],-3)!="cgi"){ echo $rs["Url"].$_SERVER['REQUEST_URI']; }else{ echo $rs["url"].substr($_SERVER['REQUEST_URI'],1); }} }else { echo $rs["url"]; } ?>"><?php echo $rs["url"]; ?></a></CENTER>
</noframes>
</html>
<?php
}else{
header("Location: ".$rs["url"]."\n\n");
}
}
mysql_free_result($result);
@mysql_close($link);
?>