News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - SleePy

#21
PHP Logo
PHP Version 5.3.2-dev

System    Darwin The-SleePy-Laptop.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
Build Date    Dec 5 2009 18:41:57
Configure Command    './configure' '--prefix=/home/software/php/v5' '--sysconfdir=/etc' '--localstatedir=/var' '--mandir=/usr/share/man' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-apxs2=/home/software/apache/bin/apxs' '--enable-maintainer-zts' '--with-zlib-dir=/home/software/zlib' '--enable-mbstring' '--with-gd' '--with-png-dir=/home/software/libpng' '--without-iconv' '--with-pgsql=/home/software/postgresql' '--enable-deb'
Server API    Apache 2.0 Handler
Virtual Directory Support    enabled
Configuration File (php.ini) Path    /home/software/php/v5/lib
Loaded Configuration File    /home/software/php/v5/lib/php.ini
Scan this dir for additional .ini files    (none)
Additional .ini files parsed    (none)
PHP API    20090626
PHP Extension    20090626
Zend Extension    220090626
Zend Extension Build    API220090626,TS
PHP Extension Build    API20090626,TS
Debug Build    no
Thread Safety    enabled
Zend Memory Manager    enabled
Zend Multibyte Support    disabled
IPv6 Support    enabled
Registered PHP Streams    compress.zlib, php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports    tcp, udp, unix, udg
Registered Stream Filters    zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

PHP Credits
Configuration
apache2handler
Apache Version    Apache/2.2.13 (Unix) PHP/5.3.2-dev
Apache API Version    20051115
Server Administrator    you@example.com
Hostname:Port    simplemachines.test:0
User/Group    jeremy(502)/70
Max Requests    Per Child: 10000 - Keep Alive: on - Max Per Connection: 100
Timeouts    Connection: 5 - Keep-Alive: 5
Virtual Server    Yes
Server Root    /home/software/apache
Loaded Modules    core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_env mod_setenvif mod_version prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_cgi mod_vhost_alias mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_so mod_php5

Directive   Local Value   Master Value
engine   1   1
last_modified   0   0
xbithack   0   0

Apache Environment
Variable   Value
HTTP_HOST    www.simplemachines.test
HTTP_USER_AGENT    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
HTTP_ACCEPT    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE    en-us,en;q=0.5
HTTP_ACCEPT_ENCODING    gzip,deflate
HTTP_ACCEPT_CHARSET    ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE    115
HTTP_CONNECTION    keep-alive
HTTP_COOKIE    SMFCookieDE001=a%3A4%3A%7Bi%3A0%3Bs%3A1%3A%223%22%3Bi%3A1%3Bs%3A40%3A%22ecbdd47d60791a957782e4ed26c3863f7cb23203%22%3Bi%3A2%3Bi%3A1287340415%3Bi%3A3%3Bi%3A0%3B%7D
HTTP_X_LORI_TIME_1    1287337230525
PATH    /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SIGNATURE    no value
SERVER_SOFTWARE    Apache/2.2.13 (Unix) PHP/5.3.2-dev
SERVER_NAME    www.simplemachines.test
SERVER_ADDR    127.0.0.1
SERVER_PORT    80
REMOTE_ADDR    127.0.0.1
DOCUMENT_ROOT    /home/sites/simplemachines.org/public_html
SERVER_ADMIN    you@example.com
SCRIPT_FILENAME    /home/smf/index_files/phpinfo.php
REMOTE_PORT    51846
GATEWAY_INTERFACE    CGI/1.1
SERVER_PROTOCOL    HTTP/1.1
REQUEST_METHOD    GET
QUERY_STRING    no value
REQUEST_URI    /phpinfo.php
SCRIPT_NAME    /phpinfo.php

HTTP Headers Information
HTTP Request Headers
HTTP Request    GET /phpinfo.php HTTP/1.1
Host    www.simplemachines.test
User-Agent    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
Accept    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language    en-us,en;q=0.5
Accept-Encoding    gzip,deflate
Accept-Charset    ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive    115
Connection    keep-alive
Cookie    SMFCookieDE001=a%3A4%3A%7Bi%3A0%3Bs%3A1%3A%223%22%3Bi%3A1%3Bs%3A40%3A%22ecbdd47d60791a957782e4ed26c3863f7cb23203%22%3Bi%3A2%3Bi%3A1287340415%3Bi%3A3%3Bi%3A0%3B%7D
X-lori-time-1    1287337230525
HTTP Response Headers
X-Powered-By    PHP/5.3.2-dev
Keep-Alive    timeout=5, max=99
Connection    Keep-Alive
Transfer-Encoding    chunked
Content-Type    text/html

Core
PHP Version    5.3.2-dev

Directive   Local Value   Master Value
allow_call_time_pass_reference   Off   Off
allow_url_fopen   Off   Off
allow_url_include   Off   Off
always_populate_raw_post_data   Off   Off
arg_separator.input   ;&   ;&
arg_separator.output   &   &
asp_tags   Off   Off
auto_append_file   /home/smf/index_files/sm_exit_script.php   no value
auto_globals_jit   On   On
auto_prepend_file   /home/smf/index_files/sm_startup_script.php   no value
browscap   no value   no value
default_charset   no value   no value
default_mimetype   text/html   text/html
define_syslog_variables   Off   Off
disable_classes   no value   no value
disable_functions   no value   no value
display_errors   On   On
display_startup_errors   On   On
doc_root   no value   no value
docref_ext   no value   no value
docref_root   no value   no value
enable_dl   On   On
error_append_string   no value   no value
error_log   phpX_error_log   phpX_error_log
error_prepend_string   no value   no value
error_reporting   30719   30719
exit_on_timeout   Off   Off
expose_php   On   On
extension_dir   ./   ./
file_uploads   On   On
highlight.bg   #FFFFFF   #FFFFFF
highlight.comment   #FF8000   #FF8000
highlight.default   #0000BB   #0000BB
highlight.html   #000000   #000000
highlight.keyword   #007700   #007700
highlight.string   #DD0000   #DD0000
html_errors   On   On
ignore_repeated_errors   Off   Off
ignore_repeated_source   Off   Off
ignore_user_abort   Off   Off
implicit_flush   Off   Off
include_path   .:/home/software/php/v5/lib/php   .:/home/software/php/v5/lib/php
log_errors   On   On
log_errors_max_len   1024   1024
magic_quotes_gpc   Off   Off
magic_quotes_runtime   Off   Off
magic_quotes_sybase   Off   Off
mail.add_x_header   Off   Off
mail.force_extra_parameters   no value   no value
mail.log   no value   no value
max_execution_time   360   360
max_file_uploads   20   20
max_input_nesting_level   64   64
max_input_time   360   360
memory_limit   5G   5G
open_basedir   no value   no value
output_buffering   4096   4096
output_handler   no value   no value
post_max_size   128M   128M
precision   14   14
realpath_cache_size   16K   16K
realpath_cache_ttl   120   120
register_argc_argv   Off   Off
register_globals   Off   Off
register_long_arrays   Off   Off
report_memleaks   On   On
report_zend_debug   On   On
request_order   GP   GP
safe_mode   Off   Off
safe_mode_exec_dir   no value   no value
safe_mode_gid   Off   Off
safe_mode_include_dir   no value   no value
sendmail_from   no value   no value
sendmail_path   /usr/sbin/sendmail -t -i    /usr/sbin/sendmail -t -i
serialize_precision   100   100
short_open_tag   Off   Off
SMTP   localhost   localhost
smtp_port   25   25
sql.safe_mode   Off   Off
track_errors   Off   Off
unserialize_callback_func   no value   no value
upload_max_filesize   64M   64M
upload_tmp_dir   no value   no value
user_dir   no value   no value
user_ini.cache_ttl   300   300
user_ini.filename   .user.ini   .user.ini
variables_order   GPCS   GPCS
xmlrpc_error_number   0   0
xmlrpc_errors   Off   Off
y2k_compliance   On   On
zend.enable_gc   On   On

ctype
ctype functions    enabled

date
date/time support    enabled
"Olson" Timezone Database Version    2009.19
Timezone Database    internal
Default timezone    America/Los_Angeles

Directive   Local Value   Master Value
date.default_latitude   31.7667   31.7667
date.default_longitude   35.2333   35.2333
date.sunrise_zenith   90.583333   90.583333
date.sunset_zenith   90.583333   90.583333
date.timezone   America/Los_Angeles   America/Los_Angeles

dom
DOM/XML    enabled
DOM/XML API Version    20031129
libxml Version    2.7.3
HTML Support    enabled
XPath Support    enabled
XPointer Support    enabled
Schema Support    enabled
RelaxNG Support    enabled

ereg
Regex Library    Bundled library enabled

fileinfo
fileinfo support   enabled
version    1.0.5-dev

filter
Input Validation and Filtering    enabled
Revision    $Revision: 288083 $

Directive   Local Value   Master Value
filter.default   unsafe_raw   unsafe_raw
filter.default_flags   no value   no value

gd
GD Support    enabled
GD Version    bundled (2.0.34 compatible)
GIF Read Support    enabled
GIF Create Support    enabled
PNG Support    enabled
libPNG Version    1.2.39
WBMP Support    enabled
XBM Support    enabled

