'".date('Y-m-d H:i:s',time()-60*5)."'"; $result=Database::query($query,__FILE__,__LINE__); $connected_old=intval($_POST['connected_old']); list($connected_new)=Database::fetch_row($result); $streaming_old=$_POST['streaming_old']; $streaming_new=md5(print_r(@file($onlinePath.'streaming.txt'),true)); if($isMaster) { $document=trim(stripslashes($_POST['document'])); if(strstr($document,'online_htmlarea.php')) { $document.='?size='.filesize($onlinePath.'htmlarea.html'); } $fp=fopen($onlinePath.'document_selected.txt','w'); if(empty($document)) { fputs($fp,api_get_path(WEB_CODE_PATH).'online/online_working_area.php'); } else { fputs($fp,$document); } fclose($fp); } else { if(!list($document)=file($onlinePath.'document_selected.txt')) { $document=api_get_path(WEB_CODE_PATH).'online/online_working_area.php'; } } include('header_frame.inc.php'); ?>