Вход Регистрация
Файл: region_clean/city/lovekalk.php
Строк: 232
<?
require_once "../start.php";
require_once 
"../sid.php";

header("Cache-Control: no-cache");
if (
$ver == "wml")header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else 
header("Content-Type:text/html; charset=UTF-8");

require_once 
"../inc.php";
$link connect_db();
list(
$row$id$ps$fsize1$fsize2) = check_login($link);
require_once 
"../version.php";

if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo 
"<wml>
      <card id="
city" title="Онлайн-сити">
      <p>"
;
} else {
echo 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
<html xmlns="http://www.w3.org/1999/xhtml">
      <
head><link rel="stylesheet" type="text/css" href="../css/$css.css"/>
      <
title>Онлайн-сити</title>
      <
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="left">n";
}


if (
$ver == "xhtml") {
?>
<SCRIPT LANGUAGE="
JavaScript">
<!-- Original: Kipp W. Shinabarger (kipps@bigfoot.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var MSIE=navigator.userAgent.indexOf("
MSIE");
var NETS=navigator.userAgent.indexOf("
Netscape");
var OPER=navigator.userAgent.indexOf("
Opera");
if((MSIE>-1) || (OPER>-1)) {
document.write("
<BGSOUND SRC=muz.mid LOOP=INFINITE>");
} else {
document.write("
<EMBED SRC=muz.mid AUTOSTART=TRUE ");
document.write("
HIDDEN=true VOLUME=100 LOOP=TRUE>");
}
// End --></SCRIPT><HEAD><SCRIPT LANGUAGE="
JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function calc() {
first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length;
var LoveCount=0;
for (Count=0; Count < firstlength; Count++) {
letter1=first.substring(Count,Count+1);
if (letter1=='Л') LoveCount+=2;
if (letter1=='Ю') LoveCount+=2;
if (letter1=='Б') LoveCount+=2;
if (letter1=='О') LoveCount+=2;
if (letter1=='В') LoveCount+=3;
if (letter1=='А') LoveCount+=1;
if (letter1=='Т') LoveCount+=3;
}
for (Count=0; Count < secondlength; Count++) {
letter2=second.substring(Count,Count+1);
if (letter2=='Л') LoveCount+=2;
if (letter2=='Ю') LoveCount+=2;
if (letter2=='Б') LoveCount+=2;
if (letter2=='О') LoveCount+=2;
if (letter2=='В') LoveCount+=3;
if (letter2=='А') LoveCount+=1;
if (letter2=='Т') LoveCount+=3;
}
amount=0;
if (LoveCount> 0) amount= 5-((firstlength+secondlength)/2)
if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2)
if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2)
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2)
if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2)
if (LoveCount>10) amount= 50-((firstlength+secondlength)/2)
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2)
if (LoveCount>14) amount= 70-((firstlength+secondlength)/2)
if (LoveCount>16) amount= 80-((firstlength+secondlength)/2)
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2)
if (LoveCount>20) amount=100-((firstlength+secondlength)/2)
if (LoveCount>22) amount=110-((firstlength+secondlength)/2)
if (firstlength==0 || secondlength==0) amount= "
Err";
if (amount < 0) amount= 0;
if (amount >99) amount=99;
document.loveform.output.value=amount+"
%";
}
// End -->
</SCRIPT></HEAD>

<p align="
center"><form name=loveform>
<p align="
center"><font color="#FF9900">
<img border="0" src="women.png" width="22" height="22"><input value="Её имя" name="name1" size="30" style="background-color: #FF0000"> </font></p>
<
p align="center"><font color="#FF9900">+</font></p>
<
p align="center"><font color="#FF9900">&nbsp;<img border="0" src="security.png" width="22" height="22"><input value="Его имя" name="name2" size="30" style="background-color: #00FF00"></font></p>
<
p align="center"><font color="#FF9900">&nbsp;=</font></p>
<
p align="center"><font color="#FF9900">
<
img border="0" src="info.gif" width="24" height="24">&nbsp;<font color="#0000FF"><input name="output" size="30" style="background-color: #FFFF00"></font>
</
font><b><font color="#0000FF"><br></font></b><br>
<
input name="calculate" type="button" value="Проверить на совместимость" onclick="calc()">
</
p></form>

<?
} else {
echo 
'Извини, но Калькулятор любви доступен только в xHTML версии чата.<br/>';
}
echo 
'<div class="d1"><a href="index.php">В город</a></div>';
echo 
"<div class='d1'><a href="../enter.php?$ses">В прихожую</a></div>";
include_once 
'../foot.php';
?>
Онлайн: 0
Реклама