Guest Slater Postado Junho 27, 2008 Denunciar Share Postado Junho 27, 2008 Se ouver algum erro me ajudem a corrigir por favor ...out.php<? require("config.php"); $a = "UPDATE $table SET clicksout = clicksout + 1 WHERE memberid = '$id'"; $query = mysql_query("SELECT * FROM $table WHERE memberid = '$id'") or die (mysql_error()); while($object = mysql_fetch_object($query)){ $datetoday = $object->date; if($datetoday != $date){ $b = "UPDATE $table SET date = '$date', hitsday7 = hitsday6, hitsday6 = hitsday5, hitsday5 = hitsday4, hitsday4 = hitsday3, hitsday3 = hitsday2, hitsday2 = hitsday1, hitsday1 = 1 WHERE memberid = '".$_GET["id"]."'"; } function dohits(){ global $a,$b,$c,$date,$daytoday; mysql_query($a); //or die(mysql_error()); mysql_query($b); //or die(mysql_error()); } dohits(); header("Location: $object->url"); } ?>config.php<?$hostname = "localhost";$username = "139071";$password = "pass";$database = "139071";############################################################# Admin Panel Information #############################################################$admin_user = "user";$admin_pass = "pass";############################################################# Webmaster Information #############################################################$webmaster_email = "hudson_of@hotmail.com";$webmaster_url = "url";############################################################# FTP Information ## FTP Information is optional, ## but recommended for advanced use. #############################################################$ftp_add = "IP"; // Ip Address or ftp address$ftp_user = "user"; // username or username@yourdomain.com$ftp_password = "pass"; // ftp username password############################################################# Topsite Information #############################################################$topsite_name = "TOP WYD Privates"; // Name of Topsite$topsite_initials = "XT"; // Topsite Initials// The URL to where the script is located ( without a trailing / )$script_url = "http://gamesmais.6te.net/top";// The URL to where you've stored your topsite buttons ( without trailing / )$img_dir = "http://gamesmais.6te.net/top/images";// How many buttons you have for the ranks ( 0 = all buttons the same, else EX: 50 )$img_total = 50;// Extension of the buttons ( .bmp / .jpg / .jpeg / .gif / .png )$img_ext = ".gif";// Total buttons that'll be shown on your topsite ( $img_visible = "all" = show all buttons )$img_visible = "all";// Sites listed per page$pp = 25;// Send the webmaster an email when someone joined your topsite ? ( 0 = no / 1 = yes )$webmaster_sendmail = 0;############################################################# DO NOT EDIT BELOW HERE! #############################################################// The name of the table IN $database$table = "xtd";$date = date("dmY");$numdays = 7;// Connect to database ( Do not modify ! )mysql_connect($hostname,$username,$password) or die(mysql_error());mysql_select_db($database);?> Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 tonzinhu Postado Junho 27, 2008 Denunciar Share Postado Junho 27, 2008 como assim se tiver algum erro?eu que pergunto, qual o erro que está aparecendo? Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Guest Slater Postado Junho 27, 2008 Denunciar Share Postado Junho 27, 2008 bom...assim ...estes codigos são de um site de TOP Sites ... ai a pessoa cadastra o site dela la tudo direitinho bunitinho ...só que quando vo no rank e clicko no site que foi cadastrado ele seria redirecionado para isso: http://meu.site/top/out.php?id=3só que a pagina não abre não acontece nada ... =/ Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Guest Matias Postado Junho 27, 2008 Denunciar Share Postado Junho 27, 2008 cara nem sei o que pode ser Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
Guest Slater
Se ouver algum erro me ajudem a corrigir por favor ...
out.php
config.php
<?
$hostname = "localhost";
$username = "139071";
$password = "pass";
$database = "139071";
############################################################
# Admin Panel Information #
############################################################
$admin_user = "user";
$admin_pass = "pass";
############################################################
# Webmaster Information #
############################################################
$webmaster_email = "hudson_of@hotmail.com";
$webmaster_url = "url";
############################################################
# FTP Information #
# FTP Information is optional, #
# but recommended for advanced use. #
############################################################
$ftp_add = "IP"; // Ip Address or ftp address
$ftp_user = "user"; // username or username@yourdomain.com
$ftp_password = "pass"; // ftp username password
############################################################
# Topsite Information #
############################################################
$topsite_name = "TOP WYD Privates"; // Name of Topsite
$topsite_initials = "XT"; // Topsite Initials
// The URL to where the script is located ( without a trailing / )
$script_url = "http://gamesmais.6te.net/top";
// The URL to where you've stored your topsite buttons ( without trailing / )
$img_dir = "http://gamesmais.6te.net/top/images";
// How many buttons you have for the ranks ( 0 = all buttons the same, else EX: 50 )
$img_total = 50;
// Extension of the buttons ( .bmp / .jpg / .jpeg / .gif / .png )
$img_ext = ".gif";
// Total buttons that'll be shown on your topsite ( $img_visible = "all" = show all buttons )
$img_visible = "all";
// Sites listed per page
$pp = 25;
// Send the webmaster an email when someone joined your topsite ? ( 0 = no / 1 = yes )
$webmaster_sendmail = 0;
############################################################
# DO NOT EDIT BELOW HERE! #
############################################################
// The name of the table IN $database
$table = "xtd";
$date = date("dmY");
$numdays = 7;
// Connect to database ( Do not modify ! )
mysql_connect($hostname,$username,$password) or die(mysql_error());
mysql_select_db($database);
?>
Link para o comentário
Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.