Ver Mensaje Individual
  #14 (permalink)  
Antiguo 14/05/2011, 22:30
EcLuD
 
Fecha de Ingreso: mayo-2011
Mensajes: 8
Antigüedad: 12 años, 11 meses
Puntos: 0
Respuesta: Ayuda con script php y xampp

Esque la cueston ahora y mi gran duda, es en que parte del codigo y como, podria poner este codigo:

<script type="text/javascript" src="http://adhitzads.com/238770"></script>

Y sin que de problemas, el condigo ya lo intente poner tal como lo puse arribita, en el prinsipio del codigo, mira te pondre una parte del codigo de la index.php

<?php
EN ESTA PARTE INTENTE PONER EL CODIGO DE LA PUBLICIDAD
/*
GEN4 PTC SCRIPT, A copyrighted trademark of PTCPay.com 2007-2010.

"GeN4", "PTCPay" are a copyrighted service of PTCPay.com. All other respective trademarks remain the property of their original creators.

This file is a partial script from the GeN4 PTC script. Do not copy or distribute any part of this script without permission from PTCPay.Com.

http://www.ptcpay.com/
*/

if(!defined('GEN4_PROCESS')) { exit(); }
$ref_title = "Homepage";
$theme = "themes/{$set['theme_active']}/";
if (!$online)
{

function decrypt($string, $key)
{
$result = '';
$string = base64_decode($string);

for($i=0; $i<strlen($string); $i++)
{
$char = substr($string, $i, 1);
$keychar = substr($key, ($i % strlen($key))-1, 1);
$char = chr(ord($char)-ord($keychar));
$result.=$char;
}

return $result;

}
if($_COOKIE['tref']) $ref = $dome->filter($_COOKIE['tref']);
else {
if (isset($_GET['ref']))
{
$ref = $dome->filter($_GET['ref']);
if(eregi('.php', $ref)) { $ref=false; }
setcookie("tref", $ref, time()+(60*$set['reg_cookietime']));
}
if (isset($_GET['r']))
{
$filterr = $dome->filter($_GET['r']);
$ref = decrypt($filterr, "WardTardia666!!!");

if(eregi('.php', $ref)) { $ref=false; }
setcookie("tref", $ref, time()+(60*$set['reg_cookietime']));

}
}
}




// Country stuff
if ($set['online_members'])
{
$result = mysql_query("SELECT * FROM users WHERE lastaction >= unix_timestamp() - 60*5 AND `username` != 'winnerbux' AND `hidestatus`='0'");
$onlinemembers = '';
$tnum = '0';
$tnum2 = '0';
while($row = mysql_fetch_array( $result ))
{
$tnum = $tnum + 1;

// Number of Users to show per row.
if ($tnum == 7)
{
$onlinemembers = $onlinemembers . '<br />';
$tnum = '0';
}

$ip = $row['lastip'];
$ip_number = sprintf("%u", ip2long($ip));

$country = mysql_query("SELECT `country_code` FROM `ip2country` WHERE `begin_ip_num`<='$ip_number' AND `end_ip_num`>='$ip_number'")
or die(mysql_error());

$countryname = mysql_query("SELECT `country_name` FROM `ip2country` WHERE `begin_ip_num`<='$ip_number' AND `end_ip_num`>='$ip_number'")
or die(mysql_error());

$countryname = mysql_fetch_array($countryname);
$countryname = strtolower($countryname['country_name']);

$country = mysql_fetch_array($country);
$country = strtolower($country['country_code']);
$country = "flags/{$country}.png";

$colstring = '';

if ($set['forum_mod_color'] && $row['forummod']) { $colstring = 'style="color: '.$set['forum_mod_color'].' ;" '; $boldit = '1'; }
if ($set['forum_admin_color'] && $row['forumadmin']) { $colstring = 'style="color: '.$set['forum_admin_color'].' ;" '; $boldit = '1'; }

if ($boldit == '1') { $bo1 = '<B>'; $bo2 = '</B>'; }
if ($country == 'flags/.png')
{
$country = 'flags/earth.png';
$countryname = 'earth';

}

if (!$set['forum_profile_page']) $onlinemembers .= '<img src="forum/'. $country . '" align="absmiddle" class="vtip" title="' . $countryname . '" alt="' . $countryname . '" vspace="5" hspace="5">' . '<font '.$colstring.'>'.$bo1. $row['username'] .$bo2. '</font>&nbsp;';

if ($set['forum_profile_page']) $onlinemembers .= '<img src="forum/'. $country . '" align="absmiddle" class="vtip" title="' . $countryname . '" alt="' . $countryname . '" vspace="5" hspace="5"><a ' . $colstring . 'href="forum/view_user.php?name=' . $row['username'] . '"' . 'id="generic3">'.$bo1. $row['username'] .$bo2.'</a> ';


}
}

$thetext2 = html_entity_decode(stripslashes(bb($set['home_message2_msg'])));
$thetext2 = str_replace("<br>", "<br />", $thetext2);

$thetext1 = html_entity_decode(stripslashes(bb($set['home_message1_msg'])));
$thetext1 = str_replace("<br>", "<br />", $thetext1);

$thetext1 = replacevars($thetext1);
$thetext2 = replacevars($thetext2);




// = html_entity_decode(stripslashes(bb($smiley, $set['home_message1_msg']))); $thetext1 = str_replace("<br>", "<br />", $thetext1);

$cats = "SELECT `id` FROM `cat` WHERE `news` = 1 ORDER BY `last` DESC";
$cats = mysql_query($cats);

// get categories in sql format
$news = "SELECT `id`, `topic`, `cat`, `detail` FROM `forum_question` WHERE";
while($cat = mysql_fetch_array($cats)) {
$news .= " `cat` = {$cat[0]} OR";
}
$news = substr($news, 0, strlen($news) - 2);
$news .= "ORDER BY `lastpost` DESC LIMIT 2";
$news = mysql_query($news);

// get latest cashouts
$cashout = "SELECT `username`, `time`, `custom1` FROM `history` WHERE type = 'cashout' AND `custom1` > 0 ORDER BY `time` DESC LIMIT 5";
$cashout = mysql_query($cashout);

$alertpay = '';
// PayPal and/or Alertpay image and/or liberty reserve image
if($set['ap_enabled']) {
$alertpay .= "&nbsp;&nbsp;&nbsp;<a href=\"{$set['ap_referral_link']}\" target=\"_blank\"><img align=\"absmiddle\" src=\"themes/GeN4/images/alertpay_gif.gif\"></a>";
}

if($set['pp_enabled']) {
$alertpay .= "&nbsp;&nbsp;&nbsp;<a href=\"{$set['pp_referral_link']}\" target=\"_blank\"><img align=\"absmiddle\" src=\"themes/GeN4/images/paypal_gif.gif\"></a>";
}

if($set['liberty_enabled']) {
$alertpay .= "&nbsp;&nbsp;<a href=\"{$set['lr_referral_link']}\" target=\"_blank\"><img align=\"absmiddle\" src=\"themes/GeN4/images/liberty_gif.gif\"></a>";
}

if ($set['routepay_enabled']) {
$alertpay .= "&nbsp;&nbsp;<a href=\"{$set['rp_referral_link']}\" target=\"_blank\"><img align=\"absmiddle\" src=\"themes/GeN4/images/routepay_gif.gif\"></a>";