View file votes/index.php

File size: 2.43Kb
<?php
#-----------------------------------------------------#
#          ********* WAP-MOTORS *********             #
#             Made by   :  VANTUZ                     #
#               E-mail  :  [email protected]             #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#	
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/maincore.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";


$text = @file("../local/profil/$log.prof"); 
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provlog=trim($udata[0]);
$provpar=trim($udata[1]);
$privat=trim($udata[10]);}

echo'<img src="../images/img/partners.gif" alt=""> '.$LANGUAGE['vi100'].'<br>';
if (!$_SESSION['log']=="" && !md5($_SESSION['par'])=="" && md5($_SESSION['par'])==$provpar && $_SESSION['log']==$provlog ) {
if($udata[10]>0){
echo'<img src="../images/img/mail.gif" alt=""> <b><a href="../pages/privat.php?'.SID.'"><font color="red">'.$LANGUAGE['vi101'].' ('.$privat.')</font></a></b><br>';}} 


echo'<form action="vote.php?'.SID.'" method="post">';

$vopros = file("../local/datavotes/votes.dat");
echo '<b>'.$vopros[0].'</b><br>';

if($config_themes!=="wml"){
for ($i=1; $i<count($vopros);$i++){
$vopros[$i]=trim($vopros[$i]);	
if(!empty($vopros[$i])){

echo '<br><input name="v1" type="radio" value="'.$i.'" /> '.$vopros[$i];
}}
echo'<br><br><input type="submit" value="'.$LANGUAGE['vi102'].'" /></form><hr>';
}else{

for ($i=1; $i<count($vopros);$i++){
$vopros[$i]=trim($vopros[$i]);	
if(!empty($vopros[$i])){

echo '<br><a href="vote.php?v1='.$i.'&amp;'.SID.'">'.$vopros[$i].'</a><br>';
}}

}

echo'<br><a href="vote.php?'.SID.'">'.$LANGUAGE['vi103'].'</a><br>'; 
echo'<a href="allvotes.php?'.SID.'">'.$LANGUAGE['vi104'].'</a><br>'; 	
echo'<a href="../index.php?'.SID.'">'.$LANGUAGE['vi105'].'</a>'; 
include_once"../themes/$config_themes/foot.php";
?>