Foros del Web » Programando para Internet » PHP »

Link

Estas en el tema de Link en el foro de PHP en Foros del Web. hace dias estoy pidiendo ayuda con este script Código PHP: <?PHP ##################################################################### ##                                                                 ## ##                          Easy Poll                              ## ##                  http://www.phpwebscripts.com/                  ## ##                 e-mail: [email protected]                  ## ##                       copyright (c) 2005                        ## ##                                                                 ## ##                  > This script is freeware <                    ## ##                You may distribute it by any way                 ## ##                   BUT! You may not modify it!                   ## ## Removing the link to PHPWebScripts.com is a copyright violation.## ##   Altering or removing any of the code that is responsible, in  ## ##   any way, for generating that link is strictly forbidden.      ## ##   Anyone violating the above policy will have their license     ## ...
  #1 (permalink)  
Antiguo 11/04/2006, 10:00
 
Fecha de Ingreso: junio-2003
Ubicación: Frente al monitor
Mensajes: 508
Antigüedad: 20 años, 10 meses
Puntos: 0
Link

hace dias estoy pidiendo ayuda con este script
Código PHP:
<?PHP

#####################################################################
##                                                                 ##
##                          Easy Poll                              ##
##                  http://www.phpwebscripts.com/                  ##
##                 e-mail: [email protected]                  ##
##                       copyright (c) 2005                        ##
##                                                                 ##
##                  > This script is freeware <                    ##
##                You may distribute it by any way                 ##
##                   BUT! You may not modify it!                   ##
## Removing the link to PHPWebScripts.com is a copyright violation.##
##   Altering or removing any of the code that is responsible, in  ##
##   any way, for generating that link is strictly forbidden.      ##
##   Anyone violating the above policy will have their license     ##
##   terminated on the spot.  Do not remove that link - ever.      ##
##                                                                 ##
#####################################################################

include('./functions.php'); $s[back] = getenv('HTTP_REFERER'); if (!$s[back]) $s[back] = $s[after_url]; if ($_GET[action]=='vote'vote($_GET); show_poll();

##################################################################################

function vote($data) { global $s$a $_COOKIE[EP_vote][$data[number]]; if ($a) { header ("Location: $s[back]"); exit; } 
setcookie ("EP_vote[$data[number]]",1,time()+2592000);
dq("update $s[tblname] set n$data[a] = n$data[a]+1 where number = '$data[number]' and active = '1'",1); $q dq("select n1,n2,n3,n4,n5 from $s[tblname] where number = '$data[number]' AND active='1'",1);
$d mysql_fetch_assoc($q); $total $d[n1]+$d[n2]+$d[n3]+$d[n4]+$d[n5]; $max max($d[n1],$d[n2],$d[n3],$d[n4],$d[n5]);
if (
$max>0) { for ($x=1;$x<=5;$x++) { $size[$x] = ($d["n$x"]/$max)*100; if ($size[$x]<1$size[$x] = 0; } } else $size[1] = $size[2] = $size[3] = $size[4] = $size[5] = 1;
$q dq("update $s[tblname] set p1 = '$size[1]', p2 = '$size[2]', p3 = '$size[3]', p4 = '$size[4]', p5 = '$size[5]', votes = $total where number = $data[number] and active = 1",1); header ("Location: $s[back]"); exit; }

function 
show_poll() { global $s$q dq("select number,question,votes,a1,a2,a3,a4,a5,n1,n2,n3,n4,n5,p1,p2,p3,p4,p5 from $s[tblname] where active=1",1); $data mysql_fetch_assoc($q); 
if (!
$data[number]) return false;
for (
$x=1;$x<=5;$x++) { if ($data["a$x"]) { $w $data["p$x"]+1$data["a$x"] = "<a href=\\\"$s[phpurl]/poll.php?action=vote&number=$data[number]&a=$x\\\"><img border=0 src=\\\"$s[phpurl]/poll.jpg\\\" width=$w height=10><br><font color=\\\"#E87B1E\\\" size=\\\"1\\\" face=\\\"Verdana,arial\\\">".$data["a$x"]." (".$data["n$x"]." votes)</font></a><br>"; } } parsejava("$s[phppath]/data/template.txt",$data); }
function 
parsejava($template$value) { global $s$fh fopen("$template",'r'); $r 'document.write("'.eregi_replace('"','\\"',base64_decode($s[phprath]).base64_decode($s[phpruth]).'<span style="font-size:8pt;">'.base64_decode($s[kun]).'</span>'.base64_decode('PC9hPjxicj4=')).'");';
while (!
feof($fh)) { $line trim(fgets($fh,4096)); $line strip_replace_once($line); $line ereg_replace('"','\"',$line); $lines .= "document.write(\"$line\");\n"; } fclose ($fh);
while (list(
$key,$val) = each($value)) $lines str_replace("#%$key%#",$val,$lines); reset ($value); $lines eregi_replace("#%[a-z0-9_]*%#",'',$lines.$r); echo "\n$lines"; }

##################################################################################

?>

Estoy tratando de hacer algo asi, pero quiero saber donoe esta el link de el copyright que tiene, cuando instalas el script lo ves debajo de todas las opciones de la encuesta...alguien me ayuda ver ese link?
__________________
Tengo una duda...
  #2 (permalink)  
Antiguo 11/04/2006, 12:23
Avatar de mauled  
Fecha de Ingreso: marzo-2005
Ubicación: Cd. de México.
Mensajes: 3.001
Antigüedad: 19 años, 1 mes
Puntos: 33
No queda del todo claro tu problema si pudieras detallar mas tu problema porfavor
  #3 (permalink)  
Antiguo 11/04/2006, 13:16
 
Fecha de Ingreso: junio-2003
Ubicación: Frente al monitor
Mensajes: 508
Antigüedad: 20 años, 10 meses
Puntos: 0
en el script, si lo instalas aparece un link en la parte inferio (http://www.phpwebscripts.com/) pero no esta visible, quiero saber donde esta ubicado el link
__________________
Tengo una duda...
  #4 (permalink)  
Antiguo 11/04/2006, 13:29
Avatar de claudiovega  
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 5 meses
Puntos: 11
Este es el link que está en el codigo que presentas, pero no se si será el que buscas:

"<a href=\\\"$s[phpurl]/poll.php?action=vote&number=$data[number]&a=$x\\\"><img border=0 src=\\\"$s[phpurl]/poll.jpg\\\" width=$w height=10><br><font color=\\\"#E87B1E\\\" size=\\\"1\\\" face=\\\"Verdana,arial\\\">".$data["a$x"]." (".$data["n$x"]." votes)</font></a>
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:55.