Files
Testing/html5-chat1/script.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

46 lines
994 B
PHP

<?php
//$webmasterid/$token (simple)
// ou bien $webmasterid/$token/$username/$sex
//
ini_set('display_errors', 1);error_reporting(E_ALL);
include_once 'Config.php';
print_r($args);
if (count($args)<2) {
exit;
}
$src = HOME_HTTP . 'chat/';
foreach ($args as $arg) {
$src.=$arg.'/';
}
$uri = $_SERVER['REQUEST_URI'];
$queryString = strpos($uri, '?') ? substr($uri, strpos($uri, '?') + 0) : '';
$src.=$queryString;
ob_start();
?>
<style>
body, html {
width: 100%;
height:100%;
margin:0px;
overflow:auto;
}
.wrapperChat{
margin:0 auto;
width:100%;
height:100%;
}
#iframeChat{
height:100%;
width:100%;
border:none;
}
</style>
<div class="wrapperChat">
<iframe id="iframeChat" src="<?=$src?>" allowfullscreen allow="geolocation; microphone; camera; allowfullscreen; autoplay;"; ></iframe>
</div>
<?php $script = ob_get_clean();
foreach(preg_split("/((\r?\n)|(\r\n?))/", $script) as $line){
echo "document.write('$line');";
}
?>