Directive   Local Value   Master Value
gd.jpeg_ignore_warning   0   0

hash
hash support    enabled
Hashing Engines    md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

json
json support    enabled
json version    1.2.1

libxml
libXML support    active
libXML Compiled Version    2.7.3
libXML Loaded Version    20703
libXML streams    enabled

mbstring
Multibyte Support    enabled
Multibyte string engine    libmbfl
HTTP input encoding translation    disabled

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support    enabled
Multibyte regex (oniguruma) backtrack check    On
Multibyte regex (oniguruma) version    4.7.1

Directive   Local Value   Master Value
mbstring.detect_order   no value   no value
mbstring.encoding_translation   Off   Off
mbstring.func_overload   0   0
mbstring.http_input   pass   pass
mbstring.http_output   pass   pass
mbstring.http_output_conv_mimetypes   ^(text/|application/xhtml\+xml)   ^(text/|application/xhtml\+xml)
mbstring.internal_encoding   no value   no value
mbstring.language   neutral   neutral
mbstring.strict_detection   Off   Off
mbstring.substitute_character   no value   no value

mysql
MySQL Support   enabled
Active Persistent Links    0
Active Links    0
Client API version    mysqlnd 5.0.6-dev - 091022 - $Revision: 291051 $
Persistent cache   enabled
put_hits    0
put_misses    0
get_hits    0
get_misses    0
size    2000
free_items    2000
references    2

Directive   Local Value   Master Value
mysql.allow_local_infile   On   On
mysql.allow_persistent   On   On
mysql.cache_size   2000   2000
mysql.connect_timeout   60   60
mysql.default_host   no value   no value
mysql.default_password   no value   no value
mysql.default_port   no value   no value
mysql.default_socket   no value   no value
mysql.default_user   no value   no value
mysql.max_links   Unlimited   Unlimited
mysql.max_persistent   Unlimited   Unlimited
mysql.trace_mode   Off   Off

mysqli
MysqlI Support   enabled
Client API library version    mysqlnd 5.0.6-dev - 091022 - $Revision: 291051 $
Active Persistent Links    0
Inactive Persistent Links    0
Active Links    0
Persistent cache   enabled
put_hits    0
put_misses    0
get_hits    0
get_misses    0
size    2000
free_items    2000
references    2

Directive   Local Value   Master Value
mysqli.allow_local_infile   On   On
mysqli.allow_persistent   On   On
mysqli.cache_size   2000   2000
mysqli.default_host   no value   no value
mysqli.default_port   3306   3306
mysqli.default_pw   no value   no value
mysqli.default_socket   no value   no value
mysqli.default_user   no value   no value
mysqli.max_links   Unlimited   Unlimited
mysqli.max_persistent   Unlimited   Unlimited
mysqli.reconnect   Off   Off

mysqlnd
mysqlnd   enabled
Version    mysqlnd 5.0.6-dev - 091022 - $Revision: 291051 $
Compression    supported
Command buffer size    4096
Read buffer size    32768
Read timeout    31536000
Collecting statistics    Yes
Collecting memory statistics    No

Client statistics   
bytes_sent    187307
bytes_received    405179
packets_sent    334
packets_received    7146
protocol_overhead_in    28584
protocol_overhead_out    1336
bytes_received_ok_packet    451
bytes_received_eof_packet    1476
bytes_received_rset_header_packet    2783
bytes_received_rset_field_meta_packet    81017
bytes_received_rset_row_packet    289130
bytes_received_prepare_response_packet    0
bytes_received_change_user_packet    0
packets_sent_command    316
packets_received_ok    41
packets_received_eof    164
packets_received_rset_header    257
packets_received_rset_field_meta    1192
packets_received_rset_row    5474
packets_received_prepare_response    0
packets_received_change_user    0
result_set_queries    146
non_result_set_queries    111
no_index_used    99
bad_index_used    0
slow_queries    0
buffered_sets    146
unbuffered_sets    0
ps_buffered_sets    0
ps_unbuffered_sets    0
flushed_normal_sets    0
flushed_ps_sets    0
ps_prepared_never_executed    0
ps_prepared_once_executed    0
rows_fetched_from_server_normal    5328
rows_fetched_from_server_ps    0
rows_buffered_from_client_normal    5328
rows_buffered_from_client_ps    0
rows_fetched_from_client_normal_buffered    3723
rows_fetched_from_client_normal_unbuffered    0
rows_fetched_from_client_ps_buffered    0
rows_fetched_from_client_ps_unbuffered    0
rows_fetched_from_client_ps_cursor    0
rows_affected_normal    69
rows_affected_ps    0
rows_skipped_normal    5328
rows_skipped_ps    0
copy_on_write_saved    6740
copy_on_write_performed    11528
command_buffer_too_small    12
connect_success    18
connect_failure    2
connection_reused    0
reconnect    0
pconnect_success    0
active_connections    0
active_persistent_connections    0
explicit_close    18
implicit_close    0
disconnect_close    0
in_middle_of_command_close    0
explicit_free_result    146
implicit_free_result    0
explicit_stmt_close    0
implicit_stmt_close    0
mem_emalloc_count    0
mem_emalloc_ammount    0
mem_ecalloc_count    0
mem_ecalloc_ammount    0
mem_erealloc_count    2693
mem_erealloc_ammount    0
mem_efree_count    344
mem_malloc_count    0
mem_malloc_ammount    0
mem_calloc_count    0
mem_calloc_ammount    0
mem_realloc_count    0
mem_realloc_ammount    0
mem_free_count    0
proto_text_fetched_null    0
proto_text_fetched_bit    0
proto_text_fetched_tinyint    1134
proto_text_fetched_short    304
proto_text_fetched_int24    885
proto_text_fetched_int    138
proto_text_fetched_bigint    2647
proto_text_fetched_decimal    28
proto_text_fetched_float    26
proto_text_fetched_double    0
proto_text_fetched_date    26
proto_text_fetched_year    0
proto_text_fetched_time    0
proto_text_fetched_datetime    880
proto_text_fetched_timestamp    0
proto_text_fetched_string    7736
proto_text_fetched_blob    3639
proto_text_fetched_enum    0
proto_text_fetched_set    0
proto_text_fetched_geometry    0
proto_text_fetched_other    0
proto_binary_fetched_null    0
proto_binary_fetched_bit    0
proto_binary_fetched_tinyint    0
proto_binary_fetched_short    0
proto_binary_fetched_int24    0
proto_binary_fetched_int    0
proto_binary_fetched_bigint    0
proto_binary_fetched_decimal    0
proto_binary_fetched_float    0
proto_binary_fetched_double    0
proto_binary_fetched_date    0
proto_binary_fetched_year    0
proto_binary_fetched_time    0
proto_binary_fetched_datetime    0
proto_binary_fetched_timestamp    0
proto_binary_fetched_string    0
proto_binary_fetched_blob    0
proto_binary_fetched_enum    0
proto_binary_fetched_set    0
proto_binary_fetched_geometry    0
proto_binary_fetched_other    0
init_command_executed_count    0
init_command_failed_count    0
com_quit    18
com_init_db    23
com_query    257
com_field_list    0
com_create_db    0
com_drop_db    0
com_refresh    0
com_shutdown    0
com_statistics    0
com_process_info    0
com_connect    0
com_process_kill    0
com_debug    0
com_ping    0
com_time    0
com_delayed_insert    0
com_change_user    0
com_binlog_dump    0
com_table_dump    0
com_connect_out    0
com_register_slave    0
com_stmt_prepare    0
com_stmt_execute    0
com_stmt_send_long_data    0
com_stmt_close    0
com_stmt_reset    0
com_stmt_set_option    18
com_stmt_fetch    0
com_deamon    0

pcre
PCRE (Perl Compatible Regular Expressions) Support    enabled
PCRE Library Version    8.00 2009-10-19

Directive   Local Value   Master Value
pcre.backtrack_limit   100000   100000
pcre.recursion_limit   100000   100000

PDO
PDO support   enabled
PDO drivers    mysql, sqlite, sqlite2

pdo_mysql
PDO Driver for MySQL   enabled
Client API version    mysqlnd 5.0.6-dev - 091022 - $Revision: 291051 $
Persistent cache   enabled
put_hits    0
put_misses    0
get_hits    0
get_misses    0
size    2000
free_items    2000
references    2

Directive   Local Value   Master Value
pdo_mysql.cache_size   2000   2000
pdo_mysql.default_socket   /tmp/mysql.sock   /tmp/mysql.sock

pdo_sqlite
PDO Driver for SQLite 3.x   enabled
SQLite Library    3.6.20

pgsql
PostgreSQL Support   enabled
PostgreSQL(libpq) Version    8.3.7
Multibyte character support    enabled
SSL support    disabled
Active Persistent Links    0
Active Links    0

Directive   Local Value   Master Value
pgsql.allow_persistent   On   On
pgsql.auto_reset_persistent   Off   Off
pgsql.ignore_notice   Off   Off
pgsql.log_notice   Off   Off
pgsql.max_links   Unlimited   Unlimited
pgsql.max_persistent   Unlimited   Unlimited

