Postingan lainnya
Buku Ini Koding!
Baru!
Buku ini akan jadi teman perjalanan kamu belajar sampai dapat kerjaan di dunia programming!
Calculated registeration of date
bagaimana ya gan menggunakan chat age di registeration users date, chatage up every weeks just 1 chatage, mula chat age dari 1 , contoh "MyChatAge:1"
<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\"
\"http://www.wapforum.org/DTD/wml_1.2.xml\">\n";
/**
* @Copyright 2018 - MobileChat
* @Version 3 (wml 1.2 EN)
* @Description (Should Be Now working On All Servers)
*/
include("../config/config.php");
$nimi = $_REQUEST['nimi'];
$salasana = $_REQUEST['salasana'];
$kenelle = $_REQUEST['kenelle'];
include("../tools/ipban.php");
include("../tools/admin.php");
include("../tools/ban.php");
$swe_from = array("","","","","","","$","&");
$swe_to = array("", "", "", "", "", "","[usd]","[and]");
for ($t=0; $t<count($swe_from); $t++)
{
$nimi = str_replace ($swe_from[$t], $swe_to[$t], $nimi);
$salasana = str_replace ($swe_from[$t], $swe_to[$t], $salasana);
}
$salnim=file('../text/nims.txt');
$salsan=file('../text/sals.txt');
for ($i=0; $i<count($salnim); $i++)
{ if (rtrim($salsan[$i])==$salasana && rtrim($salnim[$i])==$nimi){$a="1";}}
if ($a !="1"){
echo "<wml>";
echo"<head>";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
echo "</head>";
echo "<card newcontext=\"true\" title=\"User profile\">";
echo "<p align=\"$align\">";
echo "<small>";
echo "<b>SYSTEM</b>:<br/>*You has been auto kick by System<br/>You are NOT logged in!<br/>Please login back<br/><br/>";
echo "<anchor><a href=\"../main/sisaan.php\">Back to login</a>";
echo "</anchor><br/>";
echo "<anchor><a href=\"../index.php\">Back to home</a>";
echo "</anchor><br/>";
echo "</p>";
echo "</small>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
echo "<wml>";
echo "<card title=\"$kenelle's profile\">";
echo "<p align=\"$align\">";
echo "<small>";
$member = "../members/$kenelle.txt";
$membersinfo = fopen($member, "r");
if ($membersinfo===false)
{
echo "somethings not right here lol<br/>";
}
else
{
$member = "../members/$kenelle.txt";
$membersinfo = fopen($member, "r");
$membersdata = file_get_contents($member, @filesize($membersinfo));
fclose($membersinfo);
$membersinformation = explode ("\n",$membersdata);
for($i=0;$i<count($membersinformation);$i++)
{
$membersinformation[$i] = stripslashes($membersinformation[$i]);
}
echo "<img src=\"$membersinformation[0]\" alt=\"Logo\"/><br/>";
echo "<b>Real Name:</b> $membersinformation[1]<br/>";
echo "<b>Age:</b> $membersinformation[2]<br/>";
echo "<b>Sex:</b> $membersinformation[3]<br/>";
echo "<b>Location:</b> $membersinformation[4]<br/>";
echo "<b>signiture:</b> $membersinformation[5]<br/>";
echo "<b>site:</b> <a href=\"$membersinformation[6]\">$membersinformation[6]</a><br/>";
echo "<b>email:</b> <a href=\"mailto:$membersinformation[7]\">$membersinformation[7]</a><br/>";
$datefile=file('../text/profidate.txt');
for ($i=0; $i<count($datefile); $i++){
$date=explode("::", $datefile[$i]);
if ($date[0]==$kenelle){ echo "<b>Registered:</b> $date[1]<br/>";}}
}
//ini kode display Registered: 29/12/2017
//saya mahu my chat age di guna dari registeration user date. chat age mula dari
//chat age 0 hingga 200.
//the chat age up every weeks..
//this code just show my age from registeration.
//but i want code my chat age from my registeration. and i want code chatage
//up every week. start from chat age 1 - 200
echo "<anchor>Back to chat";
echo "<go method=\"post\" href=\"chat.php\">";
echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";
echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";
echo "</go>";
echo "</anchor>";
echo "</small>";
echo "</p>";
echo "</card>";
echo "</wml>";
?>
0
Belum ada Jawaban. Jadi yang pertama Jawaban
Login untuk ikut Jawaban