Plz Help Me

Started on the old forum in July 2006 · view the original in the archive · old links redirect here

27 replies · 1,683 views · started 20 years ago · 1 min read

2 participants
lamar-wap #21

post here your index and i will add the shoutbox for you.............

matthew #23

CHEERS HERES MY INDEX

<?php
header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;
?>
<wml>
<card id="login" title="cell-zone">
<p align="left">

<?php

echo "<img src=\"/logo.gif\" alt=\"logo\"/>
";
echo "[size="1"]welcome bookmark now!![/size]";

echo "<a href=\"http://forum.izypage.net/\"><img src=\"http://chatting.noads.de/index/forum.bmp\" alt=\"\"/>Forums</a>
";
echo "<a href=\"http://chatting.noads.de/index/wap\"><img src=\"http://chatting.noads.de/index/wapmaster.bmp\" alt=\"\"/>wapmaster</a>
";
echo "<a href=\"http://chatting.noads.de/index/services\"><img src=\"http://chatting.noads.de/index/services.bmp\" alt=\"\"/>services</a>
";
echo "<a
href=\"http://chatting.noads.de/index/chat\"><img src=\"http://chatting.noads.de/index/untitled.bmp\" alt=\"\"/>Live Chat</a>
";
echo "<a href=\"http://chatting.noads.de/index/\"><img src=\"http://chatting.noads.de/index/adult.bmp\" alt=\"\"/>Adult</a>
";
echo "<a href=\"http://myste.com/downloads\"><img src=\"http://chatting.noads.de/index/star.bmp\" alt=\"\"/>Downloads</a>
";
echo "<a href=\"http://chatomatic.6te.net/top\"><img src=\"http://chatting.noads.de/index/toplist.bmp\" alt=\"\"/>Toplist</a>
";

$szamlalo_File = "counter/".date("Ymd").".txt"; 

if (file_exists($szamlalo_File)) { 
$szamlalo_fp = fopen($szamlalo_File,"r"); 
$szamlalo_num = fread($szamlalo_fp, filesize($szamlalo_File)); 
fclose($szamlalo_fp); 
} 

$szamlalo_num=$szamlalo_num+1; 
$szamlalo_fp = fopen($szamlalo_File,"w"); 
fwrite($szamlalo_fp, $szamlalo_num, 10); 
fclose($szamlalo_fp); 

$counter_array = file("counter.dat");
$all = $counter_array[0]+1;
$fp = @fopen("counter.dat","wb");
@fputs($fp,$all);
@fclose($fp); 
echo "
[size="1"][b]Today hits: [u]$szamlalo_num[/u] [/b]
[b]Total hits: [u]$all[/u][/b][/size]";
$diena=date("z"); $liko=365-$diena; 
echo "
[b]$liko[/b] days left this year!";
echo "
[size="1"](c)cell-zone[/size]
";
$fpt = "daily.txt"; // path to counter log file - chmod it to 666
$lock_ip =0; // IP locking and logging 1=yes 0=no
$ip_lock_timeout =30; // in minutes
$fpt_ip = "ip.txt"; // IP log file - chmod it to 666

function checkIP($rem_addr) {
global $fpt_ip,$ip_lock_timeout;
$ip_array = @file($fpt_ip);
$reload_dat = fopen($fpt_ip,"w");
$this_time = time();
for ($i=0; $i<sizeof($ip_array); $i++) {
list($time_stamp,$ip_addr,$hostname) = split("\|",$ip_array[$i]);
if ($this_time < ($time_stamp+60*$ip_lock_timeout)) {
if ($ip_addr == $rem_addr) {
$found=1;
}
else {
fwrite($reload_dat,"$time_stamp|$ip_addr|$hostname");
}
}
}
$host = gethostbyaddr($rem_addr);
if (!$host) { $host = $rem_addr; }
fwrite($reload_dat,"$this_time|$rem_addr|$host\n");
fclose($reload_dat);
return ($found==1) ? 1 : 0;
}
$this_day=(date("D, j F Y"));
if (!file_exists($fpt)) {
$count_dat = fopen($fpt,"w+");
$count = 1;
fwrite($count_dat,$count);
fclose($count_dat);
}
else {
$row = file($fpt);
$test = chop($row[0]);
$count = $row[1];
if ($this_day == $test) {
if ($lock_ip==0 || ($lock_ip==1 && checkIP($REMOTE_ADDR)==0)) {
$count++;
}
}
else {
$count = 1;
}
$count_dat = fopen($fpt,"w+");
fwrite($count_dat,"$this_day\n");
fwrite($count_dat,$count);
fclose($count_dat);
}
echo "$count";
$browser = explode ('/', $HTTP_USER_AGENT);
echo $browser[0];
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("[size="1"]Page took %f seconds to load.[/size]", $totaltime);
?>
</p>
</card>
</wml>
abhisar #24

use wappy's script

matthew #25

i cant find it plz post it all here

wapkralj Developer · 237 posts #26

which wappy script,for what?

abhisar #28

yes thats the one.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close