Phar
Phar: PHP Archive support   enabled
Phar EXT version    2.0.1
Phar API version    1.1.1
SVN revision    $Revision: 290435 $
Phar-based phar archives    enabled
Tar-based phar archives    enabled
ZIP-based phar archives    enabled
gzip compression    enabled
bzip2 compression    disabled (install pecl/bz2)
OpenSSL support    disabled (install ext/openssl)

Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.

Directive   Local Value   Master Value
phar.cache_list   no value   no value
phar.readonly   On   On
phar.require_hash   On   On

posix
Revision    $Revision: 288943 $

Reflection
Reflection   enabled
Version    $Revision: 290515 $

session
Session Support    enabled
Registered save handlers    files user sqlite
Registered serializer handlers    php php_binary

Directive   Local Value   Master Value
session.auto_start   Off   Off
session.bug_compat_42   Off   Off
session.bug_compat_warn   On   On
session.cache_expire   180   180
session.cache_limiter   nocache   nocache
session.cookie_domain   no value   no value
session.cookie_httponly   Off   Off
session.cookie_lifetime   0   0
session.cookie_path   /   /
session.cookie_secure   Off   Off
session.entropy_file   no value   no value
session.entropy_length   0   0
session.gc_divisor   1000   1000
session.gc_maxlifetime   1440   1440
session.gc_probability   1   1
session.hash_bits_per_character   5   5
session.hash_function   0   0
session.name   PHPSESSID   PHPSESSID
session.referer_check   no value   no value
session.save_handler   files   files
session.save_path   no value   no value
session.serialize_handler   php   php
session.use_cookies   On   On
session.use_only_cookies   On   On
session.use_trans_sid   0   0

SimpleXML
Simplexml support   enabled
Revision    $Revision: 289279 $
Schema support    enabled

SPL
SPL support   enabled
Interfaces    Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes    AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite
SQLite support   enabled
PECL Module version    2.0-dev $Id: sqlite.c 289587 2009-10-12 19:04:00Z felipe $
SQLite Library    2.8.17
SQLite Encoding    iso8859

Directive   Local Value   Master Value
sqlite.assoc_case   0   0

sqlite3
SQLite3 support   enabled
SQLite3 module version    0.7-dev
SQLite Library    3.6.20

Directive   Local Value   Master Value
sqlite3.extension_dir   no value   no value

standard
Dynamic Library Support    enabled
Path to sendmail    /usr/sbin/sendmail -t -i

Directive   Local Value   Master Value
assert.active   1   1
assert.bail   0   0
assert.callback   no value   no value
assert.quiet_eval   0   0
assert.warning   1   1
auto_detect_line_endings   0   0
default_socket_timeout   60   60
safe_mode_allowed_env_vars   PHP_   PHP_
safe_mode_protected_env_vars   LD_LIBRARY_PATH   LD_LIBRARY_PATH
url_rewriter.tags   a=href,area=href,frame=src,input=src,form=fakeentry   a=href,area=href,frame=src,input=src,form=fakeentry
user_agent   no value   no value

tokenizer
Tokenizer Support    enabled

xml
XML Support    active
XML Namespace Support    active
libxml2 Version    2.7.3

xmlreader
XMLReader    enabled

xmlwriter
XMLWriter    enabled

zlib
ZLib Support    enabled
Stream Wrapper support    compress.zlib://
Stream Filter support    zlib.inflate, zlib.deflate
Compiled Version    1.2.3
Linked Version    1.2.3

Directive   Local Value   Master Value
zlib.output_compression   Off   Off
zlib.output_compression_level   -1   -1
zlib.output_handler   no value   no value

Additional Modules
Module Name

Environment
Variable   Value
PATH    /usr/bin:/bin:/usr/sbin:/sbin
LD_LIBRARY_PATH    /usr/local/lib/

