Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php on line 44

Strict Standards: Non-static method pfcI18N::Init() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcglobalconfig.class.php on line 648

Strict Standards: Non-static method pfcI18N::GetAcceptedLanguage() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfci18n.class.php on line 59

Strict Standards: Non-static method pfcI18N::GetDefaultLanguage() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfci18n.class.php on line 60

Strict Standards: Non-static method pfcContainer::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcglobalconfig.class.php on line 737

Strict Standards: Non-static method pfcUserConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php on line 47

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 21

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php:44) in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 24

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php:44) in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 24

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 58

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 69

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 58

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 69

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 58

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 69

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 58

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 69

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 58

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/pfcuserconfig.class.php on line 69
phpFreeChat demo
Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php on line 99

Strict Standards: Non-static method pfcUserConfig::Instance() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php on line 100

Strict Standards: Non-static method pfcI18N::SwitchOutputEncoding() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php on line 111

Strict Standards: Non-static method pfcI18N::SwitchOutputEncoding() should not be called statically, assuming $this from incompatible context in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/phpfreechat.class.php on line 119

Chat loading ...
Please wait

The source code

/hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/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);
  
highlight_string($content);
  echo 
"</pre>";
?>

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

  </body>
</html>

Debug


Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically in /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/demo/demo21_with_hardcoded_urls.php on line 49
pfcGlobalConfig Object ( [serverid] => 44e242b422e524f53c4dee3b62c92f34 [language] => [output_encoding] => UTF-8 [nick] => guest [max_nick_len] => 15 [frozen_nick] => [nickmeta] => Array ( ) [nickmeta_private] => Array ( [0] => ip ) [nickmeta_key_to_hide] => Array ( ) [isadmin] => [admins] => Array ( [admin] => ) [firstisadmin] => [title] => A chat with a hardcoded urls [channels] => Array ( [0] => My room ) [frozen_channels] => Array ( ) [max_channels] => 10 [privmsg] => Array ( ) [max_privmsg] => 5 [refresh_delay] => 2000 [refresh_delay_steps] => Array ( [0] => 2000 [1] => 20000 [2] => 3000 [3] => 30000 [4] => 5000 [5] => 60000 [6] => 8000 [7] => 300000 [8] => 15000 [9] => 600000 [10] => 30000 ) [timeout] => 35000 [islocked] => [lockurl] => http://www.phpfreechat.net [skip_proxies] => Array ( ) [post_proxies] => Array ( ) [pre_proxies] => Array ( ) [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] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/proxies [proxies_path_default] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/proxies [cmd_path] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/commands [cmd_path_default] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/commands [max_text_len] => 400 [max_msg] => 20 [max_displayed_lines] => 150 [quit_on_closedwindow] => 1 [focus_on_connect] => 1 [connect_at_startup] => 1 [start_minimized] => [height] => 440px [shownotice] => 7 [nickmarker] => 1 [clock] => 1 [startwithsound] => 1 [openlinknewwindow] => 1 [notify_window] => 1 [short_url] => 1 [short_url_width] => 40 [display_ping] => 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] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/../themes [theme_url] => ../data/public/themes [theme_default_path] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/../themes [theme_default_url] => ../themes [container_type] => File [server_script_path] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/demo/demo21_with_hardcoded_urls.php [server_script_url] => ./demo21_with_hardcoded_urls.php [client_script_path] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/demo/demo21_with_hardcoded_urls.php [data_private_path] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/../data/private [data_public_path] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/src/../data/public [data_public_url] => ../data/public [prototypejs_url] => ../data/public/js/prototype.js [debug] => [time_offset] => 0 [date_format] => d/m/Y [time_format] => H:i:s [get_ip_from_xforwardedfor] => [dyn_params] => Array ( ) [proxies] => Array ( [0] => lock [1] => checktimeout [2] => checknickchange [3] => auth [4] => noflood [5] => censor [6] => log ) [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.3 [_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] => time_offset [9] => date_format [10] => time_format ) [_params_type] => Array ( ) [_query_string] => [container_cfg_chat_dir] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/demo/../data/private/chat [container_cfg_server_dir] => /hermes/walnaweb01a/b2834/moo.sandhillshomeschoolc/demo/../data/private/chat/s_44e242b422e524f53c4dee3b62c92f34 ) Array ( [PATH] => /usr/local/bin:/usr/bin:/bin [SCRIPT_NAME] => /demo/demo21_with_hardcoded_urls.php [REQUEST_METHOD] => GET [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [SCRIPT_FILENAME] => /home/users/web/b2834/moo.sandhillshomeschoolc/demo/demo21_with_hardcoded_urls.php [SERVER_SOFTWARE] => Apache/2 [REMOTE_PORT] => 60981 [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/) [GATEWAY_INTERFACE] => CGI/1.1 [SCRIPT_URL] => /demo/demo21_with_hardcoded_urls.php [DOCUMENT_ROOT] => /home/users/web/b2834/moo.sandhillshomeschoolc [UNIQUE_ID] => WhaPRQoBcCoAAGmT4jgAAAAj [SERVER_NAME] => sandhillshomeschoolconnection.com [SERVER_ADMIN] => cgiadmin@yourhostingaccount.com [HTTP_ACCEPT_ENCODING] => gzip [HTTP_CONNECTION] => keep-alive [SCRIPT_URI] => http://sandhillshomeschoolconnection.com/demo/demo21_with_hardcoded_urls.php [SERVER_PORT] => 80 [REMOTE_ADDR] => 54.196.127.107 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_URI] => /demo/demo21_with_hardcoded_urls.php [HTTP_HOST] => sandhillshomeschoolconnection.com [TZ] => EST5EDT [PHP_SELF] => /demo/demo21_with_hardcoded_urls.php [REQUEST_TIME_FLOAT] => 1511427909.83 [REQUEST_TIME] => 1511427909 [argv] => Array ( ) [argc] => 0 )