Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculated registeration of date
01-23-2018, 02:23 PM,
Post: #1
Calculated registeration of date
How to make chat age in datadase, use registeration user date. the chat age start from chat age 0 till 200.
the chat age up every weeks.. please help me guys..

PHP Code:
<?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/>";}}
}
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>";
?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)