PHP Variables
Variable   Value
_COOKIE["SMFCookieDE001"]   a:4:{i:0;s:1:"3";i:1;s:40:"ecbdd47d60791a957782e4ed26c3863f7cb23203";i:2;i:1287340415;i:3;i:0;}
_SERVER["HTTP_HOST"]   www.simplemachines.test
_SERVER["HTTP_USER_AGENT"]   Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
_SERVER["HTTP_ACCEPT"]   text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"]   en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"]   gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"]   ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"]   115
_SERVER["HTTP_CONNECTION"]   keep-alive
_SERVER["HTTP_COOKIE"]   SMFCookieDE001=a%3A4%3A%7Bi%3A0%3Bs%3A1%3A%223%22%3Bi%3A1%3Bs%3A40%3A%22ecbdd47d60791a957782e4ed26c3863f7cb23203%22%3Bi%3A2%3Bi%3A1287340415%3Bi%3A3%3Bi%3A0%3B%7D
_SERVER["HTTP_X_LORI_TIME_1"]   1287337230525
_SERVER["PATH"]   /usr/bin:/bin:/usr/sbin:/sbin
_SERVER["SERVER_SIGNATURE"]   no value
_SERVER["SERVER_SOFTWARE"]   Apache/2.2.13 (Unix) PHP/5.3.2-dev
_SERVER["SERVER_NAME"]   www.simplemachines.test
_SERVER["SERVER_ADDR"]   127.0.0.1
_SERVER["SERVER_PORT"]   80
_SERVER["REMOTE_ADDR"]   127.0.0.1
_SERVER["DOCUMENT_ROOT"]   /home/sites/simplemachines.org/public_html
_SERVER["SERVER_ADMIN"]   you@example.com
_SERVER["SCRIPT_FILENAME"]   /home/smf/index_files/phpinfo.php
_SERVER["REMOTE_PORT"]   51846
_SERVER["GATEWAY_INTERFACE"]   CGI/1.1
_SERVER["SERVER_PROTOCOL"]   HTTP/1.1
_SERVER["REQUEST_METHOD"]   GET
_SERVER["QUERY_STRING"]   no value
_SERVER["REQUEST_URI"]   /phpinfo.php
_SERVER["SCRIPT_NAME"]   /phpinfo.php
_SERVER["PHP_SELF"]   /phpinfo.php
_SERVER["REQUEST_TIME"]   1287337230

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
#22
Tue-13:36:44 * Looking up Loopy.NJ.US.VillageIRC.net
Tue-13:36:47 * Connecting to loopy.villageirc.net (69.72.215.132) port 9999...
Tue-13:37:21 * * Subject: /CN=irc.villageirc.net
Tue-13:37:21 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-13:37:21 * * Subject: /CN=irc.villageirc.net
Tue-13:37:21 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-13:37:21 * * Subject: /CN=irc.villageirc.net
Tue-13:37:21 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-13:37:22 * * Certification info:
Tue-13:37:22 *   Subject:
Tue-13:37:22 *     CN=irc.villageirc.net
Tue-13:37:22 *   Issuer:
Tue-13:37:22 *     O=Root CA
Tue-13:37:22 *     OU=http:
Tue-13:37:22 *    
Tue-13:37:22 *     www.cacert.org
Tue-13:37:22 *     CN=CA Cert Signing Authority
Tue-13:37:22 *     emailAddress=support@cacert.org
Tue-13:37:22 *   Public key algorithm: rsaEncryption (1024 bits)
Tue-13:37:22 *   Sign algorithm sha1WithRSAEncryption
Tue-13:37:22 *   Valid since Feb 18 20:01:58 2009 GMT to Aug 17 20:01:58 2009 GMT
Tue-13:37:22 * * Cipher info:
Tue-13:37:22 *   Version: TLSv1/SSLv3, cipher AES256-SHA (256 bits)
Tue-13:37:22 * * Verify E: unable to verify the first certificate.? (21) -- Ignored
Tue-13:37:22 * Connected. Now logging in...
Tue-13:37:22 * Welcome to the VillageIRC network SleePy!~SleePy@pool-71-115-217-112.spknwa.dsl-w.verizon.net
Tue-13:37:22 * Your host is Loopy.NJ.US.VillageIRC.net[@0.0.0.0], running UltimateIRCd(Tsunami)-3.0(02)
Tue-13:37:22 * This server was last (re)started on Mon Feb 5 2007 at 12:03:34 EST and is located in Clifton, New Jersey, USA
Tue-13:37:22 * Loopy.NJ.US.VillageIRC.net UltimateIRCd(Tsunami)-3.0(02) adhioprxDOPRSWZ acehimnopqstvAKMNORS
Tue-13:37:22 * SAFELIST SILENCE KNOCK FNC WATCH=128 CHANLIMIT=#&:20 MAXLIST=be:60 NICKLEN=30 TOPICLEN=307 KICKLEN=307 CHANNELLEN=32 :are available on this server
Tue-13:37:22 * EXCEPTS=e CHANTYPES=#& PREFIX=(aohv)!@%+ CHANMODES=be,k,l,cimnpqstAKMNORS STATUSMSG=!@%+ NETWORK=VillageIRC CASEMAPPING=ascii STD=i-d :are available on this server
Tue-13:37:22 * There are 0 users and 52 invisible on 5 servers
Tue-13:37:22 * 6 :IRC Operators online
Tue-13:37:22 * 53 :channels formed
Tue-13:37:22 * I have 52 clients and 1 servers
Tue-13:37:22 * Current local users: 52 Max: 298
Tue-13:37:22 * Current global users: 52 Max: 308
Tue-13:37:22 * *** Notice -- motd was last changed at 9/8/2009 12:48
Tue-13:37:22 * - Loopy.NJ.US.VillageIRC.net Message of the Day -
Tue-13:37:22 * - 5/10/2010 17:31
Tue-13:37:22 * - -=( Welcome To The VillageIRC Network )=-
Tue-13:37:22 * -
Tue-13:37:22 * -  L o o p y . N J . U S . V i l l a g e I R C . N e t
Tue-13:37:22 * -
Tue-13:37:22 * - -=( Loopy IRC )=-
Tue-13:37:22 * -
Tue-13:37:22 * -  Ports: 6660-6670, 7000, 9999 (SSL)
Tue-13:37:22 * -
Tue-13:37:22 * - -=( Rules Of Conduct )=-
Tue-13:37:22 * -
Tue-13:37:22 * -  To view the complete list of our Rules Of Conduct issue the command:
Tue-13:37:22 * -  /Rules
Tue-13:37:22 * -
Tue-13:37:22 * -  Or review our rules listed at http://www.villageirc.net/
Tue-13:37:22 * -
Tue-13:37:22 * -  If these terms are not acceptable to you, please do not use this network.
Tue-13:37:22 * -  Violators will be ejected from the system!
Tue-13:37:22 * -  We reserve the right to disconnect, and/or deny access to this server
Tue-13:37:22 * -  for any reason. Remember,this is a service we give to you, not a right.
Tue-13:37:22 * -
Tue-13:37:22 * - -=( IRC Staff )=-
Tue-13:37:22 * -
Tue-13:37:22 * -  The administration consists of the following people:
Tue-13:37:22 * -  Cynapede - ShadowMaster - Douglas
Tue-13:37:22 * -
Tue-13:37:22 * -  In addition you can view a list of all online IRC Operators
Tue-13:37:22 * -  on the entire network by doing /IRCOPS
Tue-13:37:22 * -
Tue-13:37:22 * -  Just to humor Runic... UPDATED!
Tue-13:37:22 * -
Tue-13:37:22 * - Happy Chatting!
Tue-13:37:22 * End of /MOTD.
Tue-16:27:02 * Disconnected (Remote host closed socket).
Tue-16:27:03 * Looking up Loopy.NJ.US.VillageIRC.net
Tue-16:27:03 * Connecting to loopy.villageirc.net (69.72.215.132) port 9999...
Tue-16:28:17 * Connection failed. Error: Operation timed out
Tue-16:28:18  Cycling to next server in VillageIRC...
Tue-16:28:18 * Disconnected ().
Tue-16:28:18 * Looking up Loopy.NJ.US.VillageIRC.net
Tue-16:28:18 * Connecting to loopy.villageirc.net (69.72.215.132) port 9999...
Tue-16:29:00 * * Subject: /CN=irc.villageirc.net
Tue-16:29:00 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:29:00 * * Subject: /CN=irc.villageirc.net
Tue-16:29:00 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:29:00 * * Subject: /CN=irc.villageirc.net
Tue-16:29:00 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:29:03 * * Certification info:
Tue-16:29:03 *   Subject:
Tue-16:29:03 *     CN=irc.villageirc.net
Tue-16:29:03 *   Issuer:
Tue-16:29:03 *     O=Root CA
Tue-16:29:03 *     OU=http:
Tue-16:29:03 *    
Tue-16:29:03 *     www.cacert.org
Tue-16:29:03 *     CN=CA Cert Signing Authority
Tue-16:29:03 *     emailAddress=support@cacert.org
Tue-16:29:03 *   Public key algorithm: rsaEncryption (1024 bits)
Tue-16:29:03 *   Sign algorithm sha1WithRSAEncryption
Tue-16:29:03 *   Valid since Feb 18 20:01:58 2009 GMT to Aug 17 20:01:58 2009 GMT
Tue-16:29:03 * * Cipher info:
Tue-16:29:03 *   Version: TLSv1/SSLv3, cipher AES256-SHA (256 bits)
Tue-16:29:03 * * Verify E: unable to verify the first certificate.? (21) -- Ignored
Tue-16:29:03 * Connected. Now logging in...
Tue-16:29:04 * Welcome to the VillageIRC network SleePy!~SleePy@pool-71-115-217-112.spknwa.dsl-w.verizon.net
Tue-16:29:04 * Your host is Loopy.NJ.US.VillageIRC.net[@0.0.0.0], running UltimateIRCd(Tsunami)-3.0(02)
Tue-16:29:04 * This server was last (re)started on Mon Feb 5 2007 at 12:03:34 EST and is located in Clifton, New Jersey, USA
Tue-16:29:04 * Loopy.NJ.US.VillageIRC.net UltimateIRCd(Tsunami)-3.0(02) adhioprxDOPRSWZ acehimnopqstvAKMNORS
Tue-16:29:04 * SAFELIST SILENCE KNOCK FNC WATCH=128 CHANLIMIT=#&:20 MAXLIST=be:60 NICKLEN=30 TOPICLEN=307 KICKLEN=307 CHANNELLEN=32 :are available on this server
Tue-16:29:04 * EXCEPTS=e CHANTYPES=#& PREFIX=(aohv)!@%+ CHANMODES=be,k,l,cimnpqstAKMNORS STATUSMSG=!@%+ NETWORK=VillageIRC CASEMAPPING=ascii STD=i-d :are available on this server
Tue-16:29:04 * There are 0 users and 10 invisible on 5 servers
Tue-16:29:04 * 11072 :unknown connection(s)
Tue-16:29:04 * 4 :channels formed
Tue-16:29:04 * I have 10 clients and 1 servers
Tue-16:29:04 * Current local users: 10 Max: 298
Tue-16:29:04 * Current global users: 10 Max: 308
Tue-16:29:04 * *** Notice -- motd was last changed at 9/8/2009 12:48
Tue-16:29:04 * - Loopy.NJ.US.VillageIRC.net Message of the Day -
Tue-16:29:04 * - 5/10/2010 20:25
Tue-16:29:04 * - -=( Welcome To The VillageIRC Network )=-
Tue-16:29:04 * -
Tue-16:29:04 * -  L o o p y . N J . U S . V i l l a g e I R C . N e t
Tue-16:29:04 * -
Tue-16:29:04 * - -=( Loopy IRC )=-
Tue-16:29:04 * -
Tue-16:29:23 * Disconnected ().
Tue-16:29:23 * Looking up Loopy.NJ.US.VillageIRC.net
Tue-16:29:23 * Connecting to loopy.villageirc.net (69.72.215.132) port 9999...
Tue-16:29:34 * * Subject: /CN=irc.villageirc.net
Tue-16:29:34 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:29:34 * * Subject: /CN=irc.villageirc.net
Tue-16:29:34 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:29:34 * * Subject: /CN=irc.villageirc.net
Tue-16:29:34 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:30:58 * Connection failed. Error: SSL handshake timed out
Tue-16:31:59 * Looking up Loopy.NJ.US.VillageIRC.net
Tue-16:31:59 * Connecting to loopy.villageirc.net (69.72.215.132) port 9999...
Tue-16:32:03 * * Subject: /CN=irc.villageirc.net
Tue-16:32:03 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:32:03 * * Subject: /CN=irc.villageirc.net
Tue-16:32:03 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:32:03 * * Subject: /CN=irc.villageirc.net
Tue-16:32:03 * * Issuer: /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
Tue-16:33:33 * Connection failed. Error: SSL handshake timed out
Tue-16:36:29 * Looking up 69.72.215.132
Tue-16:36:29 * Connecting to 69.72.215.132 (69.72.215.132) port 6667...
Tue-16:37:44 * Connection failed. Error: Operation timed out
Tue-19:01:06 * Looking up 69.72.215.132
Tue-19:01:06 * Connecting to 69.72.215.132 (69.72.215.132) port 6667...
Tue-19:01:06 * Connected. Now logging in...
Tue-19:01:06 * *** Looking up your hostname...
Tue-19:01:06 * *** Found your hostname, cached
Tue-19:01:06 * *** Checking Ident
Tue-19:01:06 * *** Got Ident response
Tue-19:01:06 * Welcome to the VillageIRC network SleePy!SleePy@pool-71-115-217-112.spknwa.dsl-w.verizon.net
Tue-19:01:06 * Your host is Loopy.NJ.US.VillageIRC.net[@0.0.0.0], running UltimateIRCd(Tsunami)-3.0(02)
Tue-19:01:06 * This server was last (re)started on Mon Feb 5 2007 at 12:03:34 EST and is located in Clifton, New Jersey, USA
Tue-19:01:06 * Loopy.NJ.US.VillageIRC.net UltimateIRCd(Tsunami)-3.0(02) adhioprxDOPRSWZ acehimnopqstvAKMNORS
Tue-19:01:06 * SAFELIST SILENCE KNOCK FNC WATCH=128 CHANLIMIT=#&:20 MAXLIST=be:60 NICKLEN=30 TOPICLEN=307 KICKLEN=307 CHANNELLEN=32 :are available on this server
Tue-19:01:06 * EXCEPTS=e CHANTYPES=#& PREFIX=(aohv)!@%+ CHANMODES=be,k,l,cimnpqstAKMNORS STATUSMSG=!@%+ NETWORK=VillageIRC CASEMAPPING=ascii STD=i-d :are available on this server
Tue-19:01:06 * There are 0 users and 43 invisible on 5 servers
Tue-19:01:06 * 4 :IRC Operators online
Tue-19:01:06 * 11111 :unknown connection(s)
Tue-19:01:06 * 50 :channels formed
Tue-19:01:06 * I have 43 clients and 1 servers
Tue-19:01:06 * Current local users: 43 Max: 298
Tue-19:01:06 * Current global users: 43 Max: 308
Tue-19:01:07 * *** Notice -- motd was last changed at 9/8/2009 12:48
Tue-19:01:07 * - Loopy.NJ.US.VillageIRC.net Message of the Day -
Tue-19:01:07 * - 5/10/2010 22:28
Tue-19:01:07 * - -=( Welcome To The VillageIRC Network )=-
Tue-19:01:07 * -
Tue-19:01:07 * -  L o o p y . N J . U S . V i l l a g e I R C . N e t
Tue-19:01:07 * -
Tue-19:01:07 * - -=( Loopy IRC )=-
Tue-19:01:07 * -
Tue-19:01:07 * -  Ports: 6660-6670, 7000, 9999 (SSL)
Tue-19:01:07 * -
Tue-19:01:07 * - -=( Rules Of Conduct )=-
Tue-19:01:07 * -
Tue-19:01:07 * -  To view the complete list of our Rules Of Conduct issue the command:
Tue-19:01:07 * -  /Rules
Tue-19:01:07 * -
Tue-19:01:07 * -  Or review our rules listed at http://www.villageirc.net/
Tue-19:01:07 * -
Tue-19:01:07 * -  If these terms are not acceptable to you, please do not use this network.
Tue-19:01:07 * -  Violators will be ejected from the system!
Tue-19:01:07 * -  We reserve the right to disconnect, and/or deny access to this server
Tue-19:01:07 * -  for any reason. Remember,this is a service we give to you, not a right.
Tue-19:01:07 * -
Tue-19:01:07 * - -=( IRC Staff )=-
Tue-19:01:07 * -
Tue-19:01:07 * -  The administration consists of the following people:
Tue-19:01:07 * -  Cynapede - ShadowMaster - Douglas
Tue-19:01:07 * -
Tue-19:01:07 * -  In addition you can view a list of all online IRC Operators
Tue-19:01:07 * -  on the entire network by doing /IRCOPS
Tue-19:01:07 * -
Tue-19:01:07 * -  Just to humor Runic... UPDATED!
Tue-19:01:07 * -
Tue-19:01:07 * - Happy Chatting!
Tue-19:01:07 * End of /MOTD.
Tue-19:01:07 * SleePy sets modes [SleePy :+ix]
Tue-19:01:07 -Proxy- Please Note, we are scanning your host for insecure open proxies. Please ignore any connections originating from 69.72.215.132 as it will be the scanner in action.
Tue-19:01:07  Ignore on NeoStats changed.
Tue-19:01:07 * Received a CTCP VERSION from NeoStats
Tue-19:01:07 -Network-HQ- [Random News - Aug 10 2001] Remember to join #Trivia to participate in a friendly game of mixed trivia.
Tue-19:01:07 -NickServ- This nickname is registered and protected.  If it is your
Tue-19:01:07 -NickServ- nick, type /msg NickServ IDENTIFY password.  Otherwise,
Tue-19:01:07 -NickServ- please choose a different nick.
Tue-19:01:07 * Found your IP: [71.115.217.112]
Tue-19:01:07  GARBAGE: SleePy NMODE SleePy :+sw
#23
class SmcController_manageType extends SmcController
{
   protected $_typeForm;
   protected $action;

