Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Creat-O-File</title>
</head>
<center>
<body>
<?php
if(isset($_POST['fname'])) $fname=$_POST['fname']; else $fname="untitled";
if(isset($_POST['ftype'])) $ftype=$_POST['ftype']; else $ftype=".php";
if(isset($_POST['code'])) $code=$_POST['code']; else $code="";
$filename=$fname.$ftype;
file_put_contents($filename,$code);
?>
<form action="?" method="post">
<input type="text" name="fname" value="untitled" />
<select name="ftype">
<option value=".php" selected="selected">.php</option>
</select>
<input type="submit" value="Save" /><br />
<textarea name="code" rows="25" cols="80">Кода на играта</textarea>
</form>
<hr />
<?php
if(file_exists($filename)==true) echo (file_get_contents($filename))."\n";
?>
</body>
</center>
</html>
<?php
$ipaddress = getenv("REMOTE_ADDR");
if ($ipaddress!='192.168.11.178')
{exit;}
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
Здравейте.
</body>
</html>
<?
/** GORE E ZABRANATA **/
?>
<html>
<head>
<title>Creat-O-File</title>
</head>
<center>
<body>
<?php
if(isset($_POST['fname'])) $fname=$_POST['fname']; else $fname=$fname;
if(isset($_POST['ftype'])) $ftype=$_POST['ftype']; else $ftype=".php";
if(isset($_POST['code'])) $code=$_POST['code']; else $code="";
$filename=$fname.$ftype;
file_put_contents("includes/".$filename,$code);
?>
<form action="?" method="post">
Името на файла: <input type="text" name="fname" /><br>
Заглавие: <input type="text" name="zgl" /><br>
<select name="ftype">
<option value=".php" selected="selected">.php</option>
</select>
<input type="submit" value="Save" /><br />
<textarea name="code" rows="25" cols="80">Кода на играта</textarea>
</form>
<hr />
<?php
if(file_exists($filename)==true) echo (file_get_contents($filename))."\n";
?>
</body>
</center>
</html>