You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(202) |
Nov
(201) |
Dec
(280) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(493) |
Feb
(106) |
Mar
(215) |
Apr
(163) |
May
(79) |
Jun
(193) |
Jul
(47) |
Aug
(71) |
Sep
(127) |
Oct
(41) |
Nov
(49) |
Dec
(120) |
2005 |
Jan
(147) |
Feb
(45) |
Mar
(26) |
Apr
(71) |
May
(52) |
Jun
(28) |
Jul
(92) |
Aug
(50) |
Sep
(35) |
Oct
(193) |
Nov
(106) |
Dec
(52) |
2006 |
Jan
(51) |
Feb
(38) |
Mar
(33) |
Apr
(79) |
May
(107) |
Jun
(67) |
Jul
(21) |
Aug
(65) |
Sep
(44) |
Oct
(87) |
Nov
(12) |
Dec
(56) |
2007 |
Jan
(48) |
Feb
(58) |
Mar
(63) |
Apr
(31) |
May
(25) |
Jun
(20) |
Jul
(72) |
Aug
(54) |
Sep
(30) |
Oct
(76) |
Nov
(74) |
Dec
(25) |
2008 |
Jan
(39) |
Feb
(39) |
Mar
(62) |
Apr
(64) |
May
(59) |
Jun
(31) |
Jul
(25) |
Aug
(25) |
Sep
(17) |
Oct
(24) |
Nov
|
Dec
(1) |
2009 |
Jan
(60) |
Feb
(39) |
Mar
(16) |
Apr
(30) |
May
(52) |
Jun
(35) |
Jul
(15) |
Aug
(15) |
Sep
(21) |
Oct
(32) |
Nov
(39) |
Dec
(52) |
2010 |
Jan
(42) |
Feb
(40) |
Mar
(23) |
Apr
(20) |
May
(27) |
Jun
(10) |
Jul
(30) |
Aug
(30) |
Sep
(66) |
Oct
(12) |
Nov
(35) |
Dec
(60) |
2011 |
Jan
(16) |
Feb
(1) |
Mar
(3) |
Apr
(28) |
May
(21) |
Jun
|
Jul
(12) |
Aug
(6) |
Sep
(10) |
Oct
(14) |
Nov
(40) |
Dec
(60) |
2012 |
Jan
(23) |
Feb
(17) |
Mar
(24) |
Apr
(18) |
May
(13) |
Jun
(1) |
Jul
|
Aug
(5) |
Sep
|
Oct
(5) |
Nov
(5) |
Dec
(15) |
2013 |
Jan
(2) |
Feb
(5) |
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
(3) |
Jul
|
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2014 |
Jan
(3) |
Feb
(5) |
Mar
(8) |
Apr
(3) |
May
(1) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(10) |
Nov
|
Dec
(9) |
2015 |
Jan
(18) |
Feb
(17) |
Mar
(5) |
Apr
(2) |
May
|
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(24) |
Nov
(20) |
Dec
(41) |
2016 |
Jan
(9) |
Feb
(3) |
Mar
(2) |
Apr
(7) |
May
(8) |
Jun
(1) |
Jul
(6) |
Aug
(5) |
Sep
(2) |
Oct
(6) |
Nov
(1) |
Dec
(6) |
2017 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <fr...@us...> - 2004-01-02 19:29:01
|
Update of /cvsroot/devil-linux/web/polls In directory sc8-pr-cvs1:/tmp/cvs-serv3988 Modified Files: results.php Log Message: remove all CR Index: results.php =================================================================== RCS file: /cvsroot/devil-linux/web/polls/results.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- results.php 2 Jan 2004 18:24:26 -0000 1.4 +++ results.php 2 Jan 2004 19:28:57 -0000 1.5 @@ -1,75 +1,75 @@ -<?php -/////////////////////////////////////////////////// -// Advanced Poll 1.6 (PHP/MySQL) // -// Copyright (c)2001 Chi Kien Uong // -// URL: http://www.proxy2.de // -/////////////////////////////////////////////////// - -require ("./include/config.inc.php"); -require ("./include/$poll_db"); -$db_connect = new db_sql; -$db_connect->connect($sql_hostname, $sql_username, $sql_password, $dbName); -$varresult = $db_connect->query("SELECT * FROM $sql_config"); -$vars = $db_connect->fetch_array($varresult); -while(list($var,$value) = each($vars)) { - $$var=$value; -} -$db_connect->free_result($varresult); - -$img_length = 80; - -?> -<table width="96%" border="0" align="center" cellspacing="1" cellpadding="1"> - <tr> - <td height="55" valign="middle" align="center"> <b><u><font size="2" face="<?php echo $font_face; ?>">POLL RESULTS</font></u><br> - </b></td> - </tr> - <tr> - <td valign="top" align="center"> -<?php -$poll_result = $db_connect->query("SELECT * FROM $sql_index order by timestamp desc"); -while ($row = $db_connect->fetch_array($poll_result)) { - if ($row['status']==2) { - continue; - } - $question = stripslashes($row['question']); - $question = htmlspecialchars($question); - $poll_id = $row['poll_id']; -?> - <table border="0" cellspacing="0" cellpadding="1" bgcolor="#006699" width="400"> - <tr> - <td> - <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center" bgcolor="#FFFFFF"> - <tr bgcolor="#006699"> - <td colspan="3"><font size="1" face="<?php echo $font_face; ?>" color="#FFFFFF"><b><?php echo $question; ?></b></font></td> - </tr> -<?php -$i=0; -$poll_total = $db_connect->query("SELECT SUM(votes) AS total FROM $sql_data WHERE (poll_id = '$poll_id')"); -$poll_sum = $db_connect->fetch_array($poll_total); -$db_connect->free_result($poll_total); -$data_result = $db_connect->query("SELECT * FROM $sql_data WHERE (poll_id = '$poll_id') order by votes desc"); -$votes_total = ($poll_sum["total"]==0) ? 1 : $poll_sum["total"]; -while ($data = $db_connect->fetch_array($data_result)) { - if ($i == 0) { - $maxvote = ($data["votes"]==0) ? 1 : $data["votes"]; - $i++; - } - $img_width = (int) ($data["votes"]*$img_length/$maxvote); - $vote_val = sprintf("%.1f",($data['votes']*100/$votes_total))."%"; - echo " <tr> - <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\">$data[option_text]</font></td> - <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\">$data[votes]</font></td> - <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\"><img src=\"$base_gif/$data[color].gif\" width=\"$img_width\" height=\"$img_height\" alt=\"bar\"> $vote_val</font></td> - </tr>\n"; -} -?> - <tr> - <td><font face="<?php echo $font_face; ?>" color="<?php echo $font_color; ?>" size="1">Total votes:</font></td> - <td><font face="<?php echo $font_face; ?>" size="1" color="#CC0000"><?php echo $poll_sum['total']; ?></font></td> - <td><font size="1">Created <?php echo date("j-M-Y",$row['timestamp']); ?></font></td> - </tr> - </table> +<?php +/////////////////////////////////////////////////// +// Advanced Poll 1.6 (PHP/MySQL) // +// Copyright (c)2001 Chi Kien Uong // +// URL: http://www.proxy2.de // +/////////////////////////////////////////////////// + +require ("./include/config.inc.php"); +require ("./include/$poll_db"); +$db_connect = new db_sql; +$db_connect->connect($sql_hostname, $sql_username, $sql_password, $dbName); +$varresult = $db_connect->query("SELECT * FROM $sql_config"); +$vars = $db_connect->fetch_array($varresult); +while(list($var,$value) = each($vars)) { + $$var=$value; +} +$db_connect->free_result($varresult); + +$img_length = 80; + +?> +<table width="96%" border="0" align="center" cellspacing="1" cellpadding="1"> + <tr> + <td height="55" valign="middle" align="center"> <b><u><font size="2" face="<?php echo $font_face; ?>">POLL RESULTS</font></u><br> + </b></td> + </tr> + <tr> + <td valign="top" align="center"> +<?php +$poll_result = $db_connect->query("SELECT * FROM $sql_index order by timestamp desc"); +while ($row = $db_connect->fetch_array($poll_result)) { + if ($row['status']==2) { + continue; + } + $question = stripslashes($row['question']); + $question = htmlspecialchars($question); + $poll_id = $row['poll_id']; +?> + <table border="0" cellspacing="0" cellpadding="1" bgcolor="#006699" width="400"> + <tr> + <td> + <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center" bgcolor="#FFFFFF"> + <tr bgcolor="#006699"> + <td colspan="3"><font size="1" face="<?php echo $font_face; ?>" color="#FFFFFF"><b><?php echo $question; ?></b></font></td> + </tr> +<?php +$i=0; +$poll_total = $db_connect->query("SELECT SUM(votes) AS total FROM $sql_data WHERE (poll_id = '$poll_id')"); +$poll_sum = $db_connect->fetch_array($poll_total); +$db_connect->free_result($poll_total); +$data_result = $db_connect->query("SELECT * FROM $sql_data WHERE (poll_id = '$poll_id') order by votes desc"); +$votes_total = ($poll_sum["total"]==0) ? 1 : $poll_sum["total"]; +while ($data = $db_connect->fetch_array($data_result)) { + if ($i == 0) { + $maxvote = ($data["votes"]==0) ? 1 : $data["votes"]; + $i++; + } + $img_width = (int) ($data["votes"]*$img_length/$maxvote); + $vote_val = sprintf("%.1f",($data['votes']*100/$votes_total))."%"; + echo " <tr> + <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\">$data[option_text]</font></td> + <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\">$data[votes]</font></td> + <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\"><img src=\"$base_gif/$data[color].gif\" width=\"$img_width\" height=\"$img_height\" alt=\"bar\"> $vote_val</font></td> + </tr>\n"; +} +?> + <tr> + <td><font face="<?php echo $font_face; ?>" color="<?php echo $font_color; ?>" size="1">Total votes:</font></td> + <td><font face="<?php echo $font_face; ?>" size="1" color="#CC0000"><?php echo $poll_sum['total']; ?></font></td> + <td><font size="1">Created <?php echo date("j-M-Y",$row['timestamp']); ?></font></td> + </tr> + </table> </td></tr> <tr bgcolor="#FFFFFF"><td><br><br></td></tr> </table> |
From: <fr...@us...> - 2004-01-02 19:28:08
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv3913 Modified Files: index.shtml Log Message: change DTD for transitional to include reference to the dtd itself Index: index.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/index.shtml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- index.shtml 2 Jan 2004 18:06:18 -0000 1.8 +++ index.shtml 2 Jan 2004 19:28:04 -0000 1.9 @@ -1,7 +1,8 @@ <!--#if expr="(${SECTION} != /^documentation\//) && (${SECTION} != /^polls/)" --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!--#else ---><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><!--#endif --> +--><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"><!--#endif --> <html> <head> <meta content="text/html; charset=ISO-8859-15" http-equiv="content-type"> @@ -22,7 +23,7 @@ <!--#if expr="${THIS_PAGE}" --><!--#set var="CONTENT_PAGE" value="${CONTENT_PAGE}_${THIS_PAGE}" --><!--#endif --> <!--#if expr="${SECTION}" --><!--#set var="CONTENT_PAGE" value="${SECTION}/${CONTENT_PAGE}" --><!--#endif --> -<table border=0 width="100%"> +<table border=1 width="100%"> <tr> <td class="frameleft"><!--#include virtual="menu.shtml" --></td> <td class="top"><p> </p></td> |
From: <smi...@us...> - 2004-01-02 18:33:23
|
Update of /cvsroot/devil-linux/web/polls In directory sc8-pr-cvs1:/tmp/cvs-serv27368 Modified Files: head.shtml Log Message: removed newline Index: head.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/polls/head.shtml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- head.shtml 2 Jan 2004 17:32:26 -0000 1.1 +++ head.shtml 2 Jan 2004 18:33:19 -0000 1.2 @@ -1 +1 @@ -<title>Devil-Linux Polls</title> +<title>Devil-Linux Polls</title> \ No newline at end of file |
From: <smi...@us...> - 2004-01-02 18:24:29
|
Update of /cvsroot/devil-linux/web/polls In directory sc8-pr-cvs1:/tmp/cvs-serv25618 Modified Files: results.php Log Message: This Page Is Valid HTML 4.01 Transitional! Index: results.php =================================================================== RCS file: /cvsroot/devil-linux/web/polls/results.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- results.php 2 Jan 2004 18:07:15 -0000 1.3 +++ results.php 2 Jan 2004 18:24:26 -0000 1.4 @@ -70,6 +70,10 @@ <td><font size="1">Created <?php echo date("j-M-Y",$row['timestamp']); ?></font></td> </tr> </table> - </tr> - </tr> + </td></tr> + <tr bgcolor="#FFFFFF"><td><br><br></td></tr> + </table> +<?php } ?> + </tr> </table> + |
From: <fr...@us...> - 2004-01-02 18:08:47
|
Update of /cvsroot/devil-linux/web/donations In directory sc8-pr-cvs1:/tmp/cvs-serv22887 Modified Files: content_hardware.shtml Log Message: html 4.01 strict fix Index: content_hardware.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/donations/content_hardware.shtml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- content_hardware.shtml 2 Jan 2004 17:29:05 -0000 1.1 +++ content_hardware.shtml 2 Jan 2004 18:08:43 -0000 1.2 @@ -1,6 +1,6 @@ <p class="bigh1">Make Hardware Donations</p> -<p class="center">Here's a list of hardware our developers could use:<br></br> +<p class="center">Here's a list of hardware our developers could use:<br> <A HREF="http://www.provantage.com/pr_74031.htm">IDE CF Card Reader</A><br> 256 MB CF Card<br> 802.11B/G PCI card with a Prism chipset<br> |
From: <smi...@us...> - 2004-01-02 18:07:19
|
Update of /cvsroot/devil-linux/web/polls In directory sc8-pr-cvs1:/tmp/cvs-serv22599 Modified Files: results.php Log Message: make result html 4.01 transistional Index: results.php =================================================================== RCS file: /cvsroot/devil-linux/web/polls/results.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- results.php 2 Jan 2004 17:34:56 -0000 1.2 +++ results.php 2 Jan 2004 18:07:15 -0000 1.3 @@ -19,26 +19,10 @@ $img_length = 80; ?> -<html> -<head> -<title>Advanced Poll</title> -<meta http-equiv="Pragma" content="no-cache"> -<meta http-equiv="Cache-Control" content="no-cache"> -<meta http-equiv="Expires" content="-1"> -<style type="text/css"> -<!-- -a:hover { color: #000099; text-decoration: underline} -a:active { color: #000000; text-decoration: none} -a { text-decoration: none} -td { font-family: <?php echo $font_face; ?>; } ---> -</style> -</head> -<body bgcolor="#FFFFFF" background="/images/paper.jpg"> <table width="96%" border="0" align="center" cellspacing="1" cellpadding="1"> <tr> - <td height="55" valign="middle" align="center"> <b><u><font size="2" face="<?php echo $font_face; ?>">POLL RESULTS</u><br> - </font></b></td> + <td height="55" valign="middle" align="center"> <b><u><font size="2" face="<?php echo $font_face; ?>">POLL RESULTS</font></u><br> + </b></td> </tr> <tr> <td valign="top" align="center"> @@ -76,7 +60,7 @@ echo " <tr> <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\">$data[option_text]</font></td> <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\">$data[votes]</font></td> - <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\"><img src=\"$base_gif/$data[color].gif\" width=\"$img_width\" height=\"$img_height\"> $vote_val</font></td> + <td><font face=\"$font_face\" color=\"$font_color\" size=\"1\"><img src=\"$base_gif/$data[color].gif\" width=\"$img_width\" height=\"$img_height\" alt=\"bar\"> $vote_val</font></td> </tr>\n"; } ?> @@ -86,13 +70,6 @@ <td><font size="1">Created <?php echo date("j-M-Y",$row['timestamp']); ?></font></td> </tr> </table> - </td> </tr> - </table><br><br> -<?php } ?> - <font face="Arial, Helvetica, sans-serif" size="1"><b><a href="http://www.proxy2.de" target="_blank"><font color="#dedfdf">Advanced Poll</font></a></b></font></td> </tr> -</table> - -</body> -</html> \ No newline at end of file +</table> |
From: <fr...@us...> - 2004-01-02 18:06:23
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv22478 Modified Files: index.shtml Log Message: /polls/ is also at maximum html 4.01 transitional Index: index.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/index.shtml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- index.shtml 2 Jan 2004 16:46:04 -0000 1.7 +++ index.shtml 2 Jan 2004 18:06:18 -0000 1.8 @@ -1,4 +1,4 @@ -<!--#if expr="${SECTION} != /^documentation\//" +<!--#if expr="(${SECTION} != /^documentation\//) && (${SECTION} != /^polls/)" --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!--#else --><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><!--#endif --> |
From: <fr...@us...> - 2004-01-02 18:00:46
|
Update of /cvsroot/devil-linux/web/polls In directory sc8-pr-cvs1:/tmp/cvs-serv21313 Added Files: .htaccess Log Message: secure the polls directory --- NEW FILE: .htaccess --- # no webuser is allowed to read include files <Files "include"> Order Deny,Allow Deny from all </Files> <Files "*.inc.php"> Order Deny,Allow Deny from all </Files> |
From: <fr...@us...> - 2004-01-02 17:45:43
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv17912 Modified Files: menu.shtml Log Message: add missing submenu file for donations and make small corrections in the navigation regarding this submenu Index: menu.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/menu.shtml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- menu.shtml 2 Jan 2004 17:32:26 -0000 1.19 +++ menu.shtml 2 Jan 2004 17:45:39 -0000 1.20 @@ -5,7 +5,7 @@ <!--#if expr="${SECTION} = /^documentation/" --> <!--#if expr="${SUBMENU}" --><!--#include virtual="${SUBMENU}" --><!--#endif --><!--#endif --> <p class="menu"><!--#if expr="${SECTION} != sponsors" --><a href="/sponsors/"><!--#endif -->Sponsors<!--#if expr="${SECTION} != sponsors" --></a><!--#endif --></p> -<p class="menu"><!--#if expr="${SECTION} != donations" --><a href="/donations/"><!--#endif -->Donate<!--#if expr="${SECTION} != donations" --></a><!--#endif --></p> +<p class="menu"><!--#if expr="${SECTION} != donations || ${THIS_PAGE}" --><a href="/donations/"><!--#endif -->Donate<!--#if expr="${SECTION} != donations || ${THIS_PAGE}" --></a><!--#endif --></p> <!--#if expr="${SECTION} = /^donations/" --> <!--#if expr="${SUBMENU}" --><!--#include virtual="${SUBMENU}" --><!--#endif --><!--#endif --> <p class="menu"><!--#if expr="${SECTION} != screenshots" --><a href="/screenshots/"><!--#endif -->Screenshots<!--#if expr="${SECTION} != screenshots" --></a><!--#endif --></p> |
From: <fr...@us...> - 2004-01-02 17:45:43
|
Update of /cvsroot/devil-linux/web/donations In directory sc8-pr-cvs1:/tmp/cvs-serv17912/donations Modified Files: hardware.shtml Added Files: submenu.shtml Log Message: add missing submenu file for donations and make small corrections in the navigation regarding this submenu --- NEW FILE: submenu.shtml --- <p class="menu"> <!--#if expr="${THIS_PAGE} != hardware" --><a href="/donations/hardware.shtml"><!--#endif -->Hardware<!--#if expr="${THIS_PAGE} != hardware" --></a><!--#endif --></p> Index: hardware.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/donations/hardware.shtml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- hardware.shtml 2 Jan 2004 17:29:05 -0000 1.1 +++ hardware.shtml 2 Jan 2004 17:45:39 -0000 1.2 @@ -1 +1 @@ -<!--#set var="THIS_PAGE" value="hardware" --><!--#set var="SECTION" value="donations/hardware.shtml" --><!--#set var="SUBMENU" value="donations/submenu.shtml" --><!--#include virtual="../index.shtml" --> \ No newline at end of file +<!--#set var="THIS_PAGE" value="hardware" --><!--#set var="SECTION" value="donations" --><!--#set var="SUBMENU" value="donations/submenu.shtml" --><!--#include virtual="../index.shtml" --> \ No newline at end of file |
From: <smi...@us...> - 2004-01-02 17:34:59
|
Update of /cvsroot/devil-linux/web/polls In directory sc8-pr-cvs1:/tmp/cvs-serv15966 Modified Files: results.php Log Message: removed unwanted link Index: results.php =================================================================== RCS file: /cvsroot/devil-linux/web/polls/results.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- results.php 2 Jan 2004 17:32:26 -0000 1.1 +++ results.php 2 Jan 2004 17:34:56 -0000 1.2 @@ -90,7 +90,6 @@ </tr> </table><br><br> <?php } ?> - <font size="2" face="<?php echo $font_face; ?>"><a href="list.php">More Polls</a></font><br><br> <font face="Arial, Helvetica, sans-serif" size="1"><b><a href="http://www.proxy2.de" target="_blank"><font color="#dedfdf">Advanced Poll</font></a></b></font></td> </tr> </table> |
From: <smi...@us...> - 2004-01-02 17:32:31
|
Update of /cvsroot/devil-linux/web/polls/lang In directory sc8-pr-cvs1:/tmp/cvs-serv15591/polls/lang Added Files: chinesebig5.php danish.php dutch.php english.php french.php german.php hungary.php italian.php norsk.php polish.php portuguese.php russian.php serbian.php spanish.php svenska.php translation.txt Log Message: added polls --- NEW FILE: chinesebig5.php --- (This appears to be a binary file; contents omitted.) --- NEW FILE: danish.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = "Log ud"; $FormUndo = "Fortryd ændringer"; $FromClear = "Nulstil"; $FormEnter = "Angiv venligst et rigtigt brugernavn og password"; $FormWrong = "Forkert brugernavn eller password"; $FormOK = "OK"; $Updated = "Ændringerne er tilføjet!"; $NoUpdate = "Der er sket en fejl! Ingen ændringer foretaget!"; $Confirm = "Er du sikker?"; $NavNext = "Næste side"; $NavPrev = "Forrige side"; $License = "Licens Aftale"; $ScrollTxt = "Tryk på PAGE DOWN tasten for at se resten af aftalen."; # Poll List $IndexTitle = "Afstemnings liste"; $IndexQuest = "Spørgsmål"; $IndexID = "Afstemnings ID"; $IndexDate = "Dato"; $IndexDays = "Dage"; $IndexExp = "Udløb"; $IndexExpire = "Udløbet"; $IndexNever = "Aldrig"; $IndexStat = "Statistikker"; $IndexCom = "Kommentarer"; $IndexAct = "Aktion"; $IndexDel = "slet"; # Create A New Poll $NewTitle = "Opret en ny afstemning"; $NewOption = "Mulighed"; $NewNoQue = "Du glemte at skrive i spørgsmål-feltet"; $NewNoOpt = "Du glemte at skrive i mindst 2 mulighed-felter"; # Poll Edit $EditStat = "Status"; $EditText = "Rediger denne afstemning"; $EditReset = "Nulstil denne afstemning"; $EditOn = "aktiv"; $EditOff = "inaktiv"; $EditHide = "Skjult"; $EditLgOff = "logger af"; $EditLgOn = "logger på"; $EditAdd = "Tilføj muligheder"; $EditNo = "Der er ikke blevet tilføjet muligheder!"; $EditOk = "Muligerheder tilføjet!"; $EditSave = "Gem ændringer"; $EditOp = "Mindst to muligheder er påkrævet!"; $EditMis = "Spørgsmål og muligheder er ikke udfyldt"; $EditDel = "For at fjerne en mulighed lad feltet stå blankt"; $EditCom = "Allow comments"; # General Settings $SetTitle = "Generelle indstillinger"; $SetOption = "Tabel Font og farve indstillinger"; $SetMisc = "Diverse"; $SetText = "Rediger de generelle indstillinger"; $SetURL = "URL til mappe med billedfiler"; $SetNo = "Ingen efterfølgene skråstreg"; $SetLang = "Sprog"; $SetPoll = "Afstemings titel"; $SetButton = "Stem knap"; $SetResult = "Resultat link"; $SetVoted = "Allerede stemt"; $SetComment = "Send din kommentar"; $SetTab = "Tabel bredde"; $SetBarh = "Søjle højde"; $SetBarMax = "Max. søjle længde"; $SetTabBg = "Tabel baggrund farve"; $SetFrmCol = "Ramme farve"; $SetFontCol = "Font farve"; $SetFace = "Font type"; $SetShow = "Vis"; $SetPerc = "procent"; $SetVotes = "stemmer"; $SetCheck = "Check"; $SetNoCheck = "ingen checkning"; $SetIP = "IP tabel"; $SetTime = "låsnings timeout"; $SetHours = "timer"; $SetOffset = "Server tid offset"; $SetEntry = "Kommentarer vist per side"; $SetSubmit = "Gem indstillinger"; $SetEmpty = "Ugyldigt indhold"; # Change Password $PwdTitle = "Skift Password"; $PwdText = "Skift the brugernavn eller password"; $PwdUser = "Brugernavn"; $PwdPass = "Password"; $PwdConf = "Bekræft Password"; $PwdNoUsr = "Du glemte at udfylde brugernavn-feltet"; $PwdNoPwd = "Du glemte at udfylde password-feltet"; $PwdBad = "De to opgivne passwords er ikke ens"; # Poll Stats $StatCrea = "Oprettet"; $StatAct = "Aktiv"; $StatReset = "Nulstil log statistik"; $StatDis = "loggning er inaktiv for denne afstemning"; $StatTotal = "Totale stemmer"; $StatDay = "Stemmer pr. dag"; # Poll Comments $ComTotal = "Totale kommentarer"; $ComName = "Navn"; $ComPost = "skrevet"; $ComDel = "Er du sikker på du vil slette denne besked?"; # Help $Help = "Hjælp"; $HelpPoll = "For at indsætte en afsteminig på dit website kopier koden nedeunder"; $HelpRand = "Det er også muligt at vise en tilfældig afstemning"; $HelpNew = "Vis altid seneste afstemning"; # Days $weekday[0] = "Søndag"; $weekday[1] = "Mandag"; $weekday[2] = "Tirsdag"; $weekday[3] = "Onsdag"; $weekday[4] = "Torsdag"; $weekday[5] = "Fredag"; $weekday[6] = "Lørdag"; # Months $months[0] = "Januar"; $months[1] = "Febuar"; $months[2] = "Marts"; $months[3] = "April"; $months[4] = "Maj"; $months[5] = "Juni"; $months[6] = "Juli"; $months[7] = "August"; $months[8] = "September"; $months[9] = "Oktober"; $months[10] = "November"; $months[11] = "December"; # Colors $color_array[0] = "aqua"; $color_array[1] = "blå"; $color_array[2] = "brun"; $color_array[3] = "mørkegrøn"; $color_array[4] = "guld"; $color_array[5] = "grøn"; $color_array[6] = "grå"; $color_array[7] = "orange"; $color_array[8] = "pink"; $color_array[9] = "lilla"; $color_array[10] = "rød"; $color_array[11] = "gul"; ?> --- NEW FILE: dutch.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = 'Log uit'; $FormUndo = 'Maak veranderingen ongedaan'; $FromClear = 'Reset'; $FormEnter = 'Vul een correcte gebruikersnaam en paswoord in.'; $FormWrong = 'Verkeerde gebruikersnaam of paswoord!'; $FormOK = 'OK'; $Updated = 'De veranderingen zijn geupdate.'; $NoUpdate = 'Error! Er zijn GEEN veranderingen gemaakt!'; $Confirm = 'Ben je zeker dat je met deze actie wil verderzetten?'; $NavNext = 'Volgende pagina'; $NavPrev = 'Vorige pagina'; $License = 'Licensie overeenkomst'; $ScrollTxt = 'Druk op de PAGE DOWN toets om de rest van de overeenkomst te zien.'; # Poll List $IndexTitle = 'Poll List'; $IndexQuest = 'Titel'; $IndexID = 'Poll ID'; $IndexDate = 'Datum'; $IndexDays = 'Actief'; $IndexExp = 'Vervaltijd'; $IndexExpire = 'verstreken'; $IndexNever = 'nooit'; $IndexStat = 'Statistieken'; $IndexCom = 'Commentaren'; $IndexAct = 'Actie'; $IndexDel = 'verwijder'; # Create A New Poll $NewTitle = 'Nieuwe poll'; $NewOption = 'Optie'; $NewNoQue = 'Je bent vergeten het veld met de vraag in te vullen.'; $NewNoOpt = 'Je bent vergeten het optie veld in te vullen.'; # Poll Edit $EditStat = 'Status'; $EditText = 'Bewerk deze poll'; $EditReset = 'Verwijder deze poll'; $EditOn = 'aan gezet'; $EditOff = 'af gezet'; $EditHide = 'verborgen'; $EditLgOff = 'logging af'; $EditLgOn = 'logging aan'; $EditAdd = 'Voeg opties toe'; $EditNo = 'Er zijn geen opties toegevoegd!'; $EditOk = 'Opties toegevoegd!'; $EditSave = 'Bewaar veranderingen'; $EditOp = 'Er zijn ten minste 2 opties nodig!'; $EditMis = 'Vraag en opties zijn niet gedefiniëerd!'; $EditDel = 'Om een optie te verwijderen moet je het optie veld leeg laten'; $EditCom = 'Laat commentaar toe'; # General Settings $SetTitle = 'Instellingen'; $SetOption = 'Tabel, lettertype en kleur opties'; $SetMisc = 'Overige'; $SetText = 'Verander de instellingen'; $SetURL = 'URL naar image map'; $SetNo = 'Geen slash op het einde!'; $SetLang = 'Taal'; $SetPoll = 'Titel van poll'; $SetButton = 'Stem knop'; $SetResult = 'Link naar het resultaat'; $SetVoted = 'Al gestemd'; $SetComment = 'Stuur je commentaar'; $SetTab = 'Breedte van tabel'; $SetBarh = 'Hoogte van bar'; $SetBarMax = 'Max. bar lengte'; $SetTabBg = 'Achtergrondkleur van tabel'; $SetFrmCol = 'Kleur van frame'; $SetFontCol = 'Kleur van het lettertype'; $SetFace = 'Lettertype'; $SetShow = 'Toon'; $SetPerc = 'procent'; $SetVotes = 'stemmen'; $SetCheck = 'Check'; $SetNoCheck = 'Checking niets'; $SetIP = 'IP tabel'; $SetTime = 'locking timeout'; $SetHours = 'uren'; $SetOffset = 'Server tijd offset'; $SetEntry = 'Kommentaar per pagina'; $SetSubmit = 'Voer veranderingen door'; $SetEmpty = 'Verkeerde waarde'; # Change Password $PwdTitle = 'Verander paswoord'; $PwdText = 'Verander de gebruikersnaam of het paswoord'; $PwdUser = 'Gebruikersnaam'; $PwdPass = 'Paswoord'; $PwdConf = 'Bevestig paswoord'; $PwdNoUsr = 'Je bent vergeten het gebruikersnaam veld in te vullen'; $PwdNoPwd = 'Je bent vergeten het paswoord veld in te vullen'; $PwdBad = 'De paswoorden zijn verschillend'; # Poll Stats $StatCrea = 'Gecreërd'; $StatAct = 'Actief'; $StatReset = 'Verwijder log statistieken'; $StatDis = 'logging is uitgezet voor deze poll'; $StatTotal = 'Totaal aantal stemmen'; $StatDay = 'stemmen per dag'; # Poll Comments $ComTotal = 'Aantal commentaren'; $ComName = 'Naam'; $ComPost = 'gepost'; $ComDel = 'Ben je zeker dat je deze tekst wil verwijderen?'; # Help $Help = 'Help'; $HelpPoll = 'Om je poll toe te voegen moet je de volgende code in je webpagina invoeren'; $HelpRand = 'Het is ook mogelijk een random poll te tonen'; $HelpNew = 'Toon altijd de laatste poll'; # Days $weekday[0] = 'zondag'; $weekday[1] = 'maandag'; $weekday[2] = 'dinsdag'; $weekday[3] = 'woensdag'; $weekday[4] = 'donderdag'; $weekday[5] = 'vrijdag'; $weekday[6] = 'zaterdag'; # Months $months[0] = 'januari'; $months[1] = 'februari'; $months[2] = 'maart'; $months[3] = 'april'; $months[4] = 'mei'; $months[5] = 'juni'; $months[6] = 'julie'; $months[7] = 'augustus'; $months[8] = 'september'; $months[9] = 'oktober'; $months[10] = 'november'; $months[11] = 'december'; # Colors $color_array[0] = 'aqua'; $color_array[1] = 'blauw'; $color_array[2] = 'bruin'; $color_array[3] = 'dondergroen'; $color_array[4] = 'goud'; $color_array[5] = 'groen'; $color_array[6] = 'grijs'; $color_array[7] = 'oranje'; $color_array[8] = 'roos'; $color_array[9] = 'paars'; $color_array[10] = 'rood'; $color_array[11] = 'geel'; ?> --- NEW FILE: english.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = "Logout"; $FormUndo = "Undo Changes"; $FromClear = "Reset"; $FormEnter = "Please enter a valid username and password"; $FormWrong = "Wrong username or password"; $FormOK = "OK"; $Updated = "The changes have been updated!"; $NoUpdate = "Error occured! No changes were made!"; $Confirm = "Are you sure?"; $NavNext = "Next page"; $NavPrev = "Previous page"; $License = "License Agreement"; $ScrollTxt = "Press the PAGE DOWN key to see the rest of the agreement."; # Poll List $IndexTitle = "Poll List"; $IndexQuest = "Question"; $IndexID = "Poll ID"; $IndexDate = "Date"; $IndexDays = "Days"; $IndexExp = "Expiration"; $IndexExpire = "expired"; $IndexNever = "never"; $IndexStat = "Stats"; $IndexCom = "Comments"; $IndexAct = "Action"; $IndexDel = "delete"; # Create A New Poll $NewTitle = "Create a new poll"; $NewOption = "Option"; $NewNoQue = "You forgot to fill in the question field"; $NewNoOpt = "You forgot to fill in the option field"; # Poll Edit $EditStat = "Status"; $EditText = "Edit this poll"; $EditReset = "Reset this poll"; $EditOn = "enabled"; $EditOff = "disabled"; $EditHide = "hidden"; $EditLgOff = "logging off"; $EditLgOn = "logging on"; $EditAdd = "Add Options"; $EditNo = "No options have been added!"; $EditOk = "Options added!"; $EditSave = "Save Changes"; $EditOp = "Two options are at least required!"; $EditMis = "Question and options are not defined!"; $EditDel = "To remove an option let the option field blank"; $EditCom = "Allow comments"; # General Settings $SetTitle = "General Settings"; $SetOption = "Table, Font And Color Options"; $SetMisc = "Miscellaneous"; $SetText = "Modify the general settings"; $SetURL = "URL to image directory"; $SetNo = "No trailing slash"; $SetLang = "Language"; $SetPoll = "Poll title"; $SetButton = "Vote button"; $SetResult = "Result link"; $SetVoted = "Already voted"; $SetComment = "Send your comment"; $SetTab = "Table width"; $SetBarh = "Bar height"; $SetBarMax = "Max. bar length"; $SetTabBg = "Table background color"; $SetFrmCol = "Frame color"; $SetFontCol = "Font color"; $SetFace = "Font face"; $SetShow = "Show"; $SetPerc = "percent"; $SetVotes = "votes"; $SetCheck = "Check"; $SetNoCheck = "no checking"; $SetIP = "IP table"; $SetTime = "locking timeout"; $SetHours = "hours"; $SetOffset = "Server time offset"; $SetEntry = "Comments Viewed Per Page"; $SetSubmit = "Submit Settings"; $SetEmpty = "Invalid value"; # Change Password $PwdTitle = "Change Password"; $PwdText = "Change the username or the password"; $PwdUser = "Username"; $PwdPass = "Password"; $PwdConf = "Confirm Password"; $PwdNoUsr = "You forgot to fill in the username field"; $PwdNoPwd = "You forgot to fill in the password field"; $PwdBad = "The passwords do not match"; # Poll Stats $StatCrea = "Created"; $StatAct = "Active"; $StatReset = "Reset log statistic"; $StatDis = "logging is disabled for this poll"; $StatTotal = "Total votes"; $StatDay = "votes per day"; # Poll Comments $ComTotal = "Total comments"; $ComName = "Name"; $ComPost = "posted"; $ComDel = "Are sure you want to delete this message?"; # Help $Help = "Help"; $HelpPoll = "To emded a poll into a webpage insert the code snippet from below"; $HelpRand = "It is also possible to display a random poll"; $HelpNew = "Always display the latest poll"; # Days $weekday[0] = "Sunday"; $weekday[1] = "Monday"; $weekday[2] = "Tuesday"; $weekday[3] = "Wednesday"; $weekday[4] = "Thursday"; $weekday[5] = "Friday"; $weekday[6] = "Saturday"; # Months $months[0] = "January"; $months[1] = "February"; $months[2] = "March"; $months[3] = "April"; $months[4] = "May"; $months[5] = "June"; $months[6] = "July"; $months[7] = "August"; $months[8] = "September"; $months[9] = "October"; $months[10] = "November"; $months[11] = "December"; # Colors $color_array[0] = "aqua"; $color_array[1] = "blue"; $color_array[2] = "brown"; $color_array[3] = "darkgreen"; $color_array[4] = "gold"; $color_array[5] = "green"; $color_array[6] = "grey"; $color_array[7] = "orange"; $color_array[8] = "pink"; $color_array[9] = "purple"; $color_array[10] = "red"; $color_array[11] = "yellow"; ?> --- NEW FILE: french.php --- <?php ################################### # Translated by Cyril GOURGEOT # Date : 16-05-2001 # Version : 1.0 # cyr...@wa... # www.ville-breuillet.fr ################################### # Advanced Poll Language File (Admin) # # General $Logout = "Se DéLogger"; $FormUndo = "Annuler les changements"; $FromClear = "Effacer"; $FormEnter = "Entrez un login et un password valides"; $FormWrong = "Login ou password incorrects"; $FormOK = "OK"; $Updated = "Les données ont été mises à jour!"; $NoUpdate = "Erreur apparue ! Aucune mise à jour effectuée!"; $Confirm = "Etes-vous sur ?"; $NavNext = "Page suivante"; $NavPrev = "Page précédente"; $License = "License d'Agrément"; $ScrollTxt = "Appuyez sur la touche PAGE DOWN pour voir le rete de la licence."; # Poll List $IndexTitle = "Liste des Sondages"; $IndexQuest = "Question"; $IndexID = "Sondage ID"; $IndexDate = "Date"; $IndexDays = "Jours"; $IndexExp = "Expiration "; $IndexExpire = "expiré"; $IndexNever = "Jamais"; $IndexStat = "Stats"; $IndexCom = "Commentaires"; $IndexAct = "Action"; $IndexDel = "effacer"; # Create A New Poll $NewTitle = "Créer un nouveau Sondage"; $NewOption = "Option"; $NewNoQue = "Vous avez oublié de remplir le champ Question "; $NewNoOpt = "Vous avez oublié de remplir le champ Option "; # Poll Edit $EditStat = "Statut "; $EditText = "Editer ce Sondage"; $EditReset = "Effacer ce Sondage"; $EditOn = "activé"; $EditOff = "desactivé"; $EditHide = "caché"; $EditLgOff = "logging off"; $EditLgOn = "logging on"; $EditAdd = "Ajouter des Options"; $EditNo = "Aucune option n'a été ajoutée!"; $EditOk = "Options ajoutées!"; $EditSave = "Sauver les Changements"; $EditOp = "Au moins deux options sont demandées !"; $EditMis = "Les questions et options ne sont pas definis !"; $EditDel = "Pour supprimer une option, laisser le champ vide"; $EditCom = "Autoriser les commentaires"; # General Settings $SetTitle = "Configuration Générale"; $SetOption = "Options : Table, Font et Color"; $SetMisc = "Divers"; $SetText = "Modifier la configuration générale"; $SetURL = "URL du répertoire image"; $SetNo = "No trailing slash"; $SetLang = "Langues"; $SetPoll = "Title du Sondage"; $SetButton = "Bouton de Vote"; $SetResult = "Liens"; $SetVoted = "Déjà vôté"; $SetComment = "Envoyez votre commentaire"; $SetTab = "Largeur de la Table"; $SetBarh = "Hauteur de la Barre"; $SetBarMax = "Longueur maxi de la Barre"; $SetTabBg = "Couleur de fond de la Table"; $SetFrmCol = "Couleur du Cadre"; $SetFontCol = "Couleur de la Police"; $SetFace = "Police face"; $SetShow = "Resultats"; $SetPerc = "pourcentage"; $SetVotes = "votes"; $SetCheck = "Vérifier"; $SetNoCheck = "pas de vérification"; $SetIP = "Table IP "; $SetTime = "Temps bloqué"; $SetHours = "heures"; $SetOffset = "Offset de temps du Server "; $SetEntry = "Commentaires par Pages"; $SetSubmit = "Enregistrer la configuration"; $SetEmpty = "Valeur Invalide"; # Change Password $PwdTitle = "Changer le Password"; $PwdText = "Changer le Login ou le Password"; $PwdUser = "Login"; $PwdPass = "Password"; $PwdConf = "Confirmer le Password"; $PwdNoUsr = "Vous avez oublié de remplir le champ Login"; $PwdNoPwd = "Vous avez oublié de remplir le champ Password"; $PwdBad = "Le Password est mal adapté"; # Poll Stats $StatCrea = "Créé"; $StatAct = "Actif"; $StatReset = "Effacer le fichier log des stats"; $StatDis = "logging est désactivé pour ce Sondage"; $StatTotal = "Nombre de votes"; $StatDay = "votes par jours"; # Poll Comments $ComTotal = "Nombre de commentaires"; $ComName = "Non"; $ComPost = "posté"; $ComDel = "Etes-vous sur de vouloir effacer ce message ?"; # Help $Help = "Aide"; $HelpPoll = "Pour placer un sondage sur une page web, insérez le morceau de code ci-dessous "; $HelpRand = "Il est aussi possible d'afficher un Sondage aléatoire"; $HelpNew = "Toujours afficher le dernier Sondage"; # Days $weekday[0] = "Dimanche"; $weekday[1] = "Lundi"; $weekday[2] = "Mardi"; $weekday[3] = "Mercredi"; $weekday[4] = "Jeudi"; $weekday[5] = "Vendredi"; $weekday[6] = "Samedi"; # Months $months[0] = "Janvier"; $months[1] = "Février"; $months[2] = "Mars"; $months[3] = "Avril"; $months[4] = "Mai"; $months[5] = "Juin"; $months[6] = "Juillet"; $months[7] = "Août"; $months[8] = "Septembre"; $months[9] = "Octobre"; $months[10] = "Novembre"; $months[11] = "Décembre"; # Colors $color_array[0] = "aqua"; $color_array[1] = "blue"; $color_array[2] = "brown"; $color_array[3] = "darkgreen"; $color_array[4] = "gold"; $color_array[5] = "green"; $color_array[6] = "grey"; $color_array[7] = "orange"; $color_array[8] = "pink"; $color_array[9] = "purple"; $color_array[10] = "red"; $color_array[11] = "yellow"; ?> --- NEW FILE: german.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = "Ausloggen"; $FormUndo = "Einstellungen zurücksetzen"; $FromClear = "Zurücksetzen"; $FormEnter = "Bitte geben Sie Benutzername und Kennwort ein"; $FormWrong = "Falscher Benutzername oder falsches Kennwort"; $FormOK = "OK"; $Updated = "Ihre Änderungen wurden aktualisiert!"; $NoUpdate = "Fehler aufgetreten! Ihre Änderungen wurden nicht gespeichert!"; $Confirm = "Wollten Sie diese Umfrage wirklich löschen?"; $NavNext = "Nächste Seite"; $NavPrev = "Voherige Seite"; $License = "Lizenzvertrag"; $ScrollTxt = "Drücken Sie die PAGE DOWN Taste, um den Rest der Lizenz zu lesen."; # Poll List $IndexTitle = "Umfragen"; $IndexQuest = "Frage"; $IndexID = "ID"; $IndexDate = "Datum"; $IndexDays = "Tage"; $IndexExp = "Ablauf"; $IndexExpire = "abgelaufen"; $IndexNever = "nie"; $IndexStat = "Statistik"; $IndexCom = "Kommentare"; $IndexAct = "Aktion"; $IndexDel = "löschen"; # Create A New Poll $NewTitle = "Neue Umfrage erstellen"; $NewOption = "Option"; $NewNoQue = "Sie haben noch keine Frage eingegeben"; $NewNoOpt = "Sie haben noch keine Option eingegeben"; # Poll Edit $EditStat = "Status"; $EditText = "Umfrage editieren"; $EditReset = "Umfrage zurücksetzen"; $EditOn = "aktiviert"; $EditOff = "deaktiviert"; $EditHide = "versteckt"; $EditLgOff = "loggen aus"; $EditLgOn = "loggen an"; $EditAdd = "Optionen hinzufügen"; $EditNo = "Keine Optionen wurden hinzugefügt!"; $EditOk = "Optionen hinzugefügt!"; $EditSave = "Änderungen speichern"; $EditOp = "Mindestens 2 Optionen müssen vorhanden sein!"; $EditMis = "Frage oder Option nicht definiert!"; $EditDel = "Um eine Option zu löschen lassen Sie das Optionsfeld einfach leer"; $EditCom = "Kommentare erlauben"; # General Settings $SetTitle = "Allgemeine Einstellungen"; $SetOption = "Tabellen, Schrift und Farbe"; $SetMisc = "Verschiedenes"; $SetText = "Allgemeine Einstellungen ändern"; $SetURL = "URL zum Bilder Verzeichnis"; $SetNo = "Kein nachfolgender Slash"; $SetLang = "Sprache"; $SetPoll = "Umfrage Titel"; $SetButton = "Taste Abstimmen"; $SetResult = "Ergebnis Link"; $SetVoted = "Bereits abgestimmt"; $SetComment = "Kommentar senden"; $SetTab = "Tabellenbreite"; $SetBarh = "Balken Höhe"; $SetBarMax = "Max. Balken Länge"; $SetTabBg = "Tabellen Hintergrund Farbe"; $SetFrmCol = "Rahmen-Farbe"; $SetFontCol = "Schrift-Farbe"; $SetFace = "Schriftart"; $SetShow = "Anzeige"; $SetPerc = "Prozent"; $SetVotes = "Stimmen"; $SetCheck = "Überprüfung"; $SetNoCheck = "keine Überprüfung"; $SetIP = "IP Tabelle"; $SetTime = "Zeitlimit"; $SetHours = "Stunden"; $SetOffset = "Server Zeitunterschied"; $SetEntry = "Kommentare pro Seite"; $SetSubmit = "Einstellungen speichern"; $SetEmpty = "Ungültiger Wert"; # Change Password $PwdTitle = "Kennwort ändern"; $PwdText = "Benutzername oder Kennwort ändern"; $PwdUser = "Benutzername"; $PwdPass = "Kennwort"; $PwdConf = "Kennwort Bestätigung"; $PwdNoUsr = "Sie noch keinen Benutzernamen eingegeben"; $PwdNoPwd = "Sie haben noch kein Kennwort eingegeben"; $PwdBad = "Die Kennwörter stimmen nicht überein"; # Poll Stats $StatCrea = "Erstellt"; $StatAct = "Aktiv"; $StatReset = "Statistik zurücksetzen"; $StatDis = "Loggen ist für diese Umfrage nicht aktiviert"; $StatTotal = "Stimmen insgesamt"; $StatDay = "Stimmen pro Tag"; # Poll Comments $ComTotal = "Kommentare insgesamt"; $ComName = "Name"; $ComPost = "erstellt"; $ComDel = "Wollen Sie diesen Kommentar wirklich löschen?"; # Help $Help = "Hilfe"; $HelpPoll = "Fügen Sie den unten gezeigten Quellcode in Ihre Webseite ein"; $HelpRand = "Eine zufällig generierte Umfrage erzeugen Sie mit diesem Code:"; $HelpNew = "Erstellt immer die neuste Umfrage:"; # Days $weekday[0] = "Sonntag"; $weekday[1] = "Montag"; $weekday[2] = "Dienstag"; $weekday[3] = "Mittwoch"; $weekday[4] = "Donnerstag"; $weekday[5] = "Freitag"; $weekday[6] = "Samstag"; # Months $months[0] = "Januar"; $months[1] = "Februar"; $months[2] = "März"; $months[3] = "April"; $months[4] = "Mai"; $months[5] = "Juni"; $months[6] = "Juli"; $months[7] = "August"; $months[8] = "September"; $months[9] = "Oktober"; $months[10] = "November"; $months[11] = "Dezember"; # Colors $color_array[0] = "aqua"; $color_array[1] = "blau"; $color_array[2] = "braun"; $color_array[3] = "dunkelgrün"; $color_array[4] = "gold"; $color_array[5] = "grün"; $color_array[6] = "grau"; $color_array[7] = "orange"; $color_array[8] = "pink"; $color_array[9] = "lila"; $color_array[10] = "rot"; $color_array[11] = "gelb"; ?> --- NEW FILE: hungary.php --- (This appears to be a binary file; contents omitted.) --- NEW FILE: italian.php --- <?php ################################### # Translated by Simone - 18-04-2001 # Version 1.0 # si...@cl... # www.sfondo.it ################################### # Advanced Poll Language File (Admin) # # General $Logout = 'Esci'; $FormUndo = 'Annulla Modifiche'; $FromClear = 'Cancella'; $FormEnter = 'Prego inserisci nome utente e password'; $FormWrong = 'Nome utente o password errate'; $FormOK = 'OK'; $Updated = 'I cambiamenti sono stati aggiornati!'; $NoUpdate = 'Errore accaduto! Nessuna modifica effettuata!'; $Confirm = 'Sei sicuro?'; $NavNext = 'Pagina successiva'; $NavPrev = 'Pagina precedente'; $License = 'Accordo Di Licenza'; $ScrollTxt = "Premere il tasto PAGINA GIÙ per vedere il resto dell'accordo di licenza"; # Poll List $IndexTitle = 'Indice Sondaggi'; $IndexQuest = 'Domanda'; $IndexID = 'ID Sondaggio'; $IndexDate = 'Data'; $IndexDays = 'Giorni'; $IndexExp = 'Scadenza'; $IndexExpire = 'Scaduto'; $IndexNever = 'Mai'; $IndexStat = 'Statistiche'; $IndexCom = 'Commento'; $IndexAct = 'Azione'; $IndexDel = 'Cancella'; # Create A New Poll $NewTitle = 'Crea un nuovo sondaggio'; $NewOption = 'Opzione'; $NewNoQue = 'Vi siete dimenticati di riempire il campo di domanda'; $NewNoOpt = 'Vi siete dimenticati di riempire il campo di opzione'; # Poll Edit $EditStat = 'Stato'; $EditText = 'Edita questo sondaggio'; $EditReset = 'Cancella questo sondaggio'; $EditOn = 'Attivo'; $EditOff = 'Disabilitato'; $EditHide = 'Nascosto'; $EditLgOff = 'Logging off'; $EditLgOn = 'Logging on'; $EditAdd = 'Aggiungi Opzioni'; $EditNo = 'Nessuna opzione aggiunta!'; $EditOk = 'Opzioni aggiunte!'; $EditSave = 'Salva modifiche'; $EditOp = 'Almeno due opzioni sono richieste!'; $EditMis = 'La domanda e le opzioni non sono definite!'; $EditDel = "Per rimuovere un'opzione lasciare lo spazio in bianco del campo di opzione"; $EditCom = 'Permettere le osservazioni'; # General Settings $SetTitle = 'Settaggi generali'; $SetOption = 'Opzioni Tabella, Font e Colori'; $SetMisc = 'Varie'; $SetText = 'Modifica i settaggi'; $SetURL = 'Specifica URL directory immagini'; $SetNo = 'Nessuno slash finale'; $SetLang = 'Linguaggio'; $SetPoll = 'Titolo sondaggio'; $SetButton = 'Pulsante vota'; $SetResult = 'Link Pagina Risultati'; $SetVoted = 'Già votato'; $SetComment = 'Manda il tuo Commento'; $SetTab = 'Larghezza Tabella'; $SetBarh = 'Altezza Barra'; $SetBarMax = 'Max. lunghezza Barra'; $SetTabBg = 'Colore Sfondo Tabella'; $SetFrmCol = 'Colore Frame'; $SetFontCol = 'Colore Font'; $SetFace = 'Tipo Font'; $SetShow = 'Visualizza'; $SetPerc = 'Percentuale'; $SetVotes = 'Voti'; $SetCheck = 'Controlla'; $SetNoCheck = 'Nessun controllo'; $SetIP = 'Tabella IP'; $SetTime = 'Tempo di locking'; $SetHours = 'Ora'; $SetOffset = 'Offset Ora Server'; $SetEntry = 'Commenti visti per pagina'; $SetSubmit = 'Invia modifiche'; $SetEmpty = 'Valore non valido!'; # Change Password $PwdTitle = 'Cambia Password'; $PwdText = 'Cambia il nome utente o la password'; $PwdUser = 'Nome Utente'; $PwdPass = 'Password'; $PwdConf = 'Conferma Password'; $PwdNoUsr = 'Vi siete dimenticati di riempire il campo nome utente'; $PwdNoPwd = 'Vi siete dimenticati di riempire il campo password'; $PwdBad = 'La passwords non corrisponde!'; # Poll Stats $StatCrea = 'Creato'; $StatAct = 'Attivo'; $StatReset = 'Cancella log statistiche'; $StatDis = 'Il logging è disabilitato per questo sondaggio'; $StatTotal = 'Voti totali'; $StatDay = 'Voti per giorno'; # Poll Comments $ComTotal = 'Commenti complessivi'; $ComName = 'Nome'; $ComPost = 'Postato'; $ComDel = 'Sei sicuro di voler cancellare questo messaggio?'; # Help $Help = 'Guida'; $HelpPoll = 'Per inserire il sondaggio nelle tue pagine web, copia il codice sottostante'; $HelpRand = "E' possible visualizzare sondaggi random"; $HelpNew = "Visualizza sempre l'ultimo sondaggio"; # Days $weekday[0] = 'Domenica'; $weekday[1] = 'Lunedì'; $weekday[2] = 'Martedì'; $weekday[3] = 'Mercoledì'; $weekday[4] = 'Giovedì'; $weekday[5] = 'Venerdì'; $weekday[6] = 'Sabato'; # Months $months[0] = 'Gennaio'; $months[1] = 'Febbraio'; $months[2] = 'Marzo'; $months[3] = 'Aprile'; $months[4] = 'Maggio'; $months[5] = 'Giugno'; $months[6] = 'Luglio'; $months[7] = 'Agosto'; $months[8] = 'Settembre'; $months[9] = 'Ottobre'; $months[10] = 'Novembre'; $months[11] = 'Dicembre'; # Colors $color_array[0] = 'Acqua'; $color_array[1] = 'Blue'; $color_array[2] = 'brown'; $color_array[3] = 'Verde scuro'; $color_array[4] = 'Oro'; $color_array[5] = 'Verde'; $color_array[6] = 'Grigio'; $color_array[7] = 'Arancio'; $color_array[8] = 'Rosa'; $color_array[9] = 'Viola'; $color_array[10] = 'Rosso'; $color_array[11] = 'Giallo'; ?> --- NEW FILE: norsk.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = "Logg ut"; $FormUndo = "Angre settinger"; $FromClear = "Slett"; $FormEnter = "Skriv inn rett brukernavn og passord"; $FormWrong = "Feil brukernavn og passord"; $FormOK = "OK"; $Updated = "Endringene er litt opptattert!"; $NoUpdate = "Feil! ingen endringer ble lagret!"; $Confirm = "Er du sikker?"; $NavNext = "Neste side"; $NavPrev = "Tilbake"; $License = "License Avtale"; $ScrollTxt = "Press det PAGE DOWN knappen til å se resten License Avtale."; # Poll List $IndexTitle = "Poll List"; $IndexQuest = "Spørsmål"; $IndexID = "Poll ID"; $IndexDate = "Dato"; $IndexDays = "Dager"; $IndexExp = "forfaller"; $IndexExpire = "forfallt"; $IndexNever = "aldri"; $IndexStat = "Statestikk"; $IndexCom = "Kommentar"; $IndexAct = "Starte"; $IndexDel = "Slette"; # Create A New Poll $NewTitle = "Lage ny poll"; $NewOption = "Valg"; $NewNoQue = "Du glemte å fylle inn i spørsmål feltet"; $NewNoOpt = "Du glemte å fylle inn i velge feltene"; # Poll Edit $EditStat = "Status"; $EditText = "Endre pollen"; $EditReset = "Starte på nytt"; $EditOn = "på"; $EditOff = "av"; $EditHide = "skjult"; $EditLgOff = "logging av"; $EditLgOn = "logging på"; $EditAdd = "legg til valg"; $EditNo = "ingen valg har blitt lagt til!"; $EditOk = "Valg lagt til!"; $EditSave = "Lagre endriger"; $EditOp = "Legg til to valg, minste kravet!"; $EditMis = "Spørsmål og valg er definert!"; $EditDel = "Til å fjerne et valg så la det stå åpen"; $EditCom = "Tilatt kommentar"; # General Settings $SetTitle = "Generele Setinger"; $SetOption = "Table, Font og farger valg"; $SetMisc = "Miscellanous"; $SetText = "Endre general settinger"; $SetURL = "URL til bilde katalogen"; $SetNo = "Ikke på slutten av en setning"; $SetLang = "Språk"; $SetPoll = "Poll titel"; $SetButton = "Stemme knapp"; $SetResult = "Resultat linken"; $SetVoted = "Du har alerede stemt"; $SetComment = "Send din kommerntar"; $SetTab = "Table Størelse"; $SetBarh = "Bar høyde"; $SetBarMax = "Max. bar lenge"; $SetTabBg = "Table bakrund farge"; $SetFrmCol = "Frame farge"; $SetFontCol = "Font farge"; $SetFace = "Font face"; $SetShow = "Vis"; $SetPerc = "prosent"; $SetVotes = "stemmer"; $SetCheck = "Skjekk"; $SetNoCheck = "ikke overflatesprekking"; $SetIP = "IP table"; $SetTime = "se utløping"; $SetHours = "timer"; $SetOffset = "Server time avset"; $SetEntry = "Kommentar visninger per. side"; $SetSubmit = "OK Settings"; $SetEmpty = "Ugyldig Valg"; # Change Password $PwdTitle = "Endre Passord"; $PwdText = "Endre Brukernavn eller Passord"; $PwdUser = "Brukernavn"; $PwdPass = "Passord"; $PwdConf = "Bekreft Passord"; $PwdNoUsr = "Du glemte å fylle inn brukernavn"; $PwdNoPwd = "Du glemte å fylle inn passord"; $PwdBad = "Passord stemmer ikke sammen"; # Poll Stats $StatCrea = "Laget"; $StatAct = "Aktivert"; $StatReset = "Slettet log statistiken"; $StatDis = "logging er av på denne pollen"; $StatTotal = "Total stemmer"; $StatDay = "stemmer per. dag"; # Poll Comments $ComTotal = "Total Kommentar"; $ComName = "Navn"; $ComPost = "posted"; $ComDel = "Er du sikker på å slette denne meldinga?"; # Help $Help = "Hjelp"; $HelpPoll = "Til å få en poll in til en webside sett inn koden som vises nedenfor"; $HelpRand = "Samme er det også på random poll"; $HelpNew = "Vis altid den siste pollen som er laget"; # Days $weekday[0] = "Søndag"; $weekday[1] = "Mandag"; $weekday[2] = "Tirsdag"; $weekday[3] = "Onsdag"; $weekday[4] = "Torsdag"; $weekday[5] = "Fredag"; $weekday[6] = "Lørdag"; # Months $months[0] = "Januar"; $months[1] = "Februar"; $months[2] = "Mars"; $months[3] = "April"; $months[4] = "Mai"; $months[5] = "Juni"; $months[6] = "Juli"; $months[7] = "August"; $months[8] = "September"; $months[9] = "Oktober"; $months[10] = "November"; $months[11] = "Desember"; # Colors $color_array[0] = "aqua"; $color_array[1] = "blå"; $color_array[2] = "brun"; $color_array[3] = "mørke grønn"; $color_array[4] = "gull"; $color_array[5] = "grønn"; $color_array[6] = "grå"; $color_array[7] = "oransje"; $color_array[8] = "rosa"; $color_array[9] = "blårødt"; $color_array[10] = "rød"; $color_array[11] = "gul"; ?> --- NEW FILE: polish.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = "Wyloguj"; $FormUndo = "Zresetuj Zmiany"; $FromClear = "Zresetuj"; $FormEnter = "Wpisz poprawn± nazwê u¿ytkownika i has³o"; $FormWrong = "B³êdna nazwa u¿ytkownika i has³o"; $FormOK = "OK"; $Updated = "Zmiany zosta³y zapisane!"; $NoUpdate = "Wyst±pi³ b³±d! Nie dokonano zmian!"; $Confirm = "Czy jeste¶ pewien?"; $NavNext = "Nastêpna strona"; $NavPrev = "Poprzednia strona"; $License = "Umowa licencyjna"; $ScrollTxt = "Wci¶nij PAGE DOWN aby zobaczyæ resztê umowy."; # Poll List $IndexTitle = "Lista G³osowañ"; $IndexQuest = "Pytanie"; $IndexID = "ID G³osowania"; $IndexDate = "Data"; $IndexDays = "Dni"; $IndexExp = "Wyga¶nie"; $IndexExpire = "wygas³"; $IndexNever = "nidgy"; $IndexStat = "Statystyki"; $IndexCom = "Komentarze"; $IndexAct = "Dzia³anie"; $IndexDel = "usuñ"; # Create A New Poll $NewTitle = "Nowe G³osowanie"; $NewOption = "Opcja"; $NewNoQue = "Zapomnia³e¶ wype³niæ pola pytania"; $NewNoOpt = "Zapomnia³e¶ wype³niæ pola opcji"; # Poll Edit $EditStat = "Status"; $EditText = "Edytuj to g³osowanie"; $EditReset = "Zresetuj to g³osowanie"; $EditOn = "w³±czony"; $EditOff = "wy³±czony"; $EditHide = "ukryty"; $EditLgOff = "logging off"; $EditLgOn = "logging on"; $EditAdd = "Dodaj Opcje"; $EditNo = "Nie dodano ¿adnych opcji!"; $EditOk = "Dodano opcje!"; $EditSave = "Zapisz Zmiany"; $EditOp = "Wymagane s± przynajmniej dwie opcje!"; $EditMis = "Pytanie i opcje nie s± okre¶lone!"; $EditDel = "Aby usun±æ opcjê pozostaw jej pole puste"; $EditCom = "Pozwól na komentowanie"; # General Settings $SetTitle = "Generalne Ustawienia"; $SetOption = "Opcje tabeli, czcionki i kolorów"; $SetMisc = "Ró¿ne"; $SetText = "Zmieñ generalne ustawienia"; $SetURL = "Adres katalogu z obrazkami"; $SetNo = "Bez slasha na koñcu"; $SetLang = "Jêzyk"; $SetPoll = "Tytu³ g³osowania"; $SetButton = "Przycisk g³osowania"; $SetResult = "Odno¶nik wyników"; $SetVoted = "Ju¿ g³osowa³e¶"; $SetComment = "Wy¶lij swój komentarze"; $SetTab = "Szeroko¶æ tabeli"; $SetBarh = "Wysoko¶æ pasków"; $SetBarMax = "Max. d³ugo¶æ pasków"; $SetTabBg = "Kolor t³a tabeli"; $SetFrmCol = "Kolor ramki"; $SetFontCol = "Kolor czcionki"; $SetFace = "Czcionka"; $SetShow = "Poka¿"; $SetPerc = "procenty"; $SetVotes = "g³osy"; $SetCheck = "Sprawd¼"; $SetNoCheck = "bez sprawdzania"; $SetIP = "Tabela IP"; $SetTime = "czas blokady"; $SetHours = "godzin"; $SetOffset = "Zrównanie czasu serwera"; $SetEntry = "Ilo¶æ Komentarzy Na Stronê"; $SetSubmit = "Wy¶lij Ustawienia"; $SetEmpty = "B³êdna Warto¶æ"; # Change Password $PwdTitle = "Zmiana has³a"; $PwdText = "Zmieñ nazwê uzytkownika lub has³o"; $PwdUser = "Nazwa u¿ytkownika"; $PwdPass = "Has³o"; $PwdConf = "Potwierd¼ has³o"; $PwdNoUsr = "Zapomnia³e¶ wype³ni¶ pole nazwy u¿ytkownika"; $PwdNoPwd = "Zapomnia³e¶ wype³ni¶ pole has³a"; $PwdBad = "Has³a siê nie zgadzaj±"; # Poll Stats $StatCrea = "Utworzony"; $StatAct = "Aktywny"; $StatReset = "Zresetuj logi statystyk"; $StatDis = "logowanie jest wy³±czone dla tego g³osowania"; $StatTotal = "Wszystkich g³osów"; $StatDay = "g³osów dziennie"; # Poll Comments $ComTotal = "Wszystkich komentarzy"; $ComName = "Imiê"; $ComPost = "wys³a³"; $ComDel = "Czy na pewno chcesz usun±æ t± wiadomo¶æ?"; # Help $Help = "Pomoc"; $HelpPoll = "Aby wstawiæ g³osowanie w stronê www wklej poni¿szy kawa³ek kodu"; $HelpRand = "Mo¿na te¿ wy¶wietlaæ losowe g³osowanie"; $HelpNew = "Zawsze wy¶wietlaj najnowsze g³osowanie"; # Days $weekday[0] = "Niedziela"; $weekday[1] = "Poniedzia³ek"; $weekday[2] = "Wtorek"; $weekday[3] = "roda"; $weekday[4] = "Czwartek"; $weekday[5] = "Pi±tek"; $weekday[6] = "Sobota"; # Months $months[0] = "Styczeñ"; $months[1] = "Luty"; $months[2] = "Marzec"; $months[3] = "Kwiecieñ"; $months[4] = "Maj"; $months[5] = "Czerwiec"; $months[6] = "Lipiec"; $months[7] = "Sierpieñ"; $months[8] = "Wrzesieñ"; $months[9] = "Pa¼dziernik"; $months[10] = "Listopad"; $months[11] = "Grudzieñ"; # Colors $color_array[0] = "morski"; $color_array[1] = "niebieski"; $color_array[2] = "br±zowy"; $color_array[3] = "ciemnozielony"; $color_array[4] = "z³oty"; $color_array[5] = "zielony"; $color_array[6] = "szary"; $color_array[7] = "pomarañczoy"; $color_array[8] = "ró¿owy"; $color_array[9] = "purpurowy"; $color_array[10] = "czerwony"; $color_array[11] = "¿ó³ty"; ?> --- NEW FILE: portuguese.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = 'Sair'; $FormUndo = 'Desfazer'; $FromClear = 'Limpar'; $FormEnter = 'Por favor digite um Login e Password válido.'; $FormWrong = 'Login ou Password errado'; $FormOK = 'OK'; $Updated = 'Alterações feitas com sucesso!'; $NoUpdate = 'Ocorreu algum erro! Nenhuma mudança foi feita!'; $Confirm = 'Você está certo disto?'; $NavNext = 'Próxima página'; $NavPrev = 'Página Anterior'; $License = 'Acordo De Licença'; $ScrollTxt = 'Precione a tecla PAGE DOWN para ler o restante do acordo de licença.'; # Poll List $IndexTitle = 'Lista de enquetes'; $IndexQuest = 'Questões'; $IndexID = 'Enquete ID'; $IndexDate = 'Data'; $IndexDays = 'Dia'; $IndexExp = 'Expira'; $IndexExpire = 'Expirado'; $IndexNever = 'Nunca'; $IndexStat = 'Estatísticas'; $IndexCom = 'Comentários'; $IndexAct = 'Ação'; $IndexDel = 'Apagar'; # Create A New Poll $NewTitle = 'Criar nova enquete'; $NewOption = 'Opções'; $NewNoQue = 'Você esqueceu-se de preencher o campo da Questão'; $NewNoOpt = 'Você esqueceu-se de preencher o campo de Opções'; # Poll Edit $EditStat = 'Status'; $EditText = 'Editar esta enquete'; $EditReset = 'Limpar esta enquete'; $EditOn = 'Habilitar'; $EditOff = 'Desabilitar'; $EditHide = 'Oculta'; $EditLgOff = 'Sair'; $EditLgOn = 'Entrar'; $EditAdd = 'Adicionar Opçòes'; $EditNo = 'Nenhuma opção foi adicionada!'; $EditOk = 'Opção adicionada!'; $EditSave = 'Salvar alterações'; $EditOp = 'Duas opções são requeridas ao menos!'; $EditMis = 'A pergunta e as opções não estão definidas!'; $EditDel = 'Para remover uma opção deixe o espaço em branco do campo da opção'; $EditCom = 'Permita comentários'; # General Settings $SetTitle = 'Opções Gerais'; $SetOption = 'Opções de Tabela, Fonte e Color'; $SetMisc = 'Diversos'; $SetText = 'Modificar as opções gerais'; $SetURL = 'Endereço da pasta de imagens'; $SetNo = 'Sem barra no final'; $SetLang = 'Linguagem'; $SetPoll = 'Titulo da enquete'; $SetButton = 'Botão de voto'; $SetResult = 'Endereço dos resultados'; $SetVoted = 'Já votado'; $SetComment = 'Envie seu comentário'; $SetTab = 'Largura da tabela'; $SetBarh = 'Altura da barra'; $SetBarMax = 'Tam. Max da barra'; $SetTabBg = 'Cor de fundo da tabela'; $SetFrmCol = 'Cor do Frame'; $SetFontCol = 'Cor do texto'; $SetFace = 'Tipo de fonte'; $SetShow = 'Mostrar'; $SetPerc = 'porcento'; $SetVotes = 'votos'; $SetCheck = 'Verificar'; $SetNoCheck = 'não verificar'; $SetIP = 'Tabela de IP'; $SetTime = 'Timeout habilitado'; $SetHours = 'horas'; $SetOffset = 'Tempo do server deslocado'; $SetEntry = 'Comentários Vistos Por A Página'; $SetSubmit = 'Enviar Opções'; $SetEmpty = 'Valor Inválido'; # Change Password $PwdTitle = 'Trocar Senha'; $PwdText = 'Trocar nome do usuário ou/e senha'; $PwdUser = 'Usuário'; $PwdPass = 'Senha'; $PwdConf = 'Confirme sua senha'; $PwdNoUsr = 'Você esqueceu-se de preencher o campo Usuário'; $PwdNoPwd = 'Você esqueceu-se de preencher o campo Senha'; $PwdBad = 'Senhas não conferem'; # Poll Stats $StatCrea = 'Criado'; $StatAct = 'Ativo'; $StatReset = 'Limpar log de estatisticas'; $StatDis = 'Os registros estão desabilitados para esta votação'; $StatTotal = 'Total de votos'; $StatDay = 'Votos por dia'; # Poll Comments $ComTotal = 'Comentário Altorizado'; $ComName = 'Nome'; $ComPost = 'Postado'; $ComDel = 'Esteje certo que queira enviar esta mensagem?'; # Help $Help = 'Ajuda (US)'; $HelpPoll = 'Para colocar a pesquisa numa página, copie o snippet'; $HelpRand = 'Você pode colocar uma pesquisa randômica'; $HelpNew = 'Sempre mostrar a última pesquisa'; # Days $weekday[0] = 'Domingo'; $weekday[1] = 'Segunda'; $weekday[2] = 'Terça'; $weekday[3] = 'Quarta'; $weekday[4] = 'Quinta'; $weekday[5] = 'Sexta'; $weekday[6] = 'Sabado'; # Months $months[0] = 'Janeiro'; $months[1] = 'Fevereiro'; $months[2] = 'Março'; $months[3] = 'Abril'; $months[4] = 'Maio'; $months[5] = 'Junho'; $months[6] = 'Julho'; $months[7] = 'Agosto'; $months[8] = 'Setembro'; $months[9] = 'Outubro'; $months[10] = 'Novembro'; $months[11] = 'Dezembro'; # Colors $color_array[0] = 'aqua'; $color_array[1] = 'azul'; $color_array[2] = 'marrom'; $color_array[3] = 'Verde Escuro'; $color_array[4] = 'Ouro'; $color_array[5] = 'Verde'; $color_array[6] = 'cinza'; $color_array[7] = 'Laranja'; $color_array[8] = 'Rosa'; $color_array[9] = 'Purpura'; $color_array[10] = 'Vermelho'; $color_array[11] = 'Amarelo'; ?> --- NEW FILE: russian.php --- (This appears to be a binary file; contents omitted.) --- NEW FILE: serbian.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = "Izloguj se"; $FormUndo = "Ponisti Promene"; $FromClear = "Reset"; $FormEnter = "Unesite korisnicko ime i sifru"; $FormWrong = "Lose korisnicko ime ili sifra"; $FormOK = "OK"; $Updated = "Izmene su sacuvane!"; $NoUpdate = "Greska! Nista nije izmenjeno!"; $Confirm = "Dali ste sigurni?"; $NavNext = "Sledeca strana"; $NavPrev = "Prethodna strana"; $License = "Licencni ugovor"; $ScrollTxt = "Pritisnite PAGE DOWN da vidite ostatak ugovora."; # Poll List $IndexTitle = "Poll Lista"; $IndexQuest = "Pitanje"; $IndexID = "Poll ID"; $IndexDate = "Datum"; $IndexDays = "Dana"; $IndexExp = "Istice"; $IndexExpire = "istekao"; $IndexNever = "nikad"; $IndexStat = "Statistike"; $IndexCom = "Komentari"; $IndexAct = "Akcija"; $IndexDel = "obrisi"; # Create A New Poll $NewTitle = "Kreiraj novi upitnik"; $NewOption = "Opcija"; $NewNoQue = "Zaboravili ste da unesete pitanje"; $NewNoOpt = "Zaboravili ste da unesete opcije"; # Poll Edit $EditStat = "Status"; $EditText = "Promeni ovaj upitnik"; $EditReset = "Resetuj ovaj upitnik"; $EditOn = "ukljucen"; $EditOff = "iskljucen"; $EditHide = "sakriven"; $EditLgOff = "Logovanje Iskljuceno"; $EditLgOn = "Logovanje Ukljuceno"; $EditAdd = "Dodaj Opcije"; $EditNo = "Nijedna opcija nije dodata!"; $EditOk = "Opcije dodate!"; $EditSave = "Snimi izmene"; $EditOp = "Najmanje dve opcije su potrebne!"; $EditMis = "Pitanje i opcije nisu definisani!"; $EditDel = "Da biste uklonili pitanje ostavite polje opcije prazno"; $EditCom = "Dozvoli komentare"; # General Settings $SetTitle = "Osnovna Podesavanja"; $SetOption = "Opcije vezane za tabelu, font i boje"; $SetMisc = "Ostalo"; $SetText = "Promeni osnovna podesavanja"; $SetURL = "URL do direktorijuma sa slikama"; $SetNo = "Bez / na kraju"; $SetLang = "Jezik"; $SetPoll = "Naslov Upitnika"; $SetButton = "Glasaj"; $SetResult = "Rezultati glasanja"; $SetVoted = "Vec Ste Glasali"; $SetComment = "Posaljite Komentar"; $SetTab = "Sirina tabele"; $SetBarh = "Visina trake"; $SetBarMax = "Maks. duzina trake"; $SetTabBg = "Pozadinska boja tabele"; $SetFrmCol = "Boja frejma"; $SetFontCol = "Boja fonta"; $SetFace = "Font"; $SetShow = "Prikazi"; $SetPerc = "procente"; $SetVotes = "glasove"; $SetCheck = "Proveravaj"; $SetNoCheck = "Bez provere"; $SetIP = "IP tabela"; $SetTime = "sa 1 ip adrese ne moze da se glasa"; $SetHours = "casa"; $SetOffset = "Server time offset"; $SetEntry = "Komentara po stranici"; $SetSubmit = "Izmeni"; $SetEmpty = "Losa Vrednost"; # Change Password $PwdTitle = "Promeni sifru"; $PwdText = "Promeni korisnicko ime ili sifru"; $PwdUser = "Korisnicko Ime"; $PwdPass = "Sifra"; $PwdConf = "Potvrdi Sifru"; $PwdNoUsr = "Niste popunili polje sa korisnickim imenom"; $PwdNoPwd = "Niste popunili polje sa sifrom"; $PwdBad = "Sifre se ne slazu"; # Poll Stats $StatCrea = "Kreiran"; $StatAct = "Aktivan"; $StatReset = "Resetuj statistike"; $StatDis = "Logovanje je iskljuceno za ovo glasanje"; $StatTotal = "Ukupno glasova"; $StatDay = "Dnevno glasova"; # Poll Comments $ComTotal = "Ukupno Komentara"; $ComName = "Ime"; $ComPost = "kada"; $ComDel = "Da li zelite da obrisete ovu poruku?"; # Help $Help = "Pomoc"; $HelpPoll = "Da dodate upitnik na sajt koristite ovaj kod (xx zamenite sa brojem upitnika)"; $HelpRand = "Takodje moze se prikazati svaki put drugi upitnik"; $HelpNew = "Uvek prikazati najnoviji upitnik"; # Days $weekday[0] = "Nedelja"; $weekday[1] = "Ponedeljak"; $weekday[2] = "Utorak"; $weekday[3] = "Sreda"; $weekday[4] = "Cetvrtak"; $weekday[5] = "Petak"; $weekday[6] = "Subota"; # Months $months[0] = "Januar"; $months[1] = "Februar"; $months[2] = "Mart"; $months[3] = "April"; $months[4] = "Maj"; $months[5] = "Jun"; $months[6] = "Jul"; $months[7] = "Avgust"; $months[8] = "Septembar"; $months[9] = "Oktobar"; $months[10] = "Novembar"; $months[11] = "Decembar"; # Colors $color_array[0] = "akva"; $color_array[1] = "plava"; $color_array[2] = "braon"; $color_array[3] = "tamnozelena"; $color_array[4] = "zlatna"; $color_array[5] = "zelena"; $color_array[6] = "siva"; $color_array[7] = "narandzasta"; $color_array[8] = "roze"; $color_array[9] = "ljubicasta"; $color_array[10] = "crvena"; $color_array[11] = "zuta"; ?> --- NEW FILE: spanish.php --- (This appears to be a binary file; contents omitted.) --- NEW FILE: svenska.php --- <?php # Advanced Poll Language File (Admin) # # General $Logout = "Logga ut"; $FormUndo = "Gör inga ändringar"; $FromClear = "Rensa"; $FormEnter = "Var god och skriv rätt användarnamn och lösenord"; $FormWrong = "Fel användarnamn och lösenord"; $FormOK = "OK"; $Updated = "Ändringarna har uppdaterats!"; $NoUpdate = "Ett fel har uppstått! Inga ändringar har gjorts!"; $Confirm = "Är du säker?"; $NavNext = "Nästa sida"; $NavPrev = "Föregående sida"; $License = "Licens avtal"; $ScrollTxt = "Tryck på PAGE DOWN knappen för att läsa resten av avtalet."; # Poll List $IndexTitle = "Lista över alla omröstningar"; $IndexQuest = "Fråga"; $IndexID = "Omröstnings ID"; $IndexDate = "Datum"; $IndexDays = "Dagar"; $IndexExp = "förfaller"; $IndexExpire = "förfallit"; $IndexNever = "aldrig"; $IndexStat = "Statistik"; $IndexCom = "Kommentar"; $IndexAct = "Åtgärd"; $IndexDel = "Radera"; # Create A New Poll $NewTitle = "Skapa en ny omröstning"; $NewOption = "Val"; $NewNoQue = "Du glömde att fylla i fältet för frågan"; $NewNoOpt = "Du glömde att fylla i val fältet"; # Poll Edit $EditStat = "Status"; $EditText = "Ändra omröstningen"; $EditReset = "Starta på nytt"; $EditOn = "på"; $EditOff = "av"; $EditHide = "gömd"; $EditLgOff = "logga ut"; $EditLgOn = "logga in"; $EditAdd = "lägg till val"; $EditNo = "inga val har lagts till!"; $EditOk = "Val har lagts till!"; $EditSave = "Spara ändringar"; $EditOp = "Du måste ha minst två val med!"; $EditMis = "Fråga och val är inte exakt!"; $EditDel = "För att ta bort ett val se till att rutan är tom"; $EditCom = "Tillåt kommentarer"; # General Settings $SetTitle = "Generella Inställningar"; $SetOption = "Tabell, Font och färg val"; $SetMisc = "Blandat"; $SetText = "Ändra generella inställningar"; $SetURL = "URL till bild katalogen"; $SetNo = "Ingen trailing slash"; $SetLang = "Språk"; $SetPoll = "Rubrik på omröstningen"; $SetButton = "Röst knapp"; $SetResult = "Resultat länk"; $SetVoted = "Har redan röstat"; $SetComment = "Skicka din kommentar"; $SetTab = "Tabell bredd"; $SetBarh = "Bar höjd"; $SetBarMax = "Max. bar längd"; $SetTabBg = "Bakgrunds färg på tabellen"; $SetFrmCol = "Frame färg"; $SetFontCol = "Font färg"; $SetFace = "Font face"; $SetShow = "Visa"; $SetPerc = "procent"; $SetVotes = "röster"; $SetCheck = "Kontoll"; $SetNoCheck = "ingen kontroll"; $SetIP = "IP tabell"; $SetTime = "locking timeout"; $SetHours = "timmar"; $SetOffset = "Server time offset"; $SetEntry = "Visa kommentarer per sida"; $SetSubmit = "OK/Verkställ"; $SetEmpty = "Ej godkänt värde"; # Change Password $PwdTitle = "Ändra Lösenord"; $PwdText = "Ändra användarnamnet eller lösenordet"; $PwdUser = "Användarnamn"; $PwdPass = "Lösenord"; $PwdConf = "Bekräfta Lösenordet"; $PwdNoUsr = "Du glömde att fylla i fältet för användarnamnet"; $PwdNoPwd = "Du glömde att fylla i lösenords fältet"; $PwdBad = "Lösenordet stämmer inte"; # Poll Stats $StatCrea = "Skapad"; $StatAct = "Aktiv"; $StatReset = "Nollställ logg statistiken"; $StatDis = "loggning är inte i bruk för denna omröstning"; $StatTotal = "Antal röster"; $StatDay = "röster per dag"; # Poll Comments $ComTotal = "Kommentarer totalt"; $ComName = "Namn"; $ComPost = "Skickat"; $ComDel = "Är du säker att du vill radera detta meddelande?"; # Help $Help = "Hjälp"; $HelpPoll = "För att lägga in denna omröstning på en webbsida sätt in koden här nedan"; $HelpRand = "Det är också möjligt att visa en omröstning slumpvis"; $HelpNew = "Visa alltid senaste omröstningen"; # Days $weekday[0] = "Söndag"; $weekday[1] = "Måndag"; $weekday[2] = "Tisdag"; $weekday[3] = "Onsdag"; $weekday[4] = "Torsdag"; $weekday[5] = "Fredag"; $weekday[6] = "Lördag"; # Months $months[0] = "Januari"; $months[1] = "Februari"; $months[2] = "Mars"; $months[3] = "April"; $months[4] = "Maj"; $months[5] = "Juni"; $months[6] = "Juli"; $months[7] = "Augusti"; $months[8] = "September"; $months[9] = "Oktober"; $months[10] = "November"; $months[11] = "December"; # Colors $color_array[0] = "aqua"; $color_array[1] = "blå"; $color_array[2] = "brun"; $color_array[3] = "mörkgrön"; $color_array[4] = "guld"; $color_array[5] = "grön"; $color_array[6] = "grå"; $color_array[7] = "orange"; $color_array[8] = "rosa"; $color_array[9] = "lila"; $color_array[10] = "röd"; $color_array[11] = "gul"; ?> --- NEW FILE: translation.txt --- Thanks to the following people for the translation: - Alexander V. Egorov <al...@ko...> - russian.php - Attila Pergel <www.pergel.hu> - hungary.php - Cyril GOURGEOT <cyr...@wa...> - french.php - Michael Paluchowski <pal...@po...> - polish.php - M@rtiN <ma...@vi...> - svenska.php - Thøger Niels Pørtner <tn...@tn...> - danish.php - PIxXeL <pi...@ga...> - serbian.php - Teddy <ad...@pa...> - chinesebig5.php - Rolando Lora <rl...@ya...> - spanish.php - Morten Buljo <mo...@bu...> - norsk.php - Axel '=X¥®µ§=' Vandevenne <www.rlgaming.com> - dutch.php - Melkih Washington <me...@ho...> - portuguese.php - Simone <si...@cl...> - italian.php |
From: <smi...@us...> - 2004-01-02 17:32:30
|
Update of /cvsroot/devil-linux/web/polls/admin In directory sc8-pr-cvs1:/tmp/cvs-serv15591/polls/admin Added Files: admin_comment.php admin_edit.php admin_help.php admin_index.php admin_license.php admin_login.php admin_new.php admin_options.php admin_pwd.php admin_settings.php admin_stat.php Log Message: added polls --- NEW FILE: admin_comment.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $poll_result = $db_connect->query("SELECT * FROM $sql_index WHERE (poll_id = '$poll_id')"); $record = $db_connect->fetch_array($poll_result); $question = htmlspecialchars($record['question']); $db_connect->free_result($poll_result); $config_result = $db_connect->query("SELECT base_gif as base_gif, time_offset as time_offset, lang as lang, entry_pp as entry_pp FROM $sql_config WHERE (config_id = '1')"); $record = $db_connect->fetch_array($config_result); $time_offset = $record["time_offset"]*3600; $base_gif = $record["base_gif"]; $lang = $record["lang"]; $entry_pp = $record["entry_pp"]; $db_connect->free_result($config_result); $sql_result = $db_connect->query("select count(*) as total from $sql_com WHERE (poll_id = '$poll_id')"); $db_connect->fetch_array($sql_result); $total = $db_connect->record['total']; $db_connect->free_result($sql_result); include ("./lang/$lang"); if(!isset($entry)) { $entry = 0; } $next_page = $entry+$entry_pp; $prev_page = $entry-$entry_pp; $navigation =''; if ($prev_page >= 0) { $navigation = " <img src=\"$base_gif/back.gif\" width=\"16\" height=\"14\"> <a href=\"$PHP_SELF?log_in=$log_in&action=comments&id=$poll_id&entry=$prev_page\">$NavPrev</a>\n"; } if ($next_page < $total) { $navigation = $navigation. " <a href=\"$PHP_SELF?log_in=$log_in&action=comments&id=$poll_id&entry=$next_page\">$NavNext</a> <img src=\"$base_gif/next.gif\" width=\"16\" height=\"14\">\n"; } header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- a {text-decoration: none} .td1 { font-family: "MS Sans Serif"; font-size: 10pt} .td2 { font-family: "MS Sans Serif"; font-size: 9pt} a:hover { color: #FF0033; text-decoration: underline} --> </style> <script language="Javascript"> <!-- function del_entry(entry) { if (window.confirm("<?php echo $ComDel; ?>")) { window.location.href = "http://"+window.location.host+window.location.pathname+"?log_in=<?php echo $log_in; ?>&action=remove&id=<?php echo $poll_id; ?>&mess_id="+entry+"&no_cache="+Math.random() } } // --> </script> </head> <body bgcolor="#009999" link="#000000" vlink="#000000"> <table border="1" cellspacing="0" cellpadding="0" align="center" width="750"> <tr bgcolor="#C6C3C6" valign="top"> <td> <table width="750" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td2" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $poll_version; ?></font></b></td> <td height="20" align="right" bgcolor="#000084"><img src="<?php echo $base_gif; ?>/min.gif" width="16" height="14"><img src="<?php echo $base_gif; ?>/max.gif" width="16" height="14"> <img src="<?php echo $base_gif; ?>/cross.gif" width="16" height="14"></td> </tr> <tr valign="top"> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> <tr> <td align="center" rowspan="2" width="7"><img src="<?php echo $base_gif; ?>/v_line.gif" width="5" height="50"></td> <td align="center" width="112"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=show"><img src="<?php echo $base_gif; ?>/index.gif" width="32" height="32" border="0" alt="<?php echo $IndexTitle; ?>"></a></td> <td align="center" width="122"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=new"><img src="<?php echo $base_gif; ?>/new.gif" width="32" height="32" border="0" alt="<?php echo $NewTitle; ?>"></a></td> <td align="center" width="156"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=general"><img src="<?php echo $base_gif; ?>/settings.gif" width="32" height="32" border="0" alt="<?php echo $SetTitle; ?>"></a></td> <td align="center" width="124"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=password"><img src="<?php echo $base_gif; ?>/password.gif" width="32" height="32" border="0" alt="<?php echo $PwdTitle; ?>"></a></td> <td align="center" width="91"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=help"><img src="<?php echo $base_gif; ?>/howto.gif" width="32" height="32" border="0" alt="<?php echo $Help; ?>"></a></td> <td align="center" width="129"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=logout"><img src="<?php echo $base_gif; ?>/logout.gif" width="32" height="32" border="0" alt="<?php echo $Logout; ?>"></a></td> </tr> <tr align="center" valign="top"> <td width="112" class="td2"><?php echo $IndexTitle; ?></td> <td width="122" class="td2"><?php echo $NewTitle; ?></td> <td width="156" class="td2"><?php echo $SetTitle; ?></td> <td width="124" class="td2"><?php echo $PwdTitle; ?></td> <td width="91" class="td2"><?php echo $Help; ?></td> <td width="129" class="td2"><?php echo $Logout; ?></td> </tr> <tr align="left"> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> </table> <table border="0" cellspacing="1" cellpadding="3" width="100%"> <tr> <td class="td1" colspan="3" height="30"> <img src="<?php echo $base_gif; ?>/h_line.gif" width="15" height="18"> <?php echo $question; ?> <img src="<?php echo $base_gif; ?>/h_line.gif" width="250" height="18"></td> </tr> <tr> <td width="200" class="td2"><?php echo $ComTotal; ?>: <b><font color="#006699"><?php echo $total; ?></font></b></td> <td colspan="2" class="td2" align="right"><?php echo $navigation; ?></td> </tr> <tr> <td width="200" bgcolor="#999999" class="td2"><b><?php echo $ComName; ?></b></td> <td width="457" class="td2" bgcolor="#999999" valign="top"><b><?php echo $IndexCom; ?></b></td> <td width="66" class="td2" bgcolor="#999999" valign="top"> </td> </tr> <?php $results = $db_connect->query("select * from $sql_com WHERE (poll_id = '$poll_id') order by com_id desc limit $entry, $entry_pp"); while ($row = $db_connect->fetch_array($results)) { $date = date("j-M-Y H:i",$row['time']+$time_offset); $row['message'] = nl2br($row['message']); echo " <tr> <td width=\"200\" bgcolor=\"#CCCCCC\" valign=\"top\"> <table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\"> <tr> <td><img src=\"$base_gif/host.gif\" width=\"16\" height=\"15\">"; if (eregi("Opera",$row['browser'])) { $image = "$base_gif/opera.gif"; } elseif (eregi("MSIE",$row['browser'])) { $image = "$base_gif/msie.gif"; } elseif (eregi("Mozilla",$row['browser'])) { $image = "$base_gif/netscape.gif"; } else { $image = "$base_gif/unknown.gif"; } echo " <img src=\"$image\" width=\"16\" height=\"16\" alt=\"$row[browser]\">\n"; if ($row['email']) { echo " <a href=\"mailto:$row[email]\"><img src=\"$base_gif/email.gif\" width=\"15\" height=\"15\" border=\"0\" alt=\"$row[email]\"></a>\n"; } echo " </td> </tr> <tr><td class=\"td2\"><font color=\"#990033\">$row[name]</font></td></tr> <tr><td class=\"td2\">$row[host]</td></tr> </table> </td> <td width=\"457\" class=\"td2\" bgcolor=\"#E6E6E6\" valign=\"top\"><img src=\"$base_gif/post.gif\" width=\"9\" height=\"9\">$ComPost: $date <hr size=\"1\" noshade>$row[message] </td> <td width=\"66\" class=\"td2\" align=\"center\"><a href=\"javascript:del_entry($row[com_id])\">$IndexDel</a></td> </tr>\n"; } ?> <tr bgcolor="#CCCCCC"> <td width="200" class="td2"><?php echo $SetEntry; ?>: <b><font color="#006699"><?php echo $entry_pp; ?></font></b></td> <td colspan="2" class="td2" align="right"> <?php echo $navigation; ?></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br> <br> </body> </html> --- NEW FILE: admin_edit.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $poll_result = $db_connect->query("SELECT * FROM $sql_index WHERE (poll_id = '$entry_id')"); $row = $db_connect->fetch_array($poll_result); $question = htmlspecialchars($row['question']); $db_connect->free_result($poll_result); $config_result = $db_connect->query("SELECT base_gif as base_gif, lang as lang FROM $sql_config WHERE (config_id = '1')"); $result = $db_connect->fetch_array($config_result); $base_gif = $result["base_gif"]; $db_connect->free_result($config_result); include ("./lang/$result[lang]"); $result = $db_connect->query("select * from $sql_data where (poll_id = '$entry_id') order by option_id asc"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 10pt} .td2 { font-family: "MS Sans Serif"; font-size: 9pt} .input { font-family: "MS Sans Serif"; font-size: 9pt; height: 20px; width: 350px} .exp_input { font-family: "MS Sans Serif"; font-size: 9pt; height: 20px; width: 30px} .button { font-family: Arial, Helvetica, sans-serif; font-size: 9pt} .input2 { font-family: "MS Sans Serif"; font-size: 9pt; height: 20px; width: 80px} .select { font-family: Arial, Helvetica, sans-serif; font-size: 9pt} a:hover { color: #FF0033; text-decoration: underline} --> </style> <script language="JavaScript"> <!-- blank = new Image(); blank.src = "<?php echo $base_gif; ?>/blank.gif"; <?php $source_array = array( "aqua","blue","brown","darkgreen","gold","green","grey","orange","pink","purple","red","yellow" ); for ($i=0;$i<sizeof($source_array); $i++) { echo "$source_array[$i] = new Image(); $source_array[$i].src = \"$base_gif/$source_array[$i].gif\";\n"; } ?> function ChangeBar(sel,img) { eval("document.bar"+img+".src="+sel+".src"); } function ResetPoll() { for (i=4; i<document.forms[0].elements.length-6; i+=3) { document.forms[0].elements[i].value = '0'; } } function CheckDays() { if(!(document.poll.exp_time.value >= 0)) { alert("<?php echo $SetEmpty; ?>"); document.poll.exp_time.focus(); return false; } } //--> </script> </head> <body bgcolor="#009999" link="#000000" vlink="#000000"> <table border="1" cellspacing="0" cellpadding="0" align="center" width="750"> <tr bgcolor="#C6C3C6" valign="top"> <td> <table width="750" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td2" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $poll_version; ?></font></b></td> <td height="20" align="right" bgcolor="#000084"><img src="<?php echo $base_gif; ?>/min.gif" width="16" height="14"><img src="<?php echo $base_gif; ?>/max.gif" width="16" height="14"> <img src="<?php echo $base_gif; ?>/cross.gif" width="16" height="14"></td> </tr> <tr valign="top"> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> <tr> <td align="center" rowspan="2" width="7"><img src="<?php echo $base_gif; ?>/v_line.gif" width="5" height="50"></td> <td align="center" width="112"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=show"><img src="<?php echo $base_gif; ?>/index.gif" width="32" height="32" border="0" alt="<?php echo $IndexTitle; ?>"></a></td> <td align="center" width="122"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=new"><img src="<?php echo $base_gif; ?>/new.gif" width="32" height="32" border="0" alt="<?php echo $NewTitle; ?>"></a></td> <td align="center" width="156"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=general"><img src="<?php echo $base_gif; ?>/settings.gif" width="32" height="32" border="0" alt="<?php echo $SetTitle; ?>"></a></td> <td align="center" width="124"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=password"><img src="<?php echo $base_gif; ?>/password.gif" width="32" height="32" border="0" alt="<?php echo $PwdTitle; ?>"></a></td> <td align="center" width="91"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=help"><img src="<?php echo $base_gif; ?>/howto.gif" width="32" height="32" border="0" alt="<?php echo $Help; ?>"></a></td> <td align="center" width="129"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=logout"><img src="<?php echo $base_gif; ?>/logout.gif" width="32" height="32" border="0" alt="<?php echo $Logout; ?>"></a></td> </tr> <tr align="center" valign="top"> <td width="112" class="td2"><?php echo $IndexTitle; ?></td> <td width="122" class="td2"><?php echo $NewTitle; ?></td> <td width="156" class="td2"><?php echo $SetTitle; ?></td> <td width="124" class="td2"><?php echo $PwdTitle; ?></td> <td width="91" class="td2"><?php echo $Help; ?></td> <td width="129" class="td2"><?php echo $Logout; ?></td> </tr> <tr align="left"> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> </table> <form method="post" action="<?php echo $PHP_SELF; ?>" name="poll"> <table border="0" cellspacing="0" cellpadding="2" align="center" width="90%"> <tr> <td colspan="5" class="td1" height="30"><img src="<?php echo $base_gif; ?>/h_line.gif" width="15" height="18"> <?php echo $$message; ?> <img src="<?php echo $base_gif; ?>/h_line.gif" width="380" height="18"> </td> </tr> <tr> <td width="20%" class="td1"><?php echo $IndexQuest; ?></td> <td width="49%"> <input type="text" name="question" class="input" size="35" value="<?php echo $question; ?>"> </td> <td width="11%" class="td2"> <select name="status" class="select"> <option value="0" <?php if ($row['status'] == 0) echo "selected"; ?>><?php echo $EditOff; ?></option> <option value="1" <?php if ($row['status'] == 1) echo "selected"; ?>><?php echo $EditOn; ?></option> <option value="2" <?php if ($row['status'] == 2) echo "selected"; ?>><?php echo $EditHide; ?></option> </select> </td> <td colspan="2" class="td2"> <select name="logging" class="select"> <option value="0" <?php if ($row['logging'] == 0) echo "selected"; ?>><?php echo $EditLgOff; ?></option> <option value="1" <?php if ($row['logging'] == 1) echo "selected"; ?>><?php echo $EditLgOn; ?></option> </select> </td> </tr> <?php $i=1; while ($data = $db_connect->fetch_array($result)) { $i++; $data["option_text"] = htmlspecialchars($data["option_text"]); echo " <tr> <td width=\"20%\" class=\"td1\">$NewOption $data[option_id]</td> <td width=\"49%\"> <input type=\"text\" name=\"option_id[$data[option_id]]\" size=\"35\" class=\"input\" value=\"$data[option_text]\"> </td> <td width=\"11%\" class=\"td2\"> <input type=\"text\" name=\"votes[$data[option_id]]\" class=\"input2\" size=\"10\" value=\"$data[votes]\"> </td> <td width=\"11%\" class=\"td2\"> <select name=\"color[$data[option_id]]\" class=\"select\" onChange=\"javascript:ChangeBar(options[selectedIndex].value,$data[option_id])\"> <option value=\"blank\">---</option>\n"; for ($j=0; $j<sizeof($source_array); $j++) { if ($data["color"] == $source_array["$j"]) { echo "<option value=\"$source_array[$j]\" selected>$color_array[$j]</option>\n"; } else { echo "<option value=\"$source_array[$j]\">$color_array[$j]</option>\n"; } } echo " </select> </td> <td width=\"9%\"><img src=\"$base_gif/$data[color].gif\" name=\"bar$data[option_id]\" width=35 height=12></td> </tr>\n"; } $expiration = round (($row['exp_time']-time())/86400); if ($expiration<=0) { $expiration = 0; } ?> <tr> <td width="20%"> </td> <td colspan="4" height="35" class="td2" valign="top"><?php echo $IndexExp; ?>: <input type="text" name="exp_time" class="exp_input" size="4" value="<?php echo $expiration; ?>"> <?php echo $IndexDays; ?> <?php echo $IndexNever; ?> <input type="checkbox" name="expire" value="0" <?php if ($row['expire'] == 0) echo "checked"; ?>> <img src="<?php echo $base_gif; ?>/point2.gif" width="9" height="9"><?php echo $EditDel; ?> </tr> <tr> <td width="20%"> </td> <td colspan="4" height="35" class="td2" valign="top"> <img src="<?php echo $base_gif; ?>/h_line.gif" width="30" height="18"> <a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=extend&id=<?php echo $entry_id; ?>"><?php echo $EditAdd; ?></a> <img src="<?php echo $base_gif; ?>/h_line.gif" width="50" height="18"> <a href="javascript:ResetPoll()"><?php echo $EditReset; ?></a> <img src="<?php echo $base_gif; ?>/h_line.gif" width="30" height="18"> <?php echo $EditCom; ?> <input type="checkbox" name="comments" value="1" <?php if ($row['comments'] == 1) echo "checked"; ?>></td> </tr> <tr> <td width="20%"> </td> <td colspan="4"> <input type="submit" value="<?php echo $EditSave; ?>" class="button" onclick="return CheckDays()"> <input type="reset" value="<?php echo $FormUndo; ?>" class="button"> <input type="hidden" name="action" value="save"> <input type="hidden" name="id" value="<?php echo $entry_id; ?>"> <input type="hidden" name="log_in" value="<?php echo $log_in; ?>"> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> </body> </html> --- NEW FILE: admin_help.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $config_result = $db_connect->query("SELECT base_gif as base_gif, lang as lang FROM $sql_config WHERE (config_id = '1')"); $result = $db_connect->fetch_array($config_result); $base_gif = $result["base_gif"]; include ("./lang/$result[lang]"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 10pt} .td2 { font-family: "MS Sans Serif"; font-size: 9pt} .code { font-family: "Courier New", Courier, mono; font-size: 9pt; font-weight: normal; height: 200px; width: 600px;; background-color: #C6C3C6} .code2 { font-family: "Courier New", Courier, mono; font-size: 9pt; height: 90px; width: 600px; background-color: #C6C3C6} --> </style> </head> <body bgcolor="#009999"> <table border="1" cellspacing="0" cellpadding="0" align="center" width="750"> <tr bgcolor="#C6C3C6" valign="top"> <td> <table width="750" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td2" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $poll_version; ?></font></b></td> <td height="20" align="right" bgcolor="#000084"><img src="<?php echo $base_gif; ?>/min.gif" width="16" height="14"><img src="<?php echo $base_gif; ?>/max.gif" width="16" height="14"> <img src="<?php echo $base_gif; ?>/cross.gif" width="16" height="14"></td> </tr> <tr valign="top"> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> <tr> <td align="center" rowspan="2" width="7"><img src="<?php echo $base_gif; ?>/v_line.gif" width="5" height="50"></td> <td align="center" width="112"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=show"><img src="<?php echo $base_gif; ?>/index.gif" width="32" height="32" border="0" alt="<?php echo $IndexTitle; ?>"></a></td> <td align="center" width="122"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=new"><img src="<?php echo $base_gif; ?>/new.gif" width="32" height="32" border="0" alt="<?php echo $NewTitle; ?>"></a></td> <td align="center" width="156"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=general"><img src="<?php echo $base_gif; ?>/settings.gif" width="32" height="32" border="0" alt="<?php echo $SetTitle; ?>"></a></td> <td align="center" width="124"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=password"><img src="<?php echo $base_gif; ?>/password.gif" width="32" height="32" border="0" alt="<?php echo $PwdTitle; ?>"></a></td> <td align="center" width="91"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=help"><img src="<?php echo $base_gif; ?>/howto.gif" width="32" height="32" border="0" alt="<?php echo $Help; ?>"></a></td> <td align="center" width="129"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=logout"><img src="<?php echo $base_gif; ?>/logout.gif" width="32" height="32" border="0" alt="<?php echo $Logout; ?>"></a></td> </tr> <tr align="center" valign="top"> <td width="112" class="td2"><?php echo $IndexTitle; ?></td> <td width="122" class="td2"><?php echo $NewTitle; ?></td> <td width="156" class="td2"><?php echo $SetTitle; ?></td> <td width="124" class="td2"><?php echo $PwdTitle; ?></td> <td width="91" class="td2"><?php echo $Help; ?></td> <td width="129" class="td2"><?php echo $Logout; ?></td> </tr> <tr align="left"> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> </table> <form method="post" action="<?php echo $PHP_SELF; ?>" name="form"> <table border="0" cellspacing="0" cellpadding="3" align="center" width="680"> <tr> <td class="td1"><img src="<?php echo $base_gif; ?>/h_line.gif" width="15" height="18"> <?php echo $Help; ?> <img src="<?php echo $base_gif; ?>/h_line.gif" width="550" height="18"></td> </tr> <tr> <td class="td2">Advanced Poll <?php echo $poll_version; ?><br> Copyright ©2001<br> Author: Chi Kien Uong<br> URL: <a href="http://www.proxy2.de" target="_blank">http://www.proxy2.de</a><br> <a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=license"><?php echo $License; ?></a></td> </tr> <tr> <td><img src="<?php echo $base_gif; ?>/h_line.gif" width="600" height="18"></td> </tr> <tr> <td class="td2"><?php echo $HelpPoll; ?>:</td> </tr> <tr> <td> <textarea cols="72" rows="12" class="code" wrap="VIRTUAL"> <?php if (eregi("WIN",PHP_OS)) { $path = str_replace("\\","/",$path); } ?> <?php // this code snippet is optional require ("<?php echo $path; ?>/poll_cookie.php"); ?> <html> <body bgcolor="#ffffff"> <?php $poll_id = xx; require ("<?php echo $path; ?>/booth.php"); ?> </body> </html></textarea> </td> </tr> <tr> <td><img src="<?php echo $base_gif; ?>/h_line.gif" width="600" height="18"></td> </tr> <tr> <td class="td2"><?php echo $HelpRand; ?></td> </tr> <tr> <td> <textarea cols="72" rows="6" wrap="VIRTUAL" class="code2"><?php $random_poll = 1; require("<?php echo $path; ?>/booth.php"); ?> </textarea> <br> </td> </tr> <tr> <td><img src="<?php echo $base_gif; ?>/h_line.gif" width="600" height="18"></td> </tr> <tr> <td class="td2"><?php echo $HelpNew; ?></td> </tr> <tr> <td> <textarea cols="72" rows="6" wrap="VIRTUAL" class="code2"><?php $newest_poll = 1; require("<?php echo $path; ?>/booth.php"); ?> </textarea> <br> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> </body> </html> --- NEW FILE: admin_index.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $config_result = $db_connect->query("SELECT base_gif as base_gif, time_offset as time_offset, lang as lang FROM $sql_config WHERE (config_id = '1')"); $result = $db_connect->fetch_array($config_result); $time_offset = $result["time_offset"]*3600; $base_gif = $result["base_gif"]; $db_connect->free_result($config_result); $sql_result = $db_connect->query("select count(*) as total from $sql_index"); $db_connect->fetch_array($sql_result); $total = $db_connect->record['total']; $db_connect->free_result($sql_result); include ("./lang/$result[lang]"); if(!isset($entry)) { $entry = 0; } $next_page = $entry+20; $prev_page = $entry-20; $navigation =''; if ($prev_page >= 0) { $navigation = " <img src=\"$base_gif/back.gif\" width=\"16\" height=\"14\"> <a href=\"$PHP_SELF?log_in=$log_in&entry=$prev_page\">$NavPrev</a>\n"; } if ($next_page < $total) { $navigation = $navigation. " <a href=\"$PHP_SELF?log_in=$log_in&entry=$next_page\">$NavNext</a> <img src=\"$base_gif/next.gif\" width=\"16\" height=\"14\">\n"; } $results = $db_connect->query("select * from $sql_index order by poll_id desc limit $entry, 20"); list($wday,$mday,$month,$year,$hour,$minutes) = split("( )",date("w j n Y H i",time()+$time_offset)); $newdate = "$weekday[$wday], $mday $months[$month] $year $hour:$minutes"; header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- a {text-decoration: none} .td1 { font-family: "MS Sans Serif"; font-size: 10pt} .td2 { font-family: "MS Sans Serif"; font-size: 9pt} a:hover { color: #FF0033; text-decoration: underline} --> </style> <script language="Javascript"> <!-- function del_entry(entry) { if (window.confirm("<?php echo $Confirm; ?>")) { window.location.href = "http://"+window.location.host+window.location.pathname+"?log_in=<?php echo $log_in; ?>&action=delete&id="+entry+"&no_cache="+Math.random() } } // --> </script> </head> <body bgcolor="#009999" link="#000000" vlink="#000000"> <table border="1" cellspacing="0" cellpadding="0" align="center" width="750"> <tr bgcolor="#C6C3C6" valign="top"> <td> <table width="750" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td2" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $poll_version; ?></font></b></td> <td height="20" align="right" bgcolor="#000084"><img src="<?php echo $base_gif; ?>/min.gif" width="16" height="14"><img src="<?php echo $base_gif; ?>/max.gif" width="16" height="14"> <img src="<?php echo $base_gif; ?>/cross.gif" width="16" height="14"></td> </tr> <tr valign="top"> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> <tr> <td align="center" rowspan="2" width="7"><img src="<?php echo $base_gif; ?>/v_line.gif" width="5" height="50"></td> <td align="center" width="112"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=show"><img src="<?php echo $base_gif; ?>/index.gif" width="32" height="32" border="0" alt="<?php echo $IndexTitle; ?>"></a></td> <td align="center" width="122"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=new"><img src="<?php echo $base_gif; ?>/new.gif" width="32" height="32" border="0" alt="<?php echo $NewTitle; ?>"></a></td> <td align="center" width="156"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=general"><img src="<?php echo $base_gif; ?>/settings.gif" width="32" height="32" border="0" alt="<?php echo $SetTitle; ?>"></a></td> <td align="center" width="124"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=password"><img src="<?php echo $base_gif; ?>/password.gif" width="32" height="32" border="0" alt="<?php echo $PwdTitle; ?>"></a></td> <td align="center" width="91"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=help"><img src="<?php echo $base_gif; ?>/howto.gif" width="32" height="32" border="0" alt="<?php echo $Help; ?>"></a></td> <td align="center" width="129"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=logout"><img src="<?php echo $base_gif; ?>/logout.gif" width="32" height="32" border="0" alt="<?php echo $Logout; ?>"></a></td> </tr> <tr align="center" valign="top"> <td width="112" class="td2"><?php echo $IndexTitle; ?></td> <td width="122" class="td2"><?php echo $NewTitle; ?></td> <td width="156" class="td2"><?php echo $SetTitle; ?></td> <td width="124" class="td2"><?php echo $PwdTitle; ?></td> <td width="91" class="td2"><?php echo $Help; ?></td> <td width="129" class="td2"><?php echo $Logout; ?></td> </tr> <tr align="left"> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="4" align="center" width="100%"> <tr> <td colspan="6" class="td1"><img src="<?php echo $base_gif; ?>/h_line.gif" width="15" height="18"> <?php echo $IndexTitle; ?> <img src="<?php echo $base_gif; ?>/h_line.gif" width="420" height="18"></td> <td colspan="2" class="td2" align="right"><?php echo $newdate; ?></td> </tr> <tr> <td bgcolor="#9999CC"> </td> <td class="td2" bgcolor="#9999CC"><b><?php echo $IndexQuest; ?></b></td> <td class="td2" bgcolor="#9999CC"><b><?php echo $IndexID; ?></b></td> <td class="td2" bgcolor="#9999CC"><b><?php echo $StatCrea; ?></b></td> <td class="td2" bgcolor="#9999CC"><b><?php echo $IndexDays; ?></b></td> <td class="td2" bgcolor="#9999CC"><b><?php echo $IndexExp; ?></b></td> <td class="td2" bgcolor="#9999CC"><b><?php echo $IndexStat; ?></b></td> <td class="td2" bgcolor="#9999CC"><b><?php echo $IndexAct; ?></b></td> </tr> <?php while ($row = $db_connect->fetch_array($results)) { $question = htmlspecialchars($row['question']); $date = date("j-M-Y",$row['timestamp']+$time_offset); if ($row['expire']==0) { $exp_date = "<font color=\"#0000FF\">$IndexNever</font>"; } else { $exp_date = (time()>$row['exp_time']) ? "<font color=\"#FF6600\">$IndexExpire</font>" : date("j-M-Y",$row['exp_time']+$time_offset)." (<font color=\"#FF0000\">".round(($row["exp_time"]-time())/86400)."</font>)"; } $days = (int) ((time()-$row['timestamp']+$time_offset)/86400); if ($row['status'] == 1) { $image = "$base_gif/folder.gif"; $alt = "$EditOn"; } elseif ($row['status'] == 2) { $image = "$base_gif/hidden.gif"; $alt = "$EditHide"; } else { $image = "$base_gif/lock.gif"; $alt = "$EditOff"; } $alt = htmlspecialchars($alt); $image2 = ($row['logging'] == 1) ? "$base_gif/log.gif" : "$base_gif/log_off.gif"; $image3 = ($row['comments'] == 1) ? "$base_gif/reply.gif" : "$base_gif/co_dis.gif"; echo " <tr> <td align=\"center\" bgcolor=\"#E6E6E6\"><img src=\"$image\" width=\"13\" height=\"16\" alt=\"$alt\"></td> <td class=\"td2\" bgcolor=\"#E6E6E6\"><a href=\"$PHP_SELF?log_in=$log_in&action=edit&id=$row[poll_id]\"><acronym title=\"$EditText\">$question</acronym></a></td> <td class=\"td2\" bgcolor=\"#CCCCCC\">$row[poll_id]</td> <td class=\"td2\" bgcolor=\"#E6E6E6\">$date</td> <td class=\"td2\" bgcolor=\"#CCCCCC\">$days</td> <td class=\"td2\" bgcolor=\"#E6E6E6\">$exp_date</td> <td class=\"td2\" align=\"center\" bgcolor=\"#CCCCCC\"><a href=\"$PHP_SELF?log_in=$log_in&action=stats&id=$row[poll_id]\"><img src=\"$image2\" width=\"16\" height=\"16\" border=\"0\" alt=\"$IndexStat\"></a> <a href=\"$PHP_SELF?log_in=$log_in&action=comments&id=$row[poll_id]\"><img src=\"$image3\" width=\"18\" height=\"18\" border=\"0\" alt=\"$IndexCom\"></a></td></td> <td class=\"td2\" bgcolor=\"#E6E6E6\"><a href=\"javascript:del_entry($row[poll_id])\">$IndexDel</a></td> </tr>\n"; } ?> <tr> <td align="right"><img src="<?php echo $base_gif; ?>/ip.gif" width="16" height="16"></td> <td class="td2"><?php echo $sql_username."@".$sql_hostname; ?></td> <td colspan="6" align="right" class="td2"> <?php echo $navigation; ?></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br> <br> </body> </html> --- NEW FILE: admin_license.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $config_result = $db_connect->query("SELECT base_gif as base_gif, lang as lang FROM $sql_config WHERE (config_id = '1')"); $result = $db_connect->fetch_array($config_result); $base_gif = $result["base_gif"]; include ("./lang/$result[lang]"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 10pt} .td2 { font-family: "MS Sans Serif"; font-size: 9pt} .license { height: 220px; width: 650px; font-family: "MS Sans Serif"; font-size: 9pt} --> </style> </head> <body bgcolor="#009999"> <table border="1" cellspacing="0" cellpadding="0" align="center" width="750"> <tr bgcolor="#C6C3C6" valign="top" class="code2"> <td> <table width="750" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td2" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $poll_version; ?></font></b></td> <td height="20" align="right" bgcolor="#000084"><img src="<?php echo $base_gif; ?>/min.gif" width="16" height="14"><img src="<?php echo $base_gif; ?>/max.gif" width="16" height="14"> <img src="<?php echo $base_gif; ?>/cross.gif" width="16" height="14"></td> </tr> <tr valign="top"> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> <tr> <td align="center" rowspan="2" width="7"><img src="<?php echo $base_gif; ?>/v_line.gif" width="5" height="50"></td> <td align="center" width="112"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=show"><img src="<?php echo $base_gif; ?>/index.gif" width="32" height="32" border="0" alt="<?php echo $IndexTitle; ?>"></a></td> <td align="center" width="122"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=new"><img src="<?php echo $base_gif; ?>/new.gif" width="32" height="32" border="0" alt="<?php echo $NewTitle; ?>"></a></td> <td align="center" width="156"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=general"><img src="<?php echo $base_gif; ?>/settings.gif" width="32" height="32" border="0" alt="<?php echo $SetTitle; ?>"></a></td> <td align="center" width="124"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=password"><img src="<?php echo $base_gif; ?>/password.gif" width="32" height="32" border="0" alt="<?php echo $PwdTitle; ?>"></a></td> <td align="center" width="91"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=help"><img src="<?php echo $base_gif; ?>/howto.gif" width="32" height="32" border="0" alt="<?php echo $Help; ?>"></a></td> <td align="center" width="129"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=logout"><img src="<?php echo $base_gif; ?>/logout.gif" width="32" height="32" border="0" alt="<?php echo $Logout; ?>"></a></td> </tr> <tr align="center" valign="top"> <td width="112" class="td2"><?php echo $IndexTitle; ?></td> <td width="122" class="td2"><?php echo $NewTitle; ?></td> <td width="156" class="td2"><?php echo $SetTitle; ?></td> <td width="124" class="td2"><?php echo $PwdTitle; ?></td> <td width="91" class="td2"><?php echo $Help; ?></td> <td width="129" class="td2"><?php echo $Logout; ?></td> </tr> <tr align="left"> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> </table> <form method="post" action="<?php echo $PHP_SELF; ?>" name="license"> <table border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <td class="td1"><img src="<?php echo $base_gif; ?>/h_line.gif" width="15" height="18"> <?php echo $License; ?> <img src="<?php echo $base_gif; ?>/h_line.gif" width="500" height="18"></td> </tr> <tr class="td2"> <td class="td2"><?php echo $ScrollTxt; ?></td> </tr> <tr> <td><font face="MS sans serif" size="1"> <textarea name="textfield" cols="70" rows="16" wrap="VIRTUAL" class="license"> You should carefully read the following terms and conditions before using this software. Your use of this software indicates your acceptance of this license agreement. If you do not agree to all the terms of this agreement, do not use this software. 1. This script may be used and modified free of charge for personal, academic and non-profit use. Commercial use must register the script for a one time fee of $10 US or 10 EUR. --> http://www.proxy2.de/register Registered users receive support, free upgrades and also do not have to display the text link. 2. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice. Keep intact all the notices that refer to this License and give any other recipients of the Program a copy of this License along with the Program. 3. Selling the code for this program, or a program derived from Advanced Poll, without prior written consent is expressly forbidden. THIS SOFTWARE AND THE ACCOMPANYING FILES ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHOR DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS, OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS DISCOVERED IN THE SOFTWARE WILL BE CORRECTED. FURTHERMORE, THE AUTHOR DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OR THE RESULTS OF THE USE OF THE SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE. YOU ASSUME ALL RISKS IN USING THE SOFTWARE. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY THE AUTHOR OR ANY OF THEIR AUTHORIZED REPRESENTATIVES SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF THIS WARRANTY. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES. </textarea> </font></td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> </body> </html> --- NEW FILE: admin_login.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $config_result = $db_connect->query("SELECT base_gif as base_gif, lang as lang FROM $sql_config WHERE (config_id = '1')"); $result = $db_connect->fetch_array($config_result); $base_gif = $result["base_gif"]; include ("./lang/$result[lang]"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 9pt} .button { font-family: "MS Sans Serif"; font-size: 9pt; height: 22px; width: 75px} .input { font-family: "MS Sans Serif"; font-size: 9pt; height: 22px; width: 200px} --> </style> <SCRIPT LANGUAGE="JavaScript"> <!-- function set_focus() { document.pass.username.focus(); } // --> </SCRIPT> </head> <body bgcolor="#009999" onload="set_focus()"> <br> <br> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="450"> <tr bgcolor="#C6C3C6"> <td> <table width="450" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $poll_version; ?></font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $base_gif; ?>/help.gif" width="16" height="14"> <img src="<?php echo $base_gif; ?>/cross.gif" width="16" height="14"> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" name="pass" action="<?php echo $PHP_SELF; ?>"> <table border="0" cellspacing="0" cellpadding="1" width="100%"> <tr> <td rowspan="3" valign="top" align="right" width="12%"><img src="<?php echo $base_gif; ?>/key.gif" width="35" height="40"> </td> <td colspan="2" class="td1" height="42"><?php echo $$message; ?></td> </tr> <tr> <td class="td1" width="18%"><?php echo $PwdUser; ?></td> <td width="70%"> <input type="text" name="username" size="25" class="input"> </td> </tr> <tr> <td class="td1" height="35" width="18%"><?php echo $PwdPass; ?></td> <td height="35" width="70%"> <input type="password" name="password" size="25" class="input"> <input type="hidden" name="enter" value="1"> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td align="right" width="47%"> <input type="submit" value=" <?php echo $FormOK; ?> " class="button"> </td> <td align="right" width="1%"> </td> <td width="52%"> <input type="reset" value="<?php echo $FromClear; ?>" class="button"> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> --- NEW FILE: admin_new.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $config_result = $db_connect->query("SELECT base_gif as base_gif, lang as lang FROM $sql_config WHERE (config_id = '1')"); $result = $db_connect->fetch_array($config_result); $base_gif = $result["base_gif"]; include ("./lang/$result[lang]"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 10pt} .td2 { font-family: "MS Sans Serif"; font-size: 9pt} .input { font-family: "MS Sans Serif"; font-size: 9pt; height: 20px; width: 350px} .exp_input { font-family: "MS Sans Serif"; font-size: 9pt; height: 20px; width: 30px} .button { font-family: Arial, Helvetica, sans-serif; font-size: 9pt} .select { font-family: Arial, Helvetica, sans-serif; font-size: 9pt} --> </style> <script language="JavaScript"> <!-- blank = new Image(); blank.src = "<?php echo $base_gif; ?>/blank.gif"; <?php $source_array = array( "aqua","blue","brown","darkgreen","gold","green","grey","orange","pink","purple","red","yellow" ); for ($i=0;$i<sizeof($source_array); $i++) { echo "$source_array[$i] = new Image(); $source_array[$i].src = \"$base_gif/$source_array[$i].gif\";\n"; } ?> function ChangeBar(sel,img) { eval("document.bar"+img+".src="+sel+".src"); } function trim(value) { startpos=0; while((value.charAt(startpos)==" ")&&(startpos<value.length)) { startpos++; } if(startpos==value.length) { value=""; } else { value=value.substring(startpos,value.length); endpos=(value.length)-1; while(value.charAt(endpos)==" ") { endpos--; } value=value.substring(0,endpos+1); } return(value); } function CheckForm() { document.form.question.value = trim(document.form.question.value); document.form.exp_time.value = trim(document.form.exp_time.value); document.forms[0].elements[2].value = trim(document.forms[0].elements[2].value); if (document.form.question.value == "") { alert('<?php echo $NewNoQue; ?>!'); document.form.question.focus(); return false; } if (document.forms[0].elements[2].value == "") { alert('<?php echo $NewNoOpt; ?>!'); document.forms[0].elements[2].focus(); return false; } if (document.form.expire.checked == false) { if(!(document.form.exp_time.value >= 0) || document.form.exp_time.value == "") { alert("<?php echo $SetEmpty; ?>"); document.form.exp_time.focus(); return false; } } } // --> </script> </head> <body bgcolor="#009999"> <table border="1" cellspacing="0" cellpadding="0" align="center" width="750"> <tr bgcolor="#C6C3C6" valign="top"> <td> <table width="750" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td2" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $poll_version; ?></font></b></td> <td height="20" align="right" bgcolor="#000084"><img src="<?php echo $base_gif; ?>/min.gif" width="16" height="14"><img src="<?php echo $base_gif; ?>/max.gif" width="16" height="14"> <img src="<?php echo $base_gif; ?>/cross.gif" width="16" height="14"></td> </tr> <tr valign="top"> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> <tr> <td align="center" rowspan="2" width="7"><img src="<?php echo $base_gif; ?>/v_line.gif" width="5" height="50"></td> <td align="center" width="112"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=show"><img src="<?php echo $base_gif; ?>/index.gif" width="32" height="32" border="0" alt="<?php echo $IndexTitle; ?>"></a></td> <td align="center" width="122"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=new"><img src="<?php echo $base_gif; ?>/new.gif" width="32" height="32" border="0" alt="<?php echo $NewTitle; ?>"></a></td> <td align="center" width="156"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=general"><img src="<?php echo $base_gif; ?>/settings.gif" width="32" height="32" border="0" alt="<?php echo $SetTitle; ?>"></a></td> <td align="center" width="124"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=settings&panel=password"><img src="<?php echo $base_gif; ?>/password.gif" width="32" height="32" border="0" alt="<?php echo $PwdTitle; ?>"></a></td> <td align="center" width="91"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=help"><img src="<?php echo $base_gif; ?>/howto.gif" width="32" height="32" border="0" alt="<?php echo $Help; ?>"></a></td> <td align="center" width="129"><a href="<?php echo "$PHP_SELF"."?log_in=$log_in&"; ?>action=logout"><img src="<?php echo $base_gif; ?>/logout.gif" width="32" height="32" border="0" alt="<?php echo $Logout; ?>"></a></td> </tr> <tr align="center" valign="top"> <td width="112" class="td2"><?php echo $IndexTitle; ?></td> <td width="122" class="td2"><?php echo $NewTitle; ?></td> <td width="156" class="td2"><?php echo $SetTitle; ?></td> <td width="124" class="td2"><?php echo $PwdTitle; ?></td> <td width="91" class="td2"><?php echo $Help; ?></td> <td width="129" class="td2"><?php echo $Logout; ?></td> </tr> <tr align="left"> <td colspan="7"><img src="<?php echo $base_gif; ?>/top_line.gif" width="745" height="3"></td> </tr> </table> <form method="post" action="<?php echo $PHP_SELF; ?>" name="form"> <table width="90%" border="0" cellspacing="0" cellpadding="2" align="center"> <tr> <td colspan="4" class="td1" height="30"><img src="<?php echo $base_gif; ?>/h_line.gif" width="15" height="18"> <?php echo $$message; ?> <img src="<?php echo $base_gif; ?>/h_line.gif" width="420" height="18"> </td> </tr> <tr> <td width="25%" class="td1"><?php echo $IndexQuest; ?></td> <td width="40%"> <input type="text" class="input" name="question" size="38" maxlength="100"> </td> <td colspan="2" width="35%" class="select"> <select name="logging" class="select"> <option value="0" selected><?php echo $EditLgOff; ?></option> <option value="1"><?php echo $EditLgOn; ?></option> </select> </td> </tr> <?php for ($i=1; $i < 11; $i++) { echo " <tr> <td width=\"25%\" class=\"td1\">$NewOption $i</td> <td width=\"40%\"> <input type=\"text\" name=\"option_id[$i]\" size=\"38\" class=\"input\" maxlength=\"100\"> </td> <td class=\"td2\" width=\"10%\"> <select class=\"select\" name=\"color[$i]\" onChange=\"javascript:ChangeBar(options[selectedIndex].value,$i)\"> <option value=\"blank\">---</option>\n"; for ($j=0; $j <sizeof($source_array); $j++) { echo "<option value=\"$source_array[$j]\">$color_array[$j]</option>\n"; } echo " </select></td> <td width=\"25%\" align=\"left\"><img src=\"$base_gif/blank.gif\" name=\"bar$i\" width=\"35\" height=\"12\"></td> </tr>\n"; } ?> <tr> <td width="25%"> </td> <td colspan="3" height="35" class="td2"> <?php echo $EditStat; ?>: <select name="status" class="select"> <option value="0"><?php echo $EditOff; ?></option> <option value="1" selected><?php echo $EditOn; ?></option> <option value="2"><?php echo $EditHide; ?></option> </select> <?php echo $IndexExp; ?>: <input type="text" name="exp_time" class="exp_input" size="4"> <?php echo $IndexDays; ?> <?php echo $IndexNever; ?> <input type="checkbox" name="expire" value="0" checked> <?php echo $EditCom; ?><input type="checkbox" name="comments" value="1"> </td> </tr> <tr> <td width="25%"> </td> <td colspan="3" height="35"> <input class="button" type="submit" value="<?php echo $NewTitle; ?>" onclick="return CheckForm()"> <input class="button" type="reset" value="<?php echo $FormUndo; ?>"> <input type="hidden" name="action" value="create"> <input type="hidden" name="log_in" value="<?php echo $log_in; ?>"> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> </body> </html> --- NEW FILE: admin_options.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $poll_result = $db_connect->query("SELECT question as question FROM $sql_index WHERE (poll_id = '$poll_id')"); $row = $db_connect->fetch_array($poll_result); $question = htmlspecialchars($row['question']); $db_connect->free_result($poll_result); $result = $db_connect->query("select max(option_id) as option_id from $sql_data where (poll_id = '$poll_id')"); $data = $db_connect->fetch_array($result); $db_connect->free_result($result); $config_result = $db_connect->query("SELECT base_gif as base_gif, lang as lang FROM $sql_config WHERE (config_id = '1')"); $result = $db_connect->fetch_array($config_result); $base_gif = $result["base_gif"]; include ("./lang/$result[lang]"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); ?> <html> <head> <title>Advanced Poll <?php echo $poll_version; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 10pt} .td2 { font-family: "MS Sans Serif"; font-size: 9pt} .input { font-family: "MS Sans Serif"; font-size: 9pt; height: 20px; wid... [truncated message content] |
From: <smi...@us...> - 2004-01-02 17:32:30
|
Update of /cvsroot/devil-linux/web/polls/misc In directory sc8-pr-cvs1:/tmp/cvs-serv15591/polls/misc Added Files: get_admin.php index.html info.php uninstall.php Log Message: added polls --- NEW FILE: get_admin.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $version = "v1.6"; if (!isset($PHP_SELF)) { $PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"]; if (isset($HTTP_GET_VARS)) { while (list($name, $value)=each($HTTP_GET_VARS)) { $$name=$value; } } if (isset($HTTP_POST_VARS)) { while (list($name, $value)=each($HTTP_POST_VARS)) { $$name=$value; } } } if (!file_exists("../install/cross.gif")) { $img_loc="http://www.proxy2.de/poll/install"; } else { $img_loc="../install"; } function print_header() { global $PHP_SELF, $version; ?> <html> <head> <title>Advanced Poll <?php echo $version; ?></title> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 9pt} --> </style> <script language="Javascript"> <!-- function abort() { if (window.confirm("Do you wish to cancel the operation?")) { window.location.href = "http://"+window.location.host+window.location.pathname+"?action=cancel" } } function trim(value) { startpos=0; while((value.charAt(startpos)==" ")&&(startpos<value.length)) { startpos++; } if(startpos==value.length) { value=""; } else { value=value.substring(startpos,value.length); endpos=(value.length)-1; while(value.charAt(endpos)==" ") { endpos--; } value=value.substring(0,endpos+1); } return(value); } function check_data() { document.FormPwd.username.value = trim(document.FormPwd.username.value); document.FormPwd.password.value = trim(document.FormPwd.password.value); if (document.FormPwd.username.value == "") { alert("You forgot to fill in the username field!"); document.FormPwd.username.focus(); return false; } else if (document.FormPwd.password.value == "") { alert("You forgot to fill in the password field!"); document.FormPwd.password.focus(); return false; } else if (document.FormPwd.password.value != document.FormPwd.confirm.value) { alert("The passwords do not match!"); return false; } } function set_focus() { document.FormPwd.username.focus(); } // --> </script> </head> <?php } function sql_error() { global $PHP_SELF, $version, $img_loc; $description = mysql_error(); ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?></font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Error occured!</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> The following error occured...</td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75"><?php echo $description; ?> </td> </tr> <tr> <td height="140" class="td1"> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/back.gif" width="75" height="22" border="0" usemap="#Back" alt="Back"><map name="Back"><area shape="rect" coords="1,1,73,20" href="javascript:history.go(-1)"></map> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php exit(); } function db_config() { global $PHP_SELF, $version, $img_loc; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?></font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Forgot the password?</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> This script can be used to recover lost admin abilities.</td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75">Please enter your database settings...</td> </tr> <tr> <td height="140" class="td1"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td width="18%" class="td1">Hostname:</td> <td width="82%"> <input type="text" name="sql_hostname" size="25" value="localhost"> </td> </tr> <tr> <td width="18%" class="td1">Database:</td> <td width="82%"> <input type="text" name="dbName" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Username:</td> <td width="82%"> <input type="text" name="sql_username" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Password:</td> <td width="82%"> <input type="password" name="sql_password" size="25"> <input type="hidden" name="action" value="connect"> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><input type="image" src="<?php echo $img_loc; ?>/next.gif" width="75" height="22" border="0" alt="Next"> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function new_admin() { global $PHP_SELF, $version, $img_loc; global $dbName, $sql_hostname, $sql_username, $sql_password; ?> <body bgcolor="#009999" onload="set_focus()"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?></font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>" name="FormPwd" onsubmit="return check_data()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Connection established</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> <?php echo "$sql_username"."@"."$sql_hostname"; ?></td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75">Please enter a new username and password for the admin control panel.</td> </tr> <tr> <td height="140" class="td1"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td width="18%" class="td1">Username:</td> <td width="82%"> <input type="text" name="username" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Password:</td> <td width="82%"> <input type="password" name="password" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Confirm:</td> <td width="82%"> <input type="password" name="confirm" size="25"> <input type="hidden" name="dbName" value="<?php echo $dbName; ?>"> <input type="hidden" name="sql_hostname" value="<?php echo $sql_hostname; ?>"> <input type="hidden" name="sql_username" value="<?php echo $sql_username; ?>"> <input type="hidden" name="sql_password" value="<?php echo $sql_password; ?>"> <input type="hidden" name="action" value="account"> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><input type="image" src="<?php echo $img_loc; ?>/next.gif" width="75" height="22" border="0" alt="Next"> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function message_box($msg) { global $version, $img_loc; ?> <body bgcolor="#009999"> <br><br><br><br><br><br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="300"> <tr bgcolor="#C6C3C6"> <td> <table width="300" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?></font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0"> </td> </tr> <tr align="center"> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#C6C3C6"> <td align="center" height="75" width="20%"><img src="<?php echo $img_loc; ?>/info.gif" width="35" height="35"></td> <td align="left" height="75" width="80%" class="td1"><?php echo $msg; ?></td> </tr> <tr bgcolor="#C6C3C6" align="center"> <td colspan="2" height="40"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"> <img src="<?php echo $img_loc; ?>/ok.gif" width="75" height="22" border="0" alt="Ok"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } if (!isset($action)) { $action =''; } switch ($action) { case "cancel": print_header(); message_box("The operation has been cancelled!"); break; case "connect": print_header(); $serverid = @mysql_connect($sql_hostname, $sql_username, $sql_password) or sql_error(); @mysql_select_db($dbName,$serverid) or sql_error(); new_admin(); break; case "account": print_header(); srand((double)microtime()*1000000); $session = md5 (uniqid (rand())); $serverid = @mysql_connect($sql_hostname, $sql_username, $sql_password) or sql_error(); @mysql_select_db($dbName,$serverid) or sql_error(); if (file_exists("../include/config.inc.php")) { include ("../include/config.inc.php"); } elseif (file_exists("./include/config.inc.php")) { include ("./include/config.inc.php"); } else { $sql_user = "poll_user"; } $sql_query = "UPDATE $sql_user SET username='$username', userpass=PASSWORD('$password'), session='$session' WHERE user_id='1'"; @mysql_query($sql_query,$serverid) or sql_error(); message_box("The username and password have been changed!"); break; default: print_header(); db_config(); break; } ?> --- NEW FILE: index.html --- <html> <head> <title>Content of this directory</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8.5pt} --> </style> </head> <body bgcolor="#009999" text="#333333" link="#0000FF"> <br> <table width="600" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#FFFFFF"> <tr> <td> <table border="0" cellspacing="0" cellpadding="5" align="center" width="598" bgcolor="#C6C3C6"> <tr bgcolor="#000084"> <td colspan="3" class="td1"><b><font color="#FFFFFF">Content of this directory:</font></b> </td> </tr> <tr> <td class="td1" align="right" width="17">•</td> <td class="td1" width="184"><a href="get_admin.php">get_admin.php</a></td> <td width="367" class="td1">script to recover lost admin abilities</td> </tr> <tr> <td align="right" class="td1" width="17">•</td> <td width="184" class="td1"><a href="info.php">info.php</a></td> <td width="367" class="td1">script to display the php environment</td> </tr> <tr> <td align="right" class="td1" width="17">•</td> <td width="184" class="td1"><a href="uninstall.php">uninstall.php</a></td> <td width="367" class="td1">script to remove the tables from the database</td> </tr> </table> </td> </tr> </table> </body> </html> --- NEW FILE: info.php --- <html> <head> <title>PHP Info</title> </head> <body bgcolor="#009999"> <?php phpinfo(); ?> --- NEW FILE: uninstall.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $version = "v1.6"; if (!isset($PHP_SELF)) { $PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"]; if (isset($HTTP_GET_VARS)) { while (list($name, $value)=each($HTTP_GET_VARS)) { $$name=$value; } } if (isset($HTTP_POST_VARS)) { while (list($name, $value)=each($HTTP_POST_VARS)) { $$name=$value; } } } if (!file_exists("../install/cross.gif")) { $img_loc="http://www.proxy2.de/poll/install"; } else { $img_loc="../install"; } function print_header() { global $PHP_SELF, $version; ?> <html> <head> <title>Advanced Poll <?php echo $version; ?> Uninstall</title> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 9pt} --> </style> <script language="Javascript"> <!-- function abort() { if (window.confirm("Are you sure you want to cancel the uninstall?")) { window.location.href = "http://"+window.location.host+window.location.pathname+"?action=cancel" } } // --> </script> </head> <?php } function sql_error() { global $PHP_SELF, $version, $img_loc; $description = mysql_error(); ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Uninstall</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Error occured!</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> The following error occured...</td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75"><?php echo $description; ?> </td> </tr> <tr> <td height="140" class="td1"> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/back.gif" width="75" height="22" border="0" usemap="#Back" alt="Back"><map name="Back"><area shape="rect" coords="1,1,73,20" href="javascript:history.go(-1)"></map> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php exit(); } function db_config() { global $PHP_SELF, $version, $img_loc; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Uninstall</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Welcome to the Advanced Poll uninstall script.</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> This script removes all the tables that Advanced Poll is using from your database.</td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75">Please enter your database settings...</td> </tr> <tr> <td height="140" class="td1"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td width="18%" class="td1">Hostname:</td> <td width="82%"> <input type="text" name="mysql_host" size="25" value="localhost"> </td> </tr> <tr> <td width="18%" class="td1">Database:</td> <td width="82%"> <input type="text" name="db_name" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Username:</td> <td width="82%"> <input type="text" name="mysql_user" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Password:</td> <td width="82%"> <input type="password" name="mysql_pass" size="25"> <input type="hidden" name="action" value="connect"> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><input type="image" src="<?php echo $img_loc; ?>/next.gif" width="75" height="22" border="0" alt="Next"> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function confirm_uninstall() { global $PHP_SELF, $version, $img_loc; global $sql_index, $sql_data, $sql_config, $sql_ip, $sql_log, $sql_user, $sql_com; global $db_name, $mysql_host, $mysql_user, $mysql_pass; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Uninstall</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Connection established</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> <?php echo "$mysql_user"."@"."$mysql_host"; ?></td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75">Are you sure you want to remove the following tables from your database?</td> </tr> <tr> <td height="140" class="td1" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td class="td1">- <?php echo $sql_index; ?></td> </tr> <tr> <td class="td1">- <?php echo $sql_data; ?></td> </tr> <tr> <td class="td1">- <?php echo $sql_config; ?></td> </tr> <tr> <td class="td1">- <?php echo $sql_ip; ?></td> </tr> <tr> <td class="td1">- <?php echo $sql_log; ?></td> </tr> <tr> <td class="td1">- <?php echo $sql_com; ?></td> </tr> <tr> <td class="td1">- <?php echo $sql_user; ?></td> <input type="hidden" name="sql_index" value="<?php echo $sql_index; ?>"> <input type="hidden" name="sql_data" value="<?php echo $sql_data; ?>"> <input type="hidden" name="sql_config" value="<?php echo $sql_config; ?>"> <input type="hidden" name="sql_ip" value="<?php echo $sql_ip; ?>"> <input type="hidden" name="sql_log" value="<?php echo $sql_log; ?>"> <input type="hidden" name="sql_user" value="<?php echo $sql_user; ?>"> <input type="hidden" name="sql_com" value="<?php echo $sql_com; ?>"> <input type="hidden" name="db_name" value="<?php echo $db_name; ?>"> <input type="hidden" name="mysql_host" value="<?php echo $mysql_host; ?>"> <input type="hidden" name="mysql_user" value="<?php echo $mysql_user; ?>"> <input type="hidden" name="mysql_pass" value="<?php echo $mysql_pass; ?>"> <input type="hidden" name="action" value="delete"> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><input type="image" src="<?php echo $img_loc; ?>/next.gif" width="75" height="22" border="0" alt="Next"> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function message_box($msg) { global $version, $img_loc; ?> <body bgcolor="#009999"> <br><br><br><br><br><br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="300"> <tr bgcolor="#C6C3C6"> <td> <table width="300" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Uninstall</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0"> </td> </tr> <tr align="center"> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#C6C3C6"> <td align="center" height="75" width="20%"><img src="<?php echo $img_loc; ?>/info.gif" width="35" height="35"></td> <td align="left" height="75" width="80%" class="td1"><?php echo $msg; ?></td> </tr> <tr bgcolor="#C6C3C6" align="center"> <td colspan="2" height="40"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"> <img src="<?php echo $img_loc; ?>/ok.gif" width="75" height="22" border="0" alt="Ok"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php exit(); } if (!isset($action)) { $action =''; } switch ($action) { case "cancel": print_header(); message_box("The operation has been cancelled!"); break; case "connect": print_header(); $serverid = @mysql_connect($mysql_host, $mysql_user, $mysql_pass) or sql_error(); @mysql_select_db($db_name,$serverid) or sql_error(); if (file_exists("../include/config.inc.php")) { include ("../include/config.inc.php"); } elseif (file_exists("./include/config.inc.php")) { include ("./include/config.inc.php"); } else { message_box("Cannot find the configuration file <u>config.inc.php</u>."); } if (empty($sql_index) || empty($sql_data) || empty($sql_config) || empty($sql_ip) || empty($sql_log) || empty($sql_user) || empty($sql_com)) { message_box("Some tables are not defined. Please check the configuration file."); } confirm_uninstall(); break; case "delete": $tbl_array = array( "$sql_index","$sql_data","$sql_config","$sql_ip","$sql_log","$sql_user","$sql_com" ); print_header(); $serverid = @mysql_connect($mysql_host, $mysql_user, $mysql_pass) or sql_error(); @mysql_select_db($db_name,$serverid) or sql_error(); for ($i=0;$i<sizeof($tbl_array);$i++) { @mysql_query("DROP TABLE IF EXISTS $tbl_array[$i]",$serverid); } message_box("The tables have been removed from your database!"); break; default: print_header(); db_config(); break; } ?> |
From: <smi...@us...> - 2004-01-02 17:32:30
|
Update of /cvsroot/devil-linux/web/polls In directory sc8-pr-cvs1:/tmp/cvs-serv15591/polls Added Files: admin.php booth.php comments.php content.shtml head.shtml index.shtml install.php list.php poll.sql poll_cookie.php readme.txt results.php test.php Log Message: added polls --- NEW FILE: admin.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $poll_version = "v1.6"; require ("./include/config.inc.php"); require ("./include/$poll_db"); $db_connect = new db_sql; $db_connect->connect($sql_hostname, $sql_username, $sql_password, $dbName); if (!isset($PHP_SELF)) { $PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"]; if (isset($HTTP_GET_VARS)) { while (list($name, $value)=each($HTTP_GET_VARS)) { $$name=$value; } } if (isset($HTTP_POST_VARS)) { while (list($name, $value)=each($HTTP_POST_VARS)) { $$name=$value; } } if(isset($HTTP_COOKIE_VARS)){ while (list($name, $value)=each($HTTP_COOKIE_VARS)){ $$name=$value; } } } function enter_pass($message) { global $db_connect, $sql_config; global $poll_version, $PHP_SELF; include ("./admin/admin_login.php"); } function poll_index() { global $db_connect, $sql_index, $sql_username, $sql_hostname; global $sql_config, $entry, $poll_version, $log_in, $PHP_SELF; include ("./admin/admin_index.php"); } function poll_new($message) { global $db_connect, $sql_index; global $sql_config, $poll_version, $log_in, $PHP_SELF; include ("./admin/admin_new.php"); } function poll_help() { global $db_connect, $sql_index; global $sql_config, $path, $poll_version, $log_in, $PHP_SELF; include ("./admin/admin_help.php"); } function poll_license() { global $db_connect, $sql_index; global $sql_config, $poll_version, $log_in, $PHP_SELF; include ("./admin/admin_license.php"); } function create_poll() { global $db_connect, $sql_index, $sql_data; global $logging, $expire, $exp_time, $status, $comments; global $option_id,$question,$color; $timestamp = time(); if (!isset($expire)) { $expire=1; } if (!isset($comments)) { $comments=0; } if (!isset($exp_time)) { $exp_time=$timestamp; } else { $exp_time=$timestamp+$exp_time*86400; } if (!get_magic_quotes_gpc()) { $question = addslashes($question); } $db_connect->query("INSERT INTO $sql_index (question,timestamp,status,logging,exp_time,expire,comments) VALUES ('$question','$timestamp','$status','$logging','$exp_time','$expire','$comments')"); $sql_result = $db_connect->query("SELECT poll_id FROM $sql_index WHERE timeStamp=$timestamp"); $db_connect->fetch_array($sql_result); $poll_id = $db_connect->record['poll_id']; for($i=1; $i <= sizeof($option_id); $i++) { $option_id[$i] = trim($option_id[$i]); if (!empty($option_id[$i])) { if (!get_magic_quotes_gpc()) { $option_id[$i] = addslashes($option_id[$i]); } $db_connect->query("INSERT INTO $sql_data (poll_id, option_id, option_text, color, votes) VALUES('$poll_id', '$i', '$option_id[$i]','$color[$i]',0)"); } } } function poll_edit($entry_id,$message) { global $db_connect, $sql_index, $sql_config, $sql_data; global $poll_version, $log_in, $PHP_SELF; include ("./admin/admin_edit.php"); } function save($poll_id) { global $db_connect, $sql_index, $sql_data; global $option_id, $votes, $color, $status, $logging, $question, $exp_time, $expire, $comments; if (!isset($expire)) { $expire=1; } if (!isset($comments)) { $comments=0; } $exp_time=time()+$exp_time*86400; $question = trim($question); if (!empty($question)) { if (!get_magic_quotes_gpc()) { $question = addslashes($question); } $db_connect->query("UPDATE $sql_index set question='$question', status='$status', logging='$logging', exp_time='$exp_time', expire='$expire', comments='$comments' where (poll_id = '$poll_id')"); $result = $db_connect->query("select max(option_id) as max_option from $sql_data where (poll_id = '$poll_id')"); $data = $db_connect->fetch_array($result); for($i=1; $i <= $data["max_option"]; $i++) { if (!isset($option_id["$i"])) { continue; } $option_id["$i"] = trim($option_id["$i"]); if (!empty($option_id[$i])) { if (!eregi("^[0-9]+$", $votes[$i])) { $votes[$i] = 0; } if (!get_magic_quotes_gpc()) { $option_id[$i] = addslashes($option_id[$i]); } $db_connect->query("UPDATE $sql_data set option_text='$option_id[$i]', color='$color[$i]', votes='$votes[$i]' where (poll_id = '$poll_id' and option_id = '$i')"); } elseif (sizeof($option_id) > 2) { $db_connect->query("DELETE FROM $sql_data where (poll_id = '$poll_id' and option_id = '$i')"); } else { $message = "EditOp"; } } $message = "Updated"; } else { $message = "NewNoQue"; } return $message; } function poll_extend($poll_id) { global $db_connect, $sql_index, $sql_data; global $sql_config, $poll_version, $log_in, $PHP_SELF; include ("./admin/admin_options.php"); } function add_options($poll_id,$last_id) { global $db_connect, $sql_data; global $option_id,$color; for($i=$last_id; $i < $last_id+10; $i++) { $option_id["$i"] = trim($option_id["$i"]); if (!empty($option_id["$i"])) { if (!get_magic_quotes_gpc()) { $option_id["$i"] = addslashes($option_id["$i"]); } $db_connect->query("INSERT INTO $sql_data (poll_id, option_id, option_text, color, votes) VALUES('$poll_id', '$i', '$option_id[$i]','$color[$i]',0)"); $added = 1; } } return (isset($added)) ? "EditOk" : "EditNo"; } function update_settings() { global $db_connect, $sql_config; global $base_gif,$title,$img_height,$img_length,$table_width,$bgcolor_tab,$bgcolor_fr; global $font_face,$font_color,$type,$check_ip,$lock_timeout,$time_offset,$logging; global $lang, $vote_button, $total_text, $result_text, $voted, $send_com, $entry_pp; if (!eregi(".php|.php3", $lang)) { $lang = "english.php"; } if (!eregi("^[0-9]+$", $entry_pp) || $entry_pp==0) { $entry_pp = 1; } $sqlquery= "UPDATE $sql_config set base_gif='$base_gif', lang='$lang', title='$title', vote_button='$vote_button', result_text='$result_text', total_text='$total_text', voted='$voted', send_com='$send_com', img_height='$img_height', img_length='$img_length', "; $sqlquery.="table_width='$table_width', bgcolor_tab='$bgcolor_tab', bgcolor_fr='$bgcolor_fr', font_face='$font_face', "; $sqlquery.="font_color='$font_color', type='$type', check_ip='$check_ip', lock_timeout='$lock_timeout', time_offset='$time_offset', entry_pp='$entry_pp' WHERE (config_id = '1')"; $result = $db_connect->query($sqlquery); return ($result) ? "Updated" : "NoUpdate"; } function update_user($username,$userpass) { global $db_connect, $sql_user, $log_in; if ($db_connect->query("UPDATE $sql_user SET username='$username', userpass=PASSWORD('$userpass') WHERE session='$log_in'")) { return "Updated"; } else { return "NoUpdate"; } } function delete_poll($poll_id) { global $db_connect, $sql_index, $sql_data; global $sql_log, $sql_com; $db_connect->query("DELETE FROM $sql_data where (poll_id = '$poll_id')"); $db_connect->query("DELETE FROM $sql_index where (poll_id = '$poll_id')"); $db_connect->query("DELETE FROM $sql_log where (poll_id = '$poll_id')"); $db_connect->query("DELETE FROM $sql_com where (poll_id = '$poll_id')"); } function poll_settings($cat,$message) { global $db_connect, $sql_index; global $sql_data, $sql_config, $sql_log, $sql_user, $log_in, $poll_version, $PHP_SELF; if ($cat == "general") { include ("./admin/admin_settings.php"); } elseif ($cat == "password") { include ("./admin/admin_pwd.php"); } } function poll_stats($poll_id) { global $db_connect, $sql_index, $log_in; global $sql_data, $sql_log, $sql_config, $poll_version, $PHP_SELF; include ("./admin/admin_stat.php"); } function poll_comments($poll_id) { global $db_connect, $sql_index, $log_in; global $sql_config, $sql_com, $entry, $poll_version, $PHP_SELF; include ("./admin/admin_comment.php"); } function reset_log($poll_id) { global $db_connect, $sql_log; $db_connect->query("DELETE FROM $sql_log where (poll_id = '$poll_id')"); } function delete_comment($poll_id,$message_id) { global $db_connect, $sql_com; $db_connect->query("DELETE FROM $sql_com where (com_id = '$message_id')"); } function start_session($username) { global $db_connect, $sql_user; srand((double)microtime()*1000000); $session = md5 (uniqid (rand())); $db_connect->query("UPDATE $sql_user SET session='$session' WHERE username='$username'"); return $session; } function end_session($log_in) { global $db_connect, $sql_user; srand((double)microtime()*1000000); $session = md5 (uniqid (rand())); $db_connect->query("UPDATE $sql_user SET session='$session' WHERE session='$log_in'"); } function check_pass($username,$password) { global $db_connect, $sql_user; $check_result = $db_connect->query("SELECT username FROM $sql_user WHERE username='$username' and userpass=PASSWORD('$password')"); $row = $db_connect->fetch_array($check_result); return ($row) ? $row["username"] : false; } function get_session_id($log_in) { global $db_connect, $sql_user; $check_result = $db_connect->query("SELECT session FROM $sql_user WHERE session='$log_in'"); $row = $db_connect->num_rows($check_result); return ($row) ? true : false; } if (!isset($log_in)) { $log_in = ""; } if (isset($enter)) { if (!get_magic_quotes_gpc()) { $username = addslashes($username); $password = addslashes($password); } $user = check_pass($username,$password); if ($user) { $log_in = start_session($user); poll_index(); } else { enter_pass('FormWrong'); } } elseif (get_session_id($log_in)) { if (!isset($action)) { $action =''; } switch ($action) { case "new": poll_new("NewTitle"); break; case "help": $path = dirname(__file__); poll_help(); break; case "delete": if (isset($id)) { delete_poll($id); } poll_index(); break; case "stats": if (isset($id)) { poll_stats($id); } else { poll_index(); } break; case "comments": if (isset($id)) { poll_comments($id); } else { poll_index(); } break; case "remove": if (isset($id)) { delete_comment($id,$mess_id); poll_comments($id); } else { poll_index(); } break; case "reset": if (isset($id)) { reset_log($id); poll_stats($id); } else { poll_stats($id); } break; case "update": if (!get_magic_quotes_gpc() and is_array($GLOBALS)==1) { while(list($key,$val)=each($GLOBALS)) { if (is_string($val)==1) { $GLOBALS[$key]=addslashes($val); } } } $message = update_settings(); poll_settings("general",$message); break; case "update_pwd": if (!empty($NEWadmin_name)) { $username = trim($NEWadmin_name); if (!get_magic_quotes_gpc()) { $username = addslashes($username); } } if (!empty($NEWadmin_pass)) { $userpass = trim($NEWadmin_pass); if (!get_magic_quotes_gpc()) { $userpass = addslashes($userpass); } } $message = update_user($username,$userpass); poll_settings("password",$message); break; case "edit": if (isset($id)) { poll_edit($id,"EditText"); } else { poll_index(); } break; case "show": poll_index(); break; case "extend": if(isset($add)) { $message = add_options($id,$last_id); poll_edit($id,$message); } else { poll_extend($id); } break; case "save": $message = save($id); poll_edit($id,$message); break; case "create": $question = trim($question); if (!empty($question)) { create_poll(); poll_index(); } else { poll_new("EditMis"); } break; case "settings": if ($panel == "general") { poll_settings("general","SetText"); } elseif ($panel == "password") { poll_settings("password","PwdText"); } else { poll_index(); } break; case "logout": end_session($log_in); enter_pass("FormEnter"); break; case "license": poll_license(); break; default: poll_index(); break; } } else { enter_pass("FormEnter"); } ?> --- NEW FILE: booth.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $comment_page = "/poll/comments.php"; // URL to comment page // eg. http://www.yourdomain.com/poll/comments.php $include_path = dirname(__FILE__); require $include_path."/include/config.inc.php"; require $include_path."/include/$poll_db"; $ip = $REMOTE_ADDR; if (!$ip) { $ip = getenv("REMOTE_ADDR"); } $db_connect = new db_sql; $db_connect->connect($sql_hostname, $sql_username, $sql_password, $dbName); $varresult = $db_connect->query("SELECT * FROM $sql_config"); $vars = $db_connect->fetch_array($varresult); while(list($var,$value) = each($vars)) { $$var=$value; } $db_connect->free_result($varresult); $poll_version = "1.6"; $found = 0; $valid = 1; if (!isset($PHP_SELF)) { $PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"]; if (isset($HTTP_GET_VARS)) { while (list($name, $value)=each($HTTP_GET_VARS)) { $$name=$value; } } if (isset($HTTP_POST_VARS)) { while (list($name, $value)=each($HTTP_POST_VARS)) { $$name=$value; } } if(isset($HTTP_COOKIE_VARS)){ while (list($name, $value)=each($HTTP_COOKIE_VARS)){ $$name=$value; } } } function display_poll($poll_id) { global $sql_index, $sql_data, $poll_version, $PHP_SELF; global $question, $font_face, $font_color, $lock_timeout; global $vote_button, $result_text, $table_width, $bgcolor_fr, $title, $bgcolor_tab; global $db_connect; ?> <table width="<?php echo $table_width; ?>" border="0" cellspacing="0" cellpadding="1" bgcolor="<?php echo $bgcolor_fr; ?>"> <tr align="center"> <td> <style type="text/css"> <!-- .input { font-family: <?php echo $font_face; ?>; font-size: 8pt} .links { font-family: <?php echo $font_face; ?>; font-size: 7.5pt; color: <?php echo $font_color; ?>} --> </style> <font face="<?php echo $font_face; ?>" size="-1" color="#FFFFFF"><b><?php echo $title; ?></b></font></td> </tr> <tr align="center"> <td><table width="100%" border="0" cellspacing="0" cellpadding="2" align="center" bgcolor="<?php echo $bgcolor_tab; ?>"> <tr> <td height="40" valign="middle"><font face="<?php echo $font_face; ?>" color="<?php echo $font_color; ?>" size="1"><b><?php echo $question; ?></b></font></td> </tr> <tr align="right" valign="top"> <td><form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="190"> <tr valign="top" align="center"> <td><table width="100%" border="0" cellspacing="0" cellpadding="1" align="center"> <?php $data_result = $db_connect->query("SELECT * FROM $sql_data WHERE (poll_id = '$poll_id') order by option_id asc"); while ($data = $db_connect->fetch_array($data_result)) { echo " <tr> <td width=\"15%\"><input type=\"radio\" name=\"vote_for\" value=\"$data[option_id]\"></td> <td width=\"85%\"><font face=\"$font_face\" size=\"1\" color=\"$font_color\">$data[option_text]</font></td> </tr>\n"; } ?> </table> <input type="hidden" name="action" value="vote"> <input type="hidden" name="poll_id" value="<?php echo $poll_id; ?>"> <input type="submit" value="<?php echo $vote_button; ?>" class="input"> <br><br> <font face="<?php echo $font_face; ?>" color="<?php echo $font_color; ?>" size="1"><a class="links" href="<?php echo $PHP_SELF; ?>?action=results&poll_id=<?php echo "$poll_id\">$result_text"; ?></a><br><br><br></td> </tr> </table> </form> <font face="<?php echo $font_face; ?>" size="1"><a href="http://www.proxy2.de" target="_blank"><acronym title="Advanced Poll">Version <?php echo $poll_version; ?></acronym></a></font></td> </tr> </table> </td> </tr> </table> <?php } function view_results($poll_id,$vote_stat) { global $sql_index, $sql_data, $comment_page, $poll_version, $PHP_SELF; global $base_gif, $font_face, $font_color, $img_height, $img_length, $type, $total_text, $voted; global $table_width, $bgcolor_fr, $title, $bgcolor_tab, $send_com; global $db_connect; $poll_result = $db_connect->query("SELECT * FROM $sql_index WHERE (poll_id = '$poll_id')"); $row = $db_connect->fetch_array($poll_result); $question = htmlspecialchars($row['question']); ?> <table width="<?php echo $table_width; ?>" border="0" cellspacing="0" cellpadding="1" bgcolor="<?php echo $bgcolor_fr; ?>"> <tr align="center"> <td> <style type="text/css"> <!-- .input { font-family: <?php echo $font_face; ?>; font-size: 8pt} .links { font-family: <?php echo $font_face; ?>; font-size: 7.5pt; color: <?php echo $font_color; ?>} --> </style> <font face="<?php echo $font_face; ?>" size="-1" color="#FFFFFF"><b><?php echo $title; ?></b></font></td> </tr> <tr align="center"> <td><table width="100%" border="0" cellspacing="0" cellpadding="2" align="center" bgcolor="<?php echo $bgcolor_tab; ?>"> <tr valign="middle"> <td height="40"><font face="<?php echo $font_face; ?>" color="<?php echo $font_color; ?>" size="1"><b><?php echo $question; ?></b></font></td> </tr> <tr align="right" valign="bottom"> <td> <table border="0" cellspacing="0" cellpadding="1" width="100%" align="center" height="210"> <tr valign="top"> <td> <table width="100%" border="0" cellspacing="0" cellpadding="1" align="center"> <?php $i=0; $poll_total = $db_connect->query("SELECT SUM(votes) AS total FROM $sql_data WHERE (poll_id = '$poll_id')"); $poll_sum = $db_connect->fetch_array($poll_total); $db_connect->free_result($poll_total); $data_result = $db_connect->query("SELECT * FROM $sql_data WHERE (poll_id = '$poll_id') order by votes desc"); $votes_total = ($poll_sum["total"]==0) ? 1 : $poll_sum["total"]; while ($data = $db_connect->fetch_array($data_result)) { if ($i == 0) { $maxvote = ($data["votes"]==0) ? 1 : $data["votes"]; $i++; } $img_width = (int) ($data["votes"]*$img_length/$maxvote); $vote_val = ($type == "percent") ? sprintf("%.1f",($data['votes']*100/$votes_total))."%" : $data["votes"]; echo " <tr> <td height=\"22\"><font face=\"$font_face\" color=\"$font_color\" size=\"1\">$data[option_text]</font></td> <td nowrap height=\"22\"><font face=\"$font_face\" color=\"$font_color\" size=\"1\"><img src=\"$base_gif/$data[color].gif\" width=\"$img_width\" height=\"$img_height\"> $vote_val</font></td> </tr>\n"; } ?> </table> <font face="<?php echo $font_face; ?>" color="<?php echo $font_color; ?>" size="1"><br> <?php echo $total_text; ?>: <font color="#CC0000"><?php echo $poll_sum['total']; ?></font><br> <?php if($vote_stat==1) echo $voted; ?><br><br><div align="center"> <?php if($row['comments']==1) echo "<a class=\"links\" href=\"javascript:void(window.open('$comment_page?action=send&id=$poll_id','$poll_id','width=230,height=320,toolbar=no,statusbar=no'))\">$send_com"; ?></a> </div></font> </td></tr> <tr><td height="32"> </td></tr> </table> <font face="<?php echo $font_face; ?>" size="1"><a href="http://www.proxy2.de" target="_blank"><acronym title="Advanced Poll">Version <?php echo $poll_version; ?></acronym></a></font></td> </tr> </table> </td> </tr> </table> <?php } function check_poll_ip() { global $db_connect, $ip; global $poll_id, $sql_ip, $lock_timeout; $this_time = time()-$lock_timeout*3600; $db_connect->query("DELETE FROM $sql_ip WHERE (timestamp < $this_time)"); $result = $db_connect->query("SELECT * from $sql_ip WHERE (ip_addr = '$ip' and poll_id='$poll_id')"); $ips = $db_connect->fetch_array($result); return ($ips) ? 1 : 0; } function do_vote() { global $db_connect, $sql_index, $sql_data, $sql_ip, $sql_log, $check_ip, $logging, $poll_id, $vote_for; global $ip, $HTTP_USER_AGENT; $poll_result = $db_connect->query("UPDATE $sql_data SET votes=votes+1 WHERE (poll_id='$poll_id') AND (option_id='$vote_for')"); $log_result = $db_connect->query("SELECT logging as logging FROM $sql_index WHERE (poll_id = '$poll_id')"); $row = $db_connect->fetch_array($log_result); $this_time = time(); if ($check_ip >= 2) { $db_connect->query("INSERT INTO $sql_ip (poll_id,ip_addr,timestamp) VALUES ('$poll_id','$ip','$this_time')"); } if ($row['logging'] == 1) { $host = @gethostbyaddr($ip); $agent = $HTTP_USER_AGENT; if (!$agent) { $agent = @getenv("HTTP_USER_AGENT"); } $db_connect->query("INSERT INTO $sql_log (poll_id,option_id,timestamp,ip_addr,host,agent) VALUES ('$poll_id','$vote_for','$this_time','$ip','$host','$agent')"); } } if (isset($random_poll)) { if (!isset($poll_id)) { $results = $db_connect->query("select poll_id from $sql_index where (status = '1')"); while ($pollrow = $db_connect->fetch_array($results)) { $poll_ids[] = $pollrow["poll_id"]; } if (!isset($poll_ids)) { echo "<b>No active polls available!</b>"; exit(); } $available = sizeof($poll_ids)-1; if ($available >0) { srand((double) microtime() * 1000000); $random_poll = rand(0,$available); } else { $random_poll=0; } $poll_id = $poll_ids[$random_poll]; } } elseif (isset($newest_poll)) { if (!isset($poll_id)) { $results = $db_connect->query("select poll_id from $sql_index where (status < '2') order by timestamp desc limit 1"); $pollrow = $db_connect->fetch_array($results); if (!$pollrow) { echo "<b>No active polls available!</b>"; exit(); } $poll_id = $pollrow['poll_id']; } } elseif (!isset($poll_id)) { echo "<b>Poll ID is not set!</b>"; exit(); } $poll_result = $db_connect->query("SELECT * FROM $sql_index WHERE (poll_id = '$poll_id' and status < '2')"); $row = $db_connect->fetch_array($poll_result); if (!$row) { echo "<b>Poll ID ".$poll_id." does not exist!</b>"; exit(); } if ($row["status"] == 0) { $valid = 0; } elseif ($row["expire"] == 1) { if ($row["exp_time"]<time()) { $valid = 0; } } $question = htmlspecialchars($row['question']); $pollcookie = "AdvancedPoll".$poll_id; if (!isset($action)) { $action = ''; } switch ($action) { case "results": view_results($poll_id,0); break; case "vote": if ($valid == 0) { view_results($poll_id,0); break; } elseif (isset($vote_for)) { if(isset($$pollcookie)) { $found=1; } if ($check_ip == 2) { $found_ip = check_poll_ip(); $found = ($found==0) ? $found_ip : 1; } if ($found==0) { do_vote(); } } view_results($poll_id,$found); break; default: if ($valid == 0) { view_results($poll_id,0); break; } if(isset($$pollcookie)) { $found=1; } if ($check_ip == 2) { $found_ip = check_poll_ip(); $found = ($found==0) ? $found_ip : 1; } if ($found==1) { view_results($poll_id,1); break; } display_poll($poll_id); break; } ?> --- NEW FILE: comments.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $include_path = dirname(__FILE__); require $include_path."/include/config.inc.php"; require $include_path."/include/$poll_db"; if (!isset($PHP_SELF)) { $PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"]; if (isset($HTTP_GET_VARS)) { while (list($name, $value)=each($HTTP_GET_VARS)) { $$name=$value; } } if (isset($HTTP_POST_VARS)) { while (list($name, $value)=each($HTTP_POST_VARS)) { $$name=$value; } } } function show_form($poll_id) { global $question, $PHP_SELF; ?> <table border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#006699"> <tr align="center"> <td> <style type="text/css"> <!-- .button { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt} .textarea { font-family: "MS Sans Serif"; font-size: 9pt; width: 195px} .input { width: 195px} --> </style><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Send Your Comment</b></font></td> </tr> <tr> <td> <table border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" width="200"> <tr> <td width="149"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF" align="center"> <tr> <td class="td1" height="40"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><?php echo $question; ?></font></b></td> </tr> <tr> <td class="td1"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Name:</font><br> <input type="text" name="name" maxlength="25" class="input" size="23"> </td> </tr> <tr> <td class="td1"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">e-mail:</font><br> <input type="text" name="email" size="23" maxlength="50" class="input"> </td> </tr> <tr> <td class="td1"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Comment(*):</font><br> <font face="MS Sans Serif" size="1"> <textarea name="message" cols="19" wrap="VIRTUAL" rows="6" class="textarea"></textarea> </font> </td> </tr> <tr valign="top"> <td> <input type="submit" value="Submit" class="button"> <input type="reset" value="Reset" class="button"> <input type="hidden" name="action" value="add"> <input type="hidden" name="id" value="<?php echo $poll_id; ?>"> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <?php } function format_string($strg) { if (!get_magic_quotes_gpc()) { $strg = addslashes($strg); } $strg = trim($strg); $strg = htmlspecialchars($strg); return $strg; } function add_comment($poll_id) { global $sql_hostname, $sql_username, $sql_password, $dbName; global $sql_com, $name, $email, $message; global $REMOTE_ADDR, $HTTP_USER_AGENT; $name = format_string($name); if (!$name) { $name = "anonymous"; } $email = trim($email); if (!eregi("^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\\.)+[a-z]{2,4}$", $email) ) { $email = ''; } $this_time = time(); $ip = $REMOTE_ADDR; if (!$ip) { $ip = getenv("REMOTE_ADDR"); } $host = @gethostbyaddr($ip); $agent = $HTTP_USER_AGENT; if (!$agent) { $agent = @getenv("HTTP_USER_AGENT"); } $db_connect = new db_sql; $db_connect->connect($sql_hostname, $sql_username, $sql_password, $dbName); $sql_result = $db_connect->query("INSERT INTO $sql_com (poll_id,time,host,browser,name,email,message) VALUES ('$poll_id','$this_time','$host','$agent','$name','$email','$message')"); return ($sql_result) ? true : false; } function check_poll_id($poll_id) { global $sql_hostname, $sql_username, $sql_password, $dbName; global $sql_index; $db_connect = new db_sql; $db_connect->connect($sql_hostname, $sql_username, $sql_password, $dbName); $results = $db_connect->query("SELECT * FROM $sql_index WHERE (poll_id = '$poll_id' and status < '2')"); $row = $db_connect->fetch_array($results); if (!$row) { return false; } else { if ($row["comments"]==0) { return false; } else { $question = htmlspecialchars($row['question']); return $question; } } } function print_message($strg,$autoclose) { if ($autoclose==1) { echo "<script language=\"JavaScript\"> setTimeout(\"closeWin()\",2000); function closeWin() { self.close(); } </script>"; } echo "<center><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><b>$strg</b></font></center>"; } if (!isset($action)) { $action = ''; } switch ($action) { case "send": if (!isset($id)) { echo "<b>Poll ID is not set!</b>"; break; } else { $question = check_poll_id($id); if (!$question) { echo "<b>Poll ID ".$id." does not exist or is disabled!</b>"; break; } else { show_form($id); break; } } break; case "add": $message = format_string($message); if (!isset($id)) { echo "<b>Poll ID is not set!</b>"; break; } elseif (empty($message)) { print_message("You forgot to fill in the message field!<br><a href=\"javascript:history.go(-1)\">Go back</a>",0); break; } else { $question = check_poll_id($id); if (!$question) { echo "<b>Poll ID ".$id." does not exist or is disabled!</b>"; break; } else { if (add_comment($id)) { print_message("Your message has been sent!",1); } else { print_message("Error occured!<br><a href=\"javascript:history.go(-1)\">Go back</a>",0); } } } break; default: echo "<b>No valid command!</b>"; break; } ?> --- NEW FILE: content.shtml --- <p class="bigh1">Devil-Linux Polls</p> <!--#include virtual="../polls/results.php" --> --- NEW FILE: head.shtml --- <title>Devil-Linux Polls</title> --- NEW FILE: index.shtml --- <!--#set var="SECTION" value="polls" --><!--#include virtual="../index.shtml" --> --- NEW FILE: install.php --- <?php /////////////////////////////////////////////////// // Advanced Poll 1.6 (PHP/MySQL) // // Copyright (c)2001 Chi Kien Uong // // URL: http://www.proxy2.de // /////////////////////////////////////////////////// $version = "v1.6"; if (!isset($PHP_SELF)) { $PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"]; if (isset($HTTP_GET_VARS)) { while (list($name, $value)=each($HTTP_GET_VARS)) { $$name=$value; } } if (isset($HTTP_POST_VARS)) { while (list($name, $value)=each($HTTP_POST_VARS)) { $$name=$value; } } } if (!file_exists("./install/cross.gif")) { $img_loc="http://www.proxy2.de/poll/install"; } else { $img_loc="install"; } if (file_exists("./include/config.inc.php")) { include ("./include/config.inc.php"); } else { abort("Cannot find configuration file <u>config.inc.php</u>."); } function print_header($refresh,$stp) { global $PHP_SELF, $version, $img_loc; ?> <html> <head> <title>Advanced Poll <?php echo $version; ?> Installation</title> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="-1"> <?php if ($refresh != -1) { ?> <meta http-equiv="refresh" content="<?php echo "$refresh;URL=$PHP_SELF?action=$stp"; ?>"> <?php } ?> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 9pt} .textarea { font-family: "MS Sans Serif"; width: 450px; background-color: #C6C3C6; height: 140px; clip: rect( ); font-size: 9pt} --> </style> <script language="Javascript"> <!-- function abort() { if (window.confirm("Do you wish to cancel the installation?")) { window.location.href = "http://"+window.location.host+window.location.pathname+"?action=cancel" } } function go_back() { history.go(-1); } function trim(value) { startpos=0; while((value.charAt(startpos)==" ")&&(startpos<value.length)) { startpos++; } if(startpos==value.length) { value=""; } else { value=value.substring(startpos,value.length); endpos=(value.length)-1; while(value.charAt(endpos)==" ") { endpos--; } value=value.substring(0,endpos+1); } return(value); } function check_data() { document.FormPwd.username.value = trim(document.FormPwd.username.value); document.FormPwd.password.value = trim(document.FormPwd.password.value); if (document.FormPwd.username.value == "") { alert("You forgot to fill in the username field!"); document.FormPwd.username.focus(); return false; } else if (document.FormPwd.password.value == "") { alert("You forgot to fill in the password field!"); document.FormPwd.password.focus(); return false; } else if (document.FormPwd.password.value != document.FormPwd.confirm.value) { alert("The passwords do not match!"); return false; } } function set_focus() { document.FormPwd.username.focus(); } // --> </script> </head> <?php } function welcome() { global $PHP_SELF, $version, $img_loc; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Installation</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF"> <td class="td1" height="60"> <table border="0" cellspacing="0" cellpadding="0" width="500"> <tr> <td width="190"><img src="<?php echo $img_loc; ?>/install.gif" width="164" height="300" alt="Installation"></td> <td width="310" valign="top" class="td1"><br> <b><br> Welcome to the Installation Wizard for <br>Advanced Poll <?php echo $version; ?></b><br> <br> <br> <br> Press 'Next' button to begin the installation.</td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6" align="right"> <td><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><img src="<?php echo $img_loc; ?>/next.gif" width="75" height="22" usemap="#Next" border="0" alt="Next"><map name="Next"><area shape="rect" coords="1,1,74,21" href="<?php echo $PHP_SELF; ?>?action=step_1"></map> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,2,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function license() { global $PHP_SELF, $version, $img_loc; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Installation</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"><b> End-User Software License Agreement</b></td> </tr> <tr bgcolor="#FFFFFF" valign="top"> <td class="td1" height="30"> Please read the following agreement carefully.</td> </tr> <tr bgcolor="#C6C3C6"> <td align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="40">Press the PAGE DOWN to see the rest of the agreement</td> </tr> <tr> <td> <font face="MS sans serif" size="1"> <textarea name="textfield" cols="48" rows="10" wrap="VIRTUAL" class="textarea"> You should carefully read the following terms and conditions before using this software. Your use of this software indicates your acceptance of this license agreement. If you do not agree to all the terms of this agreement, do not use this software. 1. This script may be used and modified free of charge for personal, academic and non-profit use. Commercial use must register the script for a one time fee of $10 US or 10 EUR. --> http://www.proxy2.de/register Registered users receive support, free upgrades and also do not have to display the text link. 2. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice. Keep intact all the notices that refer to this License and give any other recipients of the Program a copy of this License along with the Program. 3. Selling the code for this program, or a program derived from Advanced Poll, without prior written consent is expressly forbidden. THIS SOFTWARE AND THE ACCOMPANYING FILES ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHOR DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS, OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS DISCOVERED IN THE SOFTWARE WILL BE CORRECTED. FURTHERMORE, THE AUTHOR DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OR THE RESULTS OF THE USE OF THE SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE. YOU ASSUME ALL RISKS IN USING THE SOFTWARE. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY THE AUTHOR OR ANY OF THEIR AUTHORIZED REPRESENTATIVES SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF THIS WARRANTY. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES. </textarea></font> </td> </tr> <tr> <td class="td1" height="50">Do you accept all the terms of the preceding Lisence Agrement? If you choose NO, the setup will close. To install Advanced Poll <?php echo $version; ?>, you must accept this agreement. </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6" align="right"> <td> <img src="<?php echo $img_loc; ?>/back.gif" width="75" height="22" usemap="#Back" border="0" alt="Back"><map name="Back"><area shape="rect" coords="1,2,73,20" href="javascript:go_back()"></map><img src="<?php echo $img_loc; ?>/yes.gif" width="75" height="22" usemap="#Yes" border="0" alt="Yes"><map name="Yes"><area shape="rect" coords="2,2,73,20" href="<?php echo $PHP_SELF; ?>?action=step_2"></map> <img src="<?php echo $img_loc; ?>/no.gif" width="75" height="22" usemap="#No" border="0" alt="No"><map name="No"><area shape="rect" coords="1,3,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function install_process($msg,$stat,$stp) { global $PHP_SELF, $version, $img_loc; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Installation</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Installation Process</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> <?php echo $msg; ?>.</td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75">Please wait while the Installation Wizard creates the tables needed to install Advanced Poll on your server. This may take a few moments.</td> </tr> <tr> <td height="140" class="td1"> Please wait... <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td><img src="<?php echo $img_loc; ?>/status.gif" width="<?php echo $stat; ?>" height="16"></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><img src="<?php echo $img_loc; ?>/next.gif" width="75" height="22" border="0" usemap="#Next" alt="Next"><map name="Next"><area shape="rect" coords="1,1,73,20" href="<?php echo "$PHP_SELF?action=$stp"; ?>"></map> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function create_account() { global $PHP_SELF, $version, $img_loc; ?> <body bgcolor="#009999" onload="set_focus()"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Installation</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>" name="FormPwd" onsubmit="return check_data()"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Installation Process</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> All tables were created successfully!</td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" valign="top" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75">To complete the installation enter a username and password.</td> </tr> <tr> <td height="140" class="td1"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td width="18%" class="td1">Username:</td> <td width="82%"> <input type="text" name="username" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Password:</td> <td width="82%"> <input type="password" name="password" size="25"> </td> </tr> <tr> <td width="18%" class="td1">Confirm:</td> <td width="82%"> <input type="password" name="confirm" size="25"> <input type="hidden" name="action" value="step_6"> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><input type="image" src="install/next.gif" width="75" height="22" border="0" alt="Next"> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function abort($msg) { global $version, $img_loc; ?> <html> <head> <title>Advanced Poll <?php echo $version; ?></title> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .td1 { font-family: "MS Sans Serif"; font-size: 9pt} --> </style> </head> <body bgcolor="#009999"> <br><br><br><br><br><br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="300"> <tr bgcolor="#C6C3C6"> <td> <table width="300" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?></font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0"> </td> </tr> <tr align="center"> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#C6C3C6"> <td align="center" height="75" width="20%"><img src="<?php echo $img_loc; ?>/info.gif" width="35" height="35"></td> <td align="left" height="75" width="80%" class="td1"><?php echo $msg; ?></td> </tr> <tr bgcolor="#C6C3C6" align="center"> <td colspan="2" height="40"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"> <img src="<?php echo $img_loc; ?>/ok.gif" width="75" height="22" border="0" alt="Ok"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php exit(); } function sql_error() { $description = mysql_error(); $number = mysql_errno(); $error ="MySQL Error : $description\n"; $error.="Error Number: $number\n"; $error.="Date : ".date("D, F j, Y H:i:s")."\n"; $error.="IP : ".getenv("REMOTE_ADDR")."\n"; $error.="Browser : ".getenv("HTTP_USER_AGENT")."\n"; echo "<b><font size=4 face=Arial>$description</font></b><hr>"; echo "<pre>$error</pre>"; exit(); } function error_msg($strg) { global $PHP_SELF, $version, $img_loc; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Installation</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0" usemap="#close"><map name="close"><area shape="rect" coords="1,1,14,12" href="javascript:abort()"></map> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF"> <td class="td1" height="60"> <table border="0" cellspacing="0" cellpadding="0" width="500"> <tr> <td width="190"><img src="<?php echo $img_loc; ?>/install.gif" width="164" height="300"></td> <td width="310" valign="top" class="td1"><br> <b><br> Welcome to the Installation Wizard for <br>Advanced Poll <?php echo $version; ?></b><br> <br> <br> <br> <font color="#FF0000"><?php echo $strg; ?></font> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><img src="<?php echo $img_loc; ?>/next.gif" width="75" height="22" border="0" usemap="#Next" alt="Back"><map name="Next"><area shape="rect" coords="1,1,73,20" href="<?php echo $PHP_SELF; ?>"></map> <img src="<?php echo $img_loc; ?>/cancel.gif" width="75" height="22" usemap="#Cancel" border="0" alt="Cancel"><map name="Cancel"><area shape="rect" coords="1,1,73,20" href="javascript:abort()"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } function inst_complete() { global $version, $img_loc; ?> <body bgcolor="#009999"> <br> <br> <table border="1" cellspacing="0" cellpadding="0" align="center" width="500"> <tr bgcolor="#C6C3C6"> <td> <table width="500" border="0" cellspacing="0" cellpadding="1" align="center"> <tr bgcolor="#400080"> <td height="20" class="td1" bgcolor="#000084"><b><font color="#FFFFFF"> Advanced Poll <?php echo $version; ?> Installation</font></b></td> <td height="20" class="td1" align="right" bgcolor="#000084"><img src="<?php echo $img_loc; ?>/cross.gif" width="16" height="14" border="0"> </td> </tr> <tr align="center"> <td colspan="2"> <form method="post" action="<?php echo $PHP_SELF; ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr bgcolor="#FFFFFF" valign="bottom"> <td class="td1" height="30"><b> Installation Process</b></td> </tr> <tr bgcolor="#FFFFFF"> <td class="td1" height="30"> Advanced Poll has been installed successfully.</td> </tr> <tr bgcolor="#C6C3C6"> <td class="td1" align="center"> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="td1" height="75">Thank you for using Advanced Poll.<br> If you installed Advanced Poll for the first time, do not forget to read the license.</td> </tr> <tr> <td height="140" class="td1"> Installation complete... <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td><img src="<?php echo $img_loc; ?>/status.gif" width="395" height="16"></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="center" height="20"> <img src="<?php echo $img_loc; ?>/h_line.gif" height="18" width="490"> </td> </tr> <tr bgcolor="#C6C3C6"> <td align="right"><img src="<?php echo $img_loc; ?>/disabled.gif" width="75" height="22" border="0" alt="Back"><img src="<?php echo $img_loc; ?>/done.gif" width="75" height="22" border="0" usemap="#Next" alt="Done"><map name="Next"><area shape="rect" coords="1,1,73,20" href="list.php"></map> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <br> <br> </body> </html> <?php } if (!isset($action)) { $action =''; } switch ($action) { case "step_1": print_header(200,"step_2"); license(); break; case "step_2": print_header(2,"step_3"); install_process("Connecting to $sql_hostname.",1,"step_3"); break; case "step_3": $tbl[0] = "CREATE TABLE $sql_config ( config_id smallint(5) unsigned NOT NULL auto_increment, base_gif varchar(60) NOT NULL, lang varchar(20) NOT NULL, title varchar(60) NOT NULL, vote_button varchar(30) NOT NULL, result_text varchar(40) NOT NULL, total_text varchar(40) NOT NULL, voted varchar(40) NOT NULL, send_com varchar(40) NOT NULL, img_height int(5) DEFAULT '0' NOT NULL, img_length int(5) DEFAULT '0' NOT NULL, table_width varchar(6) NOT NULL, bgcolor_tab varchar(7) NOT NULL, bgcolor_fr varchar(7) NOT NULL, font_face varchar(70) NOT NULL, font_color varchar(7) NOT NULL, type varchar(10) DEFAULT '0' NOT NULL, check_ip smallint(2) DEFAULT '0' NOT NULL, lock_timeout int(9) DEFAULT '0' NOT NULL, time_offset varchar(5) DEFAULT '0' NOT NULL, entry_pp int(4) unsigned DEFAULT '0' NOT NULL, PRIMARY KEY (config_id) )"; $tbl[1] = "CREATE TABLE $sql_data ( id int(11) NOT NULL auto_increment, poll_id int(11) DEFAULT '0' NOT NULL, option_id int(11) DEFAULT '0' NOT NULL, option_text varchar(100) NOT NULL, color varchar(20) NOT NULL, votes int(14) DEFAULT '0' NOT NULL, PRIMARY KEY (poll_id, option_id), KEY id (id) )"; $tbl[2] = "CREATE TABLE $sql_index ( poll_id int(11) unsigned NOT NULL auto_increment, question varchar(100) NOT NULL, timestamp int(11) DEFAULT '0' NOT NULL, status smallint(2) DEFAULT '0' NOT NULL, logging smallint(2) DEFAULT '0' NOT NULL, exp_time int(11) DEFAULT '0' NOT NULL, expire smallint(2) DEFAULT '0' NOT NULL, comments smallint(2) DEFAULT '0' NOT NULL, PRIMARY KEY (poll_id) )"; $tbl[3] = "CREATE TABLE $sql_ip ( ip_id int(11) NOT NULL auto_increment, poll_id int(11) DEFAULT '0' NOT NULL, ip_addr varchar(15) NOT NULL, timestamp int(11) DEFAULT '0' NOT NULL, PRIMARY KEY (ip_id) )"; $tbl[4] = "CREATE TABLE $sql_log ( log_id int(11) unsigned NOT NULL auto_increment, poll_id int(11) DEFAULT '0' NOT NULL, option_id int(11) DEFAULT '0' NOT NULL, timestamp int(11) DEFAULT '0' NOT NULL, ip_addr varchar(15) NOT NULL, host varchar(70) NOT NULL, agent varchar(80) DEFAULT '0' NOT NULL, PRIMARY KEY (log_id) )"; $tbl[5] = "CREATE TABLE $sql_user ( user_id smallint(5) NOT NULL auto_increment, username varchar(30) NOT NULL, userpass varchar(30) NOT NULL, session varchar(32) NOT NULL, PRIMARY KEY (user_id) )"; $tbl[6] ... [truncated message content] |
Update of /cvsroot/devil-linux/web/polls/image In directory sc8-pr-cvs1:/tmp/cvs-serv15591/polls/image Added Files: active.gif aqua.gif back.gif blank.gif blue.gif brown.gif co_dis.gif cross.gif darkgreen.gif email.gif expired.gif folder.gif gold.gif green.gif grey.gif h_line.gif help.gif hidden.gif host.gif howto.gif index.gif ip.gif key.gif lock.gif log.gif log_off.gif logout.gif max.gif min.gif msie.gif netscape.gif new.gif next.gif opera.gif orange.gif password.gif pink.gif point2.gif post.gif purple.gif red.gif reply.gif settings.gif top_line.gif unknown.gif v_line.gif yellow.gif Log Message: added polls --- NEW FILE: active.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: aqua.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: back.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: blank.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: blue.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: brown.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: co_dis.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cross.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: darkgreen.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: email.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: expired.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: folder.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: gold.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: green.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: grey.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: h_line.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: help.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: hidden.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: host.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: howto.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: index.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ip.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: key.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lock.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: log.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: log_off.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: logout.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: max.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: min.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: msie.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: netscape.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: new.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: next.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: opera.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: orange.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: password.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: pink.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: point2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: post.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: purple.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: red.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: reply.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: settings.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: top_line.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: unknown.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: v_line.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: yellow.gif --- (This appears to be a binary file; contents omitted.) |
From: <smi...@us...> - 2004-01-02 17:32:30
|
Update of /cvsroot/devil-linux/web/polls/install In directory sc8-pr-cvs1:/tmp/cvs-serv15591/polls/install Added Files: back.gif cancel.gif cross.gif disabled.gif done.gif h_line.gif help.gif info.gif install.gif max.gif min.gif next.gif no.gif ok.gif status.gif yes.gif Log Message: added polls --- NEW FILE: back.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cancel.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cross.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: disabled.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: done.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: h_line.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: help.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: info.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: install.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: max.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: min.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: next.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: no.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ok.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: status.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: yes.gif --- (This appears to be a binary file; contents omitted.) |
From: <smi...@us...> - 2004-01-02 17:32:30
|
Update of /cvsroot/devil-linux/web/polls/include In directory sc8-pr-cvs1:/tmp/cvs-serv15591/polls/include Added Files: config.inc.php mysql.inc.php Log Message: added polls --- NEW FILE: config.inc.php --- <?php $dbName = "devillinux"; // database name $sql_hostname = "mysql.sourceforge.net"; // mysql hostname $sql_username = "devillinux"; // your username $sql_password = "fuckingasshole"; // your password $poll_db = "mysql.inc.php"; // tables $sql_index = "poll_index"; $sql_data = "poll_data"; $sql_config = "poll_config"; $sql_ip = "poll_ip"; $sql_log = "poll_log"; $sql_user = "poll_user"; $sql_com = "poll_comment"; ?> --- NEW FILE: mysql.inc.php --- <?php class db_sql { var $conn_id, $result, $record; function connect ($host,$user,$pwd,$dbname) { $this->conn_id = mysql_pconnect($host,$user,$pwd); if ($this->conn_id == 0) { $this->sql_error("Connection Error"); } if (!mysql_select_db($dbname, $this->conn_id)) { $this->sql_error("Select DB Error"); } return $this->conn_id; } function query($query_string) { $this->result = mysql_query($query_string,$this->conn_id); if (!$this->result) { $this->sql_error("Query Error"); } return $this->result; } function fetch_array($query_id) { $this->record = mysql_fetch_array($query_id,MYSQL_ASSOC); return $this->record; } function num_rows($query_id) { return mysql_num_rows($query_id); } function free_result($query_id) { return mysql_free_result($query_id); } function sql_error($message) { global $admin_mail,$sql_hostname; $description = mysql_error(); $number = mysql_errno(); $error ="MySQL Error : $message\n"; $error.="Error Number: $number $description\n"; $error.="Date : ".date("D, F j, Y H:i:s")."\n"; $error.="IP : ".getenv("REMOTE_ADDR")."\n"; $error.="Browser : ".getenv("HTTP_USER_AGENT")."\n"; $error.="Referer : ".getenv("HTTP_REFERER")."\n"; echo "<b><font size=4 face=Arial>$message</font></b><hr>"; echo "<pre>$error</pre>"; exit(); } } ?> |
From: <smi...@us...> - 2004-01-02 17:32:29
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv15591 Modified Files: menu.shtml Log Message: added polls Index: menu.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/menu.shtml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- menu.shtml 2 Jan 2004 17:29:05 -0000 1.18 +++ menu.shtml 2 Jan 2004 17:32:26 -0000 1.19 @@ -9,6 +9,7 @@ <!--#if expr="${SECTION} = /^donations/" --> <!--#if expr="${SUBMENU}" --><!--#include virtual="${SUBMENU}" --><!--#endif --><!--#endif --> <p class="menu"><!--#if expr="${SECTION} != screenshots" --><a href="/screenshots/"><!--#endif -->Screenshots<!--#if expr="${SECTION} != screenshots" --></a><!--#endif --></p> +<p class="menu"><!--#if expr="${SECTION} != polls" --><a href="/polls/"><!--#endif -->Polls<!--#if expr="${SECTION} != polls" --></a><!--#endif --></p> <hr style="height: 2px; width: 88px; margin-left: 0px; margin-right: auto;"> <p><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=34096&type=1" |
From: <smi...@us...> - 2004-01-02 17:31:10
|
Update of /cvsroot/devil-linux/web/polls/install In directory sc8-pr-cvs1:/tmp/cvs-serv15356/polls/install Log Message: Directory /cvsroot/devil-linux/web/polls/install added to the repository |
From: <smi...@us...> - 2004-01-02 17:31:10
|
Update of /cvsroot/devil-linux/web/polls/include In directory sc8-pr-cvs1:/tmp/cvs-serv15356/polls/include Log Message: Directory /cvsroot/devil-linux/web/polls/include added to the repository |
From: <smi...@us...> - 2004-01-02 17:31:10
|
Update of /cvsroot/devil-linux/web/polls/image In directory sc8-pr-cvs1:/tmp/cvs-serv15356/polls/image Log Message: Directory /cvsroot/devil-linux/web/polls/image added to the repository |
From: <smi...@us...> - 2004-01-02 17:31:08
|
Update of /cvsroot/devil-linux/web/polls/lang In directory sc8-pr-cvs1:/tmp/cvs-serv15356/polls/lang Log Message: Directory /cvsroot/devil-linux/web/polls/lang added to the repository |
From: <smi...@us...> - 2004-01-02 17:31:08
|
Update of /cvsroot/devil-linux/web/polls/admin In directory sc8-pr-cvs1:/tmp/cvs-serv15356/polls/admin Log Message: Directory /cvsroot/devil-linux/web/polls/admin added to the repository |
From: <smi...@us...> - 2004-01-02 17:31:08
|
Update of /cvsroot/devil-linux/web/polls/misc In directory sc8-pr-cvs1:/tmp/cvs-serv15356/polls/misc Log Message: Directory /cvsroot/devil-linux/web/polls/misc added to the repository |