   public function initialize()
   {
      global $siteman_settings;

      require_once($siteman_settings['sourcedir'] . '/Subs-SiteMan-Type.php');

      // Sorry, we shouldn't let too many people change the types.  We don't modify this that often.
      siteman_isAllowedTo('admin_siteman');
   }

   public function action_index()
   {
      // Default to sa=display.
      return $this->action_display();
   }

   public function action_display()
   {
      $id_type = isset($_GET['id_type']) ? (int) $_GET['id_type'] : 0;
      $version_info = gettypeInfo($id_type);

      $this->_inittypeForm();
      $this->_typeForm->handleAction('display');
   }

   public function action_edit()
   {
      $id_type = isset($_GET['id_type']) ? (int) $_GET['id_type'] : 0;

      $type_info = gettypeInfo($id_type);

      $this->_inittypeForm();
      $this->_typeForm->handleAction('edit');
   }

   public function action_add()
   {
      $this->_inittypeForm();
      $this->action = 'add';
      $this->_typeForm->handleAction('add');
   }

   protected function _inittypeForm()
   {
      global $siteman_settings;

      require_once($siteman_settings['sourcedir'] . '/Class-Form.php');

      $this->_typeForm = new SmcForm(array(
         'id' => 'manageType',
         'params' => array(
            'action' => 'string',
            'sa' => 'string',
            'id_type' => 'int',

         ),
         'actions' => array(
            'add' => array(
               'label' => 'Add a Type',
               'scripturl' => $siteman_settings['scripturl'],
               'controls' => array(
                  'name',
               ),
               'submit_function' => array($this, 'form_manageType_add_submit'),
               'redirect_href' => $siteman_settings['scripturl'] . '?action=manageType;sa=edit;id_type={id_type};refresh_tree=r_mb_eb:{id_type}',
            ),
            'edit' => array(
               'label' => 'Edit Type {type_name}',
               'scripturl' => $siteman_settings['scripturl'],
               'retrieve_function' => array($this, 'form_manageType_edit_retrieve'),
               'submit_function' => array($this, 'form_manageType_edit_submit'),
               'redirect_href' => $siteman_settings['scripturl'] . '?action=manageType;id_type={id_type};refresh_tree=r_mb_eb:{id_type}',
            ),
            'display' => array(
               'label' => 'Type {type_name}',
               'scripturl' => $siteman_settings['scripturl'],
               'read_only_controls' => array(
                  'name',
               ),
               'retrieve_function' => array($this, 'form_manageType_display_retrieve'),
               'tabs' => array(
                  'edit' => array(
                     'href' => $siteman_settings['scripturl'] . '?action=manageType;sa=edit;id_type={id_type}',
                     'label' => 'Edit Type',
                  ),
               ),
            ),

         ),
         'controls' => array(
            'name' => array(
               'label' => 'Type name',
               'edit_hint' => 'e.g. \'Converters\'',
               'type' => 'text',
               'validation' => array(
                  'isRequired' => true,
               ),
            ),
         ),
      ));
   }

   public function form_manageType_add_submit($form, $submittedValues)
   {
      $id_type = addType($submittedValues);
      $form->updateParam('id_type', $id_type);
   }

   public function form_manageType_edit_retrieve($form)
   {
      return getTypeInfo($form->params['id_type']);
   }

   public function form_manageType_edit_submit($form, $submittedValues)
   {
      editType($form->params['id_type'], $submittedValues);
   }

   public function form_manageType_display_retrieve($form)
   {
      return getTypeInfo($form->params['id_type']);
   }
}
#24
function getTypeInfo($id_type)
{
   $request = smcFunc::db_query('', '
      SELECT name
      FROM {raw:download_prefix}types
      WHERE id_type = {int:id_type}',
      array(
         'download_prefix' => smcFunc::dbPrefix('downloads'),
         'id_type' => $id_type,
      ), smcFunc::dbConnection('downloads')
   );
   if (smcFunc::db_num_rows($request) === 0)
      fatal_error('Branch not found.');

   $row = smcFunc::db_fetch_assoc($request);
   smcFunc::db_free_result($request);
   
   return array(
      'name' => $row['name'],
   );
}

function editType($id_type, $typeData)
{
   smcFunc::db_query('', '
      UPDATE {raw:download_prefix}types
      SET
         name = {string:name},
      WHERE id_type = {int:id_type}',
      array(
         'download_prefix' => smcFunc::dbPrefix('downloads'),
         'name' => $branchData['name'],
      ), smcFunc::dbConnection('downloads', true)
   );
}

function addType($typeData)
{
   smcFunc::db_insert('',
      smcFunc::dbPrefix('downloads') . 'types',
      array(
         'name' => 'string-255',
      ),
      array(
         $branchData['name'],
      ),
      array('id_type'),
      false,
      smcFunc::dbConnection('downloads', true)
   );

   $id_branch = smcFunc::db_insert_id($download_prefix . 'branches', 'id_branch');

   return $id_branch;
}

// Get all of our types.
function getIdTypeList()
{
   $request = smcFunc::db_query('', '
      SELECT id_type, name
      FROM {raw:download_prefix}types',
      array(
         'download_prefix' => smcFunc::dbPrefix('downloads'),
      ), smcFunc::dbConnection('downloads')
   );

   $types = array();
   while ($row = smcFunc::db_fetch_assoc($request))
      $types[$row['id_type']] = $row['name'];
   smcFunc::db_free_result($request);

   return $types;
}

