<?php } if (localhost()) { foreach (get_dev_scripts() as $script) { echo call_user_func_array('mk_script_tag', $script) . PHP_EOL; } unset($script); } else { ?> <script type="<?php echo BROWSER === 'Firefox' ? 'application/javascript;version=1.8' : 'application/javascript'; ?> " src="scripts/combined.js" async></script> <?php } if (!localhost() and isset($head->google_analytics_code) and !DNT()) { define('GA', $head->google_analytics_code); ?> <script type="application/javascript" src="scripts/std-js/analytics.js" async defer></script> <?php } else { ?> <!--Analytics not used to honor Do Not Track Header--> <?php } ?> <!--[if lte IE 8]> <script type="text/javascript"> var html5=new Array('header','hgroup','nav','menu','main','section','article','footer','aside','mark', 'details', 'summary', 'dialog', 'figure', 'figcaption', 'picture', 'source'); for(var i=0;i<html5.length;i++){document.createElement(html5[i]);} </script>
$fr = @fopen("http://www.google.com/", $r); if ($fr === false) { die('NO NETWORK CONNECTION!'); } $fw = fopen("stream_copy_to_stream_{$r}_{$w}.txt", $w); echo "\n\nCOPIED: <b>" . stream_copy_to_stream($fr, $fw) . "</b>\n"; fclose($fr); fclose($fw); /* $f = fopen("stream_copy_to_stream_${r}_${w}.txt", "rb"); while (false !== ($c = fgetc($f))) { $c = (string)$c; //echo ord($c); if ($c == "\n") echo "[\\n]\n"; else if ($c == "\r") echo "[\\r]\r"; else if ($c == "<") echo "<"; else if ($c == ">") echo ">"; else echo $c; } fclose($f); */ unlink("stream_copy_to_stream_{$r}_{$w}.txt"); } //localhost("rt", "wt"); // Note: PHP ignores the read text mode //localhost("rt", "wb"); // Note: PHP ignores the read text mode localhost("rb", "wb"); localhost("rb", "wt"); //fgets(STDIN); ?>
<!DOCTYPE HTML> <!--[if lt IE 7]> <html lang="en" class="lt-ie9 lt-ie8 lt-ie7 no-js"> <![endif]--> <!--[if IE 7]> <html lang="en" class="lt-ie9 lt-ie8 no-js"> <![endif]--> <!--[if IE 8]> <html lang="en" class="lt-ie9 no-js"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en" itemscope itemtype="http://schema.org/WebPage" class="no-js" <?php if (!localhost() and isset($settings->appcache)) { ?> manifest="<?php echo URL . '/' . $settings->appcache; ?> "<?php } ?> > <!--<![endif]--> <!--<?php echo date('Y-m-d H:i:s'); ?> --> <?php load('head'); ?> <body contextmenu="main_menu" <?php echo defined('GA') ? 'data-ga="' . GA . '"' : null; ?> > <?php if (!$DB->connected) { load('forms/install'); } load('forms/login', 'header', 'main', 'footer'); ?>