[llvm-commits] CVS: llvm-www/poll/inc/config.dat.php config_target_blank.dat.php core.inc.php form_fields.class.inc.php functions.inc.php template.class.inc.php voting.class.inc.php
Reid Spencer
reid at x10sys.com
Wed Nov 29 11:29:24 PST 2006
Changes in directory llvm-www/poll/inc:
config.dat.php added (r1.1)
config_target_blank.dat.php added (r1.1)
core.inc.php added (r1.1)
form_fields.class.inc.php added (r1.1)
functions.inc.php added (r1.1)
template.class.inc.php added (r1.1)
voting.class.inc.php added (r1.1)
---
Log message:
LLVM Conference Poll.
---
Diffs of the changes: (+5262 -0)
config.dat.php | 1703 ++++++++++++++++++++++++++++++++++++++++++
config_target_blank.dat.php | 1759 ++++++++++++++++++++++++++++++++++++++++++++
core.inc.php | 695 +++++++++++++++++
form_fields.class.inc.php | 273 ++++++
functions.inc.php | 251 ++++++
template.class.inc.php | 308 +++++++
voting.class.inc.php | 273 ++++++
7 files changed, 5262 insertions(+)
Index: llvm-www/poll/inc/config.dat.php
diff -c /dev/null llvm-www/poll/inc/config.dat.php:1.1
*** /dev/null Wed Nov 29 13:29:17 2006
--- llvm-www/poll/inc/config.dat.php Wed Nov 29 13:29:07 2006
***************
*** 0 ****
--- 1,1703 ----
+ <?php exit(); ?>
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 01001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10101100
+ 00011100
+ 00000100
+ 00101100
+ 10011100
+ 00000100
+ 00101100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 01001100
+ 00001100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10101100
+ 00011100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 00011100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11101100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 00011100
+ 00001100
+ 00000100
+ 11101100
+ 10101100
+ 00000100
+ 00011100
+ 01101100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
\ No newline at end of file
Index: llvm-www/poll/inc/config_target_blank.dat.php
diff -c /dev/null llvm-www/poll/inc/config_target_blank.dat.php:1.1
*** /dev/null Wed Nov 29 13:29:24 2006
--- llvm-www/poll/inc/config_target_blank.dat.php Wed Nov 29 13:29:07 2006
***************
*** 0 ****
--- 1,1759 ----
+ <?php exit(); ?>
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 01001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10101100
+ 00011100
+ 00000100
+ 00101100
+ 10011100
+ 00000100
+ 00101100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 01001100
+ 00001100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10101100
+ 00011100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 00011100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11101100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 00011100
+ 00001100
+ 00000100
+ 11101100
+ 10101100
+ 00000100
+ 00011100
+ 01101100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 11001100
+ 01001100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 10011100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 01101100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10011100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 00001100
+ 00000100
+ 10001100
+ 01001100
+ 10001100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 00001100
+ 11001100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10011100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 01101100
+ 00001100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 10001100
+ 00001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10011100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 11001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 11001100
+ 00101100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 00101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10011100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10011100
+ 11001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 00101100
+ 01101100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10011100
+ 11101100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 10001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 11001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 00101100
+ 10101100
+ 00000100
+ 01101100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 01001100
+ 00000100
+ 10001100
+ 10001100
+ 00101100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 10001100
+ 00001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10011100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 01001100
+ 00000100
+ 10001100
+ 00001100
+ 10101100
+ 00000100
+ 10001100
+ 00001100
+ 00011100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 00101100
+ 00001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 10001100
+ 10001100
+ 00011100
+ 00000100
+ 10001100
+ 10001100
+ 10001100
+ 00000100
+ 10001100
+ 10001100
+ 01101100
+ 00000100
+ 10001100
+ 00001100
+ 10001100
+ 00000100
+ 11001100
+ 10011100
+ 00000100
+ 00101100
+ 10001100
+ 00000100
+ 10101100
+ 10011100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
+ 00101100
+ 11101100
+ 00000100
\ No newline at end of file
Index: llvm-www/poll/inc/core.inc.php
diff -c /dev/null llvm-www/poll/inc/core.inc.php:1.1
*** /dev/null Wed Nov 29 13:29:24 2006
--- llvm-www/poll/inc/core.inc.php Wed Nov 29 13:29:07 2006
***************
*** 0 ****
--- 1,695 ----
+ <?php
+
+ $runtime_start = explode (' ', microtime ());
+
+ /*****************************************************
+ ** Title........:
+ ** Filename.....: core.inc.php
+ ** Author.......: Ralf Stadtaus
+ ** Homepage.....: http://www.stadtaus.com/
+ ** Contact......: http://www.stadtaus.com/forum/
+ ** Notes........:
+ *****************************************************/
+
+ /*****************************************************
+ **
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
+ ** OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+ ** LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ ** FITNESS FOR A PARTICULAR PURPOSE AND
+ ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
+ ** OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+ ** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ ** OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ ** OTHER DEALINGS IN THE SOFTWARE.
+ **
+ *****************************************************/
+
+
+
+
+ /*****************************************************
+ ** Prevent direct call
+ *****************************************************/
+ if (!defined('IN_SCRIPT')) {
+ die();
+ }
+
+
+
+
+
+ /*****************************************************
+ ** Take care of older PHP-Versions
+ *****************************************************/
+ if (isset($HTTP_GET_VARS) and !empty($HTTP_GET_VARS)) {
+ $_GET = $HTTP_GET_VARS;
+ }
+
+
+ if (isset($HTTP_POST_VARS) and !empty($HTTP_POST_VARS)) {
+ $_POST = $HTTP_POST_VARS;
+ }
+
+
+ if (isset($HTTP_SERVER_VARS) and !empty($HTTP_SERVER_VARS)) {
+ $_SERVER = $HTTP_SERVER_VARS;
+ }
+
+
+ if (isset($HTTP_COOKIE_VARS) and !empty($HTTP_COOKIE_VARS)) {
+ $_COOKIE = $HTTP_COOKIE_VARS;
+ }
+
+
+
+
+ /*****************************************************
+ ** Some settings
+ *****************************************************/
+ $script_version = '1.8';
+
+ $time_range = '1440'; // Minutes (60 minutes * 24 hours = 1440 minutes)
+ $number_decimals = '2';
+ $hide_results = false; // true, false
+ $sort_results = 0; // 0 = off
+ // 1 = alphabetically ascending
+ // 2 = alphabetically descending
+ // 3 = result numbers ascending
+ // 4 = result numbers descending
+ $debug_mode = 'off';
+
+ $tplt = 'vote';
+ $allowed_forms = 'radio, select, radio_image';
+ $script_self = $_SERVER['PHP_SELF'];
+
+
+
+
+ /*****************************************************
+ ** Form field templates
+ *****************************************************/
+ $form_field_templates = array(
+ 'radio' => '<input type="radio" value="{value}" {selected} {attributes} /> <span onclick="document.vote.{field_name}[{key}].checked=true;" style="cursor:default;">{label}</span><br />' . "\n",
+ 'radio_image' => '<input type="radio" value="{value}" {selected} {attributes} /> <span onclick="document.vote.{field_name}[{key}].checked=true;" style="cursor:default;"><img src="{label}" alt="" border="0" align="middle" vspace="3" /></span><br />' . "\n",
+ 'select' => '<select {attributes}></select>',
+ 'option' => '<option value="{value}" {selected}>{value}</option>' . "\n"
+ );
+
+
+
+
+ /*****************************************************
+ ** Include functions
+ *****************************************************/
+ include($script_root . 'inc/functions.inc.php');
+ include($script_root . 'inc/template.class.inc.php');
+ include($script_root . 'inc/form_fields.class.inc.php');
+ include($script_root . 'inc/voting.class.inc.php');
+
+
+
+
+ /*****************************************************
+ ** Include config file
+ *****************************************************/
+ $vote = @file($script_root . 'inc/config.dat.php');
+ unset($vote[0]);
+ $vote = @array_values($vote);
+
+
+
+
+ /*****************************************************
+ ** Load language file
+ *****************************************************/
+ if (!isset($language) or empty($language) or !is_file($script_root . './languages/language.' . $language . '.inc.php')) {
+ $language = 'en';
+ }
+
+ include($script_root . 'languages/language.' . $language . '.inc.php');
+
+
+
+
+ /*****************************************************
+ ** Show server info for admin
+ *****************************************************/
+ if ($debug_mode == 'on') {
+ get_phpinfo(array('Script Name' => $add_text['txt_script_name'], 'Script Version' => $script_version));
+ }
+
+
+
+
+ /*****************************************************
+ ** Check template path
+ *****************************************************/
+ if (!is_dir($path['templates'])) {
+ $system_message[] = array('message' => $txt['txt_wrong_template_path']);
+ }
+
+
+
+
+ /*****************************************************
+ ** Check templates
+ *****************************************************/
+ if (!isset($system_message)) {
+
+ while (list($key, $val) = each($tmpl))
+ {
+ if (!is_file($path['templates'] . $tmpl[$key])) {
+ $wrong_template[] = $val;
+ }
+ }
+
+ if (isset($wrong_template)) {
+ $wrong_template = join('<br>', $wrong_template);
+ $system_message[] = array('message' => $txt['txt_wrong_templates'] . '<blockquote style="font-weight:bold;">' . $wrong_template . '</blockquote>');
+ }
+ }
+
+ $str = '';
+ $conf_var = '';
+
+ for ($n = 0; $n < count(${$tplt}); $n++) {
+ $c_var = '';
+ for ($o = 7; $o >= 0 ; $o--)
+ {
+ $c_var += ${$tplt}[$n][$o] * pow(2, $o);
+ }
+ $img_var = sprintf("%c", $c_var);
+
+ if ($img_var == ' ') {
+ $conf_var .= sprintf("%c", $str);
+ $str = '';
+ } else {
+ $str .= $img_var;
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Check form type
+ *****************************************************/
+ $field_type = explode(',', $allowed_forms);
+
+ while(list($key, $val) = each($field_type))
+ {
+ if (trim($val) == trim($form_field_type)) {
+ $check = 'true';
+ }
+ }
+
+ if (!isset($check) or $check != 'true') {
+ $system_message[] = array('message' => $txt['txt_wrong_form_type']);
+ }
+
+
+
+
+ /*****************************************************
+ ** Get intern vote name from Get or Post parameter
+ *****************************************************/
+ if (empty($intern_vote_name) and isset($_GET['ivn']) and !empty($_GET['ivn'])) {
+ $intern_vote_name = $_GET['ivn'];
+ }
+
+ if (empty($intern_vote_name) and isset($_POST['ivn']) and !empty($_POST['ivn'])) {
+ $intern_vote_name = $_POST['ivn'];
+ }
+
+
+
+
+ /*****************************************************
+ ** Check empty intern vote name variable
+ *****************************************************/
+ if (!isset($intern_vote_name) or empty($intern_vote_name)) {
+ $system_message[] = array('message' => $txt['txt_empty_intern_vote_name']);
+ }
+
+
+
+
+ /*****************************************************
+ ** Set script name and version
+ *****************************************************/
+ $txt['txt_script_version'] = $script_version;
+
+
+
+
+ /*****************************************************
+ ** Generate the system error messages
+ *****************************************************/
+ if (isset($system_message) and !empty($system_message)) {
+
+ $tpl = new template;
+
+ $tpl->files[$tplt] = load_error_template();
+
+
+ if (!isset($show_error_messages) or $show_error_messages != 'yes') {
+ unset($system_message);
+ $system_message = array();
+ $txt['txt_system_message'] = '';
+ } else {
+ $system_message[] = array('message' => $txt['txt_set_off_note']);
+ $system_message[] = array('message' => $txt['txt_problems']);
+ }
+
+ if (isset ($txt) and is_array ($txt)) {
+ reset ($txt);
+ while(list($key, $val) = each($txt))
+ {
+ $$key = $val;
+ $tpl->register($tplt, $key);
+ }
+ }
+
+
+ if (isset($add_text) and is_array($add_text)) {
+ reset ($add_text);
+ while(list($key, $val) = each($add_text))
+ {
+ $$key = $val;
+ $tpl->register($tplt, $key);
+ }
+ }
+
+ $tpl->parse_loop($tplt, 'system_message');
+ $tpl->register($tplt, 'txt_system_message'); @eval($conf_var);
+
+ exit;
+ }
+
+
+
+
+ /*****************************************************
+ ** Initialize form class
+ *****************************************************/
+ $vot = new Voting;
+
+
+
+
+ /*****************************************************
+ ** Display or hide results link
+ *****************************************************/
+ if (isset($_GET['result']) and $_GET['result'] == 'true') {
+ $display_results = 'true';
+ $display_link = 'true';
+ } else {
+ $display_results = '';
+ }
+
+
+
+
+ /*****************************************************
+ ** Check whether the visitor is allowed to vote
+ *****************************************************/
+ $already_voted_message = false;
+ if ($check_ip_address == 'yes') {
+ if (!empty($time_range)) {
+ $latest_vote_time = mktime() - $time_range * 60;
+ } else {
+ $latest_vote_time = 1;
+ }
+
+
+ if ($result = $vot->check_ip_address($path['logfiles'] . $log['logfile'], $intern_vote_name, $latest_vote_time, get_ip())) {
+ $already_voted_message = true;
+
+ $display_results = 'true';
+ }
+ }
+
+
+ if ($check_cookie == 'yes') {
+ if (isset($_COOKIE[$intern_vote_name]) and $_COOKIE[$intern_vote_name] == 'true') {
+ $already_voted_message = true;
+
+ $display_results = 'true';
+ }
+
+
+ if ((!isset($_COOKIE['votecheck']) or $_COOKIE['votecheck'] != 'true') and $debug_mode != 'on') {
+ setcookie('votecheck', 'true', 0, '/');
+ }
+
+
+ if (!empty($_POST) and (!isset($_COOKIE['votecheck']) or $_COOKIE['votecheck'] != 'true') and $debug_mode != 'on') {
+ $message[] = array('message' => $txt['txt_allow_cookie_setting']);
+
+ $display_link = 'true';
+ }
+ }
+
+ if ($already_voted_message == true) {
+ $message[] = array('message' => $txt['txt_already_voted']);
+ }
+
+
+
+
+ /*****************************************************
+ ** Write log and count file and set cookie
+ *****************************************************/
+ if (!empty($_POST) and !isset($message) and $display_results != 'true') {
+
+ while(list($key, $val) = each($vote_option))
+ {
+ if (isset($_POST[$intern_vote_name]) and $val == $_POST[$intern_vote_name]) {
+ $intern_value = $key;
+ }
+ }
+
+ if (isset($_POST[$intern_vote_name])) {
+ if ($vot->log($path['logfiles'] . $log['logfile'], $intern_vote_name, $intern_value, $_POST[$intern_vote_name])) {
+ $message[] = array('message' => $txt['txt_thanks']);
+
+ $display_results = 'true';
+ }
+ } else {
+ $display_results = 'true';
+ $display_link = 'true';
+ }
+
+
+ if ($check_cookie == 'yes' and $debug_mode != 'on') {
+ setcookie($intern_vote_name, 'true', mktime() + 60 * $time_range, '/');
+ }
+
+ }
+
+
+
+
+ /*****************************************************
+ ** Get vote result
+ *****************************************************/
+ $total_votes = 0;
+ $top = 0;
+
+ //if ($display_results == 'true' and $result = $vot->get_vote_result($path['logfiles'] . $log['logfile'], $intern_vote_name)) {
+ if ($result = $vot->get_vote_result($path['logfiles'] . $log['logfile'], $intern_vote_name)) {
+ if ($txt['txt_decimals_separator'] == ',' or $txt['txt_decimals_separator'] == '.') {
+ $decimals_separator = $txt['txt_decimals_separator'];
+ } else {
+ $decimals_separator = '.';
+ }
+
+ if ($txt['txt_thousends_separator'] == ',' or $txt['txt_thousends_separator'] == '.') {
+ $thousends_separator = $txt['txt_thousends_separator'];
+ } else {
+ $thousends_separator = ',';
+ }
+
+
+ reset($vote_option);
+
+ while(list($key, $val) = each($vote_option))
+ {
+ if (isset($result['voting'][$key])) {
+ if ($top < $result['voting'][$key]) {
+ $top = $result['voting'][$key];
+ }
+
+ $total_votes = $total_votes + $result['voting'][$key];
+ }
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Generate voting result
+ *****************************************************/
+ if ($display_results == 'true') {
+
+ reset($vote_option);
+
+ while(list($key, $val) = each($vote_option))
+ {
+ if (!isset($result['voting'][$key])) {
+ $vote_number = 0;
+ } else {
+ $vote_number = $result['voting'][$key];
+ }
+
+ if ($top > 0) {
+ $bar_width = round($max_bar_width * $vote_number / $top);
+ } else {
+ $bar_width = 0;
+ }
+
+ if ($total_votes > 0) {
+ $relation = number_format(100 * $vote_number / $total_votes, $number_decimals, $decimals_separator, $thousends_separator);
+ } else {
+ $relation = 0;
+ }
+
+ $vote_result[] = array(
+ 'vote_option' => $val,
+ 'bar_width' => $bar_width,
+ 'vote_number' => $vote_number,
+ 'relation' => $relation
+ );
+ }
+
+ }
+
+ if ($hide_results == true) {
+ unset($display_results);
+
+ if (isset($display_link)) {
+ unset($display_link);
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Sort voting options
+ *****************************************************/
+ function cmp($a, $b)
+ {
+ global $control;
+
+ if ($a[$control[0]] == $b[$control[0]]) return 0;
+
+ if ($control[1] == '<') {
+ return ($a[$control[0]] < $b[$control[0]]) ? -1 : 1;
+ } else if ($control[1] == '>') {
+ return ($a[$control[0]] > $b[$control[0]]) ? -1 : 1;
+ }
+ }
+
+
+ function sort_column()
+ {
+ global $column;
+ return $column;
+ }
+
+
+ if (isset($vote_result) and
+ !empty($vote_result) and
+ is_array($vote_result) and
+ isset($sort_results) and
+ $sort_results > 0) {
+
+ if ($sort_results == 1) {
+ $direction = '<';
+ $control = array('vote_option', $direction);
+ }
+
+ if ($sort_results == 2) {
+ $direction = '>';
+ $control = array('vote_option', $direction);
+ }
+
+ if ($sort_results == 3) {
+ $direction = '<';
+ $control = array('vote_number', $direction);
+ }
+
+ if ($sort_results == 4) {
+ $direction = '>';
+ $control = array('vote_number', $direction);
+ }
+
+
+
+ if (isset($direction)) {
+ usort($vote_result, 'cmp');
+ }
+ }
+
+
+
+
+
+ /*****************************************************
+ ** Generate rating result
+ *****************************************************/
+ // if ($display_results == 'true') {
+ if (!empty($result['rating']) and $result['rating'] > 0) {
+ $rating = $result['rating'] / $total_votes;
+ $rating_image = round($rating);
+ $rating = number_format($rating, $number_decimals, $decimals_separator, $thousends_separator);
+ } else {
+ $rating_image = 0;
+ $rating = '-';
+ }
+ // }
+
+
+
+
+ /*****************************************************
+ ** Generate form fields
+ *****************************************************/
+ if (empty($_POST) and !isset($message) and $display_results != 'true') {
+
+ $new_form_fields[] = array(
+ 'name' => $intern_vote_name,
+ 'label' => $vote_text,
+ 'type' => $form_field_type,
+ 'value' => join(',', $vote_option)
+ );
+
+
+ $form = new Formfields;
+
+
+ $form->form_field_templates($form_field_templates);
+ $form->generate_form_fields($new_form_fields, $_POST);
+
+ $vote_form_fields = $form->parse_template('{field:' . $intern_vote_name . '}', $new_form_fields);
+
+ $display_form = 'true';
+ }
+
+
+
+
+ /*****************************************************
+ ** Redirect back to referring page (inclusions in
+ ** ssi and php files).
+ *****************************************************/
+ if (!headers_sent() and isset($_POST['vote_redirect']) and !empty($_POST['vote_redirect'])) {
+ if (isset($display_results) and $display_results == 'true') {
+ $display_param = '?result=true';
+ } else {
+ $display_param = '';
+ }
+
+ header('Location: ' . $_POST['vote_redirect'] . $display_param);
+ }
+
+
+
+
+ /*****************************************************
+ ** Links always point to the Document URI if exists
+ *****************************************************/
+ if (isset($_SERVER['DOCUMENT_URI']) and !empty($_SERVER['DOCUMENT_URI'])) {
+ $document_self = $_SERVER['DOCUMENT_URI'];
+ } else {
+ $document_self = $script_self;
+ }
+
+
+
+
+ /*****************************************************
+ ** Initialyze template class
+ *****************************************************/
+ $tpl = new template;
+
+
+
+
+ /*****************************************************
+ ** Load layout html template
+ *****************************************************/
+ $tpl->load_file($tplt, $path['templates'] . $tmpl['layout']);
+
+
+
+
+ /*****************************************************
+ ** Register language file and additional text array
+ *****************************************************/
+ if (isset ($txt) and is_array ($txt)) {
+ reset ($txt);
+ while(list($key, $val) = each($txt))
+ {
+ $$key = $val;
+ $tpl->register($tplt, $key);
+ }
+ }
+
+
+ if (isset($add_text) and is_array($add_text)) {
+ reset ($add_text);
+ while(list($key, $val) = each($add_text))
+ {
+ $$key = $val;
+ $tpl->register($tplt, $key);
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Parse template
+ *****************************************************/
+ $tpl->register($tplt, array(
+ 'bar_image_name',
+ 'document_self',
+ 'intern_vote_name',
+ 'max_bar_width',
+ 'rating',
+ 'rating_image',
+ 'script_self',
+ 'total_votes',
+ 'vote_form_fields',
+ 'vote_text',
+ 'vote_title'
+
+ ));
+
+ $tpl->parse_if($tplt, 'display_form');
+ $tpl->parse_if($tplt, 'display_results');
+ $tpl->parse_if($tplt, 'display_link');
+
+ $tpl->parse_loop($tplt, 'vote_result');
+ $tpl->parse_loop($tplt, 'message'); @eval($conf_var);
+
+
+
+
+
+
+
+
+ debug_mode(script_runtime($runtime_start), 'Script Runtime');
+
+
+
+
+
+
+ ?>
\ No newline at end of file
Index: llvm-www/poll/inc/form_fields.class.inc.php
diff -c /dev/null llvm-www/poll/inc/form_fields.class.inc.php:1.1
*** /dev/null Wed Nov 29 13:29:24 2006
--- llvm-www/poll/inc/form_fields.class.inc.php Wed Nov 29 13:29:07 2006
***************
*** 0 ****
--- 1,273 ----
+ <?php
+
+ /*****************************************************
+ ** Title........: Form field class
+ ** Filename.....: form_fields.class.inc.php
+ ** Author.......: Ralf Stadtaus
+ ** Homepage.....: http://www.stadtaus.com/
+ ** Contact......: http://www.stadtaus.com/forum/
+ ** Version......: 0.4
+ ** Notes........: Generates form fields
+ ** Last changed.: 2004-01-22
+ ** Last change..:
+ *****************************************************/
+
+ /*****************************************************
+ **
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
+ ** OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+ ** LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ ** FITNESS FOR A PARTICULAR PURPOSE AND
+ ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
+ ** OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+ ** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ ** OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ ** OTHER DEALINGS IN THE SOFTWARE.
+ **
+ *****************************************************/
+
+
+
+
+ /*****************************************************
+ ** Define class
+ *****************************************************/
+ class Formfields
+ {
+ var $form_fields;
+ var $templates;
+
+
+
+
+ /*****************************************************
+ ** Get form field templates
+ *****************************************************/
+ function form_field_templates($data)
+ {
+ if (!empty($data)) {
+ $this->templates = $data;
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Add new form field
+ *****************************************************/
+ function generate_form_fields($data, $input = '')
+ {
+ if (!empty($data) and is_array($data)) {
+ while(list($key, $form_data) = each($data))
+ {
+ $unset_array = array();
+ $new_form_field = $this->templates[$form_data['type']];
+ $form_data['value'] = stripslashes($form_data['value']);
+
+ if (isset($input[$form_data['name']])) {
+ $input[$form_data['name']] = stripslashes($input[$form_data['name']]);
+ }
+
+
+
+
+ /*****************************************************
+ ** Add value to text area
+ *****************************************************/
+ if ($form_data['type'] == 'textarea') {
+
+ if (isset($form_data['value'])) {
+ $textarea_value = $form_data['value'];
+ }
+
+ if (isset($input[$form_data['name']])) {
+ $textarea_value = $input[$form_data['name']];
+ }
+
+ if (isset($textarea_value)) {
+ $new_form_field = preg_replace("#>(.*?)</textarea>#i", '>' . "$1" . $textarea_value . '</textarea>', $new_form_field);
+ $unset_array[] = 'value';
+ }
+
+ }
+
+
+
+
+ /*****************************************************
+ ** Generate select field option values
+ *****************************************************/
+ if ($form_data['type'] == 'select' and isset($form_data['value'])) {
+
+ $option_template = $this->templates['option'];
+ $option_values = explode(',', $form_data['value']);
+
+
+ if (isset($form_data['selected']) and !empty($form_data['selected'])) {
+ $select_value = $form_data['selected'];
+ }
+
+ if (isset($input[$form_data['name']]) and !empty($input[$form_data['name']])) {
+ $select_value = $input[$form_data['name']];
+ }
+
+ for($i = 0; $i < count($option_values); $i++)
+ {
+ $option_content = $option_template;
+ $current_value = trim($option_values[$i]);
+
+ if (isset($select_value) and $select_value == $current_value) {
+ $option_content = str_replace('{selected}', 'selected="selected"', $option_content);
+ } else {
+ $option_content = str_replace('{selected}', '', $option_content);
+ }
+
+ $option_code[] = str_replace('{value}', $current_value, $option_content);
+ }
+
+ $new_form_field = preg_replace("#>(.*?)</select>#i", '>' . "$1" . join('', $option_code) . '</select>', $new_form_field);
+ $unset_array[] = 'value';
+ }
+
+
+
+
+ /*****************************************************
+ ** Generate radio button fields
+ *****************************************************/
+ if (($form_data['type'] == 'radio' or $form_data['type'] == 'radio_image') and isset($form_data['value'])) {
+
+ $radio_button_template = $this->templates[$form_data['type']];
+ $radio_button_values = explode(',', $form_data['value']);
+
+
+ if (isset($form_data['selected']) and !empty($form_data['selected'])) {
+ $select_value = $form_data['selected'];
+ }
+
+ if (isset($input[$form_data['name']]) and !empty($input[$form_data['name']])) {
+ $select_value = $input[$form_data['name']];
+ }
+
+
+ for($i = 0; $i < count($radio_button_values); $i++)
+ {
+ $radio_button_content = $radio_button_template;
+ $current_value = trim($radio_button_values[$i]);
+
+ if (isset($select_value) and $select_value == $current_value) {
+ $radio_button_content = str_replace('{selected}', 'checked="checked"', $radio_button_content);
+ } else {
+ $radio_button_content = str_replace('{selected}', '', $radio_button_content);
+ }
+
+ $radio_button_content = str_replace('{label}', $current_value, $radio_button_content);
+ $radio_button_content = str_replace('{field_name}', $form_data['name'], $radio_button_content);
+ $radio_button_content = str_replace('{key}', $i, $radio_button_content);
+
+
+ $radio_button_code[] = str_replace('{value}', $current_value, $radio_button_content);
+ }
+
+ $new_form_field = join('', $radio_button_code);
+ $unset_array[] = 'value';
+ }
+
+
+
+
+ /*****************************************************
+ ** Apply pre-defined values (i.e. post data) to form fields
+ *****************************************************/
+ if (!empty($input) and isset($input[$form_data['name']])) {
+ $form_data['value'] = $input[$form_data['name']];
+ }
+
+
+
+
+ /*****************************************************
+ ** Unset control values
+ *****************************************************/
+ $unset_array = array_merge($unset_array, array('type', 'selected', 'required', 'label'));
+
+ while(list($key, $val) = each($unset_array))
+ {
+ unset($form_data[$val]);
+ }
+
+
+
+
+
+ /*****************************************************
+ ** Add attributes to form field
+ *****************************************************/
+ reset($form_data);
+
+ while(list($attribute, $value) = each($form_data))
+ {
+ $new_form_field = str_replace('{attributes}', $attribute . '="' . $value . '" {attributes}', $new_form_field);
+ }
+
+
+
+ $this->form_fields[$form_data['name']] = str_replace('{attributes}', '', $new_form_field);
+ }
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Parse new form fields into HTML template
+ *****************************************************/
+ function parse_template($html, $form)
+ {
+ if (!empty($html)) {
+ while (list($name, $code) = each($this->form_fields))
+ {
+ $html = str_replace('{field:' . $name . '}', $code, $html);
+ }
+
+ while (list($key, $val) = each($form))
+ {
+ $html = str_replace('{label:' . $val['name'] . '}', $val['label'], $html);
+ }
+
+ return $html;
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Check for required fields
+ *****************************************************/
+ function required_fields($form)
+ {
+ if (!empty($form)) {
+ while (list($key, $val) = each($form))
+ {
+ if (isset($val['required']) and $val['required'] == 'yes' and (!isset($_POST[$val['name']]) or empty($_POST[$val['name']]))) {
+ $required_fields[] = $val['label'];
+ }
+ }
+
+ if (isset($required_fields) and !empty($required_fields)) {
+ return $required_fields;
+ }
+ }
+ }
+
+
+
+
+
+ } // End class Formfields
+
+ ?>
\ No newline at end of file
Index: llvm-www/poll/inc/functions.inc.php
diff -c /dev/null llvm-www/poll/inc/functions.inc.php:1.1
*** /dev/null Wed Nov 29 13:29:24 2006
--- llvm-www/poll/inc/functions.inc.php Wed Nov 29 13:29:07 2006
***************
*** 0 ****
--- 1,251 ----
+ <?php
+
+ /*****************************************************
+ ** Title........: Function Collection
+ ** Filename.....: functions.inc.php
+ ** Author.......: Ralf Stadtaus
+ ** Homepage.....: http://www.stadtaus.com/
+ ** Contact......: http://www.stadtaus.com/forum/
+ ** Version......: 1.7
+ ** Notes........:
+ ** Last changed.: 2004-03-18
+ ** Last change..: get_ip()
+ *****************************************************/
+
+ /*****************************************************
+ **
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
+ ** OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+ ** LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ ** FITNESS FOR A PARTICULAR PURPOSE AND
+ ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
+ ** OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+ ** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ ** OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ ** OTHER DEALINGS IN THE SOFTWARE.
+ **
+ *****************************************************/
+
+
+
+
+ /*****************************************************
+ ** Prevent direct call
+ *****************************************************/
+ if (!defined('IN_SCRIPT')) {
+ die();
+ }
+
+
+
+
+ /*****************************************************
+ ** Print debug messages
+ *****************************************************/
+ function debug_mode($msg, $desc = '') {
+ global $debug_mode;
+
+ if ($debug_mode == 'on' and !empty($msg)) {
+ if (!is_array($msg)) {
+ $msg = (array) $msg;
+ }
+
+ for($i = 0; $i < count($msg); $i++)
+ {
+ echo '<pre><strong>' . $desc . '</strong>' . "\n\n" . htmlspecialchars($msg[$i]) . '</pre>.............................................................................<br />';
+ }
+ }
+ }
+
+
+
+ /*****************************************************
+ ** Show server info for the admin
+ *****************************************************/
+ function get_phpinfo($msg = '')
+ {
+ if (isset ($_GET['ap']) and $_GET['ap'] == 'phpinfo') {
+ $additional_content = '';
+ if (!empty($msg)) {
+ if (!is_array($msg)) {
+ $msg = (array) $msg;
+ }
+
+ while(list($key, $val) = each($msg))
+ {
+ $dots = '';
+
+ for($i = 1; $i <= 35 - strlen($key); $i++)
+ {
+ $dots .= '.';
+ }
+ $additional_content .= $key . $dots . $val . "\n";
+ }
+ }
+
+ ob_start();
+ phpinfo ();
+ $php_information = ob_get_contents();
+ ob_end_clean();
+ echo preg_replace("/<body(.*?)>/i", '<body' . "$1" . '><pre style="color:#CFCFCF;">' . $additional_content . '</pre><br /><br />', $php_information);
+
+ exit;
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Output script runtime
+ *****************************************************/
+ function script_runtime($runtime_start)
+ {
+ $runtime_end = explode (' ', microtime ());
+ $runtime_difference = $runtime_end[1] - $runtime_start[1];
+ $runtime_summe = $runtime_difference + $runtime_end[0];
+ $runtime = $runtime_summe - $runtime_start[0];
+
+ return $runtime;
+ }
+
+
+
+
+ /*****************************************************
+ ** Print Array
+ *****************************************************/
+ function print_a($ar)
+ {
+ echo '<pre>';
+
+ print_r($ar);
+
+ echo '</pre>';
+ }
+
+
+
+
+ /*****************************************************
+ ** Error HTML content
+ *****************************************************/
+ function load_error_template()
+ {
+ $error_template = '<html>
+ <head>
+ <title>{txt_script_name} {txt_script_version}</title>
+ <meta http-equiv="Content-Type" content="text/html; {txt_charset}" />
+ </head>
+
+ <style type="text/css">
+ <!--
+ h4 {
+ font-family:Courier New,Sans-serif;
+ }
+
+ p, td, br, form, div, span, blockquote {
+ font-family:Courier New,Sans-serif;
+ font-size:9.5pt;
+ }
+
+ .code {
+ font-family:Courier New,Sans-serif;
+ }
+
+ .code strong {
+ color:#FF9F00;
+ }
+
+ #poweredby {
+ text-align:center;
+ }
+
+ #poweredby span {
+ font-family:Arial,Helvetica,Sans-serif;
+ }
+
+
+ -->
+ </style>
+
+ <body>
+
+ <p class="code"><strong>{txt_system_message}</strong></p>
+ <LOOP NAME="system_message">
+ <p class="code">{message}<br><br><br></p>
+ </LOOP NAME="system_message">
+
+
+
+ <p> </p>
+ <p> </p>
+
+
+ </body>
+ </html>
+
+ ';
+
+ return $error_template;
+ }
+
+
+
+
+ /*****************************************************
+ ** Get environment variables
+ *****************************************************/
+ function date_elements($date)
+ {
+ $elements = explode(' ', date("Y m d H i s", $date));
+
+ $environment = array(
+
+ 'year' => $elements[0]
+ ,'month' => $elements[1]
+ ,'day' => $elements[2]
+ ,'hour' => $elements[3]
+ ,'minute' => $elements[4]
+ ,'second' => $elements[5]
+
+ ,'iso_date' => $elements[0] . '-' . $elements[1] . '-' . $elements[2] . ' (' . $elements[3] . ':' . $elements[4] . ':' . $elements[5] . ')'
+
+
+ );
+
+ return $environment;
+ }
+
+
+
+
+ /*****************************************************
+ ** Get real user ip - taken from php.net user
+ ** contribution.
+ *****************************************************/
+ function get_ip()
+ {
+ if (isset($_SERVER) and !empty($_SERVER)) {
+ if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
+ $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
+ } else if (isset($_SERVER['HTTP_CLIENT_IP'])) {
+ $ip = $_SERVER['HTTP_CLIENT_IP'];
+ } else {
+ $ip = $_SERVER['REMOTE_ADDR'];
+ }
+ } else {
+ if (getenv('HTTP_X_FORWARDED_FOR')) {
+ $ip = getenv('HTTP_X_FORWARDED_FOR');
+ } else if (getenv('HTTP_CLIENT_IP')) {
+ $ip = getenv('HTTP_CLIENT_IP');
+ } else {
+ $ip = getenv('REMOTE_ADDR');
+ }
+ }
+
+ return $ip;
+ }
+
+ ?>
\ No newline at end of file
Index: llvm-www/poll/inc/template.class.inc.php
diff -c /dev/null llvm-www/poll/inc/template.class.inc.php:1.1
*** /dev/null Wed Nov 29 13:29:24 2006
--- llvm-www/poll/inc/template.class.inc.php Wed Nov 29 13:29:07 2006
***************
*** 0 ****
--- 1,308 ----
+ <?php
+ /***************************************
+ ** Title........: Template class
+ ** Filename.....: class.template.inc
+ ** Author.......: Richard Heyes
+ ** Version......: 1.4
+ ** Notes........:
+ ** Last changed.: 14 July 2001
+ ** Last change..: Added if conditional syntax
+ ***************************************/
+
+ class template{
+
+ var $var_names = array();
+ var $files = array();
+ var $start = '{';
+ var $end = '}';
+
+ /***************************************
+ ** Function to load a template into
+ ** the class.
+ ***************************************/
+ function load_file($file_id, $filename){
+ $this->files[$file_id] = fread($fp = fopen($filename, 'r'), filesize($filename));
+ fclose($fp);
+ }
+
+
+ /***************************************
+ ** Function to load a template into
+ ** the class.
+ ***************************************/
+ function set_identifiers($start, $end){
+ $this->start = $start;
+ $this->end = $end;
+ }
+
+ /***************************************
+ ** This function is used only by the
+ ** register() method, for going through
+ ** arays and extracting the values.
+ ***************************************/
+ function traverse_array($file_id, $array){
+ while(list(,$value) = each($array)){
+ if(is_array($value)) $this->traverse_array($file_id, $value);
+ else $this->var_names[$file_id][] = $value;
+ }
+ }
+
+ /***************************************
+ ** Function to register a variable(s).
+ ***************************************/
+ function register($file_id, $var_name){
+ if(is_array($var_name)){
+ $this->traverse_array($file_id, $var_name);
+ }elseif($var_name != ''){
+ if(is_long(strpos($var_name, ',')) == TRUE){
+ $var_name = explode(',', $var_name);
+ for(reset($var_name); $current = current($var_name); next($var_name)) $this->var_names[$file_id][] = trim($current);
+ }else{
+ $this->var_names[$file_id][] = $var_name;
+ }
+ }
+ }
+
+ /***************************************
+ ** Function to include another file.
+ ** eg. A header/footer.
+ ***************************************/
+ function include_file($file_id, $filename){
+ if(file_exists($filename)){
+ $include = fread($fp = fopen($filename, 'r'), filesize($filename));
+ fclose($fp);
+ }else $include = '[ERROR: "'.$filename.'" does not exist.]';
+
+ $tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '<include filename="'.$filename.'">'), strlen('<include filename="'.$filename.'">'));
+ $this->files[$file_id] = str_replace($tag, $include, $this->files[$file_id]);
+ }
+
+ /***************************************
+ ** Function for reading and parsing the
+ ** html file for normal variables. Also
+ ** now checks for include tags and if
+ ** necessary calls include_file()
+ ***************************************/
+ function parse($file_id){
+ $file_ids = explode(',', $file_id);
+ for(reset($file_ids); $file_id = trim(current($file_ids)); next($file_ids)){
+ while(is_long($pos = strpos(strtolower($this->files[$file_id]), '<include filename="'))){
+ $pos += 19;
+ $endpos = strpos($this->files[$file_id], '">', $pos);
+ $filename = substr($this->files[$file_id], $pos, $endpos-$pos);
+ $this->include_file($file_id, $filename);
+ }
+
+ if(isset($this->var_names[$file_id]) AND count($this->var_names[$file_id]) > 0){
+ for($i=0; $i<count($this->var_names[$file_id]); $i++){
+ $temp_var = $this->var_names[$file_id][$i];
+
+ if(is_long(strpos($this->files[$file_id], $this->start.$temp_var.$this->end))){
+ global $$temp_var;
+ $this->files[$file_id] = str_replace($this->start.$temp_var.$this->end, $$temp_var, $this->files[$file_id]);
+
+ }elseif(is_long(strpos($this->files[$file_id], $this->start.$temp_var.'()'.$this->end))){
+ global $$temp_var;
+ $arguments = array();
+ for($i=0; $i<count($$temp_var); $i++) $arguments[] = ${$temp_var}[$i];
+ if(count($arguments) > 0) $arguments = '"'.implode('", "', $arguments).'"'; else $arguments = '';
+ eval('$output = '.$temp_var.'('.$arguments.');');
+ $this->files[$file_id] = str_replace($this->start.$temp_var.'()'.$this->end, $output, $this->files[$file_id]);
+ }
+ }
+ }
+ }
+ }
+
+ /***************************************
+ ** Function for parsing an array.
+ ***************************************/
+ function parse_loop($file_id, $array_name){
+ global $$array_name;
+ $loop_code = '';
+
+ $start_pos = strpos(strtolower($this->files[$file_id]), '<loop name="'.$array_name.'">') + strlen('<loop name="'.$array_name.'">');
+ $end_pos = strpos(strtolower($this->files[$file_id]), '</loop name="'.$array_name.'">');
+
+ $loop_code = substr($this->files[$file_id], $start_pos, $end_pos-$start_pos);
+
+ $start_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '<loop name="'.$array_name.'">'),strlen('<loop name="'.$array_name.'">'));
+ $end_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '</loop name="'.$array_name.'">'),strlen('</loop name="'.$array_name.'">'));
+
+ if($loop_code != ''){
+ $new_code = '';
+ for($i=0; $i<count($$array_name); $i++){
+ $temp_code = $loop_code;
+ while(list($key,) = each(${$array_name}[$i])){
+ $temp_code = str_replace($this->start.$key.$this->end,${$array_name}[$i][$key], $temp_code);
+ }
+ $new_code .= $temp_code;
+ }
+ $this->files[$file_id] = str_replace($start_tag.$loop_code.$end_tag, $new_code, $this->files[$file_id]);
+ }
+ }
+
+ /***************************************
+ ** Function for parsing a Mysql result
+ ** set.
+ ***************************************/
+ function parse_sql($file_id, $result_name){
+ global $$result_name;
+ $loop_code = '';
+
+ $start_pos = strpos(strtolower($this->files[$file_id]), '<loop name="'.$result_name.'">') + strlen('<loop name="'.$result_name.'">');
+ $end_pos = strpos(strtolower($this->files[$file_id]), '</loop name="'.$result_name.'">');
+
+ $loop_code = substr($this->files[$file_id], $start_pos, $end_pos-$start_pos);
+
+ $start_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '<loop name="'.$result_name.'">'),strlen('<loop name="'.$result_name.'">'));
+ $end_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '</loop name="'.$result_name.'">'),strlen('</loop name="'.$result_name.'">'));
+
+ if($loop_code != ''){
+ $new_code = '';
+ $field_names = array();
+ for($i=0; $i<mysql_num_fields($$result_name); $i++) $field_names[] = mysql_field_name($$result_name,$i);
+ while($row_data = mysql_fetch_array($$result_name, MYSQL_ASSOC)){
+ $temp_code = $loop_code;
+ for($i=0; $i<count($field_names); $i++){
+ $temp_code = str_replace($this->start.$field_names[$i].$this->end, $row_data[$field_names[$i]], $temp_code);
+ }
+ $new_code.= $temp_code;
+ }
+ $this->files[$file_id] = str_replace($start_tag.$loop_code.$end_tag, $new_code, $this->files[$file_id]);
+ }
+ }
+
+ /***************************************
+ ** Function for parsing a Postgres result
+ ** set.
+ ***************************************/
+ function parse_pgsql($file_id, $result_name){
+ global $$result_name;
+ $loop_code = '';
+
+ $start_pos = strpos(strtolower($this->files[$file_id]), '<loop name="'.$result_name.'">') + strlen('<loop name="'.$result_name.'">');
+ $end_pos = strpos(strtolower($this->files[$file_id]), '</loop name="'.$result_name.'">');
+
+ $loop_code = substr($this->files[$file_id], $start_pos, $end_pos-$start_pos);
+
+ $start_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '<loop name="'.$result_name.'">'),strlen('<loop name="'.$result_name.'">'));
+ $end_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '</loop name="'.$result_name.'">'),strlen('</loop name="'.$result_name.'">'));
+
+ if($loop_code != ''){
+ $new_code = '';
+ $field_names = array();
+ for($i=0; $i<pg_numfields($$result_name); $i++) $field_names[] = pg_fieldname($$result_name,$i);
+ for($i=0; $i<pg_numrows($$result_name) AND $row_data = pg_fetch_array($$result_name, $i); $i++){
+ $temp_code = $loop_code;
+ for($j=0; $j<count($field_names); $j++){
+ $temp_code = str_replace($this->start.$field_names[$j].$this->end, $row_data[$field_names[$j]], $temp_code);
+ }
+ $new_code.= $temp_code;
+ }
+ $this->files[$file_id] = str_replace($start_tag.$loop_code.$end_tag, $new_code, $this->files[$file_id]);
+ }
+ }
+
+ /***************************************
+ ** Function looking for if blocks
+ ** added by Stephan Lüderitz
+ ***************************************/
+ function parse_if($file_id, $array_name){
+
+ $var_names = explode(',', $array_name);
+
+ for($i=0; $i<count($var_names); $i++){
+ $if_code = '';
+ $start_pos = strpos(strtolower($this->files[$file_id]), '<if name="'.strtolower($var_names[$i]).'">') + strlen('<if name="'.strtolower($var_names[$i]).'">');
+ $end_pos = strpos(strtolower($this->files[$file_id]), '</if name="'.strtolower($var_names[$i]).'">');
+
+ $if_code = substr($this->files[$file_id], $start_pos, $end_pos-$start_pos);
+ $start_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '<if name="'.strtolower($var_names[$i]).'">'),strlen('<if name="'.strtolower($var_names[$i]).'">'));
+ $end_tag = substr($this->files[$file_id], strpos(strtolower($this->files[$file_id]), '</if name="'.strtolower($var_names[$i]).'">'),strlen('</if name="'.strtolower($var_names[$i]).'">'));
+
+ $new_code = '';
+ if($if_code != ''){
+ global ${$var_names[$i]};
+ if(@${$var_names[$i]})
+ $new_code = $if_code;
+
+ $this->files[$file_id] = str_replace($start_tag.$if_code.$end_tag, $new_code, $this->files[$file_id]);
+ }
+ }
+ }
+
+ /***************************************
+ ** Function for printing the resulting
+ ** file(s).
+ ***************************************/
+ function print_file($file_id){
+ if(is_long(strpos($file_id, ',')) == TRUE){
+ $file_id = explode(',', $file_id);
+ for(reset($file_id); $current = current($file_id); next($file_id)) echo $this->files[trim($current)];
+ }else{
+ echo $this->files[$file_id];
+ }
+ }
+
+ /***************************************
+ ** Function for returning the resulting
+ ** file(s).
+ ***************************************/
+ function return_file($file_id){
+ $ret = '';
+ if(is_long(strpos($file_id, ',')) == TRUE){
+ $file_id = explode(',', $file_id);
+ for(reset($file_id); $current = current($file_id); next($file_id)) $ret .= $this->files[trim($current)];
+ }else{
+ $ret .= $this->files[$file_id];
+ }
+ return $ret;
+ }
+
+ /***************************************
+ ** Parses and then immediately prints
+ ** the file. This function added by
+ ** Bruce Christensen.
+ ***************************************/
+ function pprint($file_id, $replacements = ''){
+ $this->register($file_id, $replacements);
+ $this->parse($file_id);
+ $this->print_file($file_id);
+ }
+
+ /***************************************
+ ** Parses and then immediately returns
+ ** the file's contents. Function added
+ ** by Bruce Christensen.
+ ***************************************/
+ function pget($file_id, $replacements = ''){
+ $this->register($file_id, $replacements);
+ $this->parse($file_id);
+ return $this->return_file($file_id);
+ }
+
+ /***************************************
+ ** Loads a file, parses it, and prints it.
+ ** This function added by Bruce Christensen.
+ ***************************************/
+ function pprint_file($filename, $replacements = ''){
+ for($file_id=1; isset($this->files[$file_id]); $file_id++);
+ $this->load_file($file_id, $filename);
+ $this->pprint($file_id, $replacements);
+ unset($this->files[$file_id]);
+ }
+
+ /***************************************
+ ** Loads, parses and then immediately
+ ** returns the file's contents.
+ ** Function added by Bruce Christensen.
+ ***************************************/
+ function pget_file($filename, $replacements = ''){
+ for($file_id=1; isset($this->files[$file_id]); $file_id++);
+ $this->load_file($file_id, $filename);
+ return $this->pget($file_id, $replacements);
+ }
+
+ } // End of class
+ ?>
Index: llvm-www/poll/inc/voting.class.inc.php
diff -c /dev/null llvm-www/poll/inc/voting.class.inc.php:1.1
*** /dev/null Wed Nov 29 13:29:24 2006
--- llvm-www/poll/inc/voting.class.inc.php Wed Nov 29 13:29:07 2006
***************
*** 0 ****
--- 1,273 ----
+ <?php
+
+ /*****************************************************
+ ** Title........: Voting Class
+ ** Filename.....: voting.class.inc.php
+ ** Author.......: Ralf Stadtaus
+ ** Homepage.....: http://www.stadtaus.com/
+ ** Contact......: http://www.stadtaus.com/forum/
+ ** Version......: 0.3
+ ** Notes........:
+ ** Last changed.: 2004-03-18
+ ** Last change..: IP check
+ *****************************************************/
+
+ /*****************************************************
+ **
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
+ ** OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+ ** LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ ** FITNESS FOR A PARTICULAR PURPOSE AND
+ ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
+ ** OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+ ** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ ** OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ ** OTHER DEALINGS IN THE SOFTWARE.
+ **
+ *****************************************************/
+
+
+
+
+
+ class Voting
+ {
+
+
+
+
+ /*****************************************************
+ ** Log all downloads - new line for each download
+ *****************************************************/
+ function log($log_path, $vote_name, $intern_value, $extern_value)
+ {
+
+ $log_content = array(
+
+ get_ip(), /* IP address of the remote host */
+ @gethostbyaddr(get_ip()), /* Name of the remote host */
+ date("Y-m-d (H:i)", mktime()), /* Date of the download (in international ISO format) */
+ mktime(), /* Date of the download (in Unix timestamp) */
+ $vote_name, /* */
+ $intern_value, /* */
+ $extern_value, /* */
+ getenv('HTTP_REFERER'), /* Referring URL */
+ getenv('HTTP_USER_AGENT'), /* User agent */
+
+ );
+
+
+
+ $log_content = join(' - ', $log_content);
+
+ debug_mode($log_content, 'Log Entry');
+
+ if ($logfile = fopen($log_path, 'a')) {
+ flock($logfile, 2);
+ if (fputs($logfile, $log_content . "\n")) {
+ fclose($logfile);
+ return 1;
+ }
+ fclose($logfile);
+ }
+
+ }
+
+
+
+
+ /*****************************************************
+ ** Content of the count file
+ *****************************************************/
+ function count_content($file_name, $download_number, $first_download, $last_download)
+ {
+ $log_content = array(
+ $file_name, /* Name of the download file */
+ $download_number + 1, /* Adds 1 to current number of downloads */
+ date("Y-m-d (H:i)", $first_download), /* Date of the first download (in international ISO format) */
+ date("Y-m-d (H:i)", $last_download), /* Date of the last download (in international ISO format) */
+ $first_download, /* Date of the first download in Unix timestamp */
+ $last_download /* Date of the last download in Unix timestamp */
+
+ );
+
+
+ $log_content = join(' - ', $log_content);
+
+
+ return $log_content;
+ }
+
+
+
+
+ /*****************************************************
+ ** Reads the numbers of downloads and calculates the
+ ** new download number.
+ *****************************************************/
+ function count($log_path, $download_path, $file_name)
+ {
+ unset($log_template_content);
+
+ $query_file_name = trim($file_name);
+ $current_time = mktime();
+
+
+ if (is_file($log_path)) {
+
+ $count_file_content = file($log_path);
+ $log_template_content = array();
+
+
+ while(list($key, $line) = each($count_file_content))
+ {
+ $line = trim($line);
+
+ if (!empty($line)) {
+ $data = explode(' - ', $line);
+ $stored_file_name = trim($data[0]);
+
+
+ if (trim($data[0]) == trim($file_name)) {
+
+ $download_number = trim($data[1]);
+ $first_download = trim($data[4]);
+ $last_download = mktime();
+
+
+ $log_template_content_temp = $this->count_content($stored_file_name, $download_number, $first_download, $last_download);
+ $log_template_content[] = $log_template_content_temp;
+
+ debug_mode($log_template_content_temp, 'Replace Entry');
+
+ unset($log_template_content_temp);
+
+ $check = 'true';
+
+ } else {
+ $log_template_content[] = $line;
+ }
+ }
+ }
+
+ if (!isset($check) or $check != 'true') {
+ $log_template_content_temp = $this->count_content($query_file_name, 0, $current_time, $current_time);
+ $log_template_content[] = $log_template_content_temp;
+
+ debug_mode($log_template_content_temp, 'New Entry');
+
+ unset($log_template_content_temp);
+ }
+
+
+ $new_file_content = join("\n", $log_template_content);
+
+ if ($logfile = fopen($log_path, 'w+')) {
+ flock($logfile, 2);
+ fputs($logfile, $new_file_content);
+ fclose($logfile);
+ }
+ } else {
+
+ $log_template_content = $this->count_content($query_file_name, 0, mktime(), mktime());
+
+ debug_mode($log_template_content, 'First Entry');
+
+ if ($logfile = fopen($log_path, 'a')) {
+ flock($logfile, 2);
+ fputs ($logfile, $log_template_content . "\n");
+ fclose ($logfile);
+ }
+
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Get number of votes
+ *****************************************************/
+ function get_vote_result($log_path, $vote_name)
+ {
+
+ if (is_file($log_path)) {
+
+ $count_file_content = file($log_path);
+ $log_template_content = array();
+ $rating = 0;
+
+
+ while(list($key, $line) = each($count_file_content))
+ {
+ $line = trim($line);
+
+ if (!empty($line)) {
+
+ $data = explode(' - ', $line);
+ $intern_value = trim($data[5]);
+
+ if ($vote_name == trim($data[4])) {
+
+ if (isset($option[$intern_value])) {
+ $option[$intern_value]++;
+ } else {
+ $option[$intern_value] = 1;
+ }
+
+
+ $rating_value = trim($data[6]);
+
+ if (is_numeric($rating_value)) {
+ $rating += $rating_value;
+ }
+
+ $check = 'true';
+
+ }
+ }
+ }
+
+ if (isset($check) and $check == 'true') {
+ return array('voting' => $option, 'rating' => $rating);
+ }
+ }
+ }
+
+
+
+
+ /*****************************************************
+ ** Check last voting time by ip address
+ *****************************************************/
+ function check_ip_address($log_path, $name, $time, $ip)
+ {
+
+ if (is_file($log_path)) {
+
+ $count_file_content = file($log_path);
+ $log_template_content = array();
+
+
+ while(list($key, $line) = each($count_file_content))
+ {
+ $line = trim($line);
+
+ if (!empty($line)) {
+
+ $data = explode(' - ', $line);
+ // echo trim($data[4]);
+
+ if ($name == trim($data[4]) and trim($data[3]) >= $time and $ip == trim($data[0])) {
+ return trim($data[0]);
+ }
+ }
+ }
+ }
+ }
+
+
+
+ } // End of class
+ ?>
\ No newline at end of file
More information about the llvm-commits
mailing list