function getTypeValues($id_type)
{
   if (in_array($id_type, array(0,1,2,3,5,7,8,10)))
      return array('0' => 'No Options available');

   // The conversion list.
   $type_table = getIdTypeTable();

   $request = smcFunc::db_query('', '
      SELECT {raw:id_row_name}, name
      FROM {raw:download_prefix}section_{raw:table_name}',
      array(
         'download_prefix' => smcFunc::dbPrefix('downloads'),
         'id_row_name' => $type_table[$id_type][1],
         'table_name' => $type_table[$id_type][0],
      ), smcFunc::dbConnection('downloads')
   );

   $types = array();
   while ($row = smcFunc::db_fetch_assoc($request))
      $types[$row[$type_table[$id_type][1]]] = $row['name'];
   smcFunc::db_free_result($request);

   return $types;
}

function getIdTypeTable()
{
   $type_table = array(
      4 => array('languages', 'id_language'),
      6 => array('converters', 'id_converter'),
      9 => array('bridges', 'id_bridge')
   );

   return $type_table;
}
#25
class smcFunc
{
   private static $site_connections = array();
   private static $site_prefixes = array();

   public static function __callStatic($name, $arugments)
   {
      global $smcFunc;
      return call_user_func_array($smcFunc[$name], $arugments);
   }

   // What prefix?
   public static function dbPrefix($section, $write = false)
   {
      if (!isset(self::$site_prefixes[$section][$write !== false ? 'write' : 'read']))
         self::loadSiteDb($section, $write);

      return self::$site_prefixes[$section][$write !== false ? 'write' : 'read'];
   }

   // Is the database loaded?
   public static function dbConnection($section, $write = false)
   {
      if (!isset(self::$site_connections[$section][$write !== false ? 'write' : 'read']))
         self::loadSiteDb($section, $type);

      return self::$site_connections[$section][$write !== false ? 'write' : 'read'];
   }

   // This creates the connection if it doesn't exist.
   public static function loadSiteDb($section, $write = false, $return_connection = false)
   {
      global $site_section, $siteman_settings, $sitedb_settings;

      // No section, how lame is that.
      if (empty($section) && empty($site_section))
         trigger_error('site_load_db() no section set', E_ERROR);
      $section = empty($section) ? $site_section : $section;

      // Doing both?
      if ($write == 'both')
      {
         siteman_load_db($section, false);
         $write = true;
      }

      // Try to include our database information if we haven't already
      if (!empty($section) && !isset($site_connections[$section][$write ? 'write' : 'read']))
         require($siteman_settings['settings_dir'] . '/settings_' . $section . '.php');

      // Make the connection!
      $type = $write ? 'write' : 'read';
      if (!isset(self::$site_connections[$section][$type]))
      {
         // No read or write data? Its old skool and needs updating.
         if (!isset($sitedb_settings[$section][$type]))
         {
            $sitedb_settings[$section][$type] = $sitedb_settings[$section];

            if (empty($sitedb_settings[$section][$type]['prefix']))
               $sitedb_settings[$section][$type]['prefix'] = '';
         }
   
         // The actual connection.
         self::$site_connections[$section][$type] = smf_db_initiate($sitedb_settings[$section][$type]['server'], $sitedb_settings[$section][$type]['name'], $sitedb_settings[$section][$type]['user'], $sitedb_settings[$section][$type]['passwd'], $sitedb_settings[$section][$type]['prefix'], array('persist' => false));

         // Using a special connection?
         if ($return_connection)
            return array($sitedb_settings[$section][$type]['prefix'], $site_connections[$section][$type]);

         self::$site_prefixes[$section][$type] = '`' . $sitedb_settings[$section][$type]['name'] . '`.' . $sitedb_settings[$section][$type]['prefix'];
      }

      return self::$site_prefixes[$section][$type];
   }
}
#26
# Added team group.
$wgRestrictionLevels[] = 'SMF_Team_Members';
$wgGroupPermissions['SMF_Team_Members'] = $wgGroupPermissions['user'];
$wgGroupPermissions['SMF_Team_Members']['SMF_Team_Members'] = true;
$wgGroupPermissions['sysop']['SMF_Team_Members'] = true;
#27
   class SmcController_ManageConverter extends SmcController
   {
      protected $_converterGroupForm;
      protected $_converterForm;

      // Classes have their advantages, such as a constructor.
      public function __construct()
      {
         global $download_prefix, $site_connections;

         if (empty($site_connections['downloads']['read']))
            $download_prefix = siteman_load_db('downloads');
      }

      public function action_index()
      {
         // Default to 'sa=add'.
         return $this->action_add();
      }
      
#28
<?php

// Get the contents man.
$contents = ob_get_contents();
ob_clean();

// The contents.
if ($boardurl != 'http://svn.test')
   $contents = str_replace('http://svn.test', $boardurl, $contents);

// Only do the Theme changer in certain cases.
if (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('xmlhttp', '.xml', 'viewsmfile', 'viewquery', 'verificationcode', 'suggest', 'smstats', 'quickmod', 'quickmod2', 'quotefast', 'openidreturn', 'jsoption', 'jsmodify', 'jseditor')))
   themechanger($contents);

echo $contents;

exit;


function themechanger(&$contents)
{
   global $smcFunc, $user_info;

   if (empty($_SERVER['REQUEST_URL']))
      return;

   // Figure out our location easily.
   $location = preg_replace('~[;|?]theme=(\d+)~i', '', $_SERVER['REQUEST_URL']);
   if (strpos($location, '?') !== false)
      $location = $location . ';';
   else
      $location = $location . '?';

   // Is the current theme, wrong!
   if (isset($_REQUEST['theme']))
      $user_info['theme'] = (int) $_REQUEST['theme'];
   elseif (!empty($_SESSION['id_theme']))
      $user_info['theme'] = (int) $_SESSION['id_theme'];

   // Start.
   $thestring = '
<div id="svn_theme_changer" style="position: absolute; top:1em; left: 40em; color:red; z-index:999; display: none;">
   <form method="get" action="javascript://void;">
      <select name="theme" onchange="location=\''. $location . 'theme=\' + this.options[this.selectedIndex].value">';

   // Go database!
   $request = $smcFunc['db_query']('', '
      SELECT value, id_theme
      FROM {db_prefix}themes
         WHERE id_theme != {int:no_theme}
         AND id_member = {int:guest_id}
         AND variable = {string:theme_name}',
      array(
         'no_theme' => 0,
         'guest_id' => 0,
         'theme_name' => 'name',
   ));
   while ($row = $smcFunc['db_fetch_assoc']($request))
      $thestring .= '
         <option value="' . $row['id_theme'] . '"' . ($user_info['theme'] == $row['id_theme'] ? ' selected="selected"' : ''). '>' . $row['value'] . '</option>';

   $thestring .= '
      </select>
   </form>
</div>
<div style="position: absolute; top:0; left: 0; right: 0; color:red; z-index:999; dislay: none;">
<div id="svn_theme_changer_show" style="display: block; float: right;" ><a href="#1" onclick="document.getElementById(\'svn_theme_changer\').style.display = \'\'; document.getElementById(\'svn_theme_changer_show\').style.display = \'none\'; document.getElementById(\'svn_theme_changer_hide\').style.display = \'\';">expand</a></div>
<div id="svn_theme_changer_hide" style="display: none; float: right;"><a href="#2" onclick="document.getElementById(\'svn_theme_changer\').style.display = \'none\'; document.getElementById(\'svn_theme_changer_show\').style.display = \'\'; document.getElementById(\'svn_theme_changer_hide\').style.display = \'none\';">collapse</a></div></div>';

   // board_select_spot.gif   collapse
   // smiley_select_spot.gif  expand
   // Hack out and display the few themes we have quickly.
   $contents = str_replace('<body>', '<body>' . $thestring, $contents);

   return $contents;
}
?>
#29
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^smf/([^/]+)/(.+?)$ index.php/$2?uselang=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)$ smf/index.php/$1 [L,QSA]
#30
<?php
// We just start, and we are already preparing to shutdown.
// !!! This file is called via php_admin_value auto_prepend_file
register_shutdown_function('sm_shutdown_function');

// The fun never ends.
function sm_shutdown_function()
{
   // Make a clean getaway.
   $contents = ob_get_contents();
   ob_clean();


   // Inject something and act like nothing happened.
   $contents = str_replace('*****', '*****', $contents);
   echo $contents;
   exit;
}

?>
#31

   $context['features'] = array(
      'General' => array(
         0 => array('sf_general_0'),
         1 => array('sf_general_1'),
         2 => array('sf_general_2', true),
         3 => array('sf_general_3'),
         4 => array('sf_general_4'),
         5 => array('sf_general_5', true),
         6 => array('sf_general_6'),
         7 => array('sf_general_7'),
         8 => array('sf_general_8'),
         9 => array('sf_general_9'),
         10 => array('sf_general_10'),
         11 => array('sf_general_11', true),
         12 => array('sf_general_12'),
         13 => array('sf_general_13'),
         14 => array('sf_general_14', false, array(
            0 => array('sf_general_14_0'),
            1 => array('sf_general_14_1'),
            ),
         ),
      ),
      'Security' => array(
         0 => array('sf_security_0'),
         1 => array('sf_security_1'),
         2 => array('sf_security_2', true),
         3 => array('sf_security_3'),
         4 => array('sf_security_4'),
         5 => array('sf_security_5'),
      ),
      'Forum Settings' => array(
         0 => array('sf_forum settings_0'),
         1 => array('sf_forum settings_1'),
         2 => array('sf_forum settings_2'),
         3 => array('sf_forum settings_3'),
      ),
      'Boards and Categories' => array(
         0 => array('sf_boards and categories_0'),
         1 => array('sf_boards and categories_1'),
         2 => array('sf_boards and categories_2'),
         3 => array('sf_boards and categories_3', true),
         4 => array('sf_boards and categories_4'),
         5 => array('sf_boards and categories_5'),
         6 => array('sf_boards and categories_6'),
         7 => array('sf_boards and categories_7'),
      ),
      'Member Registration' => array(
         0 => array('sf_member registration_0'),
         1 => array('sf_member registration_1'),
         2 => array('sf_member registration_2'),
         3 => array('sf_member registration_3'),
         4 => array('sf_member registration_4'),
         5 => array('sf_member registration_5'),
         6 => array('sf_member registration_6'),
      ),
      'Member Navigation and Authentication' => array(
         0 => array('sf_member navigation and authentication_0'),
         1 => array('sf_member navigation and authentication_1'),
         2 => array('sf_member navigation and authentication_2', true),
         3 => array('sf_member navigation and authentication_3'),
         4 => array('sf_member navigation and authentication_4'),
         5 => array('sf_member navigation and authentication_5'),
         6 => array('sf_member navigation and authentication_6'),
      ),
      'Member Tracking and Tracing' => array(
         0 => array('sf_member tracking and tracing_0'),
         1 => array('sf_member tracking and tracing_1'),
         2 => array('sf_member tracking and tracing_2'),
         3 => array('sf_member tracking and tracing_3'),
         4 => array('sf_member tracking and tracing_4'),
      ),
      'Statistics' => array(
         0 => array('sf_statistics_0'),
         1 => array('sf_statistics_1'),
         2 => array('sf_statistics_2'),
         3 => array('sf_statistics_3'),
      ),
      'News and Announcements' => array(
         0 => array('sf_news and announcements_0'),
         1 => array('sf_news and announcements_1'),
         2 => array('sf_news and announcements_2'),
         3 => array('sf_news and announcements_3'),
         4 => array('sf_news and announcements_4'),
         5 => array('sf_news and announcements_5'),
      ),
      'Communication' => array(
         0 => array('sf_communication_0', true),
         1 => array('sf_communication_1'),
         2 => array('sf_communication_2'),
      ),
      'Membergroups' => array(
         0 => array('sf_membergroups_0'),
         1 => array('sf_membergroups_1', true),
         2 => array('sf_membergroups_2'),
         3 => array('sf_membergroups_3'),
         4 => array('sf_membergroups_4'),
         5 => array('sf_membergroups_5'),
      ),
      'Banning' => array(
         0 => array('sf_banning_0'),
         1 => array('sf_banning_1', true),
         2 => array('sf_banning_2'),
         3 => array('sf_banning_3'),
         4 => array('sf_banning_4'),
         5 => array('sf_banning_5', true),
      ),
      'External integration' => array(
         0 => array('sf_external integration_0', false, array(
            0 => array('sf_external integration_0_0'),
            1 => array('sf_external integration_0_1'),
            2 => array('sf_external integration_0_2'),
            3 => array('sf_external integration_0_3'),
            4 => array('sf_external integration_0_4'),
            5 => array('sf_external integration_0_5'),
            6 => array('sf_external integration_0_6'),
            7 => array('sf_external integration_0_7'),
            8 => array('sf_external integration_0_8'),
            9 => array('sf_external integration_0_9'),
            ),
         ),
         1 => array('sf_external integration_1', false, array(
            0 => array('sf_external integration_1_0'),
            1 => array('sf_external integration_1_1'),
            2 => array('sf_external integration_1_2'),
            ),
         ),
      ),
      'Wireless access' => array(
         0 => array('sf_wireless access_0', true),
         1 => array('sf_wireless access_1'),
         2 => array('sf_wireless access_2'),
         3 => array('sf_wireless access_3'),
         4 => array('sf_wireless access_4'),
         5 => array('sf_wireless access_5'),
         6 => array('sf_wireless access_6'),
      ),
      'Theming and Templating' => array(
         0 => array('sf_theming and templating_0'),
         1 => array('sf_theming and templating_1'),
         2 => array('sf_theming and templating_2'),
         3 => array('sf_theming and templating_3'),
         4 => array('sf_theming and templating_4'),
         5 => array('sf_theming and templating_5', true),
         6 => array('sf_theming and templating_6'),
         7 => array('sf_theming and templating_7'),
      ),
      'Posting Features' => array(
         0 => array('sf_posting features_0', true),
         1 => array('sf_posting features_1', false, array(
            0 => array('sf_posting features_1_0'),
            1 => array('sf_posting features_1_1'),
            2 => array('sf_posting features_1_2'),
            ),
         ),
         2 => array('sf_posting features_2'),
         3 => array('sf_posting features_3'),
         4 => array('sf_posting features_4'),
         5 => array('sf_posting features_5'),
      ),
      'Polls' => array(
         0 => array('sf_polls_0', true),
         1 => array('sf_polls_1'),
         2 => array('sf_polls_2'),
         3 => array('sf_polls_3'),
         4 => array('sf_polls_4'),
         5 => array('sf_polls_5'),
      ),
      'Attachments' => array(
         0 => array('sf_attachments_0'),
         1 => array('sf_attachments_1', true),
         2 => array('sf_attachments_2'),
         3 => array('sf_attachments_3'),
         4 => array('sf_attachments_4'),
      ),
      'Calendar Support' => array(
         0 => array('sf_calendar support_0'),
         1 => array('sf_calendar support_1'),
         2 => array('sf_calendar support_2'),
         3 => array('sf_calendar support_3'),
         4 => array('sf_calendar support_4'),
         5 => array('sf_calendar support_5'),
         6 => array('sf_calendar support_6'),
      ),
      'Moderation Tools' => array(
         0 => array('sf_moderation tools_0', false, array(
            0 => array('sf_moderation tools_0_0'),
            ),
         ),
         1 => array('sf_moderation tools_1'),
         2 => array('sf_moderation tools_2'),
         3 => array('sf_moderation tools_3'),
         4 => array('sf_moderation tools_4', true),
         5 => array('sf_moderation tools_5'),
         6 => array('sf_moderation tools_6'),
         7 => array('sf_moderation tools_7'),
         8 => array('sf_moderation tools_8'),
         9 => array('sf_moderation tools_9'),
         10 => array('sf_moderation tools_10', false, array(
            0 => array('sf_moderation tools_10_0'),
            1 => array('sf_moderation tools_10_1'),
            ),
         ),
         11 => array('sf_moderation tools_11'),
         12 => array('sf_moderation tools_12'),
      ),
      'User Profiles and User Options' => array(
         0 => array('sf_user profiles and user options_0'),
         1 => array('sf_user profiles and user options_1'),
         2 => array('sf_user profiles and user options_2'),
         3 => array('sf_user profiles and user options_3'),
         4 => array('sf_user profiles and user options_4', false, array(
            0 => array('sf_user profiles and user options_4_0'),
            1 => array('sf_user profiles and user options_4_1'),
            2 => array('sf_user profiles and user options_4_2'),
            ),
         ),
         5 => array('sf_user profiles and user options_5'),
         6 => array('sf_user profiles and user options_6', true),
         7 => array('sf_user profiles and user options_7'),
         8 => array('sf_user profiles and user options_8'),
         9 => array('sf_user profiles and user options_9'),
      ),
      'User Resources' => array(
         0 => array('sf_user resources_0'),
         1 => array('sf_user resources_1', true),
         2 => array('sf_user resources_2'),
         3 => array('sf_user resources_3'),
         4 => array('sf_user resources_4'),
         5 => array('sf_user resources_5'),
         6 => array('sf_user resources_6'),
      ),
   );
#32
The-SleePy-Laptop:Site jeremy$ svn cleanup
svn: In directory 'public_html/Forums/Themes/default/images'
svn: Error processing command 'modify-wcprop' in 'public_html/Forums/Themes/default/images'
svn: 'public_html/Forums/Themes/default/images/useron.gif' is not under version control
The-SleePy-Laptop:Site jeremy$ svn unlock --force ./
svn: Working copy '/home/svn/Site/trunk' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
#33
v
#34
[*****@**** ~]$ ping simplemachines.org
PING simplemachines.org (10.0.100.134) 56(84) bytes of data.
64 bytes from 10.0.100.134: icmp_seq=1 ttl=64 time=0.894 ms
64 bytes from 10.0.100.134: icmp_seq=2 ttl=64 time=0.215 ms
64 bytes from 10.0.100.134: icmp_seq=3 ttl=64 time=0.282 ms

--- simplemachines.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.215/0.798/1.899/0.779 ms
#35
<?php

$tests = array(
   "123456",
   "123456\n",
);

foreach($tests AS $test)
{
   $good = preg_match('~^[0-9]+$~', $test);

   echo '"', $test, '" ', $good ? 'is' : 'is not', ' good
';
}

