Schrift
[thread]655[/thread]

cgi script - Layoutproblem



<< >> 2 Einträge, 1 Seite
Gast Gast
 2006-01-19 11:28
#6723 #6723
hallo,
ich benutze das script "intellilink-free_v1". Es ist ein Link/Exchange script das eine Topliste der besten Ref`s darstellt. Nun werden die Seiten aber untereinander gelistet und mit Nummerierung (1.,2.,3....)vor jedem Link. Kann ich das in dem script verändern ?
Ich poste mal den Inhalt der cgi datei von der ich glaube das dort etwas geändert werden muss.
Ich bin bein Perl/Cgi totalneuling...also habe null Ahnung.

Es wäre nett wenn jemand einen für mich verständlichen Tip hat.

Code: (dl )
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/perl

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



##
##
IntelliLink Manager Free &n
bsp; ##
##
------------------------

##
##
by Jimmy (wordx@hotmail.com) &nb
sp; ##
##
http://www.smartCGIs.com &
nbsp; ##
##



##
## This version of IntelliLink is free, if anyone sold it to you ##
## please contact me. Please DO NOT remove any of the copyrights or ##
## links to our site, they keep this CGI free for everyone. Thanks! ##
##



##
##
(c) copyright 2000 The Mp3eCom Network &nbsp
; ##
##########################################################################

print "Content-type: text/html\n\n";

require "variables.cgi";
$sitename = "$variables{'sitename'}";
$cgiurl = "$variables{'cgiurl'}";
$body = "$variables{'body'}";

$buffer = $ENV{'QUERY_STRING'};
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name,$value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/~!/ ~!/g;
$in{$name} = $value;
}
$start = $in{'start'};
$end = $in{'end'};
if($start eq "") { $start = 1; }
if($end eq "") { $end = 20; }
open(DATA,"data.txt");
flock (DATA,2);
@data = <DATA>;
flock (DATA,8);
close(DATA);
@data = sort {$b <=> $a} @data;
foreach $line(@data) {
$counter++;
@linedata = split (/\|/, $line);
if($counter >= $start) {

print "$counter. <a href=\"$cgiurl/out.cgi?id=$linedata[2]\" style=\"text-decoration: none\" onmouseover=\"window.status='In:$linedata[0] Out:$linedata[1] Description: $linedata[5]';return true\" onmouseout=\"window.status=''; return true\" target=\"_blank\">$linedata[4]</a><br>\n";

}
if($counter eq $end) { exit; }
}
zipster
 2006-01-19 11:57
#6724 #6724
User since
2004-09-06
458 Artikel
BenutzerIn
[default_avatar]
Hi,

ich bin mir zwar auch nicht ganz sicher aber ich denke du bekommst die Zahl vorne weg wenn du unten bei dem "print" Befehl das "$counter" wegnimmst.
Code: (dl )
  print "$counter...
<< >> 2 Einträge, 1 Seite



View all threads created 2006-01-19 11:28.