Navigacija

Vartotojų tinkle

Prisijungusių svečių: 74
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,966
Naujausias narys: LnKnPrK1

Naujausi straipsniai

Paskutiniai nariai

LnKnPrK1 2 savaitės
inti 4 savaitės
kileedyg11 savaitės
Reikalas16 savaitės
Kižas17 savaitės
Bruksnys18 savaitės
laleceylan5020 savaitės
minimukas20 savaitės
N-2023 savaitės
Rytis24 savaitės
DjArtas25 savaitės
WolfHammer25 savaitės
Nostesi35 savaitės
Wisedocs36 savaitės
asdasdddz39 savaitės
Paslapties K...40 savaitės
Audrius_1743 savaitės
Simbijanas55 savaitės
Karinacraft56 savaitės
Žmogus59 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.216.141
Naujienų: 529
Straipsnių: 235
Temų: 52,591
Postų: 522,551
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

LnKnPrK1
2026 Bir. 21 09:06:52
Sveiki, gal kas is administracijos gali parasyti man PM,aciu

minimukas
2026 Vas. 21 08:02:25
oi oi akinanti šypsen yra dar cia gyvu? akinanti šypsen

N-20
2026 Vas. 6 21:02:05
O mes dar gyvi šypsosi)

WolfHammer
2026 Sau. 25 01:01:35
drovus

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
del apklausos
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems

Autorius: Adr3naLin Peržiūrų: 646      Spausdinti temą
2009 Bal. 29 18:04:25          1 žinutė iš 1
Spausdinti pranešimą
jei kas galit pataisykit koda meta stai ka : Notice: Undefined index: in /home/szarewilki/public_html/infusions/member_poll_panel/member_poll_panel.php on line 92

Notice: Undefined index: in /home/szarewilki/public_html/infusions/member_poll_panel/member_poll_panel.php on line 94

Wyniki

Notice: Undefined index: in /home/szarewilki/public_html/infusions/member_poll_panel/member_poll_panel.php on line 95
Komentarzy : 0

Notice: Undefined index: in /home/szarewilki/public_html/infusions/member_poll_panel/member_poll_panel.php on line 96
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: member_poll_panel.php
| CVS Version: 1.00
| Author: baskata
| Email: baskata@abv.bg
+--------------------------------------------------------+
| v7 upgrade by Diemux
| www.phpfusion-mods.net
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (isset($poll_id) && !isNum($poll_id)) redirect("index.php");
if (file_exists(INFUSIONS."member_poll_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."member_poll_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."member_poll_panel/locale/English.php";
}

openside($locale['global_130']);
if (isset($_POST['cast_vote'])) {
   $result = dbquery("SELECT * FROM ".DB_POLL_VOTES." WHERE vote_user='".$userdata['user_id']."' AND poll_id='".$_POST['poll_id']."'");
   if (dbrows($result) == "0") {
      $result = dbquery("INSERT INTO ".DB_POLL_VOTES." (vote_user, vote_opt, poll_id) VALUES ('".$userdata['user_id']."','".$_POST['voteoption']."',  '".$_POST['poll_id']."')");
      header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
   }
}
$result = dbquery("SELECT * FROM ".DB_POLLS." ORDER BY poll_started DESC LIMIT 1");
if (dbrows($result)) {
   $data = dbarray($result);
   $poll_title = $data['poll_title'];
   $poll_option = array();
   for ($i=0; $i<=9; $i++) {
      if ($data["poll_opt_".$i]) $poll_option[$i] = $data["poll_opt_".$i];
   }
   if (iMEMBER) $result2 = dbquery("SELECT * FROM ".DB_POLL_VOTES." WHERE vote_user='".$userdata['user_id']."' AND poll_id='".$data['poll_id']."'");
   if ((!iMEMBER || !dbrows($result2)) && $data['poll_ended'] == 0) {
      $poll = ""; $i = 0; $num_opts = count($poll_option);
      while ($i < $num_opts) {
         $poll .= "<input type='radio' name='voteoption' value='$i'> $poll_option[$i]<br><br>\n";
         $i++;
      }
      echo "<form name='voteform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>
<b>$poll_title</b><br><br>
$poll<center><input type='hidden' name='poll_id' value='".$data['poll_id']."'>\n";
      if (iMEMBER) {
         echo "<input type='submit' name='cast_vote' value='".$locale['global_131']."' class='button'></center>\n";
      } else {
         echo $locale['global_132']."</center>\n";
      }
      echo "</form>\n";
   } else {
      $poll =  ""; $i = 0; $num_opts = count($poll_option);
      $poll_votes = dbcount("(vote_opt)", DB_POLL_VOTES, "poll_id='".$data['poll_id']."'");
      while ($i < $num_opts) {
         $num_votes = dbcount("(vote_opt)", DB_POLL_VOTES, "vote_opt='$i' AND poll_id='".$data['poll_id']."'");
         $opt_votes = ($poll_votes ? number_format(100 / $poll_votes * $num_votes) : 0);
         $poll .= "<div>".$poll_option[$i]."</div>
<div><img src='".THEME."images/pollbar.gif' alt='".$poll_option[$i]."' height='12' width='$opt_votes' class='poll'></div>
<div>".$opt_votes."% [".$num_votes." ".($num_votes == 1 ? $locale['global_133'] : $locale['global_134'])."]</div><br>\n";
         $i++;
      }
      echo "<b>".$poll_title."</b><br><br>
$poll
<center>".$locale['global_135'].$poll_votes."<br>
".$locale['global_136'].showdate("shortdate", $data['poll_started']);
      if ($data['poll_ended'] > 0) {
         echo "<br>\n".$locale['global_137'].showdate("shortdate", $data['poll_ended'])."\n";
      }
      $result = dbquery("SELECT * FROM ".DB_POLLS."");
      if (dbrows($result) < 0) {
         echo "<br><br><img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."member_poll_panel/polls_archive.php' class='side'>".$locale['global_138']."</a> <img src='".THEME."images/bulletb.gif' alt=''>\n";
      }
      echo "</center>\n";
   }
} else {
   echo "<center>".$locale['global_142']."</center>\n";
}
$poll_info = array(
"poll_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='PK' AND comment_item_id='".$data['']."'"),
);
echo "<center><br><img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."member_poll_panel/polls_comments.php?viewpoll_id=".$data['']."' class='side'>".$locale['998']."</a> <img src='".THEME."images/bulletb.gif' alt=''></center>";
echo "<center><img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."member_poll_panel/polls_comments.php?viewpoll_id=".$data['']."' class='side'>".$locale['999'].$poll_info['poll_comments']."</a> <img src='".THEME."images/bulletb.gif' alt=''></center>";
      if ($data[''] > 0) {
         echo "<br>\n".$locale['global_137'].showdate("shortdate", $data['poll_ended'])."\n";
      }
      $result = dbquery("SELECT * FROM ".DB_POLLS."");
      if (dbrows($result) > 1) {
         echo "<center><img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."member_poll_panel/polls_archive.php' class='side'>".$locale['997']."</a> <img src='".THEME."images/bulletb.gif' alt=''></center>\n";
      echo "\n";
} else {
   echo "\n";
}
closeside();
?>




Nesigilink, nesuprasi....
Peršokti į forumą: