Chat loading ...
Please wait

PHP FREE CHAT [powered by phpFreeChat-1.0-beta10]

The source code

/home/gokceore/public_html/chat/demo/demo21_with_hardcoded_urls.php

<?php

require_once dirname(__FILE__)."/../src/phpfreechat.class.php";
$params = array();
$params["serverid"]       = md5(__FILE__); // calculate a unique id for this chat
$params["title"]          = "A chat with a hardcoded urls";
$params["nick"]           = "guest";  // setup the intitial nickname

// setup urls
$params["data_public_url"]   = "../data/public";
$params["server_script_url"] = "./demo21_with_hardcoded_urls.php";
$params["theme_default_url"] = "../themes";

// setup paths
$params["container_type"]         = "File";
$params["container_cfg_chat_dir"] = dirname(__FILE__)."/../data/private/chat";

$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>phpFreeChat demo</title>

    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>

  </head>

  <body>
  <?php $chat->printChat(); ?>

<?php
  // print the current file
  echo "<h2>The source code</h2>";
  $filename = __FILE__;
  echo "<p><code>".$filename."</code></p>";
  echo "<pre style=\"margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;\">";
  $content = file_get_contents($filename);
  echo htmlentities($content);
  echo "</pre>";
?>

<?php
  echo "<h2>Debug</h2>";
  echo "<pre>";
  $c =& pfcGlobalConfig::Instance();
  print_r($c);
  print_r($_SERVER);
  echo "</pre>";
?>

  </body>
</html>

Debug

pfcGlobalConfig Object
(
    [serverid] => 46715527c7215bc94698b6b0ddf258fe
    [nick] => guest
    [nickmeta] => Array
        (
        )

    [nickmeta_private] => Array
        (
            [0] => ip
        )

    [isadmin] => 
    [admins] => Array
        (
            [admin] => 
        )

    [firstisadmin] => 
    [islocked] => 
    [lockurl] => http://www.phpfreechat.net
    [skip_proxies] => Array
        (
        )

    [post_proxies] => Array
        (
        )

    [pre_proxies] => Array
        (
        )

    [proxies] => Array
        (
            [0] => lock
            [1] => checktimeout
            [2] => checknickchange
            [3] => auth
            [4] => noflood
            [5] => censor
            [6] => log
        )

    [proxies_cfg] => Array
        (
            [auth] => Array
                (
                )

            [noflood] => Array
                (
                    [charlimit] => 450
                    [msglimit] => 10
                    [delay] => 5
                )

            [censor] => Array
                (
                    [words] => Array
                        (
                            [0] => fuck
                            [1] => sex
                            [2] => bitch
                        )

                    [replaceby] => *
                    [regex] => 
                )

            [log] => Array
                (
                    [path] => 
                )

        )

    [proxies_path] => /home/gokceore/public_html/chat/src/proxies
    [proxies_path_default] => /home/gokceore/public_html/chat/src/proxies
    [cmd_path] => /home/gokceore/public_html/chat/src/commands
    [cmd_path_default] => /home/gokceore/public_html/chat/src/commands
    [title] => A chat with a hardcoded urls
    [channels] => Array
        (
            [0] => My room
        )

    [frozen_channels] => Array
        (
        )

    [max_channels] => 10
    [privmsg] => Array
        (
        )

    [max_privmsg] => 5
    [frozen_nick] => 
    [max_nick_len] => 15
    [max_text_len] => 400
    [refresh_delay] => 5000
    [max_refresh_delay] => 60000
    [timeout] => 20000
    [max_msg] => 20
    [max_displayed_lines] => 150
    [quit_on_closedwindow] => 1
    [focus_on_connect] => 1
    [connect_at_startup] => 1
    [start_minimized] => 
    [height] => 440px
    [width] => 
    [shownotice] => 3
    [nickmarker] => 1
    [clock] => 1
    [startwithsound] => 1
    [openlinknewwindow] => 1
    [notify_window] => 1
    [display_pfc_logo] => 1
    [displaytabimage] => 1
    [displaytabclosebutton] => 1
    [showwhosonline] => 1
    [showsmileys] => 1
    [btn_sh_whosonline] => 1
    [btn_sh_smileys] => 1
    [bbcode_colorlist] => Array
        (
            [0] => #FFFFFF
            [1] => #000000
            [2] => #000055
            [3] => #008000
            [4] => #FF0000
            [5] => #800000
            [6] => #800080
            [7] => #FF5500
            [8] => #FFFF00
            [9] => #00FF00
            [10] => #008080
            [11] => #00FFFF
            [12] => #0000FF
            [13] => #FF00FF
            [14] => #7F7F7F
            [15] => #D2D2D2
        )

    [nickname_colorlist] => Array
        (
            [0] => #CCCCCC
            [1] => #000000
            [2] => #3636B2
            [3] => #2A8C2A
            [4] => #C33B3B
            [5] => #C73232
            [6] => #80267F
            [7] => #66361F
            [8] => #D9A641
            [9] => #3DCC3D
            [10] => #1A5555
            [11] => #2F8C74
            [12] => #4545E6
            [13] => #B037B0
            [14] => #4C4C4C
            [15] => #959595
        )

    [theme] => default
    [theme_path] => /home/gokceore/public_html/chat/themes
    [theme_default_path] => /home/gokceore/public_html/chat/themes
    [theme_url] => ../themes
    [theme_default_url] => ../themes
    [baseurl] => 
    [language] => 
    [output_encoding] => UTF-8
    [container_type] => File
    [client_script_path] => /home/gokceore/public_html/chat/demo/demo21_with_hardcoded_urls.php
    [server_script_path] => /home/gokceore/public_html/chat/demo/demo21_with_hardcoded_urls.php
    [server_script_url] => ./demo21_with_hardcoded_urls.php
    [xajaxpath] => /home/gokceore/public_html/chat/src/../lib/xajax_0.5_beta1
    [jspath] => /home/gokceore/public_html/chat/src/../lib/javascript
    [data_private_path] => /home/gokceore/public_html/chat/src/../data/private
    [data_public_path] => /home/gokceore/public_html/chat/src/../data/public
    [data_public_url] => ../data/public
    [smileys] => Array
        (
            [smileys/emoticon_smile.png] => Array
                (
                    [0] => :-)
                    [1] => ^_^
                    [2] => :)
                )

            [smileys/emoticon_evilgrin.png] => Array
                (
                    [0] => >(
                )

            [smileys/emoticon_surprised.png] => Array
                (
                    [0] => :S
                    [1] => :s
                    [2] => :-S
                    [3] => :-s
                    [4] => :-/
                )

            [smileys/emoticon_grin.png] => Array
                (
                    [0] => :-D
                    [1] => :D
                )

            [smileys/emoticon_unhappy.png] => Array
                (
                    [0] => :\'(
                    [1] => :-(
                    [2] => :o(
                    [3] => :-<
                    [4] => :(
                )

            [smileys/emoticon_happy.png] => Array
                (
                    [0] => :lol:
                )

            [smileys/emoticon_waii.png] => Array
                (
                    [0] => :{}
                    [1] => :-{}
                    [2] => :razz:
                    [3] => :}
                    [4] => :-}
                )

            [smileys/emoticon_wink.png] => Array
                (
                    [0] => ;-)
                    [1] => ;o)
                    [2] => ;)
                )

            [smileys/emoticon_tongue.png] => Array
                (
                    [0] => :P
                    [1] => :-P
                    [2] => :-p
                    [3] => :p
                )

            [smileys/weather_rain.png] => Array
                (
                    [0] => ///
                    [1] => \\\\\\
                    [2] => |||
                    [3] => :rain:
                    [4] => :drizzle:
                )

            [smileys/weather_snow.png] => Array
                (
                    [0] => :***:
                )

            [smileys/weather_sun.png] => Array
                (
                    [0] => >O<
                )

            [smileys/weather_clouds.png] => Array
                (
                    [0] => :\"\"\":
                    [1] => :cloud:
                    [2] => :clouds:
                )

            [smileys/weather_cloudy.png] => Array
                (
                    [0] => :\"O\":
                    [1] => :cloudly:
                )

            [smileys/weather_lightning.png] => Array
                (
                    [0] => :$:
                )

            [smileys/arrow_right.png] => Array
                (
                    [0] => =>
                    [1] => ->
                    [2] => -->
                    [3] => ==>
                    [4] => >>>
                )

            [smileys/arrow_left.png] => Array
                (
                    [0] => <=
                    [1] => <-
                    [2] => <--
                    [3] => <==
                    [4] => <<<
                )

            [smileys/exclamation.png] => Array
                (
                    [0] => :!:
                )

            [smileys/lightbulb.png] => Array
                (
                    [0] => *)
                    [1] => 0=
                )

        )

    [errors] => Array
        (
        )

    [is_init] => 1
    [version] => 1.0-beta10
    [debugurl] => ../debug
    [debug] => 
    [debugxajax] => 
    [_sys_proxies] => Array
        (
            [0] => lock
            [1] => checktimeout
            [2] => checknickchange
            [3] => auth
            [4] => noflood
            [5] => censor
            [6] => log
        )

    [_dyn_params] => Array
        (
            [0] => nick
            [1] => isadmin
            [2] => islocked
            [3] => admins
            [4] => frozen_channels
            [5] => channels
            [6] => privmsg
            [7] => nickmeta
            [8] => baseurl
        )

    [_params_type] => Array
        (
            [string] => Array
                (
                    [0] => serverid
                    [1] => nick
                    [2] => lockurl
                    [3] => proxies_path
                    [4] => proxies_path_default
                    [5] => cmd_path
                    [6] => cmd_path_default
                    [7] => title
                    [8] => height
                    [9] => width
                    [10] => theme
                    [11] => theme_path
                    [12] => theme_default_path
                    [13] => theme_url
                    [14] => theme_default_url
                    [15] => baseurl
                    [16] => language
                    [17] => output_encoding
                    [18] => container_type
                    [19] => client_script_path
                    [20] => server_script_path
                    [21] => server_script_url
                    [22] => xajaxpath
                    [23] => jspath
                    [24] => data_private_path
                    [25] => data_public_path
                    [26] => data_public_url
                    [27] => version
                    [28] => debugurl
                    [29] => _query_string
                )

            [array] => Array
                (
                    [0] => nickmeta
                    [1] => nickmeta_private
                    [2] => admins
                    [3] => skip_proxies
                    [4] => post_proxies
                    [5] => pre_proxies
                    [6] => proxies
                    [7] => proxies_cfg
                    [8] => channels
                    [9] => frozen_channels
                    [10] => privmsg
                    [11] => bbcode_colorlist
                    [12] => nickname_colorlist
                    [13] => smileys
                    [14] => errors
                    [15] => _sys_proxies
                    [16] => _dyn_params
                    [17] => _params_type
                )

            [bool] => Array
                (
                    [0] => isadmin
                    [1] => firstisadmin
                    [2] => islocked
                    [3] => frozen_nick
                    [4] => quit_on_closedwindow
                    [5] => focus_on_connect
                    [6] => connect_at_startup
                    [7] => start_minimized
                    [8] => nickmarker
                    [9] => clock
                    [10] => startwithsound
                    [11] => openlinknewwindow
                    [12] => notify_window
                    [13] => display_pfc_logo
                    [14] => displaytabimage
                    [15] => displaytabclosebutton
                    [16] => showwhosonline
                    [17] => showsmileys
                    [18] => btn_sh_whosonline
                    [19] => btn_sh_smileys
                    [20] => is_init
                    [21] => debug
                    [22] => debugxajax
                )

            [positivenumeric] => Array
                (
                    [0] => max_channels
                    [1] => max_privmsg
                    [2] => max_nick_len
                    [3] => max_text_len
                    [4] => refresh_delay
                    [5] => max_refresh_delay
                    [6] => timeout
                    [7] => max_msg
                    [8] => max_displayed_lines
                    [9] => shownotice
                )

        )

    [_query_string] => 
    [container_cfg_chat_dir] => /home/gokceore/public_html/chat/demo/../data/private/chat
    [container_cfg_server_dir] => /home/gokceore/public_html/chat/demo/../data/private/chat/s_46715527c7215bc94698b6b0ddf258fe
)
Array
(
    [DOCUMENT_ROOT] => /home/gokceore/public_html
    [GATEWAY_INTERFACE] => CGI/1.1
    [HTTP_ACCEPT] => Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_ACCEPT_ENCODING] => gzip
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_CACHE_CONTROL] => no-cache
    [HTTP_CONNECTION] => close
    [HTTP_HOST] => www.gokceoren.org
    [HTTP_PRAGMA] => no-cache
    [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
    [PATH] => /bin:/usr/bin
    [QUERY_STRING] => 
    [REDIRECT_STATUS] => 200
    [REMOTE_ADDR] => 38.103.63.56
    [REMOTE_PORT] => 34673
    [REQUEST_METHOD] => GET
    [REQUEST_URI] => /chat/demo/demo21_with_hardcoded_urls.php
    [SCRIPT_FILENAME] => /home/gokceore/public_html/chat/demo/demo21_with_hardcoded_urls.php
    [SCRIPT_NAME] => /chat/demo/demo21_with_hardcoded_urls.php
    [SERVER_ADDR] => 72.9.145.55
    [SERVER_ADMIN] => webmaster@gokceoren.org
    [SERVER_NAME] => www.gokceoren.org
    [SERVER_PORT] => 80
    [SERVER_PROTOCOL] => HTTP/1.1
    [SERVER_SIGNATURE] => 
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.gokceoren.org Port 80
[SERVER_SOFTWARE] => Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 [UNIQUE_ID] => CbqRwkgJkTcAAA38INkAAAAo [PHP_SELF] => /chat/demo/demo21_with_hardcoded_urls.php [REQUEST_TIME] => 1227325722 [argv] => Array ( ) [argc] => 0 )