?>
#36
<?php
// SETTINGS
   // Simple Desk Tables.
   $sd_tables = array('tickets', 'ticket_replies', 'log_action', 'log_read', 'attachments');

   // SMF Tables we need to clean up after.
   $smf_tables = array('log_mark_read', 'log_notify', 'log_actions', 'log_activity', );

   // My settings brings all the coders to the yard...
   $reset_settings = array(
      'shd_staff_badge' => 'nobadge',
      'shd_display_avatar' => 0,
      'shd_disable_action_log' => 0,
      'shd_ticketnav_style' => 'sd',
      'shd_allow_ticket_bbc' => 1,
      'shd_allow_ticket_smileys' => 1,
      'shd_enabled_bbc' => 1,
      'shd_helpdesk_only' => 0,
      'shd_attachments_mode' => 'ticket',
      'shd_disable_pm' => 0,
      'shd_disable_mlist' => 0,
      'shd_bbc' => implode(',', $bbc_tags),
      'shd_staff_ticket_self' => 1,
      'shd_privacy_display' => 'smart',
      'settings_updated' => time(),
   );

   // The default topic title.
   $topic = 'Welcome to the SimpleDesk Demo';

   // The default topic body.
   $message = 'Welcome to the SimpleDesk Demo.

We have provided this demo forum as a means to allow you to demo our software.



SimpleDesk Administrator login: Admin / admin

SimpleDesk Staff user login: Staff / staff

SimpleDesk Regular user login: User / user
';

// Join us, SMF.
require_once('SSI.php');

// Clean the tables.
foreach ($sd_tables as $table)
   $smcFunc['db_query']('', 'TRUNCATE {db_prefix}helpdesk_{raw:table}', array('table' => $table));

// Collect bbc.
$bbc_tags = array();
foreach (parse_bbc(false) AS $tag)
   $bbc_tags[] = $tag['tag'];

// Update the Settings table.
updateSettings($reset_settings);

// Clean the SMF topics and messages, leaving only default.  This is done because posts are allowed for move to topic/ticket feature
$smcFunc['db_query']('', 'DELETE FROM {db_prefix}topics WHERE id_topic > 1', array());
$smcFunc['db_query']('', 'DELETE FROM {db_prefix}messages WHERE id_msg > 1', array());

// Reset the auto-increment count.
$smcFunc['db_query']('', 'ALTER TABLE {db_prefix}topics AUTO_INCREMENT = 1', array());
$smcFunc['db_query']('', 'ALTER TABLE {db_prefix}messages AUTO_INCREMENT = 1', array());

// Clean any SMF logs such as read log pretaining to topics and messages caused by SD actions.
foreach ($smf_tables as $table)
   $smcFunc['db_query']('', 'TRUNCATE {db_prefix}{raw:table}', array('table' => $table));

// Do the actual change to message table.
$smcFunc['db_query']('', '
   UPDATE {db_prefix}messages
      SET
         subject = {string:topic},
         body = {string:message},
         id_msg_modified = 1,
         poster_name = {string:name},
         poster_email = {string:email},
         poster_ip = {string:ip},
         smileys_enabled = 1,
         modified_time = 0,
         modified_name = {string:empty},
         icon = {string:xx},
         approved = 1,
         id_member = 0,
         poster_time = {int:time}
   WHERE id_msg = 1',
      array(
         'topic' => $topic,
         'message' => $message,
         'name' => 'SimpleDesk Team',
         'email' => 'void@simpledesk.net',
         'ip' => '127.0.0.1',
         'empty' => '',
         'xx' => 'xx',
         'time' => (int) strtotime('Janurary 1st, 2010'),
      )
   );

// Now topics table.
$smcFunc['db_query']('', '
   UPDATE {db_prefix}topics
      SET
         is_sticky = 0,
         id_first_msg = 1,
         id_last_msg = 1,
         id_member_started = 0,
         id_member_updated = 0,
         id_poll = 0,
         id_previous_board = 0,
         id_previous_topic = 0,
         num_replies = 0,
         num_views = 0,
         locked = 0,
         unapproved_posts = 0,
         approved = 1
   WHERE id_topic = 1', array());

// TODO: Fail checks, email webmaster@simpledesk.net on errors and return false for error handler to show a message (Need to setup that email address first [HA!])

// For now this just redirects.
redirectexit();

return true; exit;
?>
#37
   // Tickets awaiting response.
   $request = shd_db_query('
      SELECT COUNT(id_ticket)
      FROM {db_prefix}helpdesk_tickets AS hdt
      WHERE {query_see_ticket} AND status IN (0,1)', array());
   if ($smcFunc['db_num_rows']($request) > 0)
      list($context['helpdeskTickets']['waiting']) = $smcFunc['db_fetch_row']($request);
   $smcFunc['db_free_result']($request);
#38
The-SleePy-Laptop:simpledesk jeremy$ diff -u /home/svn/simpledesk/trunk/scripts/helpdesk.js /home/smf/public_html/helpdesk/Themes/default/scripts/helpdesk.js
--- /home/svn/simpledesk/trunk/scripts/helpdesk.js   2010-02-28 08:27:39.000000000 -0800
+++ /home/smf/public_html/helpdesk/Themes/default/scripts/helpdesk.js   2010-03-21 13:57:44.000000000 -0700
@@ -206,4 +206,11 @@
    document.getElementById(this.opt.sHeaderId).setAttribute('class', (this.bCollapsed ? 'titlebg grid_header' : 'titlebg'));
 
    this.bCollapsed = !this.bCollapsed;
+}
+
+// The quick jump function
+function shd_quickTicketJump(id_ticket)
+{
+   window.location.href = smf_prepareScriptUrl(smf_scripturl) + '?action=helpdesk;sa=ticket;ticket=' + id_ticket;
+   return false;
 }
\ No newline at end of file
The-SleePy-Laptop:simpledesk jeremy$ diff -u /home/svn/simpledesk/trunk/template/SimpleDesk.template.php /home/smf/public_html/helpdesk/Themes/default/SimpleDesk.template.php
--- /home/svn/simpledesk/trunk/template/SimpleDesk.template.php   2010-03-20 13:28:57.000000000 -0700
+++ /home/smf/public_html/helpdesk/Themes/default/SimpleDesk.template.php   2010-03-21 13:57:41.000000000 -0700
@@ -37,11 +37,12 @@
                <span class="upperframe"><span></span></span>
                <div class="roundframe">
                   <div class="shd_gototicket smalltext">
-                     <form action="', $scripturl, '?action=helpdesk" method="post">
+                     <form action="', $scripturl, '?action=helpdesk;sa=ticket" method="get">
                         ', $txt['shd_go_to_ticket'], ':
-                        <input type="text" name="ticket" size="4" />
-                        <input type="submit" value="', $txt['shd_go'], '" />
+                        <input type="hidden" name="action" value="helpdesk" />
                         <input type="hidden" name="sa" value="ticket" />
+                        <input type="text" id="ticketJump" name="ticket" size="4" />
+                        <input type="submit" value="', $txt['shd_go'], '" onclick="shd_quickTicketJump(this.parentNode.ticketJump.value);" />
                      </form>
                   </div>
                   <div id="welcome">
#39
// SleePy is lazy, so I will just check to see if db_query exists
if(!function_exists('db_query'))
{
   db_extend('Packages');
   function db_query($query, $file, $line)
   {
      global $smcFunc;
      return $smcFunc['db_query']('', $query, array('db_error_skip' => true));
   }
}
// All work here is for back support for SMF 1.1, It is easier to support 2.0 and backport.
else
{
   $smcFunc = $func;
   $smcFunc['db_num_rows'] = 'mysql_num_rows';
   $smcFunc['db_free_result'] = 'mysql_free_result';
   $smcFunc['db_fetch_assoc'] = 'mysql_fetch_assoc';
   $smcFunc['db_list_columns'] = 'mysql_show_columns';
   $smcFunc['db_add_column'] = 'mysql_create_columns';

   // Quickly emulate these functions.
   function mysql_show_columns($table_name)
   {
      global $smcFunc, $db_prefix;

      $result = db_query("SHOW FIELDS FROM {$table_name}", __FILE__, __LINE__);;
      $columns = array();
      while ($row = $smcFunc['db_fetch_assoc']($result))
         $columns[] = $row['Field'];
      return $columns;
   }
   function mysql_create_columns($table_name, $column_info)
   {
      global $db_prefix;

      return db_query('ALTER TABLE ' . $table_name . '
         ADD ' . $column_info['name'] . ' ' . $column_info['type'] . ' ' . (empty($column_info['null']) ? 'NOT NULL' : '') . ' ' .
      (empty($column_info['default']) ? '' : 'default \'' . $column_info['default'] . '\'') . ' ' .
      (empty($column_info['auto']) ? '' : 'auto_increment') . ' ', __FILE__, __LINE__);
   }
}
#40
$dir = '/home/svn/simpledesk/trunk/language-php/';
$files = scandir($dir);
$data = array();
foreach ($files as $temp)
{
   $txt = array(); $helptxt = array();
   include($dir . '/' . $temp);

   foreach ($txt as $key => $value)
      $data[$temp][$key] = $value;
}