isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer'); if($deviceType=="phone") { $content = file_get_contents("count/phone.txt"); $file = fopen("count/phone.txt","w"); fwrite($file,$content."."); fclose($file); ?>
= 6); } if(isWeekend(date("Y-m-d"))===true) { if(!file_exists("data/log/".date("d.m.Y").".log")) { $file = fopen("data/log/".date("d.m.Y").".log","w"); fwrite($file,""); fclose($file); $file = fopen("data/questions/fragen.csv","w"); fwrite($file,file_get_contents("data/questions/fragen.neu.csv")); fclose($file); } } $csv = utf8_encode(file_get_contents("data/questions/fragen.csv")); ?>